-
real(dl)
GetChiSquared(n, Y, c_inv)
get dot_product(matmul(C_inv,Y), Y) efficiently assuming c_inv symmetric
-
integer intent(in) :: n
-
real(dl) intent(in) :: Y(n)
-
real(dl) intent(in) :: c_inv(n,n)
real(dl)
Integrate_Romberg(obj, fin, a, b, tol, maxit, minsteps, abs_tol)
Rombint returns the integral from a to b of f(obj,x) using Romberg integration.
The method converges provided that f is continuous in (a,b).
f must be real(dl). The first argument is a class instance.
tol indicates the desired relative accuracy in the integral.
Modified by AL to specify max iterations and minimum number of steps
(min steps useful to stop wrong results on periodic or sharp functions)
class(*) :: obj
real(dl) external :: fin a class function
real(dl) intent(in) :: a
real(dl) intent(in) :: b
real(dl) intent(in) :: tol
integer intent(in), optional :: maxit
integer intent(in), optional :: minsteps
logical intent(in), optional :: abs_tol
real(dl)
Newton_Raphson2(xxl, xxh, funcs, param, param2)
real(dl) intent(in) :: xxl root bracket 1
real(dl) intent(in) :: xxh root bracket 2
external :: funcs subroutine for non-linear equation
real(dl) intent(in) :: param parameters for function
real(dl) intent(in) :: param2 parameters for function
real(dl)
obj_function(obj, x)
class(*) :: obj
real(dl) :: x