+ 1
Why is the value of PI different?
https://code.sololearn.com/WG1tfj9gFvc8/?ref=app I thought the value of PI in the Math Library and the Native PI gotten by division of 22/7 is supposed to be equal or identical.
8 odpowiedzi
+ 1
22/7 is not exact value of pi. It is just an assumption and used for calculation.
This is the reason programming languages uses different values.
0
they say that July 22 is the monthof PI and because it is said that 22/7 is an approximation to pi butnot that it is equal.
0
Marco . So the reason why there are different is because there are both approximations? So in short we don't know which one is correct?
0
PythonPip thanks. It now makes sense. I was also wondering why the sin of a number when i use a calculator on my phone and when i use a native scientific calculator differs. Might that also be the reason why?
0
Mwikisa Delton Kapesa Lufungulo
Yes, the answer differs.
Because scientific calculators uses different algorithms and logarithm for calculation .
0
PythonPip Has anything being done to fix this problem? I once failed my mathematics homework all because i used the calculator on my phone and the teacher used the scientific calculator. We found different answers.
0
There are many scientific calculaters in play store.
You should try this-
https://www.google.com/url?q=https://play.google.com/store/apps/details%3Fid%3Dcom.meonria.scientificcalc%26hl%3Den_IN%26referrer%3Dutm_source%253Dgoogle%2526utm_medium%253Dorganic%2526utm_term%253Dscientific%2Bcalculator%2Bapp&sa=U&ved=2ahUKEwiKk9S06MvoAhWLzTgGHYVhB5IQFjAAegQIBxAB&usg=AOvVaw2BmKfZkXjoe8ccolw_GLeM
0
PythonPip thanks