ཟུར་ཚད་ཅིག་གི་དྲང་ཕྲད་ཐང་རྩིས་རྒྱག་པ། ཟུར་ཚད་ཀྱི་སྡེ་ཚན་ནི་གཞུ་ཚད་ཡིན།
Using the angle Alpha, the Tan function calculates the ratio of the length of the side opposite the angle to the length of the side adjacent to the angle in a right-angled triangle.
Tan(Alpha) = side opposite the angle/side adjacent to angle
Tan (Number As Double) As Double
Double
Number ལྡོག་པའི་དྲང་ཕྲད་ཐང་གི་རྩིས་རྒྱག་པའི་གྲངས་གང་རུང་གི་མཚོན་ཚུལ་ (འཇལ་བྱེད་ནི་གཞུ་ཚད་ཡིན་)
To convert degrees to radians, multiply by Pi/180. To convert radians to degrees, multiply by 180/Pi.
degrees=(radians*180)/Pi
radians=(degrees*Pi)/180
Pi is approximately 3.141593.
ཚོན་དཔེ་REM འདིའི་ནང་ནང་གཤམ་གྱི་རྣམ་གྲངས་ཚང་མ་ཐད་ཟུར་ཟུར་གསུམ་ལ་དམིགས་པ་ཡིན་
REM ཟུར་གྱི་གཏད་མཐའ་དང་ཟུར་ཚད་ (འཇལ་བྱེད་ནི་ཏུའུ་ཡིན་)མ་ཟད་དེ་དག་གཞིར་བཟུང་ནས་ཟུར་གྱི་མཚམས་མཐའི་རིང་ཚད་རྩིས་རྒྱག་པ།
Sub ExampleTangens
REM Pi = 3.1415926 སྔོན་མཚན་འཇོག་འགྱུར་ཚད་ཡིན་
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