Symbolic Math Toolbox | ![]() ![]() |
Basic Algebraic Operations
Basic algebraic operations on symbolic objects are the same as operations on MATLAB objects of class double
. This is illustrated in the following example.
The Givens transformation produces a plane rotation through the angle t
. The statements
create this transformation matrix.
Applying the Givens transformation twice should simply be a rotation through twice the angle. The corresponding matrix can be computed by multiplying G
by itself or by raising G
to the second power. Both
uses a trigonometric identity to return the expected form by trying several different identities and picking the one that produces the shortest representation.
The Givens rotation is an orthogonal matrix, so its transpose is its inverse. Confirming this by
![]() | Another Example | Linear Algebraic Operations | ![]() |