https://github.com/vovandreevik/spline-lagrange-quanc8
The program calculates the value of the function for a given x and a given step using the QUANC8 program. Builds a spline function and a Lagrange polynomial of degree 10
https://github.com/vovandreevik/spline-lagrange-quanc8
cpp langrange-interpolation quanc8 spline
Last synced: 25 days ago
JSON representation
The program calculates the value of the function for a given x and a given step using the QUANC8 program. Builds a spline function and a Lagrange polynomial of degree 10
- Host: GitHub
- URL: https://github.com/vovandreevik/spline-lagrange-quanc8
- Owner: vovandreevik
- Created: 2024-03-21T19:06:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-22T09:06:42.000Z (over 2 years ago)
- Last Synced: 2025-04-07T12:17:17.042Z (over 1 year ago)
- Topics: cpp, langrange-interpolation, quanc8, spline
- Language: C++
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spline-Lagrange-QUANC8
The program calculates the value of the function for a given x and a given step using the QUANC8 program.
_In the program_ $0 \leq x \leq 2, h = 0.2, f(x) = \displaystyle\int\limits_0^1\mathrm{e}^{xt}sin(t)\mathrm{d}t$
Builds a spline function and a Lagrange polynomial of degree 10 from the obtained points.
Compares the values of the spline function and the polynomial with the exact values of the function at the points $x_k = (k - 0.5) h, k = 1, 2, ..., 10$.
```quanc8.h``` and ```spline.h``` are library programs