Prof. J. E. Cremona on Tue, 27 Sep 2005 18:44:21 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

setting output precision


Is there an easy way in gp to do computations to high precision (say, 100) but only output in low precision (say, 10)? I know that I can achieve this by adding lots of lines like
default(realprecision,100);
default(realprecision,10);
in my script, but thought there might be a better way of just turning down the precision for output only.

This is in a computation where intermerdiate stages have to be done to high precision but (of course) I only need the result to low precision.

John
--
 Prof. J. E. Cremona             |
 University of Nottingham        | Tel.:  +44-115-9514920
 School of Mathematical Sciences | Fax:   +44-115-9514951
 University Park                 | Email: John.Cremona@nottingham.ac.uk
 Nottingham NG7 2RD, UK          |


This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.