I would also suggest using matrix expressions for this. The main issue
is that matrix expressions currently don't have a Cross operation. It
wouldn't be too hard to make one by subclassing MatrixExpr. I would
suggest opening an issue about this.
The diff thing is another issue because currently there isn't a way to
represent functions in the matrix expressions
https://github.com/sympy/sympy/issues/5855
https://github.com/sympy/sympy/issues/19265
Aaron Meurer
On Sat, Jul 19, 2025 at 1:24 AM Jason Moore <
moore...@gmail.com> wrote:
>
> I do not think there is a VectorSymbol type of object. If there was you could imagine doing things like:
>
> R = VectorSymbol('R', 3)
> r = VectorSymbol('r', 3)
> R.diff(t).cross(r.diff(t))
>
> We do have a MatrixSymbol object that may do what you desire. You can create nx1 column matrices and then do such operations.
>
> Jason
>
moorepants.info
> +01
530-601-9791
>
>
> On Thu, May 29, 2025 at 11:28 PM Frank Senkel <
frank....@gmail.com> wrote:
>>
>> Does sympy handle vector expressions vs instances of specific vectors?..so AxBxC vs [a1,a2,a3] x [b1, b2, b3]...something like this.
>>
> To view this discussion visit
https://groups.google.com/d/msgid/sympy/CAP7f1AiS2juGowfs0%3DYQcyR4mgaDZsHjRoZtwXAWEToi2r8nvg%40mail.gmail.com.