Kahan summation: Difference between revisions

Content added Content deleted
(Added Perl example)
m (→‎{{header|Perl 6}}: not incomplete)
Line 1,370: Line 1,370:


=={{header|Perl 6}}==
=={{header|Perl 6}}==
{{incomplete|Perl 6|All examples should have constants chosen to clearly show the benefit of Kahan summing!}}|
{{trans|Python}}
{{trans|Python}}
Perl 6 does not offer a fixed precision decimal. It ''does'' have IEEE 754 floating point numbers so let's try implementing the floating point option as shown in Python. Need to explicitly specify scientific notation numbers to force floating point Nums.
Perl 6 does not offer a fixed precision decimal. It ''does'' have IEEE 754 floating point numbers so let's try implementing the floating point option as shown in Python. Need to explicitly specify scientific notation numbers to force floating point Nums.