Physics Vector Module: Subtract two points to get a vector?

52 views
Skip to first unread message

jj20...@gmail.com

unread,
Sep 7, 2015, 5:40:29 PM9/7/15
to sympy
Is it possibly to subtract two points in the same reference frame and get the relative position vector connecting the two?

Aaron Meurer

unread,
Sep 7, 2015, 5:48:20 PM9/7/15
to sy...@googlegroups.com
What SymPy submodule are you using? There is more than one that has
the notion of point of vector.

Aaron Meurer

On Mon, Sep 7, 2015 at 8:04 AM, <jj20...@gmail.com> wrote:
> Is it possibly to subtract two points in the same reference frame and get
> the relative position vector connecting the two?
>
> --
> 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+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/cb84cbb2-c293-4c6c-ba3f-f6c3bb62e5ba%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

jj20...@gmail.com

unread,
Sep 14, 2015, 8:52:33 AM9/14/15
to sympy
I'm using sympy.physics.mechanics. It seems to use physics.vector.

Sorry I haven't answered in a week. I hadn't set the mail fowarding settings right.

JJ

Sahil Shekhawat

unread,
Sep 14, 2015, 8:58:03 AM9/14/15
to sympy
You can get the relative position vector by "pos_from" method in Point class. Here are the docs http://docs.sympy.org/latest/modules/physics/vector/api/kinematics.html#sympy.physics.vector.point.Point.pos_from
Reply all
Reply to author
Forward
0 new messages