
Section 8. Processing and Math Instructions
CosH (Source)
The COSH function returns the hyperbolic cosine of an expression or value.
Syntax
x = COSH (source)
Remarks
The COSH function takes a value and returns the hyperbolic cosine [COSH(x)
= 0.5(ex + e-x)] for that value.
COSH Function Example
The example uses COSH to calculate the hyperbolic cosine of a voltage input
and store the result in the Ans variable.
Public Volt1, Ans 'Declare variables.
BeginProg
Scan (1,Sec,3,0)
VoltDiff (Volt1,1,mV5000,1,True ,200,500,1.0,0) 'Return voltage on
DiffChan1
Ans = COSH( Volt1 )
NextScan
EndProg
Spatial Covariance (Dest, NumOfCov, SizeOfSets, CoreSetStart,
FirstSetStart)
The CovSpa instruction computes the covariance(s) of sets of data that are
loaded into arrays.
Syntax
CovSpa(Dest, NumOfCov, SizeOfSets, CoreSetStart, FirstSetStart)
CovSpa calculates the covariance(s) between the data in the CoreArray and
one or more data sets in the DatArray. The covariance of the sets of
data
and
Y
is calculated as:
X
2
111
),(
n
YX
n
YX
YXCov
n
i
i
n
i
i
n
i
ii
∑∑∑
===
−
⋅
=
Where n is the number of values in each data set (SizeofSets).
and are
the individual values of
and
Y
.
i
X
i
Y
X
8-8
Kommentare zu diesen Handbüchern