|
laserfields
Fortran95 library to describe time-dependent laser pulses
|
Data Types | |
| interface | interpolate |
| 1-dimensional polynomial interpolation More... | |
| interface | gnuplotstring |
| convert real or complex numbers to strings that can be used in gnuplot More... | |
Functions/Subroutines | |
| integer function | get_unused_unit () |
| real(dp) pure elemental function | phase (c) |
| obtain the phase (=argument) of a complex number | |
| complex(dpc) pure elemental function | abs2_phase (c) |
| return a complex number containing absolute value squared and phase as real and imaginary part: {|c|2,phase(c)} | |
| real(dp) pure function | lagrange_interpol (xk, yk, n, x) |
| lagrange polynomial interpolation, using the barycentric form (see e.g. wikipedia) | |
| pure integer function | binary_search (xs, x) |
| do a binary search and return index il for which xs(il) <= x <= xs(il+1) | |
| integer function laserfields_miscfuncs::get_unused_unit |
Definition at line 23 of file laserfields_miscfuncs.f90.
obtain the phase (=argument) of a complex number
Definition at line 36 of file laserfields_miscfuncs.f90.
| complex(dpc) pure elemental function laserfields_miscfuncs::abs2_phase | ( | complex(dpc), intent(in) | c | ) |
return a complex number containing absolute value squared and phase as real and imaginary part: {|c|2,phase(c)}
Definition at line 43 of file laserfields_miscfuncs.f90.
| real(dp) pure function laserfields_miscfuncs::lagrange_interpol | ( | real(dp), dimension(n), intent(in) | xk, |
| real(dp), dimension(n), intent(in) | yk, | ||
| integer, intent(in) | n, | ||
| real(dp), intent(in) | x ) |
lagrange polynomial interpolation, using the barycentric form (see e.g. wikipedia)
| [in] | n | size of xk and yk. |
| [in] | xk | x-values of points to interpolate. |
| [in] | yk | y-values of points to interpolate. |
| [in] | x | position at which to evaluate the interpolating polynomial. |
Definition at line 104 of file laserfields_miscfuncs.f90.
| pure integer function laserfields_miscfuncs::binary_search | ( | real(dp), dimension(:), intent(in) | xs, |
| real(dp), intent(in) | x ) |
do a binary search and return index il for which xs(il) <= x <= xs(il+1)
| [in] | xs | input array to search, has to be sorted (either in ascending or descending order) |
| [in] | x | value to search for |
Definition at line 138 of file laserfields_miscfuncs.f90.