beautypg.com

A.6.6 trigonometric functions, A.6.6.1 derived functions, Table 121. derived trigonometric functions – Campbell Scientific CR3000 Micrologger User Manual

Page 498

background image

Appendix A. CRBasic Programming Instructions

498 

 

 

EQV 
Performs a logical equivalence on two expressions. 

Syntax 

result = expr1 EQV expr2

NOT 
Performs a logical negation on an expression. 

Syntax 

result = NOT expression

OR 
Performs a logical disjunction on two expressions. 

Syntax 

result = expr1 OR expr2

XOR  
Performs a logical exclusion on two expressions. 

Syntax 

result = expr1 XOR expr2

IIF 
Evaluates a variable or expression and returns one of two results based on the 
outcome of that evaluation. 

Syntax 

Result = IIF (Expression, TrueValue, FalseValue)

IMP 
Performs a logical implication on two expressions. 

Syntax 

result = expression1 IMP expression2

A.6.6 Trigonometric Functions

A.6.6.1 Derived Functions

Table Derived Trigonometric Functions

(p. 498)

is a list of trigonometric functions

that can be derived from functions intrinsic to CRBasic.

Table 121. Derived Trigonometric Functions

Function CRBasic

Equivalent

Secant

Sec = 1 / Cos(X)

Cosecant

Cosec = 1 / Sin(X)

Cotangent

Cotan = 1 / Tan(X)

Inverse Secant

Arcsec = Atn(X / Sqr(X * X - 1)) + Sgn(Sgn(X) - 1) * 1.5708

Inverse Cosecant

Arccosec = Atn(X / Sqr(X * X - 1)) + (Sgn(X) - 1) * 1.5708

Inverse Cotangent

Arccotan = Atn(X) + 1.5708

Hyperbolic Secant

HSec = 2 / (Exp(X) + Exp(-X))

Hyperbolic Cosecant

HCosec = 2 / (Exp(X) - Exp(-X))