Ask Your Question

Convenient Truth's profile - activity

2016-08-18 03:31:41 -0600 received badge  Student (source)
2016-08-12 13:55:40 -0600 received badge  Famous Question (source)
2015-11-04 20:12:55 -0600 received badge  Notable Question (source)
2015-03-28 03:57:11 -0600 received badge  Popular Question (source)
2013-04-01 11:03:04 -0600 received badge  Scholar (source)
2013-04-01 11:03:04 -0600 marked best answer Coordinate Transforms

You can define functions to act as transformations:

T(r,theta) = (r*sin(theta), r*cos(theta))

and then just use them as normal functions: T(2,pi/2)

Also, you can pass an arbitrary 3d transformation to 3d plots using the transformation keyword. See the examples in the plot3d documentation. See also the builtin Spherical and Cylindrical transformations, or even the spherical_plot3d or cylindrical_plot3d functions.

It would be cool to have a transformation module that defines a bunch of transformations for convenience.

2013-03-31 13:04:28 -0600 asked a question Coordinate Transforms

Is there something in sage that does the same thing that CoordinateTransform and TransformedField in Mathematica 9 ?

The idea is that CoordinateTransform is given some coordinates, e.g. (r,th) and asked to transform them from "polar" to "cartesian", thus gives the expression of the cartesian coordinates in terms of the polar coordinates, e.g.

(x(r,th), y(r,th)) = (r*cos(th), r*sin(th))

Obvioulsly, it also works with other coordinates systems.

TransformedField makes the transformation between a scalar, vector, or tensor field in, say, cartesian coordinates, to spherical coordinates.

These actions are not very complicated, nor difficult to implement when needed, but they are also very common.

Thanks.

references :