Re: [sage-support] Re: defining variables

2010-12-02 Thread Dawes, Andrew M.
On 12/2/10 8:01 AM, Jason Grout wrote: > On 12/2/10 8:24 AM, Andrew Dawes wrote: >> lambda is a special word in python, it indicates a type of one-line >> function definition. Using any other word should work. >> >> See: >> http://groups.google.com/group/sage-support/browse_thread/thread/728f27989f

Re: [sage-support] Re: Complex exp() and abs() inside a plot function

2010-10-26 Thread Dawes, Andrew M.
On 10/26/10 6:59 AM, Marshall Hampton wrote: > I think that could be considered a bug in ginac, or in the wrapping of > ginac in sage. Ok, I'll start writing up a description. If anyone else has submitted something on this, let me know. > A workaround that might also speed some things up is to def

[sage-support] Complex exp() and abs() inside a plot function

2010-10-25 Thread Dawes, Andrew M.
I have noticed unexpected behavior when trying to take the absolute value of a complex exponential (e^{i\theta}). For example, the following command fails with "unable to simplify to float approximation": plot(abs(exp(i*pi*x)),x,0,3) However, the following gives the correct plot (of constant val