Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Double Integral error
Replies: 5   Last Post: Nov 28, 2012 1:24 PM

 Search Thread: Advanced Search

 Messages: [ Previous | Next ]
 Francesco Perrone Posts: 39 Registered: 5/2/12
Re: Double Integral error
Posted: Nov 28, 2012 1:24 PM
 Plain Text Reply

Steve,

would it be possible to use the first approach you proposed with dblquad, accounting for k2 and k3 at the same time?

I mean doing

for i = 2:numel(k1)

phi_33 = @(k2, k3) E_k0./((4*pi.*k.^4)).*(k1(i).^2 + k2.^2);

PHI_33(i) = quad(phi_33,k2(i-1),k2(i),k3(i-1),k3(i));

end

Like this should it be possible to overcome the issue you noted about actually using the second input, instead of guessing that it's not called for real.

I thank you again.

BR,
Francesco

Date Subject Author
11/28/12 Francesco Perrone
11/28/12 Steven Lord
11/28/12 Francesco Perrone
11/28/12 Francesco Perrone
11/28/12 Steven Lord
11/28/12 Francesco Perrone

© The Math Forum at NCTM 1994-2018. All Rights Reserved.