MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Mathematica writing style

  • To: mathgroup at
  • Subject: [mg18944] Re: Mathematica writing style
  • From: tburton at (Tom Burton)
  • Date: Fri, 30 Jul 1999 01:33:39 -0400
  • Organization: Brahea, Inc.
  • References: <7ni8bb$>
  • Sender: owner-wri-mathgroup at

On 26 Jul 1999 14:10:51 -0400, in comp.soft-sys.math.mathematica you

>It seems that Mathematica is great for writing small programs,
>but things get difficult with larger programs because of lack of


I second the comment that large modules are clumsy (and often slower to
execute) in Mathematica; try to break them up.

When I first began to write relatively large applications in
Mathematica, I got in trouble with programming errors that prevented the
evaluation of one or more expressions. Such an error can grow quickly
into a huge symbolic expression if not stopped. I learned to put
"firebreaks" in strategic places in the form of argument lists that
accept only numbers: _Integer, _Real, _Complex, _?NumberQ, ?NumbericQ,

I've written and used extensively a small set of monitoring routines

(1) maintain the current call stack (so you know what function was
executing before an Abort), and

(2) keep statitics of number of calls and total Timing.

If it might help, I would be glad to send them to you.

Tom Burton

  • Prev by Date: Re: saving a list.
  • Next by Date: Re: v4.0 bug???
  • Previous by thread: Re: Mathematica writing style
  • Next by thread: saving a list.