MathGroup Archive 2003

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

Search the Archive

Getting rid of syntactical sugar

  • To: mathgroup at smc.vnet.net
  • Subject: [mg41818] Getting rid of syntactical sugar
  • From: Emilio Martin-Serrano <EMartinSerrano at houston.sns.slb.com>
  • Date: Fri, 6 Jun 2003 09:50:48 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Group,

In the package, say, *PVectorCalculus*,  stored in the folder *Personal*, I 
have a function  called *CriticalPoints*.

When asking for the definition of that function by using

??CriticalPoints

I get:

 >CriticalPoints[func,vars] computes the critical points of ....

 >CriticalPoints [Personal`PVectorCalulus` 
Private`f_,Personal`PVectorCalculus`Private`vars_List]:= 
Solve[EqSystem[Grad[Personal` 
`PVectorCalculus`Private`f,`PVectorCalculus`Private`vars]],`PVectorCalculus`Private`vars]

Where every 'variable'  is attached to *Personal`PVectorCalulus` Private`* 
yielding a definition  difficult to read.

For clarity, I would preferred to have

 >CriticalPoints [f_,vars_List]:= Solve[EqSystem[Grad[f,vars]],vars]

Getting rid of  *Personal`PVectorCalulus` Private`*

Any clue?




___________________________________

Emilio Martin-Serrano
1325 South Dairy Ashford Road
Houston, TX  77077
Tel. +1 (281) 285 1223
Fax +1 (281) 285 1626



  • Prev by Date: Re: Re: Big problem in solving radicals.
  • Next by Date: Re: A bug?......In[1]:= Sum[Cos[x], {x, 0, Infinity, Pi}]......Out[1]= 1/2
  • Previous by thread: Re: Taking a function as a parameter of a function
  • Next by thread: RE: Getting rid of syntactical sugar