nc_multiply function
The noncommutative product: multiplies quaternions in order, and anything else stays as written.
How to write it
nc_multiply(a, b, ...)
There is no ** in the language.
- a
- A quaternion, such as quaternion(0, 1, 0, 0). Takes an expression.
- b
- A quaternion. Takes an expression.
Examples
nc_multiply(quaternion(0, 1, 0, 0), quaternion(0, 0, 1, 0))In the solver,
Open in the solvernc_multiply(quaternion(0, 1, 0, 0), quaternion(0, 0, 1, 0))givesquaternion(0, 0, 0, 1).
Related functions
- numerator
Numerator of a fraction.
- minimal_polynomial
Minimal polynomial of an algebraic number over the rationals.
- polynomial_gcd
Greatest common divisor of two polynomials.
- groebner_basis
Groebner basis of a list of polynomials.
- polynomial_lcm
Least common multiple of two polynomials.
- function_expand
Rewrite special functions of shifted arguments in terms of simpler ones.