Skip to content

jachappell/Polynomial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polynomial is a C++ class facilitating the evaluation of polynomials of a single indeterminate.

example1.cpp evaluates f(x) = 2x3 - 3x2 + 4x + 1 for values of x between -10 and 10.

example2.cpp evaluates f(x) = x4 + 2x3 - 3x2 + 4x + 1 and its derivative for values of x between -10 and 10.

See test.cpp for more examples.

To build the examples:
$ cd examples
$ make
OR
$ make example1
$ make example2

To build the tests:
$ cd tests
$ make