14
$\begingroup$

Bug introduced In 10.1 or earlier and fixed 11.1


Consider the following ParametricRegion from an answer to this question:

region = ParametricRegion[{{(1 + r - 12 r^2 + 4 r^3)/(2 r - 2), 
     z Sqrt[(4 r^2)/(r - 1)^2 (r - r^2 (r - 3)^2)]}, 
    2 < r < 4 && -1 < z < 1}, {r, z}];

Now let's discretize this region using various versions of Mathematica starting from 10.1:

DiscretizeRegion[region]

Mathematica graphics Mathematica graphics Mathematica graphics Mathematica graphics

Something is seriously wrong here, seems like a progression from 10.1 to 10.2, then a serious (let's call it a bug) regression from 10.2 to 10.3. 10.4 just gets the region wrong. The problem seems to be with ParametricRegion and how Mathematica handles them because I get similar wrong results with RegionPlot too. Can anyone confirm these?

$\endgroup$
6
  • $\begingroup$ Did your laptop installed all the Mathematica version like $10.1,10.2,10.3$ and $10.4$? $\endgroup$
    – xyz
    Mar 23, 2016 at 7:33
  • $\begingroup$ I found the same result (for v.10.4) on Windows and Linux x86 $\endgroup$
    – physicien
    Mar 23, 2016 at 17:10
  • $\begingroup$ Same with v 10.3 on Linux. $\endgroup$
    – Öskå
    Mar 23, 2016 at 19:41
  • 1
    $\begingroup$ @RunnyKine Shouldn't the B-word now be used without a question mark? $\endgroup$
    – gwr
    Mar 24, 2016 at 10:00
  • $\begingroup$ @gwr. You're probably right, but I can't think of a better way to rephrase it. $\endgroup$
    – RunnyKine
    Mar 24, 2016 at 10:15

1 Answer 1

3
$\begingroup$

This bug is fixed in 11.1:

region = ParametricRegion[{{(1 + r - 12 r^2 + 4 r^3)/(2 r - 2), 
     z Sqrt[(4 r^2)/(r - 1)^2 (r - r^2 (r - 3)^2)]}, 
    2 < r < 4 && -1 < z < 1}, {r, z}];

DiscretizeRegion[region]

Mathematica graphics

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.