Skip to main content

Not a complete answer by any means but if you are new to Compile I highly recommend that you read the tutorial on the Mathematica compiler. It is very useful.

Andy Ross
  • 19.5k
  • 2
  • 62
  • 93