cos

cos, function

def const dash autodiff pure cos(a: number): number

Returns the cosine of a, where a is expressed in radians.

Examples

show table "Cosine" with
  cos(0) as "cos(0)"
  cos(3.141592) as "cos(pi)"

Output:

cos(0) cos(pi)
1 -1

Remarks

This function is usable in const, dash, and autodiff contexts.

See also

User Contributed Notes
0 notes + add a note