focus expression text field at startup -> version 1.2
[LeanCalc.git] / help / sin
1 NAME
2     sin - trigonometric sine
3
4 SYNOPSIS
5     sin(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 sine of x to a multiple of eps with error less in
15     absolute value than .75 * eps.
16
17 EXAMPLE
18     > print sin(1, 1e-5), sin(1, 1e-10), sin(1, 1e-15), sin(1, 1e-20)
19     .84147 .8414709848 .841470984807896 .84147098480789650665
20
21     > print sin(2 + 3i, 1e-5), sin(2 + 3i, 1e-10)
22     9.1545-4.16891i 9.1544991469-4.16890696i
23
24     > pi = pi(1e-20)
25     > print sin(pi/6, 1e-10), sin(pi/2, 1e-10), sin(pi, 1e-10)
26     .5 1 0
27
28 LIMITS
29     eps > 0
30
31 LINK LIBRARY
32     NUMBER *qsin(NUMBER *x, NUMBER *eps)
33     COMPLEX *csin(COMPLEX *x, NUMBER *eps)
34
35 SEE ALSO
36     cos, tan, sec, csc, cot, epsilon
37