This is an old revision of the document!
Returns the tangent of a number. The Cubloc uses radians as units. Use a Single for the most precise results.
If your input is in degrees, you must convert it to radians: $rad = deg \times (\frac{\pi}{180})$
Dim A As Single Dim B As Single B = 0.785398 ' 45 degrees in radians A = Tan(B) ' Return the tangent of B (Approx. 1.0)
Returns the hyperbolic tangent of a number. The Cubloc uses radians as units. The output of Tanh always stays between -1.0 and 1.0. Use a Single for the most precise results.
Dim A As Single Dim B As Single B = 0.5 A = Tanh(B) ' Return the hyperbolic tangent of B