]> www.ginac.de Git - ginac.git/commit - ginac/power.cpp
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:48:22 +0000 (22:48 +0200)
commit5fb83676210401cc08fae91831514bac44502209
tree2d566bcf6c9fb402b4c6b9db95f92fcdd8f3b877
parent9c2ce1cc26735e268aae8142d9e5dbc5a9ba8ca3
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