Function Repository Resource:

SupplementaryAngleDegree

Source Notebook

Compute the geometric supplement to a given angle using degrees

Contributed by: Paco Jain (Wolfram Research)

ResourceFunction["SupplementaryAngleDegree"][θ]

gives the supplement to the angle of θ in degrees.

Details and Options

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

Examples

Basic Examples (1) 

Compute the supplement of an angle:

In[1]:=
ResourceFunction["SupplementaryAngleDegree"][30]
Out[1]=

Scope (3) 

SupplementaryAngleDegree works directly on Quantity expressions with units of "AngularDegrees":

In[2]:=
ResourceFunction["SupplementaryAngleDegree"][
 Quantity[12, "AngularDegrees"]]
Out[2]=

SupplementaryAngleDegree works directly on DMS lists of the type returned by DMSList:

In[3]:=
dmsList = DMSList[112.7]
Out[3]=
In[4]:=
ResourceFunction["ReferenceAngleDegree"][dmsList]
Out[4]=

SupplementaryAngleDegree works directly on DMS strings of the type returned by DMSString:

In[5]:=
dmsString = DMSString[65.3]
Out[5]=
In[6]:=
ResourceFunction["SupplementaryAngleDegree"][dmsString]
Out[6]=

Properties and Relations (4) 

SupplementaryAngleDegree will remain unevaluated for non-numeric input:

In[7]:=
ResourceFunction["SupplementaryAngleDegree"][a]
Out[7]=

SupplementaryAngleDegree will return a negative result if the input angle is greater than 180°:

In[8]:=
ResourceFunction["SupplementaryAngleDegree"][250]
Out[8]=

For negative input, SupplementaryAngleDegree returns a result greater than 180°:

In[9]:=
ResourceFunction["SupplementaryAngleDegree"][-38]
Out[9]=

For numeric input, SupplementaryAngleDegree is its own inverse:

In[10]:=
r = RandomReal[{0, 360}];
ResourceFunction["SupplementaryAngleDegree"][
  ResourceFunction["SupplementaryAngleDegree"][r]] == r
Out[11]=

Version History

  • 1.0.0 – 05 July 2019

Related Resources

License Information