User Tools

Site Tools

한국어

cubloc:tan_tanh:index

This is an old revision of the document!


Tan

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)

Tanh

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

Go CUBLOC home

cubloc/tan_tanh/index.1771564053.txt.gz · Last modified: by admin