-SCS Parameter Analyzer Reference Manual Section 13:
LPT library function reference
4200A-901-01 Rev. C / February 2017 13-53
kfpexp
This command supplies the base of natural logarithms (e) raised to a specified power and stores the result as a
variable.
Usage
int kfpexp(double *x, double *z);
The variable where the result of
is stored
Details
e raised to the power of the value referenced by x is stored in the location pointed to by z. If an
overflow occurs, the result is ±Inf. If an underflow occurs, the result is zero (0).
Example
.
.
measv(SMU1, &res4);/* Raise the base of natural */
/* logarithms e to the power */
/* res4; */
kfpexp(&res4, &res4e;/* return the result to res4e. */
.
In this example, kfpexp raises the base of natural logarithms to the power specified by the exponent
res4. The result is stored in res4e.
Also see
None
kfplog
This command returns the natural logarithm of a real number to the specified variable.
Usage
int kfplog(double *x, double *z);
A variable containing a floating point number
A variable where the result of ln (x) is stored
Details
This command returns a natural logarithm, not a common logarithm. The natural logarithm of the
value referenced by x is stored in the location pointed to by z.
If a negative value or zero (0) is supplied for x, a log of negative value or zero (0) error is generated
and the result is NaN (not a number).