1 | initial version |
It is convenient to keep equations in the form expression == 0
and furthermore functions dealing with equations will typically understand a given expression as an equation of that form. Hence, you can avoid using ==
in favor of using the difference between the lhs and rhs:
eq_a = diff(r_a, t) - v0*(r_b - r_a)/(r_b - r_a).norm()
If you still want to get explicit equations with ==
from the above vector - here is a way:
eq_a_eq = [eq==0 for eq in eq_a]