Specifications
Section 8. Processing and Math Instructions
8-8
COSH (Expression)
The COSH function returns the hyperbolic cosine of an expression or value.
Syntax
x = COSH (expression)
Remarks
The COSH function takes a value and returns the hyperbolic cosine [COSH(x)
= 0.5(e
x
+ 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
CovSpa
The CovSpa instruction computes the covariance(s) of sets of data that are
loaded into arrays.
Syntax
CovSpa(Dest, NumOfCov, SizeOfSets, CoreSet; DataSets)
CovSpa calculates the covariance(s) between the data in the CoreSet and one
or more data sets in the DataSets. The covariance of the sets of data
X
and
Y
is calculated as:
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).
i
X and
i
Y
are the individual values of
X
and
Y
.