Hello,
I cannot find the proper sympy incantation so that the following system of equations (sy is my alias for sympy:
>>> sy.Eq(omega_e, euler_rates, evaluate=False)
Eq(Matrix([
[ \dot\phi],
[\dot\theta],
[ \dot\psi]]), Matrix([
[\omega_x + \omega_y*sin(\phi)*tan(\theta) + \omega_z*cos(\phi)*tan(\theta)],
[ \omega_y*cos(\phi) - \omega_z*sin(\phi)],
[ \omega_y*sin(\phi)*sec(\theta) + \omega_z*cos(\phi)*sec(\theta)]]))
prints each equation matching matrix elements on the lhs and rhs as LaTeX code in a single statement. It's simple to emit multiple latex statements, but this seems to cumbersome, and also makes it difficult to wrap the entire system of equations into a "array" or "bmatrix" LaTeX environment. Any suggestions welcome.
--
Seb