]> www.ginac.de Git - ginac.git/commit
Fix power::subs() in some special cases.
authorRichard Kreckel <kreckel@ginac.de>
Wed, 23 Mar 2022 20:21:48 +0000 (21:21 +0100)
committerRichard Kreckel <kreckel@ginac.de>
Wed, 23 Mar 2022 20:29:18 +0000 (21:29 +0100)
commitaed514f534cc6b4438822c1fcf80c203a828a94c
treeedc1ed234d0304689359fa2b532f7abf90b94803
parentb98ef824450d2897f5ea8f5254d614e6f8148d33
Fix power::subs() in some special cases.

In some cases, after subs'ing in basis and exponent, an extra
substitution was performed. This could lead to messed-up final results
because, e.g. substituting x==1/x in 1/x evaluated to x, but then
another substitution x==1/x was performed.

Reported by Feng Feng <f.feng@outlook.com>.
check/exam_misc.cpp
ginac/power.cpp