Hi!
On May 28, 11:35 am, flori <[email protected]> wrote:
...
> NameError: global name 'x' is not defined
>
> if I run a similar integral directly in sage it works very well, so I
> probably forgot anything to include??
In Sage, 'x' is pre-defined (which the weighted majority of Sage
developers considers a feature, not a bug :-).
Namely, if you start sage, then you get
sage: type(x)
<class 'sage.calculus.calculus.SymbolicVariable'>
I guess that in a Sage script, this assignment of x is not done, so
that you have to explicitely do
x=var('x')
in your script; I don't know if you need to import "var".
Best regards,
Simon
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---