Re: [Jprogramming] Bayesian links

2016-03-28 Thread Ian Clark
You're welcome, Devon. I've quite forgotten I'd done that. I recognise the article, now I see it again. A bit of a Bayesian myself, I must have repaired it because I remember thinking at the time what a good intro to Bayesianism it was, with applications to human factors topics I was deeply into t

[Jprogramming] Bayesian links

2016-03-28 Thread Devon McCormick
Hi - I've put up some links relating to my recent talk introducing Bayesian statistics - http://www.sigapl.org/BayesianLinks.php . Thanks to Ian Clark for reviving my old APL essay on this ( http://code.jsoftware.com/wiki/User:Devon_McCormick/DynamicLinearModels/BayesianFinancialDynamicLinearModel

Re: [Jprogramming] Writing a dyadic verb

2016-03-28 Thread Raul Miller
5 -: +/&.:*: 3 4 1 5 (-: +/&.:*:) 3 4 1 isRightTriange=: (-: +/&.:*:)~ 3 4 isRightTriangle 5 1 Or, if you didn't mind using the other order, isrt=: -: +/&.:*: 5 isrt 3 4 1 Thanks, -- Raul On Mon, Mar 28, 2016 at 4:26 PM, Adam Tornhill wrote: > I'm moving on to learn J and t

Re: [Jprogramming] Writing a dyadic verb

2016-03-28 Thread Ric Sherlock
One option is to use a dyadic hook (rather than 5 (= +/)&:*: 3 4 If you want to use the same argument order as before: 3 4 (= +/)&:*:~ 5 Another option would be not to separate the triangle sides: isRightTri=: ({: = +/@:}:)@:*:@/:~"1 isRightTri 3 4 5 , 5 9 6 ,: 5 16 20 1 0 0 On Tue, Mar 29,

Re: [Jprogramming] Writing a dyadic verb

2016-03-28 Thread Don Guinn
When the same thing needs to be done to both the left and right arguments & and similar conjunctions can do the job. isRightTriangle =: =/&([:+/*:) 3 4 isRightTriangle 5 1 On Mon, Mar 28, 2016 at 2:26 PM, Adam Tornhill wrote: > I'm moving on to learn J and try to get some practical exerci

[Jprogramming] Writing a dyadic verb

2016-03-28 Thread Adam Tornhill
I'm moving on to learn J and try to get some practical exercise by working though problems from the Dyalog APL competition. One of the simpler problems is to write a verb that determines if the given legs of a triangle (left argument) and its hypotenuse (right argument) represent a right triang

Re: [Jprogramming] Adverbial Tacit Jym

2016-03-28 Thread Jose Mario Quintana
Thanks again! On Mon, Mar 28, 2016 at 10:08 AM, roger stokes wrote: > Pepe (and anyone else interested) > > Here is a version of the J Introduction and > Dictionary for J7 dated 1993. It is at > > www.learningj.com/JDOC1993.zip > > The Dictionary is complete but the Introduction has only a

Re: [Jprogramming] Adverbial Tacit Jym

2016-03-28 Thread roger stokes
Pepe (and anyone else interested) Here is a version of the J Introduction and Dictionary for J7 dated 1993. It is at www.learningj.com/JDOC1993.zip The Dictionary is complete but the Introduction has only a few pages at present. Size is 47Mb. Each page is a jpeg, readable I hope, though I