Skip to content

Programs for calculating and integrating the solution of various differential equations

License

Notifications You must be signed in to change notification settings

rain-king/RK4-Hermite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RK4-Hermite

Programs for calculating or integrating the solution of various differential equations. The fortran directory contains the code used to write tables of X and Y coordinates. Such tables can be graphed in python with matplotlib, and so, I include two python scripts to interpret the data obtained from the differential equations. You should be able to edit fortran code, the most relevant change you can do is changing the functions "Dv" and "RK4", from there you will be able to solve any differential equation that RK4 could be used for. Just notice that it is written for Hermite_n, that is to say "Dv" is actually a function of x, y, Dy and a number n. So changes will also need a new main program. I include a clean version of the library I used in the root of the repo. This repository works better as a fortran reference than as a user centric program. So I will not add many features in the future, if any.

Warnings

Fortran compilers that don't include f2008 standards don't have the gamma function, you will have to write it by yourself and include it in the code.

Compile and run

Default make target will create graphs of the solutions into the graphs/. The integrals target will show the results of integrating the Hermite equation's, the norm and orthogonality tests (https://en.wikipedia.org/wiki/Hermite_polynomials).

Edit initial parameters

I may add the option of taking command line arguments or fork my own project for more general differential equations. But for the time being you can edit the fortran code.

Still needs some work

The matplotlib graphs use default colors, nothing fancy, but you can see the name of the filenames used in fortran.