[Jprogramming] Alternating sequences

2023-10-03 Thread Richard Donovan
After watching a math video on YouTube I started to investigate the implementation of alternating sequences in J. Using the site search function, (alternating sequences site:jsoftware.com) I discovered an entry in the NYCJUG of 2022-11-08 which contains an excellent example: calce=: 13 :

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

[Jprogramming] broken taraxml?

2023-10-03 Thread jph . butler
Hello, I have been reactiving some old code of mine and it seems that taraxml is now broken.     load'tables/taraxml'     load'~addons\tables\taraxml\test\test.ijs' readxlxsheets: worksheet not found |assertion failure: assert | assert x12-:readxlxsheets fnme |[-47] c:\program files\j9.4\addons

Re: [Jprogramming] broken taraxml?

2023-10-03 Thread bill lam
Apparently it requires the msxml.exe for working on windows. Please try download and install the msxml package from the net. On Tue, Oct 3, 2023 at 8:54 PM wrote: > Hello, > > > I have been reactiving some old code of mine and it seems that taraxml is > now broken. > > load'tables/taraxml' >

Re: [Jprogramming] broken taraxml?

2023-10-03 Thread jph . butler
I failed to read the installation instructions in the manifest, and need to add the correct xslt tools... De : jph.but...@mailoo.org À : programm...@jsoftware.com Sujet : [Jprogramming] broken taraxml? Date : 03/10/2023 14:54:00 Europe/Paris Hello, I have been reactiving some old code of mine

Re: [Jprogramming] broken taraxml?

2023-10-03 Thread jph . butler
Hi Bill, It works fine with the dependencies installed! However, there are some security issues because the two components needed (dll + exe) have been retired by Microsoft and can now only be obtained from generic software download sites. The linux side failure was just an issue with a

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 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