1&o.t.i.10 NB. The sine function is taylor expanded   
0 1 0 _0.166667 0 0.00833333 0 _0.000198413 0 2.75573e_6
   1&o.t.i.10x NB. exactly 
0 1 0 _1r6 0 1r120 0 _1r5040 0 1r362880
   1&o.^:2 t.i.10x NB. Why does sin sin x produces an error message?
|domain error
|       1&o.^:2 t.i.10
  (1&o.t.i.10)&p.^:2 t.i.10 NB. this trick works around the bug
0 1 0 _1r3 0 1r10 0 _8r315 0 13r2520

-Bo





----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to