Skip to content

A code that returns the polynomial of a function, along with its respective graph, when given its data sets.

Notifications You must be signed in to change notification settings

Suferas/Polynomial_interpolator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Polynomial_interpolator

A program that returns the polynomial of a function, along with its respective graph, when given its data sets, using the Newton method of polynomial interpolation.

Motivation

Challenge.

Example

Given a set of x and y coordinates, let's say [(-2, -9), (-1, -15), (0, -5), (1, -3), (2, 39)], we use polynomial interpolation to find the polynom in wich the cordinates are represented, wich, in that case, would be: 3x⁴ + 2x³ − 7x² + 4x -5

Figure_1

How to use

Enter the number of elements that will go in both sets (set of x, set of f(x)), then enter the values of each one. Following, the polynomial will be given, along with a graphical representation in x and y coordinates.

About

A code that returns the polynomial of a function, along with its respective graph, when given its data sets.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages