[GiNaC-list] Number representation

Vladimir V. Kisil kisilv at maths.leeds.ac.uk
Thu Mar 29 10:36:09 CEST 2012


		Hi,

>>>>> On Thu, 29 Mar 2012 09:55:25 +0200, Michel Dupront <michel.dupront at 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 at 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


More information about the GiNaC-list mailing list