Dear Support,
Implicit plotting with normal variables is fine:
sage: var('x,y')
(x, y)
sage: f(x,y)=x^2+y^2-1
sage: implicit_plot(f(x,y),(-1,1),(-1,1)) # Fine
sage: implicit_plot(f,(-1,1),(-1,1)) # Fine
Change this to _fast_float_ and I run into problems:
sage: g=f._fast_float_()
sage: implicit_plot(g(x,y),(-1,1),(-1,1))
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
<snip>
TypeError: a float is required
sage: implicit_plot(g,(-1,1),(-1,1))
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
<snip>
/Users/.../sage/plot/plot3d/parametric_plot3d.pyc in adapt_to_callable
(f, nargs)
504 except TypeError:
505 vars = ()
--> 506 f = [fast_float_constant(x) for x in f]
507
508 if nargs is not None and len(vars) != nargs:
<snip>
TypeError: Not a constant.
I tried this too, for what it's worth:
sage: h(x,y)=f._fast_float_()
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
<snip>
TypeError: cannot coerce type '<type
'sage.ext.fast_eval.FastDoubleFunc'>' into a SymbolicExpression.
What's especially puzzling is that if I do all this with a single-
variable function, there are no problems. (I assume that pynac/ns=1
symbolics are still not callable for plotting at this point.) Thanks
for any hints on what I might be doing wrong.
- kcrisman
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---