Re: [Jprogramming] Alternating sequences

2023-10-03 Thread Devon McCormick
There are a lot of convergent sequences given here https://mathworld.wolfram.com/eContinuedFraction.html, e.g. for *e*: 2 1,;(<1 1),~&.>2*1+i.x:5 NB. A sequence of integers 2 1 2 1 1 4 1 1 6 1 1 8 1 1 10 1 1 0j18":(+%)/2 1,;(<1 1),~&.>2*1+i.x:5 2.718281828458563411 On

Re: [Jprogramming] Alternating sequences

2023-10-03 Thread Devon McCormick
You can see how Raul's 2nd example, where he does not add 2, has fewer correct digits than the one where he does not add it because adding 2 gives you two more useful terms, as he mentions. On Tue, Oct 3, 2023 at 7:35 AM Raul Miller wrote: > A couple notes here: > > One is that 0j18":Y will give

Re: [Jprogramming] Alternating sequences

2023-10-03 Thread Raul Miller
A couple notes here: One is that 0j18":Y will give you 18 places after the decimal point regardless of the magnitude of Y Another is that we can inspect intermediate results in the expression %-/%!2+x:i.x Let's try that here with smaller values for x (and leaving out the x: so that we're using f