OneStopGate.Com
OnestopGate   OnestopGate
   Sunday, November 17, 2024 Login  
OnestopGate
Home | Overview | Syllabus | Tutorials | FAQs | Downloads | Recommended Websites | Advertise | Payments | Contact Us | Forum
OneStopGate

GATE Resources
Gate Articles
Gate Books
Gate Colleges 
Gate Downloads 
Gate Faqs
Gate Jobs
Gate News 
Gate Sample Papers
Training Institutes

GATE Overview
Overview
GATE Eligibility
Structure Of GATE
GATE Coaching Centers
Colleges Providing M.Tech/M.E.
GATE Score
GATE Results
PG with Scholarships
Article On GATE
Admission Process For M.Tech/ MCP-PhD
GATE Topper 2012-13
GATE Forum




GATE 2025 Exclusive
Organizing Institute
Important Dates
How to Apply
Discipline Codes
GATE 2025 Exam Structure

GATE 2025 Syllabus
Aerospace Engg..
Agricultural Engg..
Architecture and Planning
Chemical Engg..
Chemistry
Civil Engg..
Computer Science / IT
Electronics & Communication Engg..
Electrical Engg..
Engineering Sciences
Geology and Geophysics
Instrumentation Engineering
Life Sciences
Mathematics
Mechanical Engg..
Metallurgical Engg..
Mining Engg..
Physics
Production & Industrial Engg..
Pharmaceutical Sciences
Textile Engineering and Fibre Science

GATE Study Material
Aerospace Engg..
Agricultural Engg..
Chemical Engg..
Chemistry
Civil Engg..
Computer Science / IT
Electronics & Communication Engg..
Electrical Engg..
Engineering Sciences
Instrumentation Engg..
Life Sciences
Mathematics
Mechanical Engg..
Physics
Pharmaceutical Sciences
Textile Engineering  and Fibre Science

GATE Preparation
GATE Pattern
GATE Tips N Tricks
Compare Evaluation
Sample Papers 
Gate Downloads 
Experts View

CEED 2013
CEED Exams
Eligibility
Application Forms
Important Dates
Contact Address
Examination Centres
CEED Sample Papers

Discuss GATE
GATE Forum
Exam Cities
Contact Details
Bank Details

Miscellaneous
Advertisment
Contact Us


Horner's Method

Looking for GATE Preparation Material? Join & Get here now!

** Gate 2013 Question Papers.. ** CEED 2013 Results.. ** Gate 2013 Question Papers With Solutions.. ** GATE 2013 CUT-OFFs.. ** GATE 2013 Results.. **

Horner's Method

Horner's Method

Evaluation of a Polynomial

Let the polynomial [Graphics:Images/HornerMod_gr_1.gif] of degree n have coefficients [Graphics:Images/HornerMod_gr_2.gif].Then [Graphics:Images/HornerMod_gr_3.gif] has the familiar form

[Graphics:Images/HornerMod_gr_4.gif]

Horner's method (or synthetic division) is a technique for evaluating polynomials.It can be thought of as nested multiplication.For example, the fifth-degree polynomial

[Graphics:Images/HornerMod_gr_5.gif]

can be written in the "nested multiplication" form

[Graphics:Images/HornerMod_gr_6.gif].

Theorem (Horner's Method for Polynomial Evaluation)Assume that

(1)[Graphics:Images/HornerMod_gr_21.gif]

and[Graphics:Images/HornerMod_gr_22.gif]is a number for which [Graphics:Images/HornerMod_gr_23.gif] is to be evaluated.Then [Graphics:Images/HornerMod_gr_24.gif] can be computed recursively as follows.

(2)Set[Graphics:Images/HornerMod_gr_25.gif],
and
[Graphics:Images/HornerMod_gr_26.gif]for[Graphics:Images/HornerMod_gr_27.gif].

Then[Graphics:Images/HornerMod_gr_28.gif].

Moreover, the coefficients[Graphics:Images/HornerMod_gr_29.gif]can be used to construct[Graphics:Images/HornerMod_gr_30.gif]and[Graphics:Images/HornerMod_gr_31.gif]

(3)[Graphics:Images/HornerMod_gr_32.gif]
and
(4)[Graphics:Images/HornerMod_gr_33.gif],

where[Graphics:Images/HornerMod_gr_34.gif]is the quotient polynomial of degreen-1and[Graphics:Images/HornerMod_gr_35.gif]is the remainder.

Example.Use synthetic division (Horner's method) to find [Graphics:Images/HornerMod_gr_36.gif] for the polynomial
[Graphics:Images/HornerMod_gr_37.gif].
Solution.

Heuristics

In the days when "hand computations" were necessary, the Horner tableau (or table) was used.The coefficients[Graphics:Images/HornerMod_gr_50.gif]of the polynomial are entered on the first row in descending order, the second row is reserved for the intermediate computation step([Graphics:Images/HornerMod_gr_51.gif])and the bottom row contains the coefficients[Graphics:Images/HornerMod_gr_52.gif]and[Graphics:Images/HornerMod_gr_53.gif].

[Graphics:Images/HornerMod_gr_54.gif]

Lemma (Horner's Method for Derivatives)Assume that

[Graphics:Images/HornerMod_gr_74.gif]

and [Graphics:Images/HornerMod_gr_75.gif] is a number for which [Graphics:Images/HornerMod_gr_76.gif] and[Graphics:Images/HornerMod_gr_77.gif] are to be evaluated.We have already seen that [Graphics:Images/HornerMod_gr_78.gif] can be computed recursively as follows.

[Graphics:Images/HornerMod_gr_79.gif],and
[Graphics:Images/HornerMod_gr_80.gif]for[Graphics:Images/HornerMod_gr_81.gif].

The quotient polynomial [Graphics:Images/HornerMod_gr_82.gif] and remainder [Graphics:Images/HornerMod_gr_83.gif] form the relation

[Graphics:Images/HornerMod_gr_84.gif].

We can compute [Graphics:Images/HornerMod_gr_85.gif] can be computed recursively as follows.

(i)[Graphics:Images/HornerMod_gr_86.gif],and
[Graphics:Images/HornerMod_gr_87.gif]for[Graphics:Images/HornerMod_gr_88.gif].

The quotient polynomial[Graphics:Images/HornerMod_gr_89.gif]
and remainder[Graphics:Images/HornerMod_gr_90.gif]form the relation

(ii)[Graphics:Images/HornerMod_gr_91.gif].

The Horner tableau (or table) was used for computing the coefficients is given below.

[Graphics:Images/HornerMod_gr_92.gif]

Using vector coefficients

As mentioned above, it is efficient to store the coefficients[Graphics:Images/HornerMod_gr_109.gif]of a polynomial[Graphics:Images/HornerMod_gr_110.gif] of degree n in the vector[Graphics:Images/HornerMod_gr_111.gif].Notice that this is a shift of the index for [Graphics:Images/HornerMod_gr_112.gif] and the polynomial[Graphics:Images/HornerMod_gr_113.gif]is written in the form

[Graphics:Images/HornerMod_gr_114.gif].

Given the value[Graphics:Images/HornerMod_gr_115.gif],the recursive formulas for computing the coefficients[Graphics:Images/HornerMod_gr_116.gif]and [Graphics:Images/HornerMod_gr_117.gif]of[Graphics:Images/HornerMod_gr_118.gif] and [Graphics:Images/HornerMod_gr_119.gif], have the new form

[Graphics:Images/HornerMod_gr_120.gif]
[Graphics:Images/HornerMod_gr_121.gif]for[Graphics:Images/HornerMod_gr_122.gif].

[Graphics:Images/HornerMod_gr_123.gif]
[Graphics:Images/HornerMod_gr_124.gif]for[Graphics:Images/HornerMod_gr_125.gif].

Then[Graphics:Images/HornerMod_gr_126.gif]

Newton-Horner method

Assume that [Graphics:Images/HornerMod_gr_151.gif] is a polynomial of degree [Graphics:Images/HornerMod_gr_152.gif] and there exists a number [Graphics:Images/HornerMod_gr_153.gif], where [Graphics:Images/HornerMod_gr_154.gif].If[Graphics:Images/HornerMod_gr_155.gif], then there exists a [Graphics:Images/HornerMod_gr_156.gif] such that the sequence [Graphics:Images/HornerMod_gr_157.gif] defined by the Newton-Raphson iteration formula

[Graphics:Images/HornerMod_gr_158.gif]for[Graphics:Images/HornerMod_gr_159.gif]

will converge torfor any initial approximation[Graphics:Images/HornerMod_gr_160.gif].The recursive formulas in the Lemma can be adapted to compute[Graphics:Images/HornerMod_gr_161.gif]and[Graphics:Images/HornerMod_gr_162.gif]and the resulting Newton-Horner iteration formula looks like

[Graphics:Images/HornerMod_gr_163.gif]for[Graphics:Images/HornerMod_gr_164.gif]

Algorithm (Newton-Horner Iteration).To find a root of[Graphics:Images/HornerMod_gr_165.gif]given an initial approximation[Graphics:Images/HornerMod_gr_166.gif]using the iteration

[Graphics:Images/HornerMod_gr_167.gif]for[Graphics:Images/HornerMod_gr_168.gif].

Mathematica Subroutine (Newton-Horner Iteration).

[Graphics:Images/HornerMod_gr_169.gif]

Mathematica Subroutine (Newton-Raphson Iteration).

[Graphics:Images/HornerMod_gr_170.gif]

Lemma (Horner's Method for Higher Derivatives)Assume that the coefficients[Graphics:Images/HornerMod_gr_199.gif]of a polynomial[Graphics:Images/HornerMod_gr_200.gif] of degree n are stored in the first row of the matrix[Graphics:Images/HornerMod_gr_201.gif].Then the polynomial[Graphics:Images/HornerMod_gr_202.gif]can written in the form

[Graphics:Images/HornerMod_gr_203.gif].

Given the value[Graphics:Images/HornerMod_gr_204.gif],the subroutine for computing all the derivatives[Graphics:Images/HornerMod_gr_205.gif]is

[Graphics:Images/HornerMod_gr_206.gif]

and

[Graphics:Images/HornerMod_gr_207.gif]for[Graphics:Images/HornerMod_gr_208.gif].

Polynomial Deflation

Given the polynomial[Graphics:Images/HornerMod2_gr_1.gif]in example 5,the iteration

[Graphics:Images/HornerMod2_gr_2.gif]

will converge to the root[Graphics:Images/HornerMod2_gr_3.gif]of[Graphics:Images/HornerMod2_gr_4.gif].The Mathematica command NewtonHorner[3.0,6] produces the above sequence, then the quotient polynomial[Graphics:Images/HornerMod2_gr_5.gif]is constructed with the command[Graphics:Images/HornerMod2_gr_6.gif].
[Graphics:Images/HornerMod2_gr_7.gif]

[Graphics:Images/HornerMod2_gr_8.gif]

The root stored in the computer is located in the variabler1.

[Graphics:Images/HornerMod2_gr_9.gif] [Graphics:Images/HornerMod2_gr_10.gif]

The coefficients ofQ[x]printed above have been rounded off.Actually there is a little bit of round off error in the coefficients forming[Graphics:Images/HornerMod2_gr_11.gif],we will have to dig them out to look at them.

[Graphics:Images/HornerMod2_gr_12.gif] [Graphics:Images/HornerMod2_gr_13.gif] [Graphics:Images/HornerMod2_gr_14.gif] [Graphics:Images/HornerMod2_gr_15.gif]

Now we have a computer approximation for the factorization[Graphics:Images/HornerMod2_gr_16.gif].

[Graphics:Images/HornerMod2_gr_17.gif] [Graphics:Images/HornerMod2_gr_18.gif]

We should carry out one more step in the iteration using the commandNewtonHorner[3.0,7]and get a more accurate calculation for the coefficients of[Graphics:Images/HornerMod2_gr_19.gif].When this is done the result will be:

[Graphics:Images/HornerMod2_gr_20.gif]

[Graphics:Images/HornerMod2_gr_21.gif]

If the other roots of[Graphics:Images/HornerMod2_gr_22.gif]are to be found, then they must be the roots of the quotient polynomial[Graphics:Images/HornerMod2_gr_23.gif].The polynomial[Graphics:Images/HornerMod2_gr_24.gif]is referred to as the deflated polynomial, because its degree is one less than the degree of[Graphics:Images/HornerMod2_gr_25.gif].For this example it is possible to factor[Graphics:Images/HornerMod2_gr_26.gif]as the product of two quadratic polynomials[Graphics:Images/HornerMod2_gr_27.gif].Therefore, [Graphics:Images/HornerMod2_gr_28.gif]has the factorization

[Graphics:Images/HornerMod2_gr_29.gif],

and the five roots of[Graphics:Images/HornerMod2_gr_30.gif]are

[Graphics:Images/HornerMod2_gr_31.gif].

This can be determined by using Mathematica and the command Factor.

[Graphics:Images/HornerMod2_gr_32.gif] [Graphics:Images/HornerMod2_gr_33.gif]

This still leaves some unanswered questions that we will answer in other modules.The quadratic factors can be determined using the Lin-Bairstow method.Or if one prefers complex arithmetic, then Newton's method can be used.For example, starting with the imaginary number[Graphics:Images/HornerMod2_gr_34.gif]Newton's method will create a complex sequence converging to the complex root[Graphics:Images/HornerMod2_gr_35.gif]of[Graphics:Images/HornerMod2_gr_36.gif].

[Graphics:Images/HornerMod2_gr_37.gif] [Graphics:Images/HornerMod2_gr_38.gif]

However, starting with purely imaginary number[Graphics:Images/HornerMod2_gr_39.gif]will create a divergent sequence.

[Graphics:Images/HornerMod2_gr_40.gif] [Graphics:Images/HornerMod2_gr_41.gif]

For cases involving complex numbers the reader should look at the Lin-Bairstow and the Fundamental Theorem of Algebra modules.

Getting Real Roots

The following example illustrates polynomial deflation and shows that the order in which the roots are located could be important.In light of example 6 we know that better calculations are made for evaluating [Graphics:Images/HornerMod2_gr_42.gif] whenxis small.The Newton-Horner subroutine is modified to terminate early if[Graphics:Images/HornerMod2_gr_43.gif] evaluates close to zero (when a root is located).

Mathematica Subroutine (Newton-Horner Iteration).

[Graphics:Images/HornerMod2_gr_44.gif]



Discussion Center

Discuss/
Query

Papers/
Syllabus

Feedback/
Suggestion

Yahoo
Groups

Sirfdosti
Groups

Contact
Us

MEMBERS LOGIN
  
Email ID:
Password:

  Forgot Password?
 New User? Register!

INTERVIEW EBOOK
Get 9,000+ Interview Questions & Answers in an eBook. Interview Question & Answer Guide
  • 9,000+ Interview Questions
  • All Questions Answered
  • 5 FREE Bonuses
  • Free Upgrades
GATE RESOURCES
 
  • Gate Books
  • Training Institutes
  • Gate FAQs
  • GATE BOOKS
     
  • Mechanical Engineeering Books
  • Robotics Automations Engineering Books
  • Civil Engineering Books
  • Chemical Engineering Books
  • Environmental Engineering Books
  • Electrical Engineering Books
  • Electronics Engineering Books
  • Information Technology Books
  • Software Engineering Books
  • GATE Preparation Books
  • Exciting Offers



    GATE Exam, Gate 2009, Gate Papers, Gate Preparation & Related Pages


    GATE Overview | GATE Eligibility | Structure Of GATE | GATE Training Institutes | Colleges Providing M.Tech/M.E. | GATE Score | GATE Results | PG with Scholarships | Article On GATE | GATE Forum | GATE 2009 Exclusive | GATE 2009 Syllabus | GATE Organizing Institute | Important Dates for GATE Exam | How to Apply for GATE | Discipline / Branch Codes | GATE Syllabus for Aerospace Engineering | GATE Syllabus for Agricultural Engineering | GATE Syllabus for Architecture and Planning | GATE Syllabus for Chemical Engineering | GATE Syllabus for Chemistry | GATE Syllabus for Civil Engineering | GATE Syllabus for Computer Science / IT | GATE Syllabus for Electronics and Communication Engineering | GATE Syllabus for Engineering Sciences | GATE Syllabus for Geology and Geophysics | GATE Syllabus for Instrumentation Engineering | GATE Syllabus for Life Sciences | GATE Syllabus for Mathematics | GATE Syllabus for Mechanical Engineering | GATE Syllabus for Metallurgical Engineering | GATE Syllabus for Mining Engineering | GATE Syllabus for Physics | GATE Syllabus for Production and Industrial Engineering | GATE Syllabus for Pharmaceutical Sciences | GATE Syllabus for Textile Engineering and Fibre Science | GATE Preparation | GATE Pattern | GATE Tips & Tricks | GATE Compare Evaluation | GATE Sample Papers | GATE Downloads | Experts View on GATE | CEED 2009 | CEED 2009 Exam | Eligibility for CEED Exam | Application forms of CEED Exam | Important Dates of CEED Exam | Contact Address for CEED Exam | CEED Examination Centres | CEED Sample Papers | Discuss GATE | GATE Forum of OneStopGATE.com | GATE Exam Cities | Contact Details for GATE | Bank Details for GATE | GATE Miscellaneous Info | GATE FAQs | Advertisement on GATE | Contact Us on OneStopGATE |
    Copyright © 2024. One Stop Gate.com. All rights reserved Testimonials |Link To Us |Sitemap |Privacy Policy | Terms and Conditions|About Us
    Our Portals : Academic Tutorials | Best eBooksworld | Beyond Stats | City Details | Interview Questions | India Job Forum | Excellent Mobiles | Free Bangalore | Give Me The Code | Gog Logo | Free Classifieds | Jobs Assist | Interview Questions | One Stop FAQs | One Stop GATE | One Stop GRE | One Stop IAS | One Stop MBA | One Stop SAP | One Stop Testing | Web Hosting | Quick Site Kit | Sirf Dosti | Source Codes World | Tasty Food | Tech Archive | Software Testing Interview Questions | Free Online Exams | The Galz | Top Masala | Vyom | Vyom eBooks | Vyom International | Vyom Links | Vyoms | Vyom World
    C Interview Questions | C++ Interview Questions | Send Free SMS | Placement Papers | SMS Jokes | Cool Forwards | Romantic Shayari