Ask Your Question
1

parametric_plot3d fails with floating-point parameter

asked 2015-03-25 19:28:58 +0100

beeson gravatar image

updated 2015-03-26 15:08:49 +0100

slelievre gravatar image

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 20:46:21 +0100 )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 21:54:04 +0100 )edit

It works for me too.

tmonteil gravatar imagetmonteil ( 2015-03-26 00:06:22 +0100 )edit

It works for me too, with Sage 6.5.

eric_g gravatar imageeric_g ( 2015-03-26 11:05:13 +0100 )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 16:44:00 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-03-28 17:28:39 +0100

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 19:28:58 +0100

Seen: 1,925 times

Last updated: Mar 28 '15