This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)


gives the cosine of z.
  • Mathematical function, suitable for both symbolic and numerical manipulation.
  • The argument of Cos is assumed to be in radians. (Multiply by Degree to convert from degrees.) »
  • Cos is automatically evaluated when its argument is a simple rational multiple of ; for more complicated rational multiples, FunctionExpand can sometimes be used. »
  • For certain special arguments, Cos automatically evaluates to exact values.
  • Cos can be evaluated to arbitrary numerical precision.
  • Cos automatically threads over lists.
The argument is given in radians:
Use Degree to specify an argument in degrees:
The argument is given in radians:
Click for copyable input
Use Degree to specify an argument in degrees:
Click for copyable input
Click for copyable input
Click for copyable input
Evaluate numerically:
Evaluate for complex arguments:
Evaluate to high precision:
The precision of the output tracks the precision of the input:
Cos threads element-wise over lists and matrices:
Simple exact values are generated automatically:
More complicated cases require explicit use of FunctionExpand:
Convert multiple-angle expressions:
Convert sums of trigonometric functions to products:
Expand assuming real variables:
Convert to complex exponentials:
TraditionalForm formatting:
Cos can deal with real-valued intervals:
Infinite arguments give symbolic results:
Cos can be applied to power series:
Cos threads element-wise over sparse arrays as well as lists:
Draw a circle:
Lissajous figure:
Equiangular (logarithmic) spiral:
Circular motion:
Solve an equation for harmonic motion:
Rotation matrix:
Apply to a horizontally aligned vector:
Plot a sphere:
Plot a torus:
2D waves:
Triple-periodic surface:
Approximate the almost nowhere differentiable Riemann-Weierstrass function:
Basic parity and periodicity properties of the cosine function get automatically applied:
Complicated expressions containing trigonometric functions do not simplify automatically:
Compose with inverse functions:
Solve a trigonometric equation:
Numerically find a root of a transcendental equation:
Reduce a trigonometric equation:
Fourier transform:
Cos appears in special cases of many mathematical functions:
Cos is a numeric function:
Machine-precision input is insufficient to give a correct answer:
With exact input, the answer is correct:
A larger setting for $MaxExtraPrecision can be needed:
Machine-number inputs can give high-precision results:
Continuous functions involving Cos[x] can give discontinuous indefinite integrals:
In traditional form parentheses are needed around the argument:
Chladni figure:
Plot Cos at integer points:
New in 1 | Last modified in 4