[CSC 335] Numerical Precision in Mathematica

Andrew J. Pounds pounds_aj at mercer.edu
Thu Sep 5 20:39:48 EDT 2013


If you want Mathematica to give you a result to N places of precision, 
then you can use the SetPrecision command. For example, if I wanted a 
Fibonacci number, but only wanted 8 placed of precision, I could issue 
the following command in Mathematica.

SetPrecision[Fibonacci[1450], 8]

another example...

SetPrecision[Pi, 3]

Give it a shot -- as it could be useful...

-- 
Andrew J. Pounds, Ph.D.  (pounds_aj at mercer.edu)
Professor of Chemistry and Computer Science
Mercer University,  Macon, GA 31207   (478) 301-5627
http://faculty.mercer.edu/pounds_aj

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://theochem.mercer.edu/pipermail/csc335/attachments/20130905/1af1138e/attachment.html>


More information about the csc335 mailing list