Polynomials

Description

Sage can be used to multiply and factor polynomials. Suppose that $p(x)= x^2 -4x +3$ and $q(x) = 3x^2 - x + 5$.

Sage Cell

Code

p(x) = x^2 -4*x + 3
q(x) = 3*x^2 - x + 5
g(x) = p(x)*q(x)
g(x)

Options

Option

Products of polynomials can be expanded.

Code

p(x) = x^2 -4*x + 3
q(x) = 3*x^2 - x + 5
g(x) = p(x)*q(x)
g.expand()

Option

Polynomials can be factored.

Code

g(x) = 3*x^4 - 13*x^3 + 18*x^2 - 23*x + 15
g.factor()

Tags

Primary Tags: college algebra, basic algebra commands

Secondary Tags: polynomials

Related Cells

Attribute

Permalink:

Author: T. W. Judson

Date: 09 Apr 2018 15:27

Submitted by: Tom Judson

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License