You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you mean f11 vs. f12, note that 9.9479867f11 === 0.99479867f12. (Typically in scientific notation you change the exponent rather than have a leading zero.)
Interestingly, the original Kahan-Babuška algorithm gets it right but Neumaier's extension (i.e. sum_kbn) gets it wrong: the running compensation term ends up overcompensating.
julia>functionsum_kb(x)
s = c =zero(eltype(x))
for xi in x
y = xi - c
t = s + y
c = (t - s) - y
s = t
endreturn s
end
sum_kb (generic function with 1 method)
julia>sum_kb(x)
1.0f12
This package can have less precision than the standard
sum()
on julia-1.7.3. For example:Is this expected?
The text was updated successfully, but these errors were encountered: