Bug in diff

Ola Skavhaug skavhaug at simula.no
Mon Mar 10 13:57:55 CET 2003


Hi.

I think I've encountered a bug in GiNaC-1.0.13 (on a Debian Linux machine)
In ginsh:

> diff(sqrt((-sin((x)))^(2.0)),x);
(1.0+5.0165576136843360246E-20*I)*sin(x)*cos(x)*((-sin(x))^(2.0))^(-1/2)

The answer should be:
sin(x)*cos(x)*((-sin(x))^(2.0))^(-1/2)

I have not tried to figure out why this happens (perhaps an uninitialized
variable?)
I've compiled ginac by myself, using cln-1.1.5 (gcc 3.2 compiler)


Sincerely,
-- 
Ola Skavhaug,
Simulant, stipendiot og enkel gutt fra landet.



More information about the GiNaC-devel mailing list