Re: How to write a package?
- To: mathgroup at smc.vnet.net
- Subject: [mg30263] Re: How to write a package?
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Sat, 4 Aug 2001 01:14:29 -0400 (EDT)
- References: <firstname.lastname@example.org>
- Sender: owner-wri-mathgroup at wolfram.com
Oliver, 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 --------------------- Allan Hayes Mathematica Training and Consulting Leicester UK www.haystack.demon.co.uk hay at haystack.demon.co.uk Voice: +44 (0)116 271 4198 Fax: +44 (0)870 164 0565 "Oliver Friedrich" <oliver.friedrich at tz-mikroelektronik.de> wrote in message news:9kdb48$f13$1 at smc.vnet.net... > Hallo NG, > > I'm running Mathematica 3.0 on NT4.0 > > I wrote a package using the Collatz example in the Mathematica book chapter > 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 write > packages? To me the procedure is a bit strange, although it works. Any > opinions? > > Oliver Friedrich > >