Hi all,

Does anyone know how to use cylindrical polars with SymPy's vector module?

I just saw this SO question here:
https://stackoverflow.com/questions/68767945/how-do-i-work-with-vectors-in-cylindrical-and-spherical-systems-with-sympy

We can define a coordinate system like this:

In [25]: from sympy.vector import CoordSys3D
    ...:
    ...: N = CoordSys3D('N', transformation='cylindrical')

In [26]: N.base_scalars()
Out[26]: (r_N, theta_N, z_N)

In [27]: N.base_vectors()
Out[27]: (i_N, j_N, k_N)

Although the scalars are r, theta and z the unit vectors are i, j and
k. How would I get vectors like e_r and e_theta to work with those?

Oscar

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAHVvXxQeGu9q_i5YsCKCrevjSyOMQU49cdzHA2kG2PArXX0%3Dfg%40mail.gmail.com.

Reply via email to