Cosines

by (no login)

I'm trying to work out an angle of a non-right angel triangle. I have the 3 sides and the equation works (checked with excel and a cad package and on calculator) but the angle always comes out wrong in Qbasic. The number is correct until I try to make an angle of it and then it's at least 1% out?
at this point it's correct
as2 = (((ls * ls) + (kpl * kpl) - (tl * tl)) / (2 * (kpl * ls)))
however I go from here to convert it to an angle goes wrong.
if I work out a series of these and subtract them, the differences are correct but none of the actual position are?

Help

Posted on Jul 21, 2010, 10:16 AM

Respond to this message   

Return to Index


Response TitleAuthor and Date
Hmm on Jul 21
 more info on Jul 22
  Don't forget there's no arccos in QBDavid on Jul 22
  Sorry, disregard what I said. on Jul 22
   Better arccosZom-B on Jul 23
    Even better... on Jul 23
     That's not better. ππππππππBen on Jul 23
      * Then ya gotta SHARE π! I DON'T SHARE π π π π! on Jul 23
       *LOL, keep the new forum handle on Jul 23
      *Why not just 2 * ATN(1)? on Jul 23
       *Didn't see that, you're rightBen on Jul 23
        * Does that make it any better kid? Will DOSBOX run it? :-P on Jul 24
    Thanks Everyonenik on Jul 27
MAYBE THIS LINK COULD HELPOPRESION on Jul 22