NuMFor 9f2ab49 (2024-04-08)
Numerical (Modern) Fortran. Library for Simple Numerical computing
basic.f90 File Reference

contains module basic More...

Data Types

type  timer
 Simple timer. Holds start-time, stop-time, and time-difference. More...
 

Modules

module  basic
 This module will provide some basic convenience routines Description.
 

Functions/Subroutines

integer function, public is_inf (x)
 is_inf Checks if the argument is plus or minus infinite.
 
subroutine, public print_msg (msg, sub, errcode, unit)
 Print a message, and optionally stop the program.
 

Variables

real(dp), parameter, public zero = 0._dp
 Real cero.
 
real(dp), parameter, public small = epsilon(1._dp)
 Real small number.
 
complex(dp), parameter, public c_z0 = (0._dp, 0._dp)
 Complex cero.
 
complex(dp), parameter, public c_r1 = (1._dp, 0._dp)
 Complex unit.
 
complex(dp), parameter, public c_i1 = (0._dp, 1._dp)
 Complex imaginary unit.
 
real(dp), parameter, public nf_minf = -huge(1._dp)
 Minus infinite.
 
real(dp), parameter, public nf_inf = huge(1._dp)
 Positive infinite.
 
real(dp), parameter, public m_pi = 3.14159265358979323846264338328_dp
 $ \pi $
 
real(dp), parameter, public m_dpi = 6.28318530717958647692528676656_dp
 2*pi
 
real(dp), parameter, public m_pi_2 = 1.57079632679489661923132169164_dp
 pi/2
 
real(dp), parameter, public m_pi_4 = 0.78539816339744830966156608458_dp
 pi/4
 
real(dp), parameter, public m_sqrtpi = 1.77245385090551602729816748334_dp
 sqrt(pi)
 
real(dp), parameter, public m_2_sqrtpi = 1.12837916709551257389615890312_dp
 2/sqrt(pi)
 
real(dp), parameter, public m_1_pi = 0.31830988618379067153776752675_dp
 1/pi
 
real(dp), parameter, public m_2_pi = 0.63661977236758134307553505349_dp
 2/pi
 
real(dp), parameter, public m_lnpi = 1.14472988584940017414342735135_dp
 ln(pi)
 
real(dp), parameter, public m_ln2 = 0.693147180559945309417232121458176568_dp
 ln(2)
 
real(dp), parameter, public m_e = 2.71828182845904523536028747135_dp
 e
 
real(dp), parameter, public m_log2e = 1.442695040888963407359924681001892137_dp
 log_2 (e)
 
real(dp), parameter, public m_log10e = 0.43429448190325182765112891892_dp
 log_10 (e)
 
real(dp), parameter, public deg2rad = 0.017453292519943295_dp
 pi/180
 
real(dp), parameter, public rad2deg = 57.295779513082320876654618_dp
 180/pi
 

Detailed Description

contains module basic

Date
"2024-02-21 15:35:55"