[GiNaC-devel] Base of natural logarithm

Vladimir V. Kisil kisilv at maths.leeds.ac.uk
Sun Nov 29 22:58:23 CET 2015


On 28 Nov 2015 12:39, "Jan Rheinlander" <jrheinlaender at gmx.de> wrote:
  > Hi,

  > is there a way to create a ginac object "e" such that log(e)
  > automatically evaluates to 1?


  The following seems to work:

   ex e=exp(numeric(1));
   std::cout << log(e) << std::endl;
   	     // -> 1.0

-- 
Vladimir V. Kisil                 http://www.maths.leeds.ac.uk/~kisilv/
  Book:     Geometry of Mobius Transformations     http://goo.gl/EaG2Vu
  Software: Geometry of cycles          http://moebinv.sourceforge.net/


More information about the GiNaC-devel mailing list