Introduce expand_options::expand_transcendental.
authorVladimir V. Kisil <kisilv@maths.leeds.ac.uk>
Sat, 2 Nov 2013 19:06:53 +0000 (21:06 +0200)
committerAlexei Sheplyakov <Alexei.Sheplyakov@gmail.com>
Sun, 3 Nov 2013 20:33:45 +0000 (22:33 +0200)
commit5a3641098c88d3c6ea0765df65b801312ecfb91b
treecb0977aa035e3644b79b2d3510c72e766f684c70
parent5bf87cea66bb2071222c2910ed68c2649a98906c
Introduce expand_options::expand_transcendental.

In general expand() treats the argument as a rational expression (and
leave transcendental functions as they are). However sometimes it's
convenient to expand transcendental functions too, like

log(a*b) = log(a) + log(b)
exp(a + b) = exp(a)*exp(b)

Applying such transformation by default doesn't seem to be a smart idea
(think of log(p^2/mu^2) transformed to 2*log(p) - 2*log(mu)). Therefore
introduce expand_options::expand_transcendental. As the name implies expand()
tries to transform transcendental functions only if this flag is set.

Signed-off-by: Vladimir V. Kisil <kisilv@maths.leeds.ac.uk>
ginac/flags.h