VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Law Of Cosines. A Mathimatical program that determines the length of an unknown line, using the two

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

Rate Law Of Cosines. A Mathimatical program that determines the length of an unknown line, using the two



    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

Download this snippet    Add to My Saved Code

Law Of Cosines. A Mathimatical program that determines the length of an unknown line, using the two Comments

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.

Post your comment

Subject:
Message:
0/1000 characters