I would like to apply a coordinate transformation, visualised as an action on a two-dimensional grid like


The particular example above is $$x^\mu \mapsto \frac{x^\mu - b^\mu x^2}{1-b\cdot x+ b^2 x^2}.$$


If you want a point-to-point transformation:

f[x_: List, b_: List] := (x - b (x.x))/(1 + (b.x) + (b.b) (x.x));

myinput = DeleteDuplicates@
   Flatten[Union[Table[{i, j}, {i, 0, 10, 1}, {j, 0, 10, .01}], 
     Table[{i, j}, {i, 0, 10, .011}, {j, 0, 10, 1}]], 1];


enter image description here

ListPlot[f[#, {.5, .1}] & /@ myinput]

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.