Section 10. CRBASIC Programming Instructions
101
OR
Used to perform a logical disjunction on two expressions.
Syntax
result = expr1 OR expr2
XOR
Performs a logical exclusion on two expressions.
Syntax
result = expr1 XOR expr2
10.6.3 Trigonometric Functions
10.6.3.1 Derived Functions
TABLE. Derived Trigonometric Functions
(p. 101) is a list of trigonometric
functions that can be derived from functions intrinsic to CRBASIC.
Table 13.
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))
Hyperbolic Cotangent
HCotan = (Exp(X) + Exp(-X)) / (Exp(X) - Exp(-X))
Inverse Hyperbolic Sine
HArcsin = Log(X + Sqr(X * X + 1))
Inverse Hyperbolic Cosine
HArccos = Log(X + Sqr(X * X - 1))
Inverse Hyperbolic Tangent
HArctan = Log((1 + X) / (1 - X)) / 2
Inverse Hyperbolic Secant
HArcsec = Log((Sqr(-X * X + 1) + 1) / X)
Inverse Hyperbolic Cosecant
HArccosec = Log((Sgn(X) * Sqr(X * X + 1) + 1) / X)
Inverse Hyperbolic Cotangent
HArccotan = Log((X + 1) / (X - 1)) / 2
10.6.3.2 Intrinsic Functions
ACOS
Returns the arc cosine of a number.
Syntax
x = ACOS(source)
Summary of Contents for CR200
Page 32: ...Section 2 Quickstart Tutorial 22 ...
Page 45: ...Section 3 Overview 35 3 3 Specifications ...
Page 46: ...Section 3 Overview 36 ...
Page 58: ...Section 4 Sensor Support 48 ...
Page 62: ...Section 5 Measurement and Control Peripherals 52 ...
Page 78: ...Section 8 CR200 X Configuration 68 ...
Page 102: ...Section 9 Programming 92 ...
Page 138: ...Section 11 Programming Resource Library 128 ...
Page 156: ...Section 16 Support Software 146 ...
Page 160: ...Section 17 Care and Maintenance 150 ...
Page 167: ...Section 18 Troubleshooting 157 18 3 3 2 Charging Circuit Test Solar Panel ...
Page 168: ...Section 18 Troubleshooting 158 18 3 3 3 Charging Circuit Test Transformer ...
Page 169: ...Section 18 Troubleshooting 159 18 3 3 4 Adjusting Charging Circuit Voltage ...
Page 170: ...Section 18 Troubleshooting 160 ...
Page 184: ...Appendix A Glossary 14 ...
Page 190: ...Appendix B Status Table and Settings 20 ...
Page 192: ...Appendix C Serial Port Pin Outs 22 ...
Page 211: ......