Skip to contents

get_w(R, t) returns the angular velocity w of a 3 by 3 rotation matrix R of time dependent expressions, from R and its derivative D(R): w = (R[3, ] . D(R)[2, ], -R[3, ] . D(R)[1, ], R[2, ] . D(R)[1, ]).

Usage

get_w(R, t)

Arguments

R

A 3 by 3 matrix (a list matrix of expressions or a symbolic matrix).

t

The independent variable.

Value

A list of three expressions.

Examples

t <- t_nounits
th <- Variable("th", t)
R <- matrix(list(cos(th), sin(th), 0, -sin(th), cos(th), 0, 0, 0, 1), 3, 3)
get_w(R, t)[[3]]
#> -sin(th(t))^2*Derivative(th(t), t) - cos(th(t))^2*Derivative(th(t), t)