Giter Site home page Giter Site logo

bonamarton / phys_num Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 33.33 MB

Numerical Methods for Physics

License: MIT License

C 100.00%
numerical-methods euler-method runge-kutta-4 fitting matrix-multiplication plotting strange-attractors trayectoria differential-equations attractors gauss-elimination gauss-jordan-elimination singular-value-decomposition

phys_num's Introduction

phys_num

Numerical Methods for Physics


Informations:

From the project:

Various numerical methods, written in C language. The project contains the solutions of an university course. Tasks description can find here (Hungarian)

This project contains:

The project contains four main topic:

1. Matrix multipication (folder: matrix_multi):

The program can multiplicat row, column vectors, matrices and their combinations

2. Gauss-Jordan elimination (folder: gauss_jordan_elim):

Their are two version, first is the standard algorithmic solution, second version contains singular-value decomposition (SVD) method. For SVD, LAPACK needed. You can get from here. In simple case (in win ops sys), decompress lapacke.rar (in "gauss_jordan_elim") to "gauss_jordan_elim" folder, and it will work.

3. Polynomial fitting (folder: multi_dim_fitt):

The program make a general N variable polynomial fitting. One small data for test added. Plots and result in "predicted_values" folder

4. Numerical methods for ordinary differential equations:

4.1. Euler method (folder: euler_RK4_moon):

Calculates the solution of the Earth-Moon system with Euler method.

4.2. 4th order runge-kutta method (folder: euler_RK4_moon and RK4_attractors):
4.2.1. Earth-Moon system.

Calculates the solution of the Earth-Moon system with RK4 method. (plots in euler_RK4_moon/plot folder)

4.2.2. Strange Attractors

Calculates the solution of special ODE systems with adaptive RK4 method. (plots of the attractors find in RK4_attractors/plot folder, dataset in /data for those who want make plots)

Teaser:

Moon trajectories (euler and RK4):

moon

Strange Attractors:

attractros

Polynomial fitting:

polyfitt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.