Linked list Applications: Polynomial handling. Representing a polynomial using a linked list Store the coefficient and exponent of each term in nodes.

Slides:



Advertisements
Similar presentations
Adding and Subtracting Polynomials Whats a polynomial?
Advertisements

Exponents, Parentheses, and the Order of Operations.
Exponent Rules Practice. Multiplying Monomials Keep the base Add the exponents Multiply Coefficients if you see any.
Homework Read Pages 327, , , , , Page 335: 17, 18, 57, 93 – 97 Page 344: 7, 12, 14, 39, 40, 43 Page 353: 5, 6, 10,
Exponents, Polynomials, and Polynomial Functions.
The Laws of Exponents.
EXPONENTS ORDER OF OPERATIONS MULTIPLYING / DIVIDING POWER OF A POWER POWER OF A PRODUCT POWER OF A QUOTIENT NEGATIVE EXPONENTS.
The Answer is RIGHT.
Exponents. Location of Exponent An exponent is a little number high and to the right of a regular or base number. 3 4 Base Exponent.
Multiplying and Dividing in Scientific Notation
Multiplying and Dividing in Scientific Notation
EXAMPLE 2 Evaluate exponential expressions a. 6 – Product of a power property = 6 0 Add exponents. = 1 Definition of zero exponent = 6 –
 To add numbers in scientific notation: 1) Add the constants 2) Keep the exponent the same  Example: (2.1 x 10 5 ) + (3.2 x 10 5 ) = ( ) x 10.
Scientific Notation. Positive Exponents  10 1 = 10  10 2 = 10X10= 100  10 3 = 10X10X10 = 1000  10 4 = 10X10X10X10 = 10,000.
Do Now 2/22/10 Copy HW in your planner.Copy HW in your planner. –Text p. 557, #4-28 multiples of 4, #32-35 all In your notebook on a new page define the.
Exponents Properties. Warm Up Solve the following equations: 3 = 3x + 1 6x + 7 = 61 5a – 34 = -9.
Negative Exponents SWBAT express powers with negative exponents as decimals; express decimals as powers with negative exponents; simplify expressions with.
Exponents and Polynomials
Chapter 6 Polynomial Functions and Inequalities. 6.1 Properties of Exponents Negative Exponents a -n = –Move the base with the negative exponent to the.
STEPS FOR MULTIPLYING A 2-DIGIT NUMBER BY ANOTHER 2-DIGIT NUMBER With Partial Products.
Evaluating a Variable Expression To evaluate a variable expression:
Polynomials. Polynomial a n x n + a n-1 x n-1 +….. + a 2 x 2 + a 1 x + a 0 Where all exponents are whole numbers – Non negative integers.
Lesson 6.1 AIM: Understanding Multiplication of Exponents.
PROPERTIES OF EXPONENTS
Exponents Power base exponent means 3 factors of 5 or 5 x 5 x 5.

Multiplying and Dividing Powers with Same Base Alex Drennan.
Multiplying Polynomials. Exponents Remember if you are multiplying numbers with the same base, then ADD the exponents together. Examples:
Polynomial Expressions Unit 2, Lesson 2 A
Polynomial Functions Addition, Subtraction, and Multiplication.
Aim: How to write in Scientific Notation DO NOW: 1. WHAT DOES 10 5 MEAN? 2. WHAT IS THE VALUE OF USING YOUR CALCULATOR, CALCULATE 4.5 X 10 6.
PS Algebra I. On the properties chart…  Addition, Subtraction, Multiplication, and Division Properties of Equality  these equality properties are the.
8-2 Factoring by GCF Multiplying and Factoring. 8-2 Factoring by GCF Multiplying and Factoring Lesson 9-2 Simplify –2g 2 (3g 3 + 6g – 5). –2g 2 (3g 3.
Multiply the coefficients, the 2 and the -3 to get -6 a 3 * a 2 will be a 5, you add exponents when you multiply terms b 1 * b 4 will be b 5.
Multiplication Properties of Exponents. To multiply two powers that have the same base, you ADD the exponents. OR.
Multiplying by a Monomial Be able to multiply two monomials or a monomial and a polynomial.
Addition Multiplication Subtraction Division. 1.If the signs are the same, add the numbers and keep the same sign = = If the.
Warm Up If you add two even numbers do you always get an even number? If you add two odd numbers do you always get an odd number.
8.5-Add & Subtract Rational Expressions with Like Denominators.
Solving 1-Step Equations 2 An Equation is Like a Balance.
Chapter 5.1 Notes Simplifying Polynomials Multiplying Polynomials Degree of a Polynomial Algebra 2.
Polynomials. Definition of a Polynomial A polynomial is an expression that is constructed from variables and constants, and also includes coefficients.
SCIENTIFIC NOTATION RULES. Rules for converting to Scientific Notation One non-zero number before the decimal One digit after the decimal If you are making.
Name ____________________________________________ Date _______________ Per_____ Polynomials Review Adding Ex: 1. Simplify 2. Find the perimeter Subtracting.
Lesson 9-5 Multiplication with the Addition /Subtraction Method Objective: To use multiplication with the addition or subtraction method to solve systems.
MTH 091 Sections 3.1 and 9.2 Simplifying Algebraic Expressions.
Polynomial Test Review. Identifying Monomials  No negative exponents  No division of a variable  No variable for an exponent 1. 2x²y yes 2. ab -1 no.
Chapter 10 Polynomials and Factoring. Entry Task 04/09/2013.
Multiply Integers SWBAT multiply integers. Multiplication What is multiplication? What is multiplication? Repeated addition Repeated addition How do you.
5.3 Notes – Add, Subtract, & Multiply Polynomials.
Lesson 45: Exponents, The Rules
Warm-up Find the GCF for the following: 36, 63, 27 6x2, 24x
Module 1 Day 3 Power Properties.
The Laws of Exponents.
Knowing your math operation terms
8.6 Multiplying a Polynomial by a Monomial
Unit 1 “Unit-Recover”.
Lesson 9.1 How do you add and subtract polynomials?
The Laws of Exponents.
Solve the inequality and graph the solution set on the number line
Multiplying and Dividing in Scientific Notation
The Laws of Exponents.
DO NOW 1). (6 – 2) – 2 x – 10 = 2). 15 – x = Exponents
Working with monomials and polynomials
Warm Up Complete the following: Circle the leading coefficient
7-2 Multiplying powers with the same base.
Warm Ups: Give the degree, standard form, and leading coefficient (if possible): 1) 3x3 – 5x4 – 10x + 1 2) 9x – 8 + x2 Factor completely: 3) 4x2.
Warm-up Find the GCF for the following: 36, 63, 27 6x2, 24x
Equations and Exponents
Presentation transcript:

Linked list Applications: Polynomial handling

Representing a polynomial using a linked list Store the coefficient and exponent of each term in nodes int [] item1 = {5, 12} int [] item2 = {2, 9} int [] item3 = {-1, 3}

Addition of two polynomials Example: Addition of the following polynomials The results should be :

Addition of two Polynomials Represent two polynomials in two linked lists l1 and l2 Create a third empty linked list l3 Compare the items in l1 with the items in l2, If there is no item having the same exponent, append these items to the third list. If there are two items with the same exponent exp and coefficient coff1 and coff2, append an item with exponent exp and coefficient coff1+coff2 to l3

Subtraction of two polynomials Example: Subtraction of the following polynomials The results should be :

Subtraction of two polynomials f(x) and g(x) are two polynomials. In order to solve f(x)- g(x): Represent two polynomials in two linked lists (l1 for f(x) and l2 for g(x)) Create an empty linked lists l3 Negate the coefficient of all items in l2 and append these items to l3 Add l1 to l3 (Use algorithm: Addition of two polynomials)

Extra Credit Multiplication of two Polynomials

f(x) and g(x) are two polynomials. In order to solve f(x)*g(x): Represent two polynomials in two linked lists (l1 for f(x) and l2 for g(x)) For each item i in l1, multiply i with l2 and store the result in a new list. Add all the new lists together. To multiply an item i with a list l. You need to multiply i with each item in l and store the results in a new list. Multiply an item i (exp1, coff1)with an item j(exp2, coff2), you get an item k (exp1+exp2, coff1*coff2)