Re: Retaining variable/function expressions from session to session

*To*: mathgroup at smc.vnet.net*Subject*: [mg63431] Re: [mg63416] Retaining variable/function expressions from session to session*From*: "David Park" <djmp at earthlink.net>*Date*: Sat, 31 Dec 2005 06:40:28 -0500 (EST)*Sender*: owner-wri-mathgroup at wolfram.com

Charles, I don't see why it is odd that Mathematica forgets assignments at the end of a session. Otherwise, everytime you started Mathematica it would be filled with all kinds of definitions you had no use for. In any case, why not put an Initialization Section at the top of your notebook and put all of these definitions there. Make them Initialization cells and when you first save the notebook DON'T create an AutoSave Package. Then, everytime you open the notebook and start to work in it, these initialization definitions will automatically be evaluated. If some of them are the result of long calculations you may want to do the calculation once and copy the result to a new definition and put that in the Initialization section. David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ From: Charles Ashley [mailto:cka2 at adelphia.net] To: mathgroup at smc.vnet.net Hi, Is it possible to have variables and functions retain their assigned expressions from session to session? I'm working on a problem that consists of a dozen variables and it seems odd that Mathematica "forgets" the expression that I've assigned to each variable when I close out of a session. To date my solution has just been to "remind" Mathematica of the assigned expression by reevaluating it each time I start a new session, but there must be a better way. Thanks Charles Ashley cka2 at adelphia.net