Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Implementation of polynomial interpolation using the Barycentric Lagrange formula with Chebyshev points. The program computes polynomial interpolants for three different functions on specified intervals, and determines the polynomial degree necessary to ensure that the error does not exceed 1e-6

License

Notifications You must be signed in to change notification settings

Numerical-analysis-in-julija/Interpolation_with_the_barycentric_formula.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interpolation using Barycentric Formula

Documenter Runtests

In this repository, you can finde the code for Homework 3 of the Numerical Methods course.The code is written in Julia, and the main implementation can be found in the file src/Interpolation_with_the_barycentric_formula.jl. The code is tested using the file test/runtests.jl, and it is documented using the file docs/make.jl, you can test the code for the specific by running the Scripts/script.jl file.

To run the code, it is necessary to have Julia installed on your computer. Once downloaded, you can run the code for the following equations: e^(-x^2) on ([-1,1]) , sin(x)/x on ([0,10]) and |x^2-2x| on ([1,3]).To run the code, you can simply start the script Scripts/script.jl.The script will compute the interpolation for the three equations and will return the reuslts to the precision of 1e-6.

The code and the Mathematical backround is documented using Documenter.jl. To see the documentation, you can run the docs/make.jl file. The documentation is also available online at documentation.


Here are the results of the interpolation for the three equations for the nodes 1 ,3 the number so that the error is less than 1e-6:

  1. e^(-x^2)

  1. sin(x)/x

  1. |x^2-2x|

About

Implementation of polynomial interpolation using the Barycentric Lagrange formula with Chebyshev points. The program computes polynomial interpolants for three different functions on specified intervals, and determines the polynomial degree necessary to ensure that the error does not exceed 1e-6

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages