If you have a triangle with vertices labelled A,B,C and edges opposite the vertices labelled a,b,c, then:<div>C = acos((a**2 + b**2 - c**2)/(2*a*b))</div><div><br></div><div>Keep in mind, this result will be in radians, not degrees. Use rad2deg() to get degrees.<br>
<br><div class="gmail_quote">On Thu, Apr 14, 2011 at 10:50 AM, Robert Pike <span dir="ltr"><<a href="mailto:roberthpike@yahoo.com">roberthpike@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Anyone have the formula (in Perl) to determine any 1 angle of a triangle when given all 3 sides? Appreciate it if you could pass my way as what I've been trying doesn't seem to be working. Thanks.<br>
_______________________________________________<br>
kw-pm mailing list<br>
<a href="mailto:kw-pm@pm.org">kw-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/kw-pm" target="_blank">http://mail.pm.org/mailman/listinfo/kw-pm</a><br>
</blockquote></div><br></div>