Atn Function

์ˆซ์ž ์‹์˜ ์•„ํฌ ํƒ„์  ํŠธ๋ฅผ ๊ตฌํ•˜๋Š” ์‚ผ๊ฐ ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค. ๋ฐ˜ํ™˜ ๊ฐ’์˜ ๋ฒ”์œ„๋Š” -Pi/2์—์„œ +Pi/2 ์‚ฌ์ด์ž…๋‹ˆ๋‹ค.

The arctangent is the inverse of the tangent function. The Atn Function returns the angle "Alpha", expressed in radians, using the tangent of this angle. The function can also return the angle "Alpha" by comparing the ratio of the length of the side that is opposite of the angle to the length of the side that is adjacent to the angle in a right-angled triangle.

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

Syntax:


        Atn (Number As Double) As Double
    

Return value:

Double

Parameters:

Number: Any numerical expression that represents the ratio of two sides of a right triangle. The Atn function returns the corresponding angle in radians (arctangent).

๋ผ๋””์•ˆ์„ ๋„๋กœ ๋ณ€ํ™˜ํ•˜๋ ค๋ฉด ๋ผ๋””์•ˆ์— 180/pi๋ฅผ ๊ณฑํ•ฉ๋‹ˆ๋‹ค.

degree=(radian*180)/pi

radian=(degree*pi)/180

Pi is here the fixed circle constant with the rounded value 3.14159. Pi is a Basic mathematical constant.

Error codes:

5 ์ž˜๋ชป๋œ ํ”„๋กœ์‹œ์ € ํ˜ธ์ถœ์ž…๋‹ˆ๋‹ค.

Example:


        REM The following example calculates for a right-angled triangle
        REM the angle Alpha from the tangent of the angle Alpha:
        Sub ExampleAtn
        REM Pi = 3.14159๋Š” ๋ฏธ๋ฆฌ ์ •์˜๋œ ์ƒ์ˆ˜์ž…๋‹ˆ๋‹ค.
        Dim d1 As Double
        Dim d2 As Double
            d1 = InputBox("Enter the length of the side adjacent to the angle: ","Adjacent")
            d2 = InputBox$("๊ฐ๋„ ๋งž์€ํŽธ ๋ณ€ ๊ธธ์ด ์ž…๋ ฅ: ","Opposite")
            Print "The Alpha angle is"; (atn (d2/d1) * 180 / Pi); " degrees"
        End Sub
    

Please support us!