Contents

# Tan Function

각도의 탄젠트 값을 결정합니다. 각도는 라디안 단위로 지정합니다.

Using the angle Alpha, the Tan function calculates the ratio of the length of the side opposite the angle to the length of the side adjacent to the angle in a right-angled triangle.

Tan(Alpha) = side opposite the angle/side adjacent to angle

### Syntax:

    Tan (Number As Double) As Double

### Return type:

Double

### Parameters:

Number: 라디안으로 지정한 탄젠트를 계산할 임의의 숫자 식입니다.

To convert degrees to radians, multiply by Pi/180. To convert radians to degrees, multiply by 180/Pi.

degrees=(radians*180)/Pi

radians=(degrees*Pi)/180

Pi is approximately 3.141593.

### Error codes:

5 잘못된 프로시저 호출입니다.

### Example:

    REM In this example, the following entry is possible for a right-angled triangle:
    REM The side opposite the angle and the angle (in degrees) to calculate the length of the side adjacent to the angle:
    Sub ExampleTangens
    REM Pi = 3.1415926 is a pre-defined variable
    Dim d1 As Double
    Dim dAlpha As Double
        d1 = InputBox("Enter the length of the side opposite the angle: ","opposite")
        dAlpha = InputBox("Enter the Alpha angle (in degrees): ","Alpha")
        Print "the length of the side adjacent the angle is"; (d1 / tan (dAlpha * Pi / 180))
    End Sub

관련 주제

Atn Function

Cos Function

Sin Function