Two of a large number of ways:

   n=: 20x

   v=: 2 , ,1,.(2+2*i.n),.1
   v
2 1 2 1 1 4 1 1 6 1 1 8 1 1 10 1 1 12 1 1 14 1 1 16 1 1 18 1 1 20 1 1 22 1
1 24 1 1 26 1 1 28 1 1 30 1 1 32 1 1 34 1 1 36 1 1 38 1 1 40 1
   (+%)/v
22876575111522797753057490407482r8415821667943532643424692161961
   0j20 ": (+%)/v
2.71828182845904523536

   +/ % ! i. n
82666416490601r30411275102208
   0j20 ": (+%)/v
2.71828182845904523536



On Mon, Mar 10, 2014 at 9:38 AM, km <[email protected]> wrote:

> The rational  2721r1001  approximates  e  to six, almost seven decimal
> places:
>
>     0j7 ": (^ 1) ,: 2721r1001
>  2.7182818
>  2.7182817
>
> I got 2721r1001 from a continued fraction.  How would you look for
> rational approximations to  e  ?
>
> --Kip Murray
>
> Sent from my iPad
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to