NB. all roots
p. 8 0 0 1
+-+-----------------------+
|1|1j1.73205 1j_1.73205 _2|
+-+-----------------------+
NB. Branch cut along neg real axis is standard I think
NB. discontinuous near neg real axis
3 %: _8+j.1e_12
1j1.73205
3 %: _8-j.1e_12
1j_1.73205
NB. Continuous on positive real
3 %: 8+j.1e_12
2j8.33333e_14
3 %: 8-j.1e_12
2j_8.33333e_14
NB. probably better (no different) to think about exponential
_8^1r3
1j1.73205
Ed Keith wrote:
> I type "3 %: _8" into J and was surprised when I got "1j1.73205". I realize
> this is technically correct, but when I type "3 %: 8" I get "2", not
> "_1j1.73205".
>
> How does J decide which branch of the root to give? Is there away to
> influence its decision? Is there a way to generate all roots?
>
> -EdK
>
> Ed Keith
> [email protected]
>
> Blog: edkeith.blogspot.com
>
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
Clifford A. Reiter
Mathematics Department, Lafayette College
Easton, PA 18042 USA, 610-330-5277
http://www.lafayette.edu/~reiterc
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm