Dear Support, So I've always had some trouble with syntax for complex_plot and plot3d. Namely, if you don't get the form of the function just right, it complains about not being able to make things a float. Now, I'm getting something even odder:
sage: f(x,y) = abs(e^(pi*i*x)+e^(pi*i*y)) sage: plot3d(f,(0,1),(0,1)) [works fine} sage: plot3d(f,(x,0,1),(y,0,1)) TypeError: float() argument must be a string or a number which comes from calling GEx_to_double in __float__ somewhere along the line, probably in ParametricSurface. But how do we fix this? Similarly, sage: f(x,y) = e^(pi*i*x)+e^(pi*i*y) sage: g(z) = f(z.real(),z.imag()) sage: g(.5+.5*i) 2*e^(.5*i*pi) sage: complex_plot(g,(0,1),(0,1)) TypeError [same one] Incidentally, it would be nice for complex_plot to take a function of two variables with complex output as the input... as long as the docs made very clear that the interpretation was var1=x, var2=y no matter the "real" names of var1 and var2. But anyway, these errors are really annoying. I would be happy to help fix them if support had a sense of where they are coming from exactly; it should just be a matter a few more if/then or try/except, I figure. Thanks, - 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 -~----------~----~----~----~------~----~------~--~---
