
From:  Doug Stewart 
Subject:  Re: If pi is so accurate why it's not producing that accurate result. 
Date:  Fri, 23 Mar 2018 19:13:56 +0000 
I checked pi is almost accurate to 1000 digits. WoWww.
But in this cases,
>> cos(pi/2)
ans = 6.1232e17
>> tan(pi/2)
ans = 1.6331e+16
the result is not that accurate,not even close to infinite or zero.
Can anyone tell why so?
Pi is known to well over millions of digits. But our software cannot store millions of digits so we have to discard most of the digits and only keep a few at the front end. If you discard some digits then there can be an error produced. What you are seeing is just a result of chopping off some of the digits and seeing what's left.

Sent from: http://octave.1599824.n4.nabble.com/OctaveGeneralf1599825.html
[Prev in Thread]  Current Thread  [Next in Thread] 