Section 13: LPT library function reference
Model 4200A-SCS Parameter Analyzer Reference Manual
13-54
4200A-901-01 Rev. C / February 2017
Example
double res1, logres;
.
.
measv(SMU1, &res1);/* Measure SMU1; store in res1. */
kfplog(&res1, &logres);/* Convert res1 to a natural */
/* LOG and store in logres. */
.
This example calculates the natural logarithm of a real number (
res1
). The result is stored in
logres
.
Also see
None
kfpmul
This command multiplies two real numbers and stores the result as a specified variable.
Usage
int kfpmul(double *
x
, double *
y
, double *
z
);
x
A variable containing the multiplicand
y
A variable containing the multiplier
z
The variable where the result of
x
*
y
is stored
Details
The value referenced by
x
is multiplied by the value referenced by
y
, and the result 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
double res1, res2, pwr2;
.
.
measi(SMU1, &res1);/* Measure SMU1 current; */
/* store in res1. */
measv(SMU1, &res2);/* Measure SMU1 voltage; */
/* store in res2. */
kfpmul(&res1, &res2, &pwr2);/* Multiply res1 by res2; */
/* return result to pwr2. */
.
.
This example multiplies variables
res1
and
res2
. The result is stored in the variable
pwr2
.
Also see
None