> On Apr 5, 2017, at 4:33 PM, Jose Mario Quintana 
> <[email protected]> wrote:
> 
>   *: qromb 1 2
> 2.33333
> 
>   ((*: qromb 1 2) * *:) qromb 1 2
> 5.44444
> 
>   coname''
> ┌────┐
> │base│
> └────┘
> 
> 
> I must have missed something.
> 
Try pass in a named verb.

And when I said calling qromb inside of qromb, I wanted to do a 2D integration.
So an integration of the function x*y with x from 0 to 1 and y from 0 to 1 can 
be
   f=:3 :'*&y qromb 0 1'    NB.integrate over x given y
   f qromb 0 1              NB.integrate over y
One should expect the result being 0.25, but don't try this.
The current code can't deal with this kind of recursion.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to