Function Repository Resource:

ComplementaryAngle

Compute the geometric complement to a given angle

Contributed by: Paco Jain (Wolfram Research)
 ResourceFunction["ComplementaryAngle"][θ] gives the complement to the angle of θ.

Details and Options

ResourceFunction["ComplementaryAngle"] takes all angles to be measured in radians.
The complement of an angle θ is defined to be the angle which sums with θ to form a right angle. In other words, .

Examples

Basic Examples (1)

Compute the complement of an angle:

 In[1]:=
 Out[1]=

Scope (1)

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

 In[2]:=
 Out[2]=

Properties and Relations (4)

ComplementaryAngle will remain unevaluated for non-numeric input:

 In[3]:=
 Out[3]=

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

 In[4]:=
 Out[4]=

For negative input, ComplementaryAngle returns a result greater than :

 In[5]:=
 Out[5]=

For numeric input, ComplementaryAngle is its own inverse:

 In[6]:=
 Out[7]=

Version History

• 1.0.0 – 05 July 2019