Model 4200A-SCS Parameter Analyzer Reference Manual
Section 13: LPT library function reference
4200A-901-01 Rev. C / February 2017
13-57
kfpsqrt
This command performs a square root operation on a real number and returns the result to the specified variable.
Usage
int kfpsqrt(double *
x
, double *
z
);
x
A variable that contains a floating point number
z
A variable where the result, the square root of x, is stored
Details
The square root of the value referenced by
x
is stored in the location pointed to by
z
.
If
x
points to a negative number, a square root of negative number error is generated, and the result
is
NaN
(not a number).
Example
double res1, sqres2;
.
.
measv(SMU1, &res1);/* Measure SMU1; store result */
./* in res1. */
kfpsqrt(&res1, &sqres2);/* Find square root of res1; */
/* return result to sqres2. */
.
This example converts a real number (
res1
) into its square root. The result is stored in
sqres2
.
Also see
None