Function Repository Resource:

TriangleEdgeAngles

Source Notebook

Given edge lengths of a triangle, return the angles opposite those edges

Contributed by: Wolfram Staff

ResourceFunction["TriangleEdgeAngles"][{a,b,c}]

returns the angles opposite edges (a,b,c).

Examples

Basic Examples (1) 

Edges of a 30-60-90 triangle:

In[1]:=
ResourceFunction["TriangleEdgeAngles"][{1, Sqrt[3], 2}]
Out[1]=

Scope (2) 

Edges for a 45-60-75 look complicated:

In[2]:=
ResourceFunction["TriangleEdgeAngles"][{2, Sqrt[6], 1 + Sqrt[3]}]
Out[2]=

RootReduce can help:

In[3]:=
RootReduce[
 ResourceFunction["TriangleEdgeAngles"][{2, Sqrt[6], 1 + Sqrt[3]}]]
Out[3]=

In[4]:=
ResourceFunction["TriangleEdgeAngles"][{2, Sqrt[3], Sqrt[3]}]
Out[4]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Version History

  • 1.0.0 – 11 February 2019

License Information