Skip to content

Several numerical methods are provided here written in Python.

License

Notifications You must be signed in to change notification settings

MShawon/Numerical-Method

Repository files navigation

Numerical-Method

Numerical-Method: Numerical methods, is approximation fast solution for mathematical problems. Such problems can be in any field in engineering. So any result you get from it is approximated not exact, it give you the solution faster than normal ones, also it’s easy to be programmed.

Least-Squares-Method: The method of least squares is a standard approach in regression analysis to approximate the solution of overdetermined systems by minimizing the sum of the squares of the residuals made in the results of every single equation. The most important application is in data fitting.

Following curve is used for data fitting:

  1. Straight Line (y=mx+c)
  2. Second Degree Parabola (y=ax2+bx+c or y=a+bx+cx2)
  3. Exponential Equation (y=aebx)
  4. Curve y=abx and
  5. Another curve y=axb

Installation

  • Python 3.x

Open command prompt and type

git clone https://github.com/MShawon/Numerical-Method.git

cd Numerical-Method

pip install -r requirements.txt

Usage

Open command prompt in Numerical-Method folder and type

python leastSquareMethod.py

alt text

alt text

alt text