29 Mar
2012
29 Mar
'12
10:36 a.m.
Hi,
On Thu, 29 Mar 2012 09:55:25 +0200, Michel Dupront <michel.dupront@hotmail.fr> said: MD> As a solution of a system of linear equations I got: MD> {b0_0==0.25,b0_1==-0.25,b0_2==-0.25,b0_3==0.25} MD> But I would have wanted the fraction 1/4 instead of 0.25. How MD> can I force ginac to not compute fractions ?
Did you provide the input as elements of GiNaC numeric class rather than C++ double? In the former case the answer shall be numeric 1/4 as well. Best wishes, Vladimir -- Vladimir V. Kisil email: kisilv@maths.leeds.ac.uk www: http://www.maths.leeds.ac.uk/~kisilv/ Book: Geometry of Mobius Transformations http://www.icpress.co.uk/mathematics/p835.html