[sympy] solving for Euler angles

2019-12-11 Thread Sebastian Luque
Hello, I'm learning Sympy and trying to replicate a solution for the Euler pitch and roll angles as described in a well-known Application Note: https://cache.freescale.com/files/sensors/doc/app_note/AN3461.pdf In particular, Equations 24 through 26. Here's the set up matching the reference fram

[sympy] latex print system of equations

2017-02-17 Thread Sebastian Luque
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)*

Re: [sympy] factoring matrix

2017-02-15 Thread Sebastian Luque
Brilliant! Thank you. On Wednesday, February 15, 2017 at 3:35:24 PM UTC-6, Jason Moore wrote: > > If you take the Jacobian with respect to your b vector I think you should > get A. > > > Jason > moorepants.info > +01 530-601-9791 > > On Wed, Feb 15, 2017 at 1:1

[sympy] factoring matrix

2017-02-15 Thread Sebastian Luque
Hello, I'm trying to work out the derivation of the relationship between Euler angle rates in terms of Euler angles and angular rates in body frame (e.g. http://dma.ing.uniroma1.it/users/lss_da/MATERIALE/Textbook.pdf section 1.2.2). I have developed this for the so-called "Tait-Bryant" rotation a