Keithley 4200-SCS Reference Manual page 637

Semiconductor characterization system
Hide thumbs Also See for 4200-SCS:
Table of Contents

Advertisement

Model 4200-SCS Reference Manual
Keithley floating point power
kfppwr
Purpose
Format
Remarks
Example
Keithley floating point square root
kfpsqrt
Purpose
Format
Remarks
4200-901-01 Rev. S / May 2017
double res4;
.
.
forcev(SMU1, 10.0);/* Output 10 V from SMU1. */
measi(SMU1, &res4);/* Measure SMU1 current; store */
/* in res4. */
kfpneg(&res4, &res4);/* Convert sign of res4; */
./* return results to res4. */
.
Raises a real number to a specified power and assigns the result to a specified
variable.
int kfppwr(double *x, double *y, double *z);
A variable containing a floating point number.
x
A variable containing the exponent.
y
A variable where the result of x
z
The value referenced by x will be raised to the power of the value referenced by y, and
the result will be stored in the location pointed to by z. If an overflow occurs, the result
will be ±Inf. If an underflow occurs, the result will be zero (0).
If x points to a negative number, a power of a negative number error will be generated,
and the result returned will be -Inf.
If x points to a value of zero (0) and y points to a negative number, a divide by zero (0)
error will be generated, and the result returned will be +Inf.
If x points to a value of 1.0, the result will be 1.0, regardless of the exponent.
The following example raises the variable res2 by the power of three. The result is stored
in pwres2.
double res2, pwres2, power=3.0;
.
.
measv(SMU1, &res2);/* Measure SMU1; store */
/* result in res2. */
kfppwr(&res2, &power,
&pwres2);/* res2 to the third power; */
/* return result to pwres2. */
.
Performs a square root operation on a real number and returns the result to the
specified variable.
int kfpsqrt(double *x, double *z);
A variable containing a floating point number.
x
A variable where the result, the square root of x, will be stored.
z
The square root of the value referenced by x will be stored in the location pointed to by
z.
Return to
Section Topics
Section 8: Keithley User Library Tool (KULT)
y
will be stored.
8-121

Advertisement

Table of Contents
loading

Table of Contents