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:
Cheers,
Rob
You're correct - the inexactness of "e" is also influencing the result.
UPDATE: BTW, in perl we can reproduce you're original result with:
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.)>perl -MMath::Complex -le "print exp(1) ** (pi * i);" -1+1.22460635382238e-16i
Cheers,
Rob
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Euler's identity in Raku
by swampyankee (Parson) on Jun 04, 2021 at 01:23 UTC | |
by syphilis (Archbishop) on Jun 04, 2021 at 12:56 UTC | |
by syphilis (Archbishop) on Jun 05, 2021 at 01:43 UTC | |
by p6steve (Sexton) on Jun 07, 2021 at 22:02 UTC | |
by syphilis (Archbishop) on Jun 08, 2021 at 01:32 UTC |
In Section
Seekers of Perl Wisdom