Mathematica 7 compares to other languages

Xah Lee xahlee at gmail.com
Wed Dec 10 00:11:20 CET 2008


On Dec 8, 5:25 pm, Terry Reedy <tjre... at udel.edu> wrote:
> Lest anyone doubt that problem size is important for comparing program
> run times, consider ...

just in case there's any doubt:

Simply change these lines in Jon's program:

Main[9, 512, 4] to Main[9, 512, 4.]

and it will run faster.

Also, change this line:

 Block[{scene = Create[level, {0, -1, 4}, 1]},

to

 Block[{scene = Create[level, {0., -1., 4.}, 1.]},

will make it faster further. (both of which are in my version. The
“Block” can be replaced with “With”.)

As i said, this error in a Mathematica code in the context of speed is
a major blunder. His denial makes him a stubborn moron.

Reference:

• A Mathematica Optimization Problem
  http://xahlee.org/UnixResource_dir/writ/Mathematica_optimization.html

  Xah
∑ http://xahlee.org/


More information about the Python-list mailing list