On 10 Dec 2006 at 17:00, June Kim said:

> http://acm.uva.es/p/v1/107.html
> 
> Interesting problem to solve, particularly in J, thanks to its
> array-orientedness. You'll need some sort of efficient scheme for
> finding the root of transcendental equations.
> 
> I'm all eyes and ears for your solutions!

   Cat=:3 : 0
k =. +./+./ _ q: y
'H W' =. x: k %: y
(+/ W ^ i.k),(W^i.>:k)+/ .*H^i.->:k
)

   Cat 216 125
31 671
   Cat 5764801 1679616
335923 30275911
   Cat 3486784401 1073741824
153391689 22791125017

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

Reply via email to