[kw-pm] Angles

Ryan Fox foxryan at gmail.com
Thu Apr 14 07:57:07 PDT 2011


If you have a triangle with vertices labelled A,B,C and edges opposite the
vertices labelled a,b,c, then:
C = acos((a**2 + b**2 - c**2)/(2*a*b))

Keep in mind, this result will be in radians, not degrees. Use rad2deg() to
get degrees.

On Thu, Apr 14, 2011 at 10:50 AM, Robert Pike <roberthpike at yahoo.com> wrote:

> 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.
> _______________________________________________
> kw-pm mailing list
> kw-pm at pm.org
> http://mail.pm.org/mailman/listinfo/kw-pm
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/kw-pm/attachments/20110414/f1b56d9c/attachment.html>


More information about the kw-pm mailing list