log
double log (double inputValue);
Purpose
Computes the natural logarithm of the specified argument. If the argument is negative, it causes a domain error. If the argument is zero, it causes a range error.
Parameters
Input | ||
Name | Type | Description |
inputValue | double | Contains the argument to the function. If the value is negative, it causes a domain error. If the value is zero, it causes a range error. |
Return Value
Name | Type | Description |
result | double | Contains the resulting natural logarithm value. If the argument to the function is zero, log returns -Inf and sets errno to ERANGE. If the argument to the function is negative, log returns NaN and sets errno to EDOM. |
Additional Information
Library: ANSI C Library
Include file: ansi_c.h
LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later
Example
Refer to userint\GraphZooming.cws for an example of using the log function.