tan(
tan(
ANGLE
)

The tan( function calculates the tangent of an angle.

Parameters

This function has one parameter:

angle – a numeric value, an angle. The angle is usually specified in a mathematical unit of measurement called radians, however, within a procedure you can temporarily force Panorama to use degrees (see below). One radian is equal to approximately 57.2958 degrees (the exact value is 180/pi).

Description

This function calculates the tangent of an angle. The graph below shows the result of the tan( function given input values from -10 to +10.

y = tan( x )

The tan( function normally accepts input angles in radians. In a procedure you can tell Panorama to switch to using degrees instead, like this:

    degree
    NewAngle=tan(Angle)

The degree statement tells Panorama to use degrees instead of radians in all trigonometry calculations. Panorama will continue to use degrees until the end of the procedure, or until a radian statement is encountered.

See Also

- cos( -- calculates the cosine of an angle.
- degree -- tells Panorama that all angles input to and calculated in trigonometric functions are in degrees rather than radians.
- degrees2radians( -- converts an angle from degrees to radians.
- degreestoradians( -- converts an angle from degrees into radians
- info("angleunits") -- returns the current angular measurement units.
- latlongdistance( -- calculates the distance between two points on the earth (or any other sphere).
- radian -- tells Panorama that all angles in trigonometric functions should be calculated using radians rather than degrees.
- radians2degrees( -- converts an angle from radians to degrees.
- radianstodegrees( -- converts an angle from radians to degrees.
- sin( -- calculates the sine of an angle.

History

Version | Status | Notes
10.0 | No Change | Carried over from Panorama 6.0