Atn Function

숫자 μ‹μ˜ 아크 νƒ„μ  νŠΈλ₯Ό κ΅¬ν•˜λŠ” 삼각 ν•¨μˆ˜μž…λ‹ˆλ‹€. λ°˜ν™˜ κ°’μ˜ λ²”μœ„λŠ” -Pi/2μ—μ„œ +Pi/2 μ‚¬μ΄μž…λ‹ˆλ‹€.

아크 νƒ„μ  νŠΈλŠ” νƒ„μ  νŠΈ ν•¨μˆ˜μ˜ μ—­ν•¨μˆ˜μž…λ‹ˆλ‹€. Atn ν•¨μˆ˜λŠ” 각도 "Alpha"의 νƒ„μ  νŠΈλ₯Ό μ‚¬μš©ν•˜μ—¬ λΌλ””μ•ˆμœΌλ‘œ ν‘œμ‹œλœ 이 각도λ₯Ό κ΅¬ν•©λ‹ˆλ‹€. λ˜ν•œ 이 ν•¨μˆ˜λŠ” 직각 μ‚Όκ°ν˜•μ—μ„œ 각도와 μΈμ ‘ν•œ λ³€μ˜ 길이에 λŒ€ν•΄ 각도와 λ§ˆμ£Όλ³΄λŠ” λ³€μ˜ 길이 λΉ„μœ¨μ„ κ³„μ‚°ν•˜μ—¬ 각도 "Alpha"λ₯Ό ꡬ할 수 μžˆμŠ΅λ‹ˆλ‹€.

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

Syntax:


        Atn (Number)
    

Return value:

Double

Parameters:

Number: 직각 μ‚Όκ°ν˜•μ˜ 두 λ³€μ˜ λΉ„μœ¨μ„ λ‚˜νƒ€λ‚΄λŠ” μž„μ˜μ˜ 숫자 μ‹μž…λ‹ˆλ‹€. Atn ν•¨μˆ˜λŠ” ν•΄λ‹Ή κ°λ„μ˜ 아크 νƒ„μ  νŠΈλ₯Ό λΌλ””μ•ˆμœΌλ‘œ κ΅¬ν•©λ‹ˆλ‹€.

λΌλ””μ•ˆμ„ λ„λ‘œ λ³€ν™˜ν•˜λ €λ©΄ λΌλ””μ•ˆμ— 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!