G
Guest
When I calculate ERFC(-2) EXCEL returns #NUM instead of 1.995322265. Anyone has a solution?
Anyone has a solution?Gauss said:When I calculate ERFC(-2) EXCEL returns #NUM instead of 1.995322265.
Gauss said:When I calculate ERFC(-2) EXCEL returns #NUM instead of 1.995322265.
Anyone has a solution?
Thanks,-----Original Message-----
Microsoft didn't bother to support negative arguments, but the function is
symmetric at zero, so ERFC(-x) = -ERFC(x), so use
=IF(X>=0,ERFC(X),-ERFC(-X))
.
However, the inversion point is (0,1), so it should be:
=IF(X>=0,ERFC(X),2-ERFC(-X))
I want to calculate=ERFC(-(LN(A7)+$A$3^2*LN(10)^2)/($A$3*LN(10)*SQRT(2)))
which I should replace by
[reformatted]=IF((-(LN(A7)+$A$3^2*LN(10)^2)/($A$3*LN(10)*SQRT(2)))<0,
1+ERF((-(LN(A7)+$A$3^2*LN(10)^2)/($A$3*LN(10)*SQRT(2)))),
ERFC((-(LN(A7)+$A$3^2*LN(10)^2)/($A$3*LN(10)*SQRT(2)))))
or I can put in a new cell, say X9:
(-(LN(A7)+$A$3^2*LN(10)^2)/($A$3*LN(10)*SQRT(2)))
and do
=IF(X9<=0,1+ERF(X9),ERFC(X9))
The first option leads to an unreadable long equation, for the second option I
need an extra cell that ruins the layout of my worksheet. Is there a more
elegant solution?