You are right on both accounts, the location of calculus.ijs and the edit
of line 102.
Now all is fine (I made a mistake at first).

Thanks again,
Ben


On Thu, 10 Oct 2019 at 02:16, Raul Miller <[email protected]> wrote:

> Oh, yes...
>
> 0!:100 is better -- I should have tested.
>
> That said, you should edit addons/math/calculus/calculus.ijs (and that
> worked for me when I edited line 102 and reloaded that script).
>
> I don't even have an addons/math/calculus.ijs so I don't know what
> happened on your system.
>
> Thanks,
>
> --
> Raul
>
>
> On Tue, Oct 8, 2019 at 7:15 PM Ben Gorte <[email protected]> wrote:
> >
> > Thanks. I can see the point of 0!:101 instead of ". , but when I change
> > addons/math/calculus.ijs accordingly (or use 0!:100) I get another error:
> >
> > load 'math/calculus'
> >
> > Ddot =: pderiv_jcalculus_
> >
> >
> >  3&Times Ddot 4(1)
> >
> > |value error
> >
> > | func=.u. derivsecant(n-1)
> >
> >
> > I certainly would not mind to solve this, but I'm afraid I cannot make a
> > sustainable contribution (I have a workaround).
> >
> >
> > Ben
> >
> > On Wed, 9 Oct 2019 at 09:14, Raul Miller <[email protected]> wrote:
> >
> > > Here's a slightly cleaned up variant, and an explanation and a
> > > suggestion...
> > >
> > > require 'math/calculus'
> > > Ddot =: pderiv_jcalculus_
> > >
> > > times =: 4 : 0
> > >   x*y
> > > )
> > >
> > > Times =: 4 : 0
> > >   res =: x * y
> > >   res
> > > )
> > >
> > >
> > > (times) works with Ddot, but (Times) does not.
> > >
> > >    3&times Ddot 1 (4)
> > > 3
> > >    3&Times Ddot 1 (4)
> > > |spelling error
> > > |   Xvcv98df9d =. 3&(4 : 0)
> > >   res =: x * y
> > >   res
> > > )
> > > |                          ^
> > > |       ".'Xvcv98df9d =. ',u
> > >
> > >
> > > The issue is that ". cannot handle multi-line expressions, and while
> > > 5!:5<'times'  (resstg in the caller) is a single line, 5!:5<'TImes' is
> > > not.
> > >
> > > The solution (assuming we want to solve this, but I can't think of any
> > > reason why we would not) would probably be to use 0!:101 instead of ".
> > > here.
> > >
> > > Thanks,
> > >
> > > --
> > > Raul
> > >
> > > On Tue, Oct 8, 2019 at 6:03 PM Ben Gorte <[email protected]> wrote:
> > > >
> > > > Good morning,
> > > >
> > > > It looks like something crept back into math/calculus.
> > > >
> > > > Ddot =: pderiv_jcalculus_
> > > >
> > > >
> > > > times =: 4 : 0
> > > >
> > > > x*y
> > > >
> > > > )
> > > >
> > > >  3&times Ddot 1 (4)
> > > >
> > > > 3
> > > >
> > > >
> > > > NB. So far, so good. But now:
> > > >
> > > >
> > > > times =: 4 : 0
> > > >
> > > > res =: x * y
> > > >
> > > > res
> > > >
> > > > )
> > > >
> > > > 3&times Ddot 1 (4)
> > > >
> > > > |spelling error
> > > >
> > > > | Xvcv98df9d =. 3&(4 : 0)
> > > >
> > > > res =: x * y
> > > >
> > > > res
> > > >
> > > > )
> > > >
> > > > | ^
> > > >
> > > > | ".'Xvcv98df9d =. ',u
> > > >
> > > >
> > > >
> > > > Greetings,
> > > >
> > > > Ben
> > > >
> ----------------------------------------------------------------------
> > > > 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
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to