Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

RooTender/Interpolation-methods

Repository files navigation

Interpolation methods

Academic project made for analyzing the performance and effectiveness of selected interpolation methods. These ones mentioned below are using LU decomposition in order to calculate the linear systems.

Usage

There are two projects implemented:

  1. For calculating the solutions (C++)
  2. For displaying them (Python3)

To make it work, the user must open the first project that is written in C++ and provide some input. Once the process is finished, the second project made in Python must be launched. Then the user is asked to choose a solution from the list to display the results.

Used functions

Alternatively called "polynomial interpolation" is the simplest one to code. The goal is to build a function that has a degree equal to the given points amount. However, increasing the number of nodes worsens the interpolation. It is a well-known effect called Runge's phenomenon.

A function made of fragments of the polynomials that are glued together. It is a remedy for Runge's phenomenon. Moreover, the quality of interpolation is excellent, but the downside is the complexity of operations to be performed.

Example

Lagrange interpolation

Here you can see the Runge's phenomenon at the extremes. Lagrange_interpolation_full Lagrange_interpolation_nodes

Splines

Spline

About technology

The code is written in C++, compatible with version 17 and higher, and Python3.