Sin Function

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

Using the angle Alpha, the Sin function returns the ratio of the length of the opposite side of an angle to the length of the hypotenuse in a right-angled triangle.

Sin(Alpha) = side opposite the angle/hypotenuse

Syntax:


Sin (Number As Double) As Double

Return value:

Double

Parameters:

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

To convert degrees to radians, multiply degrees by Pi/180, and to convert radians to degrees, multiply radians 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 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!