"prisculus" a écrit dans le message de news: 421b6d2c$1_2@127.0.0.1...
Yes it is
write s''[t] = a*s[t]^2 + b*s[t] + c define a vector Y=(s, s') = (Y_1,Y_2) so Y'=(s', s'') so Y'_1 = Y_2 and Y'_2 = a*Y_1^2 + b*Y_1 + c
Now you have a vectorial relation like Y'=f(Y, t) and you can apply a runge-kutta method you can try this short C program if you have a compiler The function Y'=f(Y, t) is void F(double t,double Y[neq], double Yp[neq])
RQ : i'm french and so the comment are in french, good luck ;) #include
#include
#define neq 2 /*nombre d'equationsdu systeme à resoudre*/
PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.