Built-in Calculator returns wrong values for cos(x)

enter image description hereI am curious as to why the gnome-calculator seems to calculate cos(pi) wrongly as seen in the picture. I tried to use different rad/deg settings without getting the correct result.

I am curious what the problem is, as the software surely has to be correct.

1 Answer

That's because the calculation of cos() is using degrees and not radians in your above example.

Using radians: cos(pi) = -1, note: cos(pi / 180) = 0.999848 (what you are seeing) Using degrees: cos(180) = -1

To change the angle units used, press the menu button in the top-right corner of the window and select Preferences. Trigonometry buttons are visible when in Advanced mode.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like