The Wikipedia page on Wilkinson's polynomial describes a second problematic
polynomial<http://en.wikipedia.org/wiki/Wilkinson_polynomial#Wilkinson.27s_second_example>
:

   w2=: p. <2x^-1+i.20
   p. w2
┌─┬────────────────────────────────────────────────────────────────────────────────────────────┐
│1│1r2 1r4 1r8 1r16 1r32 1r64 1r128 1r256 1r512 1r1024 1r2048 1r4096 1r8192
1r16384 1r32768 ...│
└─┴────────────────────────────────────────────────────────────────────────────────────────────┘

Your faithful implementer, shamelessly showing off.



On Tue, Dec 11, 2012 at 11:29 PM, Roger Hui <rogerhui.can...@gmail.com>wrote:

> You may or may not know that p. employs some extraordinary measures which
> produce more accurate results in some difficult cases.   But those
> extraordinary measures are not "cool".  For example:
>
>    w=: p. <1+i.20   NB. Wilkinson's 
> polynomial<http://en.wikipedia.org/wiki/Wilkinson_polynomial>
>    w
> 2432902008176640000 _8752948036761600000 13803759753640704000
> _12870931245150988800 8037811822645051776 _3599979517947607200
> 1206647803780373360 _311333643161390640 63030812099294896
> _10142299865511450 1307535010540395 _135585182899530 11310276995381 _7561...
>
>    p. w
> ┌─┬──────────────────────────────────────────────────┐
> │1│20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1│
> └─┴──────────────────────────────────────────────────┘
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to