Skip to content

Alejandro-Vega/Cubic-Spline-Interpolation-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cubic Spline Interpolation Visualizer

Overview

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.


Logo

Cubic Spline Interpolation

An awesome interpolator alternative!
View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgements

About The Project

Product Name Screen Shot

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.

Built With

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.

Getting Started

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.

Prerequisites

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

Installation

  1. Clone the repo
    git clone https://github.com/Alejandro-Vega/Cubic-Spline-Interpolation-Visualizer.git
  2. Install NPM packages
    npm install

Usage

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.

Cubic Spline Interpolation Visualizer

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.

Example result

Example step 1

Example step 3

Example step 4

Example step 5

Example step 6

Contributing

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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Alejandro Vega - LinkedIn - [email protected]

Project Link: https://github.com/Alejandro-Vega/Cubic-Spline-Interpolation-Visualizer

Acknowledgements

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published