Ask Your Question

PierreArnoux's profile - activity

2022-09-21 13:26:58 +0100 received badge  Notable Question (source)
2022-09-21 13:26:58 +0100 received badge  Popular Question (source)
2019-11-19 16:53:05 +0100 asked a question setting bounds for parametric-plot3d

I am trying to represent the part of a parametric surface contained in a cube of given coordinates. What I would like to do is to first compute a large part of the surface, then clip it to the given cube. I do not see how to do that; there is an option bounding_box(), but I did not find any documentation on it, and I do not understand what it does.

2019-04-19 10:53:47 +0100 received badge  Nice Question (source)
2019-04-19 10:45:59 +0100 received badge  Student (source)
2019-04-19 10:40:35 +0100 asked a question TypeError: unable to coerce to a real number

Le programme suivant :

x=var('x')
y=var('y')
contour_plot(abs(x+y*i),(x,-3.1,3.1),(y,-3.1,3.1))

ne marche pas, et me renvoie:

TypeError: unable to coerce to a real number

Par contre, ça marche si on remplace abs par real ou imag, et ça marche si on met la fonction comme lambda-fonction; ça marche avec abs(x) ou abs (y*i), mais pas avec abs(x+i). Est-ce que quelqu'un comprend ce qui se passe? Est-ce un bug de SAGE? Y a-t-il une solution élégante?