====== tan ====== ===== Description ===== Calculate the [[wp>Trigonometric_functions#Tangent|tangent]] of an angle. ===== Function prototype ===== double tan ===== Arguments ===== ^ Name ^ Type ^ Comment ^ | Angle | double | An angle, in radians, the tangent of which is to be calculated. | ===== Return value ===== The tangent of the angle, as a double. ===== Example ===== double angle set angle // convert 45 degrees to radians echo // tan of 45 degrees should be 1 ... the output of which is written to the event log by [[plugins:general:zeoscript:reference:functions:echo]] as: 1 ===== Comments ===== None. ===== See also ===== * [[plugins:general:zeoscript:reference:functions:sin]] * [[plugins:general:zeoscript:reference:functions:cos]] * [[plugins:general:zeoscript:reference:functions:asin]] * [[plugins:general:zeoscript:reference:functions:acos]] * [[plugins:general:zeoscript:reference:functions:atan]] * [[plugins:general:zeoscript:reference:functions:DegToRad]] * [[plugins:general:zeoscript:reference:functions:RadToDeg]]