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

  • Thread starter Thread starter Adit
  • Start date Start date
  • Tags Tags
    Value
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 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 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.

\sin(\pi) = 0.

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 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 Modulo2pi
##\textbf{Exercise 10}:## I came across the following solution online: Questions: 1. When the author states in "that ring (not sure if he is referring to ##R## or ##R/\mathfrak{p}##, but I am guessing the later) ##x_n x_{n+1}=0## for all odd $n$ and ##x_{n+1}## is invertible, so that ##x_n=0##" 2. How does ##x_nx_{n+1}=0## implies that ##x_{n+1}## is invertible and ##x_n=0##. I mean if the quotient ring ##R/\mathfrak{p}## is an integral domain, and ##x_{n+1}## is invertible then...
The following are taken from the two sources, 1) from this online page and the book An Introduction to Module Theory by: Ibrahim Assem, Flavio U. Coelho. In the Abelian Categories chapter in the module theory text on page 157, right after presenting IV.2.21 Definition, the authors states "Image and coimage may or may not exist, but if they do, then they are unique up to isomorphism (because so are kernels and cokernels). Also in the reference url page above, the authors present two...
When decomposing a representation ##\rho## of a finite group ##G## into irreducible representations, we can find the number of times the representation contains a particular irrep ##\rho_0## through the character inner product $$ \langle \chi, \chi_0\rangle = \frac{1}{|G|} \sum_{g\in G} \chi(g) \chi_0(g)^*$$ where ##\chi## and ##\chi_0## are the characters of ##\rho## and ##\rho_0##, respectively. Since all group elements in the same conjugacy class have the same characters, this may be...

Similar threads

Replies
1
Views
1K
Replies
8
Views
2K
Replies
10
Views
10K
Replies
19
Views
4K
Replies
3
Views
2K
Replies
20
Views
3K
Back
Top