help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help with double quadrature


From: Nir Krakauer
Subject: Re: help with double quadrature
Date: Mon, 11 Sep 2017 17:06:34 -0400

Matlab's documentation suggests using dblquad with the function modified to be 0 outside the region of interest, for example

fn = @(x, y) f(x, y) .* (y <= (1 - x));
I = dblquad (fn, 0, 1, 0, 1);​

Looking at the Octave source code for dblquad, it seems like it wouldn't be too hard to modify to allow for ymin and ymax being functions of x, which would be a bit more efficient.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]