Ask Your Question
1

parametric_plot3d fails with floating-point parameter

asked 2015-03-25 13:28:58 -0500

beeson gravatar image

updated 2015-03-26 09:08:49 -0500

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.
edit retag flag offensive close merge delete

Comments

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.

dazedANDconfused gravatar imagedazedANDconfused ( 2015-03-25 14:46:21 -0500 )edit

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)

beeson gravatar imagebeeson ( 2015-03-25 15:54:04 -0500 )edit

It works for me too.

tmonteil gravatar imagetmonteil ( 2015-03-25 18:06:22 -0500 )edit

It works for me too, with Sage 6.5.

eric_g gravatar imageeric_g ( 2015-03-26 05:05:13 -0500 )edit

Which Mac OS are you guys running? Maybe it works with 10.10 but not with 10.9 ?

beeson gravatar imagebeeson ( 2015-03-26 10:44:00 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-03-28 11:28:39 -0500

beeson gravatar image

I installed Mac OS 10 and the corresponding version of Sage. Then it worked fine.

Also, I followed the instruction that says you can answer first and then log in. But after logging in, my answer seemed to disappear, so this is the second time I answered. If two answers turn out to appear, that's why.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-03-25 13:28:58 -0500

Seen: 274 times

Last updated: Mar 28 '15