Kahan summation: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
(added Arturo)
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 2,681:
=={{header|Wren}}==
Wren's only 'native' number type (Num) is double-precision floating point and so the alternative task is performed. Although it appears that there is no difference between the left associative sum and Kahan summation, there is in fact a difference of epsilon but the accuracy of System.print (14 significant figures) is insufficient to indicate this directly.
<syntaxhighlight lang="ecmascriptwren">var kahanSum = Fn.new { |a|
var sum = 0
var c = 0
Line 2,718:
Delta = 1.1102230246252e-16
</pre>
 
 
=={{header|Yabasic}}==
9,476

edits