Since

sage: x,y = var("x y")
sage: plot3d(x^2-y^2, (x,-1,1),(y,-1,1))

works fine, why not just use variables

sage: f = x^2-y^2
sage: f.variables()
(x, y)

to find the missing variables in plot3d(x^2-y^2, (-1,1),(-1,1))
and then replace the arguments (-1,1),(-1,1) by
(x,-1,1),(y,-1,1) in plot3d.parametric_plot3d?

Am I missing something?


On Sun, Nov 30, 2008 at 11:35 AM, mikeslov <[EMAIL PROTECTED]> wrote:
>
> I saw similar tickets, now closed, but the problem remains in version
> 3.2:
>
> x,y=var("x y")
>
> plot3d(x^2-y^2, (-1,1),(-1,1))
>
> There must be something wrong in the function
> sage.plot.plot3d.parametric_plot3d.adapt_to_callable
>
> My crude fix was:
>
>    try:
>        try:
>            if len(f):
>                s = sum(f) # get common universe
>        except TypeError:
>            s=f
>
> instead of original code at the beginning of mentioned function:
>
>    try:
>        s = sum(f) # get common universe
>    ...
>
> I know, this is probably not the right fix, but maybe, it can drive
> someone with deeper knowledge of code in the right direction.
>
> Michal
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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