By the way, what are the differences between sympy.vector and
sympy.physics.vector ?  Why two different modules?

Davide.


Il giorno ven 13 ago 2021 alle ore 15:06 Davide Sandona' <
sandona.dav...@gmail.com> ha scritto:

> 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?
>>
>
> As of now, that's not possible. It is hard-coded and it only represents
> cartesian unit vectors [1]
>
> As per the SO question, I don't think SymPy is currently able to do that.
>
> So far, I found the vector module difficult and not trivial to use. There
> was another question about this module a few months ago, about the
> difficulty to interact with it. I think we should open a discussion on
> Github, collecting examples that don't work and examples that could be
> improved (in terms of user experience) in order to improve our
> comprehension of what needs to be fixed, eventually preparing the way for a
> future GSoC.
>
> [1]
> https://github.com/sympy/sympy/blob/master/sympy/vector/coordsysrect.py#L180
> Davide.
>
>
> Il giorno ven 13 ago 2021 alle ore 14:20 Oscar Benjamin <
> oscar.j.benja...@gmail.com> ha scritto:
>
>> 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 sympy+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sympy/CAHVvXxQeGu9q_i5YsCKCrevjSyOMQU49cdzHA2kG2PArXX0%3Dfg%40mail.gmail.com
>> .
>>
>

-- 
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 sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAO%3D1Z09zAzQ%3DgW%2BWA7MZQj8njtp8sE0aw%2BYn3%2B-fCKK%3Dd0PQkw%40mail.gmail.com.

Reply via email to