Mercurial > octave-nkf
comparison doc/interpreter/quad.txi @ 10828:322f43e0e170
Grammarcheck .txi documentation files.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Wed, 28 Jul 2010 12:45:04 -0700 |
parents | 16f53d29049f |
children | fd0a3ac60b0e |
comparison
equal
deleted
inserted
replaced
10827:228cd18455a6 | 10828:322f43e0e170 |
---|---|
188 $$ | 188 $$ |
189 f(x, y) = \sin(\pi x y)\sqrt{x y} | 189 f(x, y) = \sin(\pi x y)\sqrt{x y} |
190 $$ | 190 $$ |
191 @end tex | 191 @end tex |
192 @ifnottex | 192 @ifnottex |
193 | |
193 @example | 194 @example |
194 f(x, y) = sin(pi*x*y)*sqrt(x*y) | 195 f(x, y) = sin(pi*x*y)*sqrt(x*y) |
195 @end example | 196 @end example |
197 | |
196 @end ifnottex | 198 @end ifnottex |
197 for @math{x} and @math{y} between 0 and 1. | 199 for @math{x} and @math{y} between 0 and 1. |
198 | 200 |
199 The first approach creates a function that integrates @math{f} with | 201 The first approach creates a function that integrates @math{f} with |
200 respect to @math{x}, and then integrates that function with respect to | 202 respect to @math{x}, and then integrates that function with respect to |
219 @end group | 221 @end group |
220 @end example | 222 @end example |
221 | 223 |
222 The above process can be simplified with the @code{dblquad} and | 224 The above process can be simplified with the @code{dblquad} and |
223 @code{triplequad} functions for integrals over two and three | 225 @code{triplequad} functions for integrals over two and three |
224 variables. For example | 226 variables. For example: |
225 | 227 |
226 @example | 228 @example |
227 @group | 229 @group |
228 I = dblquad (@@(x, y) sin(pi.*x.*y).*sqrt(x.*y), 0, 1, 0, 1) | 230 I = dblquad (@@(x, y) sin(pi.*x.*y).*sqrt(x.*y), 0, 1, 0, 1) |
229 @result{} 0.30022 | 231 @result{} 0.30022 |