@sym
: mrdivide (x, y) ¶@sym
: x / y ¶Forward slash division of symbolic expressions.
Example:
A = sym([1 pi; 3 4]) ⇒ A = (sym 2×2 matrix) ⎡1 π⎤ ⎢ ⎥ ⎣3 4⎦ A / 2 ⇒ ans = (sym 2×2 matrix) ⎡ π⎤ ⎢1/2 ─⎥ ⎢ 2⎥ ⎢ ⎥ ⎣3/2 2⎦
The forward slash notation can be used to solve systems
of the form A⋅B = C using A = C / B
:
B = sym([1 0; 1 2]); C = A*B ⇒ C = (sym 2×2 matrix) ⎡1 + π 2⋅π⎤ ⎢ ⎥ ⎣ 7 8 ⎦ C / B ⇒ ans = (sym 2×2 matrix) ⎡1 π⎤ ⎢ ⎥ ⎣3 4⎦ C * inv(B) ⇒ ans = (sym 2×2 matrix) ⎡1 π⎤ ⎢ ⎥ ⎣3 4⎦
See also: @sym/rdivide, @sym/mldivide.
Package: symbolic