[GiNaC-list] real_part and imag_part

Jan Rheinländer jrheinlaender at gmx.de
Tue Aug 8 20:15:07 CEST 2017


Hi,

what is the logic here (example from ginsh)?

> real_part(sqrt(-3));
sqrt(-3)
> imag_part(sqrt(-3));
0

> real_part(sqrt(-1));
0
> imag_part(sqrt(-1));
1

Greetings,

    Jan




More information about the GiNaC-list mailing list