From: Christian Bauer Date: Wed, 5 Feb 2003 22:31:02 +0000 (+0000) Subject: documentation update X-Git-Tag: release_1-0-14~13 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=2e30a241f7439b18778b1fabaecb6c31385419c5 documentation update --- diff --git a/NEWS b/NEWS index 2652c120..531c2c56 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,11 @@ This file records noteworthy changes. +1.0.14 () +* Improved the C-source output: complex numbers are printed correctly (using + the STL complex<> template or cln::complex()), rational numbers use cl_RA() + in the CLN output, and small integers are printed in a more compact format + (e.g. "2.0" instead of "2.0000000e+00"). + 1.0.13 (27 January 2003) * Contracting epsilon tensors with Euclidean indices now works. * Improved dummy index symmetrization in sums. diff --git a/doc/tutorial/ginac.texi b/doc/tutorial/ginac.texi index 46b96d2f..80000ff9 100644 --- a/doc/tutorial/ginac.texi +++ b/doc/tutorial/ginac.texi @@ -4233,9 +4233,9 @@ numbers are written. The above example will produce (note the @code{x^2} being converted to @code{x*x}): @example -float f = (3.000000e+00/2.000000e+00)*(x*x)+4.500000e+00; -double d = (3.000000e+00/2.000000e+00)*(x*x)+4.500000e+00; -cl_N n = (cln::cl_F("3.0")/cln::cl_F("2.0"))*(x*x)+cln::cl_F("4.5"); +float f = (3.0/2.0)*(x*x)+4.500000e+00; +double d = (3.0/2.0)*(x*x)+4.5000000000000000e+00; +cl_N n = cln::cl_RA("3/2")*(x*x)+cln::cl_F("4.5_17"); @end example The @code{print_context} type @code{print_tree} provides a dump of the