Tan Function
๊ฐ๋์ ํ์ ํธ ๊ฐ์ ๊ฒฐ์ ํฉ๋๋ค. ๊ฐ๋๋ ๋ผ๋์ ๋จ์๋ก ์ง์ ํฉ๋๋ค.
Tan ํจ์๋ ์ง๊ฐ ์ผ๊ฐํ์์ ๊ฐ๋ Alpha์ ์ธ์ ํ ๋ณ์ ๊ธธ์ด์ ๋ํด ๊ฐ๋ Alpha์ ๋ง์ฃผ๋ณด๋ ๋ณ์ ๊ธธ์ด ๋น์จ์ ๊ณ์ฐํฉ๋๋ค.
Tan(Alpha) = side opposite the angle/side adjacent to angle
๊ตฌ๋ฌธ:
Tan (Number)
๋ฐํ ๊ฐ:
Double
๋งค๊ฐ ๋ณ์:
Number: ๋ผ๋์์ผ๋ก ์ง์ ํ ํ์ ํธ๋ฅผ ๊ณ์ฐํ ์์์ ์ซ์ ์์ ๋๋ค.
๋๋ฅผ ๋ผ๋์์ผ๋ก ๋ณํํ๋ ค๋ฉด ๋์ Pi/180์ ๊ณฑํฉ๋๋ค. ๋ผ๋์์ ๋๋ก ๋ณํํ๋ ค๋ฉด ๋ผ๋์์ 180/Pi๋ฅผ ๊ณฑํฉ๋๋ค.
๋=(๋ผ๋์*180)/Pi
๋ผ๋์=(๋*Pi)/180
Pi๋ ์ฝ 3.141593์ ๋๋ค.
์:
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 side adjacent to the angle:
Sub ExampleTangens
REM Pi = 3.1415926 is a pre-defined variable
Dim d1 As Double
Dim dAlpha As Double
d1 = InputBox("Enter the length of the side opposite the angle: ","opposite")
dAlpha = InputBox("Enter the Alpha angle (in degrees): ","Alpha")
Print "the length of the side adjacent the angle is"; (d1 / tan (dAlpha * Pi / 180))
End Sub