|Subject:||Re: If pi is so accurate why it's not producing that accurate result.|
|Date:||Fri, 23 Mar 2018 15:57:45 -0400|
On Fri, Mar 23, 2018 at 3:16 PM, Dildar Sk <address@hidden> wrote:Sorry,
I know it's very hard to deal with floating point arithmetic.
But I am just asking why tan(pi/2) is not close to infinity.Though there
in Octave max is 10^308 but it producing 10^17 something.
And I wonder how pi is so accurate then!!you are getting into some of the subtle details of floating point arithmetic. 10^308 is on the order of the largest normalized real number. the 10^17 deals with relative precision. see the following:
sites/default/files/ MatlabSelfPaced/lesson2/ MatlabLesson2_Constants.html
|[Prev in Thread]||Current Thread||[Next in Thread]|