[GiNaC-devel] Base of natural logarithm

Jan Rheinländer jrheinlaender at gmx.de
Sat Nov 28 13:38:20 CET 2015


Hi,

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

I tried


ex EulernumEvalf() {
  return numeric(cln::exp1());
}
const constant Euler_number("Eulernum", EulernumEvalf, "e",
domain::positive);


Thanks!

    Jan



More information about the GiNaC-devel mailing list