> Coming in late, but if this is literally what your example is, I think
> the problem is the "f(x)=x^3". Can you do that?
>
> If I try this
>
> def foo(x):
> f(x) = x^3
> return f(x)
>
> on 3.2.alpha0, without any doctstring, it blows up with
Thanks for your thoughts. Interesting, because I don't have any
problems with that! In fact, I think your problem there is that you
have x as both the input and the variable in your definition. E.g.,
your example blows up for me too, but I have no problems with the
following:
sage: def new():
....: f(x)=x^3
....: return f(3)
....:
sage: new()
27
sage: def new1():
f(x)=x^3
return f(x)
....:
sage: new1()
x^3
It sounds like there are several interesting things developing out of
this thread!
- kcrisman
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---