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