MathGroup Archive 2001

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

Search the Archive

Re: How to write a package?

  • To: mathgroup at
  • Subject: [mg30263] Re: How to write a package?
  • From: "Allan Hayes" <hay at>
  • Date: Sat, 4 Aug 2001 01:14:29 -0400 (EDT)
  • References: <9kdb48$f13$>
  • Sender: owner-wri-mathgroup at


The way that you describe is fine - it lets you use some front end features.
You could alternatively type directly into a text file or paste your code
into a text file.

Allan Hayes
Mathematica Training and Consulting
Leicester UK
hay at
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

"Oliver Friedrich" <oliver.friedrich at> wrote in message
news:9kdb48$f13$1 at
> Hallo NG,
> I'm running Mathematica 3.0 on NT4.0
> I wrote a package using the Collatz example in the Mathematica book
> 2.6.10 as a template.
> I did it the following way.
> 1. Writing the expressions in one cell in a untitled notebook.
> 2. Switched that cell to be initialization cell.
> 3. Saved special as package format with name package.m (If I didn't switch
> to initialization, Mathematica wrapped two (*  *) around the whole
> expressions.
>  As far as I see, everything works fine. But is this the common way to
> packages? To me the procedure is a bit strange, although it works. Any
> opinions?
> Oliver Friedrich

  • Prev by Date: Re: Pattern matching "on the fly"
  • Next by Date: "Re: Centroid of the Earth's Surface"
  • Previous by thread: How to write a package?
  • Next by thread: Re: Pattern matching "on the fly"