Jaap Spies wrote:
> Jason Grout wrote:
>
>> *thinking out loud* Is this maybe related to the fast_float stuff that
>> Robert did in 2.10.1 if the error doesn't show up in 2.10? Justin, if
>> you have 2.10.1 handy, can you try the plot command in there?
>>
>
> Don't think so! See IRC, thanks wjp! Why should Sage plot a function f with
> f(x) = sqrt(1-x^2) in the range [1..10], where 1-x^2 is negative?
I agree that the function should not be plotted. My question now is
about the error message.
After examining the traceback more carefully in my last message, I take
back wondering about the fast_float stuff. The traceback leads to the
sympy code.
Justin, I get a different traceback, but the same error message when I
try it in the vmware image originally containing 2.9.3, but which I
upgraded to 2.10:
sage: plot((1-x^2)^(0.5),(x,1,10))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/notebook/sage_notebook/worksheets/admin/5/code/2.py",
line 4, in <module>
plot((Integer(1)-x**Integer(2))**(RealNumber(\u00270.5\u0027)),(x,Integer(1),Integer(10)))
File
"/usr/local/sage/local/lib/python2.5/site-packages/sympy/plotting/",
line 1, in <module>
File
"/usr/local/sage/local/lib/python2.5/site-packages/sage/plot/plot.py",
line 2387, in __call__
G = funcs.plot(*args, **kwds)
File
"/usr/local/sage/local/lib/python2.5/site-packages/sage/calculus/calculus.py",
line 651, in plot
return plot(f, *args, **kwds)
File
"/usr/local/sage/local/lib/python2.5/site-packages/sage/plot/plot.py",
line 2387, in __call__
G = funcs.plot(*args, **kwds)
File
"/usr/local/sage/local/lib/python2.5/site-packages/sage/calculus/calculus.py",
line 651, in plot
return plot(f, *args, **kwds)
File
"/usr/local/sage/local/lib/python2.5/site-packages/sage/plot/plot.py",
line 2396, in __call__
G = self._call(funcs, *args, **kwds)
File
"/usr/local/sage/local/lib/python2.5/site-packages/sage/plot/plot.py",
line 2472, in _call
if abs(data[i+1][1] - data[i][1]) > max_bend:
TypeError: 'float' object is unsubscriptable
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
-~----------~----~----~----~------~----~------~--~---