Re: elementary questio about packages
- To: mathgroup at smc.vnet.net
- Subject: [mg108253] Re: [mg108238] elementary questio about packages
- From: becko BECKO <becko565 at hotmail.com>
- Date: Fri, 12 Mar 2010 07:07:14 -0500 (EST)
- References: <201003111137.GAA06115@smc.vnet.net>
Whenever you declare a function in a package that uses some temporary variables, you should use Module to declare those variables. If this does not help, perhaps you should post some code so that the guys here can see where the problem is. > Date: Thu, 11 Mar 2010 06:37:35 -0500 > From: fgutiers2002 at yahoo.com > Subject: [mg108238] elementary questio about packages > To: mathgroup at smc.vnet.net > > Dear List: > I made a package with a function that has a minimization. The minimization > returns, as should be, the value of the optimization, and then the values > of the variables, in the form {z1->10,z2->20,z3->50}. > > In the notebook, this works perfectly well. In the package, however, the function throws back the variables in the form {contextname`z1->10,contextname`z2->20}. > This is obnoxious, and makes the result much harder to utilize. How can I avoid this? I tried deleting > Begin["`Private`"], but then I got a completely crazy result. > What should I do? > Fg
- References:
- elementary questio about packages
- From: Francisco Gutierrez <fgutiers2002@yahoo.com>
- elementary questio about packages