comparison scripts/general/quadgk.m @ 10846:a4f482e66b65

Grammarcheck more of the documentation. Use @noindent macro appropriately. Limit line length to 80 characters.
author Rik <octave@nomad.inbox5.com>
date Sun, 01 Aug 2010 20:22:17 -0700
parents 693e22af08ae
children fd0a3ac60b0e
comparison
equal deleted inserted replaced
10845:c0ffe159ba1a 10846:a4f482e66b65
76 ## If there exists discontinuities in the first derivative of the 76 ## If there exists discontinuities in the first derivative of the
77 ## function to integrate, then these can be flagged with the 77 ## function to integrate, then these can be flagged with the
78 ## @code{"WayPoints"} property. This forces the ends of a sub-interval 78 ## @code{"WayPoints"} property. This forces the ends of a sub-interval
79 ## to fall on the breakpoints of the function and can result in 79 ## to fall on the breakpoints of the function and can result in
80 ## significantly improved estimation of the error in the integral, faster 80 ## significantly improved estimation of the error in the integral, faster
81 ## computation or both. For example: 81 ## computation or both. For example,
82 ## 82 ##
83 ## @example 83 ## @example
84 ## quadgk (@@(x) abs (1 - x .^ 2), 0, 2, 'Waypoints', 1) 84 ## quadgk (@@(x) abs (1 - x .^ 2), 0, 2, 'Waypoints', 1)
85 ## @end example 85 ## @end example
86 ## 86 ##
93 ##@end table 93 ##@end table
94 ## 94 ##
95 ## If any of @var{a}, @var{b} or @var{waypoints} is complex, then the 95 ## If any of @var{a}, @var{b} or @var{waypoints} is complex, then the
96 ## quadrature is treated as a contour integral along a piecewise 96 ## quadrature is treated as a contour integral along a piecewise
97 ## continuous path defined by the above. In this case the integral is 97 ## continuous path defined by the above. In this case the integral is
98 ## assumed to have no edge singularities. For example 98 ## assumed to have no edge singularities. For example,
99 ## 99 ##
100 ## @example 100 ## @example
101 ## @group 101 ## @group
102 ## quadgk (@@(z) log (z), 1+1i, 1+1i, "WayPoints", 102 ## quadgk (@@(z) log (z), 1+1i, 1+1i, "WayPoints",
103 ## [1-1i, -1,-1i, -1+1i]) 103 ## [1-1i, -1,-1i, -1+1i])