(git:374b731)
Loading...
Searching...
No Matches
minimax_exp.F File Reference

Go to the source code of this file.

Modules

module  minimax_exp
 Routines to calculate the minimax coefficients in order to approximate 1/x as a sum over exponential functions 1/x ~ SUM_{i}^{K} w_i EXP(-a_i * x) for x belonging to [1:Rc].
 

Functions/Subroutines

subroutine, public minimax_exp::check_exp_minimax_range (k, rc, ierr)
 Check that a minimax approximation is available for given input k, Rc. ierr == 0: everything ok ierr == 1: Rc too small ierr == -1: k too large.
 
subroutine, public minimax_exp::get_exp_minimax_coeff (k, rc, aw, mm_error, which_coeffs)
 Get best minimax approximation for given input parameters. Automatically chooses the most exact set of minimax coefficients (k15 or k53) for given k, Rc.
 
subroutine, public minimax_exp::validate_exp_minimax (n_r, iw)
 Unit test checking that numerical error of minimax approximations generated using any k15 or k53 coefficients is consistent with tabulated error.