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.
(Cross-posting because of a bug). I seem to get the same things as you mention on sagenb.org. Here is some info for people to track things down: plot(1*cos) also gives the plot of sin(x) f=1*cos f(0) gives 1 but plot(f) gives the incorrect plot. I think the bug is in fast_float: from sage.ext.fast_eval import fast_float g=fast_float(2*cos) g(0) gives 0.0 (but should give 2.0). Jason --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
