Re: Curl and Div problems
- To: mathgroup at smc.vnet.net
- Subject: [mg115514] Re: Curl and Div problems
- From: Peter Pein <petsie at dordos.net>
- Date: Thu, 13 Jan 2011 03:26:58 -0500 (EST)
- References: <igjr0p$928$1@smc.vnet.net>
On 12.01.2011 10:07, sean k wrote: > I'm having problems with VectorAnalysis package. > > Within the documentation center, the package loads and works fine. > > But in a notebook, it seems to highlight Curl in red and neither Div > or Curl works properly. > ... Hi Sean, http://reference.wolfram.com/mathematica/VectorAnalysis/tutorial/VectorAnalysis.html In[1]:= Needs["VectorAnalysis`"] SetCoordinates[Cartesian[x, y, z]]; {D[x^2 y, x] + D[x z, y] + D[x^2 y^3, z]} Div[{x^2 y, x z, x^2 y^3}] Out[3]= {2 x y} Out[4]= 2 x y In[5]:= Curl[{x^2 y, x z, x^2 y^3}] Out[5]= {-x + 3 x^2 y^2, -2 x y^3, -x^2 + z} Peter