12.07.2015 Views

Learning Guide Learning Guide

Learning Guide Learning Guide

Learning Guide Learning Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.4 Polynomials • 59should the polynomial contain only one unknown, x, then the termsmight contain x 3 , x 1 = x, and x 0 = 1 as in the case of the polynomialx 3 − 2x + 1. If more than one unknown exists, then a term may alsocontain a product of the unknowns, as in the polynomial x 3 + 3x 2 y + y 2 .Coefficients can be integers (as in the previous examples), rational numbers,irrational numbers, floating-point numbers, complex numbers, orother variables.> x^2 - 1;x 2 − 1> x + y + z;x + y + z> 1/2*x^2 - sqrt(3)*x - 1/3;12 x2 − √ 3 x − 1 3> (1 - I)*x + 3 + 4*I;(1 − I) x + 3 + 4 I> a*x^4 + b*x^3 + c*x^2 + d*x + f;a x 4 + b x 3 + c x 2 + d x + fMaple possesses commands for many kinds of manipulations andmathematical calculations with polynomials. The following sections investigatesome of them.Sorting and CollectingThe sort command arranges a polynomial into descending order of powersof the unknowns. Rather than making another copy of the polynomialwith the terms in order, sort modifies the way Maple stores the originalpolynomial in memory. In other words, if you display your polynomialafter sorting it, you will find that it retains the new order.> sort_poly := x + x^2 - x^3 + 1 - x^4;

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

Saved successfully!

Ooh no, something went wrong!