Oscar Lazo wrote:
On 6 ene, 01:16, Jason Grout <jason-s...@creativetrax.com> wrote:
I've made some comments athttp://trac.sagemath.org/sage_trac/ticket/7850
I saw your comments (i'll edit the ticket when i'm sure how many of
those there
should be).
1. To be consistent with the plotting functions, it would also need to support
something like:
{{{
spherical_plot3d(lambda x,y: x+y, (0,2*pi), (0,pi))
}}}
with the changes i've made now, the format has to be
spherical_plot3d(lambda x,y: x+y, (var1,0,2*pi), (var2,0,pi))
but it seems like sage can't make the needed multiplication, i get:
TypeError: unsupported operand parent(s) for '*': '<type 'function'>'
and 'Symbolic Ring'
Instread why not just try:
spherical_plot(x+y, (x,0,2*pi), (y,0,pi))
Produces a seashell-like surface
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))
Thanks,
Jason
--
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