Functions
horner.hpp File Reference

Evaluates a polynomial using Horner's method. More...

#include <vector>
Include dependency graph for horner.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

double horner (const vector< double > coef_list, double x)
 Evaluates a polynomial using the horner method. More...
 

Detailed Description

Evaluates a polynomial using Horner's method.

Author
Almog Yalinewich

Definition in file horner.hpp.

Function Documentation

◆ horner()

double horner ( const vector< double >  coef_list,
double  x 
)

Evaluates a polynomial using the horner method.

Parameters
coef_listList of coefficients
xAbscissa
Returns
Ordinate

Definition at line 5 of file horner.cpp.