in reply to Re^6: Reasons for Using Perl 6
in thread Reasons for Using Perl 6
What's the rational value of sqrt(2)? What's the rational value of sin(25)?If you want to deal with these things precisely, you can use Mathematica, or Python's Sympy.
Notice, that's exactly -1. No approximation at all. Sympy knows a lot of mathematical identities. For mathematical work, Python is so far ahead of Perl that it's downright embarrassing. To claim that Perl6 is breaking new ground in this area is simply absurd.>>> sqrt(2) sqrt(2) >>> sqrt(2) * sqrt(6) 2*sqrt(3) >>> sin(pi*3/2) -1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Reasons for Using Perl 6
by Laurent_R (Canon) on Jan 03, 2018 at 20:13 UTC |