[GiNaC-devel] abs evaluation bug
burcin at erocal.org
Tue Feb 28 11:34:12 CET 2012
automatic evaluation of the abs() function returns wrong results:
ginsh - GiNaC Interactive Shell (ginac V1.5.8)
__, _______ Copyright (C) 1999-2010 Johannes Gutenberg University Mainz,
(__) * | Germany. This is free software with ABSOLUTELY NO WARRANTY.
._) i N a C | You are welcome to redistribute it under certain conditions.
<-------------' For details type `warranty;'.
Type ?? for a list of help topics.
abs_eval() thinks that I + Pi is nonnegative, since numeric::is_negative()
returns false for complex numbers:
Any suggestions for a fix? Would it be acceptable to raise an error when
comparing complex numbers?
This was reported to Sage:
More information about the GiNaC-devel