Ask Your Question

error with cosinus

asked 2018-02-10 13:32:04 -0600

karlus gravatar image

When I type "cos(8pi/7)", Sage answers me cos(1/7pi)

wich is wrong. I exchanged with some people who had the correct answer "-cos(1/7*pi)". So I guess the problem is with my CPU or my configuration. But how to change that ? Thanks

edit retag flag offensive close merge delete


In what version of SageMath are you observing that error?

slelievre gravatar imageslelievre ( 2018-02-11 12:31:07 -0600 )edit

This is the oldest version i have on some older machine, works well:

sage: cos(8*pi/7)
sage: version()
'SageMath version 7.5.1, Release Date: 2017-01-15'
dan_fulea gravatar imagedan_fulea ( 2018-02-11 14:37:48 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-02-11 16:34:19 -0600

tmonteil gravatar image

This issue has been reported at and and fixed in Sage 7.3.beta4, see So, if you are running a Sage version, less than 7.4, let me just suggest to upgrade.

edit flag offensive delete link more


Indeed, I was using version 7.2. Thanks.

karlus gravatar imagekarlus ( 2018-02-12 08:08:04 -0600 )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


Asked: 2018-02-10 13:32:04 -0600

Seen: 58 times

Last updated: Feb 12