Yes, I added test cases here: https://github.com/jonghough/jsource/blob/master/test/gddot.ijs
The ones added are at the bottom: ((^&_2) d. _1) equ (%&_1@(^&_1)) ((^&_4) d. _1) equ (%&_3@(^&_3)) ((^&_2.5) d. _1) equ (%&_1.5@(^&_1.5)) ((^&_10.65) d. _2) equ (0 _20r193&p.@(%&_8.65@(^&_8.65))) ((^&_10) d. _3) equ (0 _1r9&p.@(0 _1r8&p.@(%&_7@(^&_7)))) ((3&^) d. _1) equ (%&1.09861228866810978@(3&^)) NB. 1.0986... is log(3) m=. ^2 ((m&^) d. _1) equ (%&2@(m&^)) -------------------------------------------- On Mon, 10/2/17, Henry Rich <henryhr...@gmail.com> wrote: Subject: Re: [Jsource] d. fix To: sou...@jsoftware.com Date: Monday, October 2, 2017, 1:16 AM Source code looks good. Do you have testcases? I am just going to cut & paste those lines. That's all you changed, right? Henry Rich On 10/1/2017 10:42 AM, 'Jon Hough' via Source wrote: > I have made a couple of minor edits and added some comments, and J syntax: > https://github.com/jonghough/jsource/blob/master/jsrc/cd.c LINES 281 - 301 > > A couple of points. > > (0&^) d. _1 gives a domain error. Possibly this is unwanted, I mean, it could be considered as a constant since 0^x = 1 in usual understanding, but Wolfram Alpha also has issues with this: > https://www.wolframalpha.com/input/?i=integrate+0%5Ex > > Negative bases for exponentials give complex results. This is mathematically correct, but thought I would mention it anyway. > e.g. > (_2&^) d. _1 > %&0.693147180559945286j3.14159265358979312@(_2&^) NB. correct see: https://www.wolframalpha.com/input/?i=integrate+(-2)%5Ex > > Compare this to current J, where > (_2&^) d. _1 > gives a domain error. > -------------------------------------------- > On Fri, 9/29/17, 'Jon Hough' via Source <sou...@jsoftware.com> wrote: > > Subject: Re: [Jsource] d. fix > To: sou...@jsoftware.com > Date: Friday, September 29, 2017, 12:15 PM > > Sorry Henry, > > I somehow missed this email in my > inbox. > > I will get the fixes you need done this > weekend. > > Regards, > Jon > > -------------------------------------------- > On Mon, 9/25/17, Henry Rich <henryhr...@gmail.com> > wrote: > > Subject: [Jsource] d. fix > To: "'Jon Hough' via Source" <sou...@jsoftware.com> > Date: Monday, September 25, 2017, 1:06 > AM > > John, > > I finally have my PC back and > would > like to get your fix in before > the next build, which is happening > any > day now. However, I have issues > with it: > > 1. Needs commentary. The JE didn't > have much to begin with & that > needs > to improve. So at least put in > enough > commentary that a reader can tell > what you are doing without reading > the > C code. I put in an average of > about one line of comment for each > line > of C. As it stands it will me > more time than I care to spend to > verify that what you are doing is > valid. > > As part of the commentary, translate > those long calls [amp(ds(CDIV...] to > J. > > 2. AT(x)==INT is no good, because > there > may be flags set in more > significant bits of the type. Use > (AT(x)&INT) > > When you respond, send me your new > testcase (gddot, I think) and point > me to the fix, perhaps by simply > sending me the new cd.c. > > hhr > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm --- This email has been checked for viruses by AVG. http://www.avg.com ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm