Wolfram Research

Function Repository Resource:

CotDegree

Source Notebook

Compute the cotangent of an angle given in degrees

Contributed by: Paco Jain (Wolfram Research)

ResourceFunction["CotDegree"][x]

computes the cotangent of an angle x, measured in degrees.

Details and Options

CotDegree is a mathematical function, suitable for both symbolic and numerical manipulation.
For certain special arguments, CotDegree automatically evaluates to exact values.
CotDegree can be evaluated to arbitrary numerical precision.
CotDegree automatically threads over lists.

Examples

Basic Examples

Compute the cotangent of an angle:

In[1]:=
ResourceFunction["CotDegree"][60]
Out[1]=

Plot over a given range of angles:

In[2]:=
Plot[ResourceFunction["CotDegree"][x], {x, 0, 360}]
Out[2]=

Scope

Evaluate numerically:

In[3]:=
ResourceFunction["CotDegree"][43.1]
Out[3]=

Evaluate to high precision:

In[4]:=
N[ResourceFunction["CotDegree"][26], 50]
Out[4]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Resource History

License Information