failed attempts to intercept copy command when the cursor is in the empty text field...
[LeanCalc.git] / help / arg
1 NAME
2     arg - argument (the angle or phase) of a complex number
3
4 SYNOPSIS
5     arg(x [,eps])
6
7 TYPES
8     x           number
9     eps         nonzero real, defaults to epsilon()
10
11     return      real
12
13 DESCRIPTION
14     Returns the argument of x to the nearest or next to nearest multiple of
15     eps; the error will be less in absolute value than 0.75 * abs(eps),
16     but usually less than 0.5 * abs(eps).
17
18 EXAMPLE
19     > print arg(2), arg(2+3i, 1e-5), arg(2+3i, 1e-10), arg(2+3i, 1e-20)
20     0 .98279 .9827937232 .98279372324732906799
21
22     > pi = pi(1e-10); deg = pi/180; eps = deg/10000
23     > print arg(2+3i, eps)/deg, arg(-1 +1i, eps)/deg, arg(-1 - 1i,eps)/deg
24     56.3099 135 -135
25
26 LIMITS
27     none
28
29 LINK LIBRARY
30     none
31
32 SEE ALSO
33     conj, im, polar, re
34