0
$\begingroup$

I have multi-dimensional numerical integration of some function depending on one parameter. If no specification for the integration method is chosen, the output for specific values of the parameters is just the text form of the integration command: NIntegrate[f[x,y,z],{x,x0,x1},{y,y0,y1},{z,z0,z1}]. However, when I chose AdaptiveMonteCarlo method, the output is reasonable number.

Is there any option or parameter of NIntegrate command which allows the integration to be performed without setting the Method to AdaptiveMonteCarlo (probably, by using the other methods)? It gives relatively large uncertainty which is likely to be avoided.

P.S. Unfortunately, the function I used has rather long definition, and it would be problematic to write it here as an example demonstrating the issue.

$\endgroup$
  • $\begingroup$ Just evaluate SetOptions[NIntegrate, Method -> "AdaptiveMonteCarlo"] before anything else if you prefer that that method be used automatically. $\endgroup$ – J. M. will be back soon Sep 26 '18 at 9:06
  • $\begingroup$ @J.M.issomewhatokay : but this method contains relatively large uncertainty in comparison to other integration methods, and I would like to avoid it. I'm wondering why other methods don't work. $\endgroup$ – John Taylor Sep 26 '18 at 9:07
  • $\begingroup$ You asked "Is there any option of NIntegrate which allows the integration to be performed without setting the specific method?", while that one in your comment is a different question altogether. $\endgroup$ – J. M. will be back soon Sep 26 '18 at 9:14
  • $\begingroup$ @J.M.issomewhatokay. : This is really so. I've updated my question. $\endgroup$ – John Taylor Sep 26 '18 at 13:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.