On Nov 19, 2008, at 2:19 PM, Jason Grout wrote:

>
> Jason Grout wrote:
>> Scott Walck wrote:
>>> The sage command
>>>
>>> plot(2*cos)
>>>
>>> produces a plot of 2*sin(x).  This seems like a bug.  This occurs in
>>> sage 3.1.4 and on the web version.
>>>
>>> Note that
>>>
>>> plot(2*cos(x))
>>>
>>> works properly.  Also,
>>>
>>> plot(2*sin)
>>>
>>> appears to give the correct plot.
>>
>
>
> Line 6860 of calculus.py defines the fast_float function for cos(x) to
> be math.sin.  That's the problem.  I'm posting a patch right now.

Why are we using math.sin/math.cos at all? Really, it should use the  
native C sin and cos.

- Robert



--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@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-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to