Re: Including Functions and Variables from another Notebook
- To: mathgroup at smc.vnet.net
- Subject: [mg6819] Re: [mg6786] Including Functions and Variables from another Notebook
- From: penny at suu.edu (Des Penny)
- Date: Mon, 21 Apr 1997 02:02:52 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
>Hello, > >Can someone tell me how to include functions and variables from another >notebook? I have written a notebook that contains functions that detemine >pure component thermodynamic properties given certain parameters, ie: heat >capacity, vapor pressure, etc. Now I want to use those functions and apply >them to a new notebook that models vapor liquid equilibrium. I want to use >these functions with out cutting and pasting cells into my new notebook. > >Thanks, > >Rick Sprague Hi Rick: You need to write a package. Save your package as "Filename.m". Read in your package to your working notebook with Needs["Filename`"]. Writing packages takes some study. A good reference is: Programming in Mathematica, 3rd Ed, Roman Maeder. Cheers, Des Penny ------------------------------- Des Penny Physical Science Dept. Southern Utah University Cedar City, UT 84720 VOICE: (Office): (801) 586-7708 (Home) : (801) 586-2286 FAX: (801) 865-8051 e-mail: penny at suu.edu -------------------------------