http://qs1969.pair.com?node_id=11133460


in reply to Re^2: Euler's identity in Raku
in thread Euler's identity in Raku

Wouldn't e have to be pure also?

You're correct - the inexactness of "e" is also influencing the result.


UPDATE: BTW, in perl we can reproduce you're original result with:
>perl -MMath::Complex -le "print exp(1) ** (pi * i);" -1+1.22460635382238e-16i
Oops ... hang on ... that's not exactly the same. (I'm not all that familiar with Raku, so I'm not sure what accounts for that difference.)

Cheers,
Rob