11.07.2015 Views

Maple 9 Learning Guide - Maplesoft

Maple 9 Learning Guide - Maplesoft

Maple 9 Learning Guide - Maplesoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.4 Polynomials • 61> sort(mul_var_poly, [x,y]);x 2 y 2 + x 3 + y 3> sort(mul_var_poly, [x,y], ’plex’);x 3 + x 2 y 2 + y 3The collect command groups coefficients of like powers in a polynomial.For example, if the terms ax and bx are in a polynomial, <strong>Maple</strong>collects them as (a + b)x.> big_poly:=x*y + z*x*y + y*x^2 - z*y*x^2 + x + z*x;big_poly := x y + z x y + y x 2 − z y x 2 + x + z x> collect(big_poly, x);(y − z y) x 2 + (y + z y + 1 + z) x> collect(big_poly, z);(x y − y x 2 + x) z + x y + y x 2 + xMathematical OperationsYou can perform many mathematical operations on polynomials. Amongthe most fundamental is division, that is, to divide one polynomial intoanother and determine the quotient and remainder. <strong>Maple</strong> provides thecommands rem and quo to find the remainder and quotient of a polynomialdivision.> r := rem(x^3+x+1, x^2+x+1, x);r := 2 + x> q := quo(x^3+x+1, x^2+x+1, x);q := x − 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!