There is a multiplication sign (*) missing:

sage: AA = y*(1-y)-0.2*(1-0.7*cos(2*pi*x))
sage: AA = y(1-y)-0.2*(1-0.7*cos(2*pi*x))
Traceback (most recent call last)
...
TypeError: number of arguments does not match number of variables in parent

Then it works (with a deprecation warning):

sage: eulers_method(AA,0,1,1/2,1)
         x                    y                  h*f(x,y)
.../sage-git/local/lib/python2.7/site-packages/sage/misc/decorators.py:705: 
DeprecationWarning: Substitution using function-call syntax and unnamed 
arguments is deprecated and will be removed from a future release of Sage; 
you can use named arguments instead, like EXPR(x=..., y=...)
See http://trac.sagemath.org/5930 for details.
  return func(*args, **kwds)
         0                    1  -0.0300000000000000
       1/2    0.970000000000000   -0.155450000000000
         1    0.814550000000000   0.0455291487500000

-- 
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.

Reply via email to