Digital signal processors (DSPs) and general-purpose processors, such as the processors in desktop computers, differ from each other.
The Square Root function in a DSP application returns zero if the input x is a negative number.
The Natural Logarithm function and the Logarithm Base 10 function in a DSP application return 0 rather than NaN if the input x is a negative number.