by Johny Holmes (4 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 6th April 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Law Of Cosines. A Mathimatical program that determines the length of an unknown line, using the two other lengths (A, and B) and the angle of
Dim a As Single
Dim b As Single
Dim c As Single
Dim Answer As Single
'Values
a = Val(txta)
b = Val(txtb)
c = Val(txtc)
Answer = Val(lblanswer)
'Calculations
Answer = Sqr((a ^ 2 + b ^ 2) - 2 * a * b * Cos(c * (3.14159 / 180)))
'Displaying The Answer
lblanswer.Caption = Answer
No comments have been posted about Law Of Cosines. A Mathimatical program that determines the length of an unknown line, using the two. Why not be the first to post a comment about Law Of Cosines. A Mathimatical program that determines the length of an unknown line, using the two.