http://hughesbennett.co.uk/FindingRootsOfPolynomialFunctions
©2012 Hughes Bennett Education
Hughes Bennett EducationQuestions by topic
Primary school
Secondary school
Computers & networks
Business economics

SMART subscriptions
Login
Subscribe
SMART Learning Method™

Popular software tools
Octave
Maxima
R Project
Graphviz
Context Free

All software tools
Bamboo Toolbox



Search

Terms & conditions
Privacy policy

Updated 2012-03-05 14:08:19
©2012 Hughes Bennett Education
Published using WikkaWiki

Finding roots of polynomial functions


A common task in many business and computing subjects is the calculation of minima and maxima values. This task requires finding the roots of first and second order derivatives, which can be done conveniently using Maxima or Octave scripts. For example, consider this function:
  • y = 3x2 - 3x - 6

Polynomial functions are expressed quite literally in Maxima scripts. They use the realroots() command to calculate real valued roots.

 


Alternatively, an Octave script could also find the real valued roots. The main difference is that Octave uses a vector of the coefficients in descending order to represent a polynomial function.