On 6 ene, 12:23, Jason Grout <jason-s...@creativetrax.com> wrote:
> That was an intentionally simple example to illustrate the problem.
> Here's something that is more nontrivial:
> def f(x,y):
>     if x>pi:
>        return y
>     else:
>        return -y
>
> spherical_plot3d(f, (x,0,2*pi), (y,0,pi))

I have no idea how to make that work. Functions defined by parts are
surely somthing we'd want. The problem, as i've said is that sage
cannot
 multiply functions andsage expressions. That is something better
suited
 for more experienced sage programmers than myself...

I do have a workaround however:
spherical_plot(-y,(x,0,pi),(y,0,pi))+spherical_plot(y,(x,pi,2*pi),(y,
0,pi))

will do what you are thinking of
-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to