]> www.ginac.de Git - ginac.git/commit
Be more careful with conjugate(f(x)) -> f(conjugate(x)).
authorRichard Kreckel <kreckel@ginac.de>
Sat, 22 May 2010 20:34:42 +0000 (22:34 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Sat, 22 May 2010 20:34:42 +0000 (22:34 +0200)
commitff8b400eb500618644231ed9e6f199c3b0b25135
treed18386e60266b1a54a1e298c5d7d22967915ad32
parent1a5127603d93125b75ee51c94200faf0b586ef32
Be more careful with conjugate(f(x)) -> f(conjugate(x)).

That identity is correct for holomorphic functions, but we have to be
careful with some functions not being holomorphic everywhere. On branch
cuts, it is wrong. For a discussion, see:
<http://www.ginac.de/pipermail/ginac-list/2010-April/001601.html>.

This patch changes the default behavior of user-defined functions. From
now on, a user-defined conjugate_func must be registered, in order to
evaluate conjugate(f(x)) -> f(conjugate(x)). This patch also adds such
functions for most initially known functions.
doc/tutorial/ginac.texi
ginac/function.pl
ginac/inifcns.cpp
ginac/inifcns_gamma.cpp
ginac/inifcns_trans.cpp
ginac/power.cpp