This program uses the cubic spline formula to solve for interpolating polynomials that go through the provided points. It will accept any amount of points greater than 3. This program is different from other programs as it not only graphs each polynomial and point, but it also provides the steps towards the solution.
An awesome interpolator alternative!
View Demo
·
Report Bug
·
Request Feature
Table of Contents
There are currently not many visualizer calculators for the numerical analysis field in math. The topics can be difficult to grasp.
Here's why I felt it needed to be created:
- Not many calculators online to solve such a problem
- No calculator online shows the steps towards solving the problem
- Helpful for students and math enthusiasts to see what the result for such a problem will look like
- Easy to use interface, and friendly towards users who know nothing about the subject
Although, there is more than one way to implement the Cubic Spline Interpolation, this is one of the more popular methods for solving the problem.
A list of commonly used resources that I find helpful are listed in the acknowledgements.
A server is created using Express that handles the calculations for solving the Cubic Spline Interpolation problem. The server returns relevant variable used within the formula, along with the solution. It also uses the Desmos API to graph and visualize the results.
- [HTML]
- [CSS]
- [JavaScript]
- Express
- Desmos API
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
This is an example of how to list things you need to use the software and how to install them.
- npm
npm install npm@latest -g
- Clone the repo
git clone https://github.com/Alejandro-Vega/Cubic-Spline-Interpolation-Visualizer.git
- Install NPM packages
npm install
To use the program you have the following options:
- Insert your own coordinate points
- Generate random coordinate points
- Add a new field for an additional coordinate point
- Modify the number of decimals that will be displayed in the steps and within the graph (At least 4 is recommended)
If you insert your own points, you must click "Calculate" afterwards so the program begins the computation and prepares the results. Otherwise, generate should work straight away after clicking the button and immediately show the results of the randomly generated points. If you want to add more points, simply click on the "Add Point" option above the "Calculate" button.
The program is not currently limited to the number of possible points it can handle. Although, it is expected that the more points that are provided the more computation power will be needed to calculate the results. Delay may vary depending on the computation.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Alejandro Vega - LinkedIn - [email protected]
Project Link: https://github.com/Alejandro-Vega/Cubic-Spline-Interpolation-Visualizer