Re: [Jprogramming] Continued Fraction Challenge

2016-03-12 Thread Mike Day
Looks very concise We were out for Liz's birthday, so I hadn't thought about it! Mike On 12/03/2016 23:44, Rob Hodgkinson wrote: Agree, very nice solution Raul. On 13 Mar 2016, at 10:02 AM, Kip Murray wrote: Very nice, Raul! Much shorter than my Rube Goldberg approach. --Kip On Sa

Re: [Jprogramming] Continued Fraction Challenge

2016-03-12 Thread Rob Hodgkinson
Agree, very nice solution Raul. > On 13 Mar 2016, at 10:02 AM, Kip Murray wrote: > > Very nice, Raul! Much shorter than my Rube Goldberg approach. --Kip > > On Saturday, March 12, 2016, Raul Miller wrote: > >> cv=: ([: (+`%/) 1 }.,)\@|: >> >> I hope this helps... >> >> -- >> Raul >> >>

Re: [Jprogramming] Continued Fraction Challenge

2016-03-12 Thread Kip Murray
Very nice, Raul! Much shorter than my Rube Goldberg approach. --Kip On Saturday, March 12, 2016, Raul Miller wrote: >cv=: ([: (+`%/) 1 }.,)\@|: > > I hope this helps... > > -- > Raul > > > On Sat, Mar 12, 2016 at 1:21 PM, Kip Murray > wrote: > > Here you go: > > > > nume =: 1 , 1 % 4x

Re: [Jprogramming] Continued Fraction Challenge

2016-03-12 Thread Raul Miller
cv=: ([: (+`%/) 1 }.,)\@|: I hope this helps... -- Raul On Sat, Mar 12, 2016 at 1:21 PM, Kip Murray wrote: > Here you go: > > nume =: 1 , 1 % 4x * _1 + 4 * [: *:@>:@i. <: > > dene =: 1 1r2 , 1 $~ _2 + ] > > I think I got those from Abramowitz and Stegun. > >(_1 , nume 6),: dene

Re: [Jprogramming] Continued Fraction Challenge

2016-03-12 Thread Kip Murray
Here you go: nume =: 1 , 1 % 4x * _1 + 4 * [: *:@>:@i. <: dene =: 1 1r2 , 1 $~ _2 + ] I think I got those from Abramowitz and Stegun. (_1 , nume 6),: dene 7 _1 1 1r12 1r60 1r140 1r252 1r396 1 1r211 1 1 1 --Kip On Saturday, March 12, 2016, Raul Miller wro

Re: [Jprogramming] Continued Fraction Challenge

2016-03-12 Thread Raul Miller
How do you compute the first two rows? Thanks, -- Raul On Saturday, March 12, 2016, Kip Murray wrote: > The challenge is at the end. First a table for a finite continued fraction > that approximates e =: ^ 1 . > --Kip Murray > > > The table below summarizes a finite continued fraction which

[Jprogramming] Continued Fraction Challenge

2016-03-12 Thread Kip Murray
The challenge is at the end. First a table for a finite continued fraction that approximates e =: ^ 1 . --Kip Murray The table below summarizes a finite continued fraction which begins 1 1 + - 1r12 1r2 + 1r60 1 + -