How does Mathematica implement ShearingMatrix
?
In other words given the parameters $\theta$, $n$ and $v$, what is the formula behind it?
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityHow does Mathematica implement ShearingMatrix
?
In other words given the parameters $\theta$, $n$ and $v$, what is the formula behind it?
The code of symbols implemented in top-level can be seen by using PrintDefinitions
.
For ShearingMatrix
, one can evaluate
<<GeneralUtilities`
PrintDefinitions[ShearingMatrix]
and then click on System`TransformConstructorDump`iShearingMatrix
to view the formula used.
PrintDefinitions
is available from version 10.1. For earlier versions of Mathematica, other spelunking tools can be found in this post.
ShearingMatrix
evaluates for symbolic inputs. While it won't display the general formula used, it will show its particular expression for a given dimension. For instance in 2D, one can evaluateShearingMatrix[\[Theta], {u1, u2}, {v1, v2}]
. $\endgroup$<<GeneralUtilities`; PrintDefinitions[ShearingMatrix]
. $\endgroup$PrintDefinitions
is from 10.1. You could have a look there for other spelunking tools. $\endgroup$