### R commands for section 6.2 (continued) ### G. Givens & J. Hoeting, Computational Statistics, Wiley, 2005. ## example for section 6.2.2 ## g(x) = (e^x)/2 if x<0; (e^{-x})/2 otherwise ## G(x) = (e^x)/2 if x<0; 1-(e^{-x})/2 otherwise ## G^{-1}(y) = ln(2y) if 0