Right!  u Area  returns
abscissa, area
That, along with incorrectly placed parens were errors.
I'll replace the 1 dimensional amoeba with Brent's method,
relax the tolerances, and see what happens.  But not now.
Thank you!

NB. don't do this!  too much output.
cubic =: (p.&([smoutput)~ _4&{.)~

(-@:{:@:(cubic Area) amoeba (<10)) 4 3 ?@$0


> Date: Sat, 23 Feb 2013 19:30:51 -0500
> From: Henry Rich <henryhr...@nc.rr.com>
> To: programm...@jsoftware.com
> Subject: Re: [Jprogramming] The farmer's fence
> Message-ID: <51295f3b.5000...@nc.rr.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> In amoeba, minindx comes from
> 
> minindx =. tryerr i. minval =. <./ tryerr =. uverb simptry
> 
> which should be bulletproof if uverb returns a scalar.  You could try 
> putting something like
> 
> assert. (,3) -: $tryerr
> 
> after that line to see if uverb is returning junk.  (It's not clear
> to 
> me that Area returns a scalar).
> 
> untested.


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to