Value of Sine(π) - Calc&Graph on Google Play

  • Context: Undergrad 
  • Thread starter Thread starter Adit
  • Start date Start date
  • Tags Tags
    Value
Click For Summary

Discussion Overview

The discussion revolves around the value of sine at π, specifically addressing the output of a scientific calculator app, Calc&Graph, which shows a very small value instead of zero. Participants explore the implications of calculator precision and the handling of irrational numbers in trigonometric calculations.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant notes that the calculator shows sine(π) as 1.224646799x10^(-16), questioning whether this is a bug or a valid output.
  • Another participant suggests that it could be a bug but also emphasizes that calculators provide approximate values, often relying on the CORDIC algorithm for trigonometric functions.
  • It is mentioned that the precision of input values affects the output, with an example given that sine of a value close to π (like 3.14159265358979) yields a small non-zero result.
  • A participant explains that calculators may struggle with irrational numbers, leading to discrepancies in outputs based on how the input is interpreted.
  • A later reply acknowledges the understanding that the calculator is likely calculating sine of a value approximating π rather than π itself.

Areas of Agreement / Disagreement

Participants express differing views on whether the calculator's output is a bug or a result of approximation errors, indicating that multiple competing perspectives remain on this issue.

Contextual Notes

Limitations in calculator precision and the handling of irrational numbers are noted, but the discussion does not resolve these issues.

Who May Find This Useful

This discussion may be of interest to those exploring numerical methods in calculators, the behavior of trigonometric functions, and the implications of precision in mathematical computations.

Adit
Messages
3
Reaction score
2
I know it should be absolute zero, but in a scientific calculator, which is an app actually, its value is shown 1.224646799x10^(-16). The value is so small, but it is not zero. I wanted to be sure that this is a bug or really it has a value. App's name is Calc&Graph, on Google play.
 
  • Like
Likes   Reactions: Modulo2pi
Physics news on Phys.org
You could say it is a bug.
You could also consider that any calculator only returns an approximate value.
Often, on handlheld calculators, the approximation for trig functions is based on the CORDIC algorithm.
http://en.wikipedia.org/wiki/CORDIC
It is much more precise than a MacLaurin development would be, because it relies on exact trig relations.
However, the arithmetic calculations are carried out with a finite number of digits (bits) and therefore even multiplications or divisions are approximate.

You need also to take care of the precision of the data you have input to the calculator.
For example, this is an "exact" result:

Sin[3.14159265358979] = 3.23109*10^-15

but it could be that the precision of the calculator can't handle more decimals after 3.1415...879 .
 
  • Like
Likes   Reactions: Modulo2pi
Adit said:
I know it should be absolute zero, but in a scientific calculator, which is an app actually, its value is shown 1.224646799x10^(-16). The value is so small, but it is not zero. I wanted to be sure that this is a bug or really it has a value. App's name is Calc&Graph, on Google play.

[itex]\sin(\pi) = 0[/itex].

Calculators do not understand irrational numbers; they can only ever deal with a finite subset of the rational numbers. Occasionally this will cause them to get things wrong. But a decent calculator should be able to tell the difference between "sine of (user pressed the pi button)" and "sine of (some number starting with 3.14)" and will return the correct value for the former.

This can also cause discrepancies between "user wants the cube root of -27, apparently that's -3" and "user wants to raise -27 to the power 0.333333333333; I don't know how to do that with a negative base".
 
Last edited:
  • Like
Likes   Reactions: Modulo2pi
Oh thank you, I got it. That is calculating value of sine(3.14...), and the close it is to π, closer my answer is to zero. Thanks, I didn't think of that.
 
  • Like
Likes   Reactions: Modulo2pi

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
High School The M paradox
  • · Replies 4 ·
Replies
4
Views
1K