On 11 Bře, 09:32, jason-s...@creativetrax.com wrote:
> I'm not sure how hard it would be to add one; it would involve figuring
> out how to clip triangles, separate a 3d plot into separate pieces,
> etc., I think.
>


Still thinking on this problem. Trying to plot a function which is
allmost equal to x^2+y^2 in some region and undefined outside this
region

 splot x**2+y**2-0.001*sqrt(20-(x-1)**2-(y-2)**2)

in gnuplot I get the plot only above the circle.
Trying to do something similar in sage I got the following

1. ---------------------------------
plot3d(x^2+y^2+0.0000001*sqrt(x-y^2),(x,-4,4),(y,-4,4))

Traceback (click to the left for traceback)
...
ValueError: array must not contain infs or NaNs

2. ---------------------------------------
plot3d(x^2+y^2+0.0000001*sqrt(x-y^2),(x,-4,4),(y,-4,4))

Traceback (click to the left for traceback)
...
ValueError: array must not contain infs or NaNs

3. ---------------------------------------------
plot3d(x^2+y^2+0.0000001*sqrt(x*y),(x,-4,4),(y,-4,4))
    this works, plots the function for x*y>0



I do not understand the difference between the last two problems, they
look similar but the results are very different.
and for example the command
plot3d(x^2+y^2+0.0000001*sqrt(-x+y^2),(x,-4,4),(y,-4,4))
works - plots only the part which is outside the parabola (with
strange bounding box, however ....)

Is this a way how to solve the problems of this kind?

Robert



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-edu" group.
To post to this group, send email to sage-edu@googlegroups.com
To unsubscribe from this group, send email to 
sage-edu+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-edu?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to