I wrote:
> calcCost=: [: +/ *: * 1 < |

The problem here is that it's not the square that
the C program uses but the square of 1-px

So calcCost should be something like

calcCost=: [: +/ [: *: (1-]) * 1 < |

-- 
Raul

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

Reply via email to