tan(float)

Gets the tangent of a given angle.

float tan(
    float fValue
);

Parameters

fValue

Angle in degrees to retrieve the tangent of.


Description

Returns the tangent of fValue.
A tangent is a ratio of the opposite to the adjacent side.



Remarks

Ah good old Trig. The tan function is short for Tangent. A Tangent can best be expressed using a simple Right Triangle. The height of the triangle is considered the "Opposite Side", while the length is called the "Adjacent Side". To get the Tangent of the triangle simply divide the length of the "Opposite" by the length of the "Adjacent". So if a triangle is 10 units tall and is 2 units wide, the tan would equal 5. Somewhat more correctly, the tangent of angle theta, which is part of a right triangle, and has and opposite side of 10 units in length and an adjacent side 2 units in length, equals 2.


Version

1.31

See Also

functions: acos | asin | atan | cos | sin
categories: Math Functions


 author: Charles Feduke, editor: John Shuell, additional contributor(s): Steven Mitcham, Paul Catalano