Приведенное ниже выражение выглядит неаккуратно, но все, что нужно знать, это то, что:
- Все переменные имеют тип Символ
- Точечные произведения были сформированы с помощью sp.vector.dot
- Абсолютное значение выполнено с помощью sp.Abs
The issue arises in this second_expression below, where I have simply used first_expression.subs() to sub two Symbols for BaseVectors from the CoordSys3D framework. Namely, the z hat and e_ j symbols from above have been swapped for k_N and j_N respectively shown below.
Issue: The three dot products are not evaluating (and neither is the Abs). Why would it not evaluate when sympy.vector.dot is designated to dot two BaseVectors? (the orthogonal k_N and j_N).
The second expression should look like this when evaluated:
If anyone is willing to help me with this in any way, I would be extremely grateful.
EDIT: This problem has been condensed into a simpler one
Символ замены SymPy для вектора