Bug introduced in 10.0 and fixed in 10.2.0
It's no surprise that the "MonteCarlo"
Method
works well:
NIntegrate[1, {x, y} ∈ Triangle[{{0, 0}, {1, 2}, {2, 1}}],
Method -> "MonteCarlo"]
(*1.50189*)
But when I try to change "MaxPoints"
, NIntegrate
directly refuses me.
NIntegrate[1, {x, y} ∈ Triangle[{{0, 0}, {1, 2}, {2, 1}}],
Method -> {"MonteCarlo", "MaxPoints" -> 10^5}]
So sad! What's the story?
NIntegrate[1, {x, y} \[Element] Triangle[{{0, 0}, {1, 2}, {2, 1}}], Method -> {"MonteCarlo"}]
returns unevaluated, too. $\endgroup$ – Michael E2 May 10 '15 at 21:45Trace
withTraceInternal -> True
, it gobbles up memory and I have to kill it. $\endgroup$ – Michael E2 May 11 '15 at 1:40