Cos Function

གྲུ་ཟུར་གྱི་ཀོ་སིན་དེ་རྩིས་སྟོནམ་ཨིན། གྲུ་ཟུར་དེ་རེ་ཌི་ཡཱནསི་ནང་གསལ་བཀོད་འབད་ཡོདཔ་ཨིན། འགྲུབ་འབྲས་དེ་ - ༡ དང་ ༡ བར་ན་ཨིན།

Using the angle Alpha, the Cos function calculates the ratio of the length of the side that is adjacent to the angle, divided by the length of the hypotenuse in a right-angled triangle.

Cos(Alpha) = Adjacent/Hypotenuse

Syntax:


Cos (Number As Double) As Double

Return value:

Double

Parameters:

ཨང་: ཨང་གྲངས་ཀྱི་གསལ་བརྗོད་དེ་གིས་ཁྱོད་ཀྱིས་རྩིས་སྟོན་འབད་ནི་ཀོ་སིན་དོན་ལུ་ཨིན་མི་རེ་ཌི་ཡཱནསི་ནང་གྲུ་ཟུར་ཅིག་གསལ་བཀོད་འབདཝ་ཨིན།

དབྱེ་རིག་ཚུ་རེ་ཌི་ཡཱནསི་ལུ་གཞི་བསྒྱུར་འབད་ནི་ལུ་ དབྱེ་རིག་ པི་ཨའི་/༡༨༠ གིས་འབད་དགུ་བསྡོམས་འབད། རེ་ཌི་ཡཱནསི་དབྱེ་རིག་ལུ་གཞི་བསྒྱུར་འབད་ནི་ལུ་ རུ་ཌི་ཡཱནསི་ ༡༨༠/པི་ཨའི་ གིས་འབད་དགུ་བསྡོམས་རྐྱབས།

དབྱེ་རིམ=(radian*180)/pi

རེ་ཌི་ཡན=(degree*pi)/180

Pi is here the fixed circle constant with the rounded value 3.14159...

Error codes:

༥ ནུས་མེད་བྱ་སྒོའི་ལམ་ལུགས་བོད་བརྡ་

Example:


ཨར་ཨི་ཨེམ་ འོག་གི་དཔེར་བརྗོད་ཀྱིས་གཡས་ཕྱོགས་གྲུ་ཟུར་་ཟུར་གསུམ་ཨིན་པུཊི་གི་ དོན་ལུ་བཅུགཔ་ཨིན།
ཨར་ཨི་ཨེམ་གཏོལ་ཐིག་དང་གྲུ་ཟུར་(དབྱེ་རིག་ཚུ་ནང་)དང་ཧའི་པོ་ཊེནས་གི་རིང་ཚད་དེ་རྩིས་སྟོནམ་ཨིན།
Sub ExampleCosinus
ཨར་ཨི་ཨེམ་ སྐོར་ཐེངས་འབད་ཡོདཔ པི་ཨའི= ༣་༡༤༡༥༩
Dim d1 As Double, dAngle As Double
    ཌི་ ༡ = ཨིན་པུཊི་སྒྲོམ$ (""Enter the length of the adjacent side: ","Adjacent")
    ཌི་གྲུ་ཟུར = ཨིན་པུཊི་སྒྲོམ$ ("Enter the angle Alpha (in degrees): ","Alpha")
    Print "The length of the hypotenuse is"; (d1 / cos (dAngle * Pi / 180))
End Sub

Please support us!