beautypg.com

A.6.7 arithmetic functions – Campbell Scientific CR800 and CR850 Measurement and Control Systems User Manual

Page 475

background image

Appendix A. CRBasic Programming Instructions

475

 

COS 
Returns the cosine of an angle specified in radians. 

Syntax 

x = COS(source)

COSH 
Returns the hyperbolic cosine of an expression or value. 

Syntax 

x = COSH(source)

SIN 
Returns the sine of an angle. 

Syntax 

x = SIN(source)

SINH 
Returns the hyperbolic sine of an expression or value. 

Syntax 

x = SINH(Expr)

TAN 
Returns the tangent of an angle. 

Syntax 

x = TAN(source)

TANH 
Returns the hyperbolic tangent of an expression or value. 

Syntax 

x = TANH(Source)

A.6.7 Arithmetic Functions

ABS 
Returns the absolute value of a number. 

Syntax 

x = ABS(source)

ABSLong 
Returns the absolute value of a number.  Returns a value of data type Long when 
the expression is type Long. 

Syntax 

x = ABS(source)

Ceiling 
Rounds a value to a higher integer. 

Syntax 

variable = Ceiling(Number)

EXP 
Returns e (the base of natural logarithms) raised to a power. 

Syntax 

x = EXP(source)