Ask Your Question

float numbers error?

asked 2011-01-28 00:28:26 -0500

iosonofabio gravatar image

Whenever I input a float number directly, e.g.

sage: 0.6

sage exits with an error message about sage-ipython instruction not allowed. Anyone has an idea about this?

OS: Linux, ArchLinux Sage Version: 4.6.1 (arch sage-mathematics binary)

edit retag flag offensive close merge delete


Could you cut and paste the exact error message?

DSM gravatar imageDSM ( 2011-01-28 00:32:34 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2011-01-28 05:53:51 -0500

Mike Hansen gravatar image

My guess is that you downloaded a binary which was built for a new processor than the one that you have. If you download the Sage source code and build from scratch, everything should work fine.

edit flag offensive delete link more

answered 2012-05-24 07:45:03 -0500

Same Problem:

While running sage with gdb:

sage: a = 2.0 sage: b = 2.5

Program received signal EXC_BAD_INSTRUCTION, Illegal instruction/operand. 0x00000001016e3ed9 in case1 ()

Version: sage-5.0-OSX-64bit-10.6-x86_64-Darwin OS: Mac OS X Lion 10.7.4 (11E53) Processor : 2 x 3 GHz Quad-Core Intel Xeon

edit flag offensive delete link more


The answer Mike gave may be your answer. This is the first time we've seen this on a Quad-Core (before it was only Core 2 Duo).

kcrisman gravatar imagekcrisman ( 2012-05-24 16:29:53 -0500 )edit

Can you post the exact CPU? Intel sold a lot of chips under the Xeon label. Is this a Core 2 Quad in disguise? As far as the supported instruction set goes, there is not much difference between a Core 2 Duo and Core 2 Quad. Please post the output of "sysctl -n machdep.cpu.brand_string"

Volker Braun gravatar imageVolker Braun ( 2012-05-24 18:25:59 -0500 )edit

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


Asked: 2011-01-28 00:28:26 -0500

Seen: 226 times

Last updated: May 24 '12