| Symbolic Math Toolbox™ |  |
quorem - Symbolic matrix elementwise quotient and remainder
Syntax
[Q,R] = quorem(A,B)
Description
[Q,R] = quorem(A,B) for symbolic
matrices A and B with integer
or polynomial elements does elementwise division of A by B and
returns quotient Q and remainder R so
that A = Q.*B+R. For polynomials, quorem(A,B,x) uses
variable x instead of findsym(A,1) or findsym(B,1).
Example
syms x
p = x^3-2*x+5
[q,r] = quorem(x^5,p)
q = x^2 + 2
r = 4*x - 5*x^2 - 10
[q,r] = quorem(10^5,subs(p,'10'))
q = 101
r = 515
See Also
mod
 | pretty | | rank |  |