parametric_plot3d fails with floating-point parameter
The following code
u,v = var('u,v')
X = u * cos(v) - (1/3)* u^3 * cos(v*3)
Y = - u * sin(v) - (1/3) *u^3 * sin(3*v)
Z = u^2 *cos(2*v)
p = parametric_plot3d([X,Y,Z], (u,0,1),(v,0,2*pi),frame=False, color="blue")
works but with 0.9 in place of 1 in range of u produces an error. Namely,
Unhandled SIGILL: An illegal instruction occurred in Sage.
This probably occurred because a *compiled* component of Sage has a bug
in it and is not properly wrapped with sig_on(), sig_off().
Sage will now terminate.
Keeping all the code the same but changing the last line to: parametric_plot3d([X,Y,Z], (u,0,.9),(v,0,2*pi),frame=False, color="blue") and then running the code in a Sage Cell server results in working output. You should include details about the version of Sage that you're using.
I am using version 6.5 downloaded today (as this code, which used to run in 4.8, won't run in 4.8 under Mac OS 10.9)
It works for me too.
It works for me too, with Sage 6.5.
Which Mac OS are you guys running? Maybe it works with 10.10 but not with 10.9 ?
From a terminal session, using "attach" to load the file, this plot command does not work even with parameter 1. In the console one can find some error messages: 3/26/15 9:32:43.876 AM com.apple.appkit.xpc.openAndSavePanelService[1061]: assertion failed: 13F34: liblaunch.dylib + 25164 [A40A0C7B-3216-39B4-8AE0-B5D3BAF1DA8A]: 0x25 3/26/15 9:32:43.896 AM com.apple.appkit.xpc.openAndSavePanelService[1061]: assertion failed: 13F34: liblaunch.dylib + 25164 [A40A0C7B-3216-39B4-8AE0-B5D3BAF1DA8A]: 0x25 3/26/15 9:32:43.931 AM com.apple.appkit.xpc.openAndSavePanelService[1061]: Bogus event received by listener connection: <error: 0x7fff78af4b50=""> { count = 1, contents = "XPCErrorDescription" => <string: 0x7fff78af4e60=""> { length = 18, contents = "Connection invalid" } } 3/26/15 9:32:46.948 AM com.apple.IconServicesAgent[303]: main Failed to composit image for binding VariantBinding [0x3e5] flags: 0x8 binding: FileInfoBinding [0x5bf] - extension: eps, UTI: com.adobe.encapsulated-postscript, fileType: ????. 3/26/15 9:32:46.949 AM quicklookd[1064]: Warning ...(more)
This works fine for me in OS X 10.7. However, I'm wondering which binary you downloaded. If you downloaded the 10.10 binary and you are on 10.9, you should expect strange errors of this kind.
I downloaded the correct binary, according to my memory. I don't know how to verify that.