Products & Services Solutions Academia Support User Community Company

Learn more about 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 symvar(A,1) or symvar(B,1).

Example

syms x
p = x^3 - 2*x + 5;
[q, r] = quorem(x^5, p)
q =
x^2 + 2

r =
- 5*x^2 + 4*x - 10
[q, r] = quorem(10^5, subs(p,'10'))
q = 101
r = 515

See Also

mod

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS