Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Using the gnu debugger as a high-precision calculator' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Using the gnu debugger as a high-precision calculator
Authored by: johnblommers on Oct 22, '04 03:50:06PM

The gnu debugger is weak. Look at the trailing roundoff errors. We are better off with the bc -l (bc dash ell) command:
bc -l
scale=50
4*a(1)
3.14159265358979323846264338327950288419716939937508

Here a(1) returns the arctangent of 1 which is pi/4 so now we have REAL precision!



[ Reply to This | # ]