Foortran Toolkit

Fortran toolkit
Borja Petit


Download toolkit

THIS SITE IS UNDER CONSTRUCTION

This Fortran code provides a list of functions and subroutines that I typically use in my research. If you find any mistake, either in the codes or in this website, contact me.

Efficiency of the algorithms is not guaranteed.

All functions and subroutines assume double precision for real variables.

License:
The code is distributed under the MIT license. You are free to use and modify it as you wish, but please acknowledge the source. If you distributte a modified version ofthis code, please indicate in the preambule the changes made along with your name and date.


In the preambule, several parameters used across functions and subroutines are defined:

  integer  , parameter :: dp    = kind(1.0d00)             ! double-precision real variables
  real(dp) , parameter :: cero  = dble(0.00000000000000)   ! zero
  real(dp) , parameter :: medio = dble(0.50000000000000)   ! one half
  real(dp) , parameter :: uno   = dble(1.00000000000000)   ! one
  real(dp) , parameter :: dos   = dble(2.00000000000000)   ! two
  real(dp) , parameter :: cien  = dble(100.000000000000)   ! one hundred
  real(dp) , parameter :: mil   = dble(1000.00000000000)   ! one thousand
  real(dp) , parameter :: tolvl = dble(0.00000000010000)   ! tolerance level

General purpose

Statistics

Linear algebra

Optimization

Algorithms for single-valued univariate equations:

Algorithm for single-valued multivariate equations:

Algorithm for systems of equations:

Other functions:

Constrained optimization:
None of the algorithms in this toolkit is explicitly written to allow for constraints, but one can transform a constrained optimization problem into an unconstrained one using the normalize and denormalize subroutines.