Specifications
Section 8. Processing and Math Instructions
8-31
SINH (NumericExpression)
The SINH function returns the hyperbolic sine of an expression or value.
Syntax
x = SINH (NumericExpression)
Remarks
The SINH function returns the hyperbolic sine [ SINH(x) = 0.5( e
x
- e
-x
) ] for
the value contained in the NumericExpression argument.
The example uses SINH to calculate the hyperbolic sine of a voltage input.
Public Volt1, Ans 'Declare variables.
BeginProg
Scan ( 1, min, 3, 0)
‘Measure voltage on channel 1
VoltDiff(Volt1,1,mV5000,1,True,100,500,1,0)
Ans = SINH( Volt1 ) 'The Hyperbolic Sine of Volt1
NextScan
EndProg
SQR (Number)
Returns the square root of a number.
Syntax
x = SQR (number)
Remarks
The argument number can be any valid numeric expression that results in a
value greater than or equal to 0.
Returns the square root of the value in parentheses.
SQR Function Example
The example uses SQR to calculate the square root of Volt(1) value.
Dim Msg, Number 'Declare variables.
Public Volt1
BeginProg
Scan ( 1, min, 3, 0)
VoltDiff(Volt1,1,mV5000,1,True,100,500,1,0) ‘Get input
Number = Volt(1)
IF Number < 0 Then
Nsg = 0 ‘Cannot determine the square root of a
‘negative number
Else
Msg = SQR(Number)
NextScan
EndProg