Loading [MathJax]/jax/output/HTML-CSS/jax.js

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is matrix calculus possible within sagemath?

For example, is it possible to compute the following partial derivative in Sagemath:

Aij=eij(x)xi=(RTijRTiRTijRTiθi(tjti)0T1)

for

eij(x)=(RTij(RTi(tjti)tij)θjθiθij)

and

xTi=(tTi,θi) zTij=(tTij,θij)

The background shouldn't be important, but just for completeness: this example is an excerpt from Robotics, especially the problem of Pose Graph Simultaneous Mapping and Localization. xi defines a pose in R2 with translation ti and rotation angle θi, zij defines a transform between two poses and eij(x) defines the error between two poses, i.e. a transform between them.