Function Repository Resource:

SupplementaryAngle

Source Notebook

Compute the geometric supplement to a given angle

Contributed by: Paco Jain (Wolfram Research)

ResourceFunction["SupplementaryAngle"][θ]

gives the supplement to the angle of θ.

Details and Options

ResourceFunction["SupplementaryAngle"] takes all angles to be measured in radians.
The supplement of an angle θ is defined to be the angle that sums with θ to form a straight angle. In other words, π-θ.

Examples

Basic Examples (1) 

Compute the supplement of an angle:

In[1]:=
ResourceFunction["SupplementaryAngle"][Pi/3]
Out[1]=

Scope (1) 

SupplementaryAngle works directly on Quantity expressions with units of "Radians":

In[2]:=
ResourceFunction["SupplementaryAngle"][Quantity[1, "Radians"]]
Out[2]=

Properties and Relations (4) 

SupplementaryAngle will remain unevaluated for non-numeric input:

In[3]:=
ResourceFunction["SupplementaryAngle"][a]
Out[3]=

SupplementaryAngle will return a negative result if the input angle is greater than π:

In[4]:=
ResourceFunction["SupplementaryAngle"][4.4]
Out[4]=

For negative input, SupplementaryAngle returns a result greater than π:

In[5]:=
ResourceFunction["SupplementaryAngle"][-1.2]
Out[5]=

For numeric input, SupplementaryAngle is its own inverse:

In[6]:=
r = RandomReal[];
ResourceFunction["SupplementaryAngle"][
  ResourceFunction["SupplementaryAngle"][r]] == r
Out[6]=

Version History

  • 1.0.0 – 05 July 2019

Related Resources

License Information