failed attempts to intercept copy command when the cursor is in the empty text field...
[LeanCalc.git] / help / cos
1 NAME
2     cos - cosine
3
4 SYNOPSIS
5     cos(x [,eps])
6
7 TYPES
8     x           number (real or complex)
9     eps         nonzero real, defaults to epsilon()
10
11     return      number
12
13 DESCRIPTION
14     Calculate the cosine of x to a multiple of eps with error less in
15     absolute value than .75 * eps.
16
17 EXAMPLE
18     > print cos(1, 1e-5), cos(1, 1e-10), cos(1, 1e-15), cos(1, 1e-20)
19     .5403 .5403023059 .54030230586814 .5403023058681397174
20
21     > print cos(2 + 3i, 1e-5), cos(2 + 3i, 1e-10)
22     -4.18963-9.10923i -4.189625691-9.1092278938i
23
24     > pi = pi(1e-20)
25     > print cos(pi/3, 1e-10), cos(pi/2, 1e-10), cos(pi, 1e-10)
26     .5 0 -1
27
28 LIMITS
29     none
30
31 LINK LIBRARY
32     NUMBER *qcos(NUMBER *x, NUMBER *eps)
33     COMPLEX *ccos(COMPLEX *x, NUMBER *eps)
34
35 SEE ALSO
36     sin, tan, sec, csc, cot, epsilon
37