Skip to content

reallog

specfun · scripts/specfun/reallog.m

: y = reallog (x)

Natural logarithm restricted to real results.

Works like log but refuses input that would give a complex answer: a negative element or a complex x raises an error instead.