Ask Your Question
1

error with cosinus

asked 2018-02-10 20:32:04 +0100

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

Comments

In what version of SageMath are you observing that error?

slelievre gravatar imageslelievre ( 2018-02-11 19:31:07 +0100 )edit

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

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

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-02-11 23:34:19 +0100

tmonteil gravatar image

This issue has been reported at https://ask.sagemath.org/question/336... and https://trac.sagemath.org/ticket/20752 and fixed in Sage 7.3.beta4, see https://trac.sagemath.org/ticket/20742 So, if you are running a Sage version, less than 7.4, let me just suggest to upgrade.

edit flag offensive delete link more

Comments

Indeed, I was using version 7.2. Thanks.

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

Stats

Asked: 2018-02-10 20:32:04 +0100

Seen: 582 times

Last updated: Feb 12 '18