Vincent Delecroix on Mon, 29 Jul 2019 23:32:41 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

real/imag for t_QUAD


Bonjour,

I am confused by the behavior of the GP functions real and imag called
on quadratic numbers

? w1 = quadgen(-23);
? real(w1)
%10 = 0
? imag(w1)
%11 = 1

According to the (ambiguous?) documentation of these functions, the
return values are supposed to be the real and imaginary parts. I would
have expected an answer closer to 0.5 and and 2.3979. But perhaps my
notion of real and imaginary part is not up to date.

Best
Vincent