Re: Coordinate conversion with Grad
- To: mathgroup at smc.vnet.net
- Subject: [mg75892] Re: Coordinate conversion with Grad
- From: CKWong.P at gmail.com
- Date: Sun, 13 May 2007 05:36:33 -0400 (EDT)
- References: <f23pvb$nqd$1@smc.vnet.net>
Gradients are 1-forms (covariant vectors). The Jacobian provided by Mathematica needs to be twiddled since it deals with r d \[Theta] instead of d \[Theta]. << Calculus`VectorAnalysis`; SetCoordinates[ Cylindrical ] v = Grad[ Cos[Ttheta] ] J = JacobianMatrix[ ].DiagonalMatrix[{1, 1/Rr, 1}]; J.v