I have never used sage before, and I'm trying to use it to numerically solve non-linear ODEs. The code I found online does not work for my non-linear equation x'=x(1-x)-0.2(1-0.2*cos(2pi*t)).
from sage.calculus.desolvers import eulers_method x,y = PolynomialRing(QQ,2,"xy").gens() eulers_method(y(1-y)-0.2*(1-0.7*cos(2*pi*x)),0,1,1/2,1) The Error I get is: TypeError: number of arguments does not match number of variables in parent Any ideas on how to do this correctly? -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
