New answers tagged coordinate-transformation
7
ClearAll[f]
f[x0_, y0_] := D[{Sqrt[x^2 + y^2], ArcTan[x, y]}, {{x, y}}] /. {x -> x0, y -> y0}
f[0.3, 0.5] // MatrixForm
I would caution you against using MatrixForm in the definition, as that would leave you with results that cannot be easily used in further computation.
1
You can write something like
f[{r_, θ_}] :=
Module[{M = D[{Sqrt[x^2 + y^2], ArcTan[x, y]}, {{x, y}}]},
Block[{x = r Cos[θ], y = r Sin[θ]}, M]]
I wouldn't be surprised if this has a slightly simpler formulation. The symbolic result agrees with what I expect:
Assuming[r > 0, Simplify[f[{r, θ}]]]
(* {{Cos[θ], Sin[θ]}, {-(Sin[θ]/r), Cos[θ]/r}} *)
...
Top 50 recent answers are included
Related Tags
coordinate-transformation × 131plotting × 39
calculus-and-analysis × 13
geometric-transform × 13
differential-equations × 12
image-processing × 10
vector-calculus × 9
matrix × 6
geometry × 6
rotation × 6
equation-solving × 5
graphics3d × 5
symbolic × 5
vector × 5
graphics × 4
regions × 4
parametric-functions × 4
image × 3
function-construction × 2
bugs × 2
probability-or-statistics × 2
linear-algebra × 2
error × 2
random × 2
computational-geometry × 2