R/abs_approx.R

Defines functions abs_approx

Documented in abs_approx

## File Name: abs_approx.R
## File Version: 0.08


# quadratic approximation of the absolute value function
abs_approx <- function( x, eps=1E-5)
{
    res <- sqrt( x^2 + eps )
    return(res)
}

Try the CDM package in your browser

Any scripts or data that you put into this service are public.

CDM documentation built on Aug. 25, 2022, 5:08 p.m.