Giter Site home page Giter Site logo

suferas / polynomial_interpolator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 9 KB

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

Python 100.00%
polynomial-interpolation mathematics mathematical-functions mathematical-graph

polynomial_interpolator's Introduction

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.

polynomial_interpolator's People

Contributors

suferas avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.