Calculates the tangent of a value.
Syntax
Result = SRP_Math("TAN", Value, "", DecimalPlaces, ScientificNotation)
Returns
The tangent of Value.
Remarks
The TAN operation computes the tangent of Value. Value can be any number except a multiple of π/2, else the following error is returned:
"ERROR: Value cannot be a multiple of PI/2."
Note that this error is likely never to occur since PI/2 has infinite decimal places.
The result can be any number.
Example
// Calculate the tangent of Log2 Val = "0.227064512498507649434129923403947" Result = SRP_Math("TAN", Val) !! Result = 0.2310490601866484364724107071527236 !!
// Calculate the tangent of PI Val = "3.1415926535897932384626433832795" Result = SRP_Math("TAN", Val) !! Result = 0.0 !!