Sin Function

κ°λ„μ˜ 사인을 κ΅¬ν•©λ‹ˆλ‹€. κ°λ„λŠ” λΌλ””μ•ˆμœΌλ‘œ μ§€μ •λ©λ‹ˆλ‹€. κ²°κ³ΌλŠ” -1μ—μ„œ 1 μ‚¬μ΄μž…λ‹ˆλ‹€.

Sin ν•¨μˆ˜λŠ” 직각 μ‚Όκ°ν˜•μ—μ„œ λΉ—λ³€μ˜ 길이에 λŒ€ν•΄ 각도 Alpha와 λ§ˆμ£Όλ³΄λŠ” λ³€μ˜ 길이 λΉ„μœ¨μ„ κ΅¬ν•©λ‹ˆλ‹€.

Sin(Alpha) = side opposite the angle/hypotenuse

ꡬ문:


Sin (Number)

λ°˜ν™˜ κ°’:

Double

맀개 λ³€μˆ˜:

Number: 사인을 계산할 각도λ₯Ό λΌλ””μ•ˆμœΌλ‘œ μ§€μ •ν•˜λŠ” 숫자 μ‹μž…λ‹ˆλ‹€.

도λ₯Ό λΌλ””μ•ˆμœΌλ‘œ λ³€ν™˜ν•˜λ €λ©΄ 도에 Pi/180을 κ³±ν•©λ‹ˆλ‹€. λΌλ””μ•ˆμ„ λ„λ‘œ λ³€ν™˜ν•˜λ €λ©΄ λΌλ””μ•ˆμ— 180/Piλ₯Ό κ³±ν•©λ‹ˆλ‹€.

grad=(radiant*180)/pi

radiant=(grad*pi)/180

PiλŠ” μ•½ 3.141593μž…λ‹ˆλ‹€.

Error codes:

5 잘λͺ»λœ ν”„λ‘œμ‹œμ € ν˜ΈμΆœμž…λ‹ˆλ‹€.

예:


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 hypotenuse:
Sub ExampleSine
REM Pi = 3.1415926 is a predefined variable
Dim d1 As Double
Dim dAlpha As Double
    d1 = InputBox("Enter the length of the opposite side: ","Opposite Side")
    dAlpha = InputBox$("μ•ŒνŒŒ 각도(도 λ‹¨μœ„) μž…λ ₯: ","Alpha")
    Print "The length of the hypotenuse is"; (d1 / sin (dAlpha * Pi / 180))
End Sub

Please support us!