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× 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× Ddot 1 (4) > > > > 3 > > > > > > NB. So far, so good. But now: > > > > > > times =: 4 : 0 > > > > res =: x * y > > > > res > > > > ) > > > > 3× 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
