[GiNaC-list] bug in series()

Mario Prausa prausa at uni-wuppertal.de
Wed Jun 18 14:52:14 CEST 2014


there seems to be a bug in the series() implementation. The attached
code causes a segfault.

As log(-x) doesn't depend on the expansion parameter ep, series() should
return log(-x). The bug only occurs, if x is defined as possymbol, so it
might have something to do with the branch cut of the logarithm.

I reproduced the bug with GiNaC 1.6.2 and the current git version.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: seriesbug.cpp
Type: text/x-c++src
Size: 220 bytes
Desc: not available
URL: <http://www.cebix.net/pipermail/ginac-list/attachments/20140618/eb7129ba/attachment.cpp>

More information about the GiNaC-list mailing list