math function speed
gwyn at brl-smoke.UUCP
gwyn at brl-smoke.UUCP
Thu Feb 19 06:00:39 AEST 1987
In article <2050 at ulysses.homer.nj.att.com> ggs at ulysses.homer.nj.att.com (Griff Smith) writes:
>What's your definition of twice as accurate?
In a test where the result of "sqrt" was compared to known correct
answers, for the following arguments:
0 1/5 1/3 1/2 1 2 e
3 pi 4 5 9 10 16
49 100 10000
I got the following results:
SVR2
function "sqrt":
max abs error: 2.7755576e-17
max rel error: 2.4037034e-17
4.3BSD
function "sqrt":
max abs error: 5.5511151e-17
max rel error: 3.3669215e-17
More information about the Comp.lang.c
mailing list