Dapatkan garis singgung suatu sudut
=TAN(number)
| Parameter | Deskripsi |
|---|---|
number |
The angle in radians for which you want the tangent. |
The TAN function returns the tangent of an angle provided in radians. For example, given the π/4 as input, the function returns 1.0 as output.
=TAN(PI()/4) // Returns 1
To supply an angle in degrees, use the radians function.
=TAN(RADIANS(45)) // Returns 1
This is because the tangent function is likely defined in terms of the functions sine and cosine like this:
=SIN(a)/COS(a) // equivalent to TAN(a)
It's reasonable to expect that the output of cosine for the angle π/2 should be zero, meaning you would get a division by zero error for tangent at th
=COS(PI()/2) // returns 6.12323E-17 instead of zero
As a result, the tangent of π/2 does not return an error and instead returns a very large value.
=TAN(PI()/2) // returns 1.63312E+16