Built-in Calculator Returns Wrong Values for Cos(X)

I 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

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

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest