Mercurial > octave-nkf
diff scripts/general/quadgk.m @ 8507:cadc73247d65
style fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 13 Jan 2009 14:08:36 -0500 |
parents | 99602635172a |
children | e2a179415bac |
line wrap: on
line diff
--- a/scripts/general/quadgk.m Tue Jan 13 11:56:00 2009 -0500 +++ b/scripts/general/quadgk.m Tue Jan 13 14:08:36 2009 -0500 @@ -208,7 +208,7 @@ ## - \int_{-\infinity}^0 f (b - t^2) 2 t dt ## (note minus sign) and the finite interval transform is ## \int_{-\infinity}^0 f(b - t^2) 2 t dt = - ## \int_{-1}^0 f (b - g(s) ^ 2 ) 2 g(s) g'(s) ds + ## \int_{-1}^0 f (b - g(s) ^ 2) 2 g(s) g'(s) ds ## where ## g(s) = s / (1 + s) ## g'(s) = 1 / (1 + s) ^ 2 @@ -232,7 +232,7 @@ ## \int_a^\infinity f(x) dx = \int_0^\infinity f (a + t^2) 2 t dt ## and the finite interval transform is ## \int_0^\infinity f(a + t^2) 2 t dt = - ## \int_0^1 f (a + g(s) ^ 2 ) 2 g(s) g'(s) ds + ## \int_0^1 f (a + g(s) ^ 2) 2 g(s) g'(s) ds ## where ## g(s) = s / (1 - s) ## g'(s) = 1 / (1 - s) ^ 2