Re: [Jprogramming] Bug in Calculus

2021-02-07 Thread Devon McCormick
I added this on to the change I just made to derivsecant to allow extended precision. On Sun, Feb 7, 2021 at 11:01 PM Ben Gorte wrote: > Hi, > Sorry for coming in late ... While editing calculus.ijs, could someone > please replace ". by (0!:100) at line 102? > That allows pderiv_jcalculus_ to h

Re: [Jprogramming] Bug in Calculus

2021-02-07 Thread Ben Gorte
Hi, Sorry for coming in late ... While editing calculus.ijs, could someone please replace ". by (0!:100) at line 102? That allows pderiv_jcalculus_ to handle multi-line verbs (user's functions), as suggested by Raul in https://www.jsoftware.com/pipermail/beta/2019-October/009456.html . Thanks,

Re: [Jprogramming] Bug in Calculus

2021-02-07 Thread 'Mike Day' via Programming
Assuming what I can now see is the latest version, line 174 still looks wrong: if. coeffs=. -: '' do. '0&p.' return. should be if. coeffs -: '' do. '0&p.' return. ... but perhaps that’s already been done in another incarnation. Cheers, Mike Sent from my iPad > On 7 Feb 2021, at 15:18, chr

Re: [Jprogramming] Bug in Calculus

2021-02-07 Thread chris burke
Thanks, the addon is updated now. On Sun, Feb 7, 2021 at 6:13 AM 'Jon Hough' via Programming wrote: > > Mike, thanks. I noticed I missed that out too. > > I have added fexp and merged. > > Thanks, > Jon > On Sunday, February 7, 2021, 09:19:56 PM GMT+9, 'Michael Day' via > Programming wrot

Re: [Jprogramming] Bug in Calculus

2021-02-07 Thread 'Jon Hough' via Programming
Mike, thanks. I noticed I missed that out too. I have added fexp and merged. Thanks, Jon On Sunday, February 7, 2021, 09:19:56 PM GMT+9, 'Michael Day' via Programming wrote: For interest,  I had a look at the changes in the script. I tried both derivatives,  and both failed in diffe

Re: [Jprogramming] Bug in Calculus

2021-02-07 Thread 'Jon Hough' via Programming
Thanks Chris. You are correct, I forgot to add a verb, fexp, which is needed. I have added it and merged. Thanks, Jon On Sunday, February 7, 2021, 12:50:26 AM GMT+9, chris burke wrote: Jon The source forum is intended for the J engine, rather than the addons. I have merged in your

Re: [Jprogramming] Bug in Calculus

2021-02-07 Thread 'Michael Day' via Programming
For interest,  I had a look at the changes in the script. I tried both derivatives,  and both failed in different ways: a)  polynomials using p. :    (1 2 3 & p. ) deriv 1   NB. result should be 2 6&p. 0&p.    (0 & p. ) deriv 1  NB. ok! 0&p. b)   f() ^ h()    (*: ^ *:) deriv 1 |domain error: der

Re: [Jprogramming] Bug in Calculus

2021-02-06 Thread chris burke
Jon The source forum is intended for the J engine, rather than the addons. I have merged in your pull request and added you to the math/calculus repository. I got an error when trying the following. Should this work now? ((2&o.)^(1&o.)) deriv 1 |domain error: deriv | 13!:8(3) Thanks.

Re: [Jprogramming] Bug in Calculus

2021-02-06 Thread 'Jon Hough' via Programming
Thanks for the reply. I am still not entirely sure how to get authorized to edit the github repository for calculus. Perhaps I should just request access from Chris Burke? Thanks, Jon On Friday, February 5, 2021, 11:02:18 PM GMT+9, Henry Rich wrote: Nobody 'owns' this addon.  You ca

Re: [Jprogramming] Bug in Calculus

2021-02-05 Thread Henry Rich
Nobody 'owns' this addon.  You can go to GitHub, check it out, and update it.  Make sure you update the Manifest. Info on how to access the addons is at https://code.jsoftware.com/wiki/JAL/User_Guide The Git subpage for that says that Jsoftware may need to authorize you to edit.  Chris Burke

[Jprogramming] Bug in Calculus

2021-02-04 Thread 'Jon Hough' via Programming
I wrote a bug report and fix in the source chat a couple of weeks ago. There was no response, so I guess I wrote in the wrong chat. The calculus addon script has one glaring issue, and one small issue with an easy fix. The glaring issue is the inability to differentiate the constant zero functi