reallogReal log
reallog(A)A should be a numeric array.A.A should contain non-negative real numbers only, since reallog only returns real numbers. A.reallog(a) with a being complex or negative will result in error.reallog([inf 0 rand nan])
ans = 1e-1 ×
Inf -Inf -4.3642 NaN