1

I'm using MMA 10.1.0.0 on a MacBook Pro 11,3 (mid-2014, 16 GB RAM) running MacOS Sierra 10.12.3.

If I run this code in one cell (source: Need help translating Mathematica code to LaTeX)....

rose[x_, theta_] := 
Module[{phi = (Pi/2) Exp[-theta/(8 Pi)], 
u = 1 - (1/2) ((5/4) (1 - Mod[3.6 theta, 2 Pi]/Pi)^2 - 1/4)^2, y, 
r}, y = 1.95653 x^2 (1.27689 x - 1)^2 Sin[phi];
r = u (x Sin[phi] + y Cos[phi]);
{r Sin[theta], r Cos[theta], u (x Cos[phi] - y Sin[phi])}]

ParametricPlot3D[rose[x, theta], {x, 0, 1}, {theta, -2 Pi, 15 Pi}, 
PlotStyle -> {Glow[Red]}, PlotTheme -> {"NoAxis", "ZMesh"}, 
Lighting -> {{"Directional", GrayLevel[.4], {{0, 0, 1}, {0, 0, 0}}}},
PlotPoints -> {25, 250}]

Followed by this code in a separate cell....

ParametricPlot3D[rose[x, theta], {x, 0, 1}, {theta, -2 Pi, 15 Pi}, 
PlotStyle -> {Glow[Red]}, PlotTheme -> {"NoAxis", "ZMesh"}, 
Lighting -> {{"Directional", GrayLevel[.4], {{0, 0, 1}, {0, 0, 0}}}},
PlotPoints -> {25, 250}, Mesh -> False]

Everything works fine:

enter image description here

But if I try to run it all in one cell, the kernel (but not the program) crashes silently before completing the second graphic. The issue is reproducible — the kernel always crashes. Quitting and restarting MMA, and rebooting the Mac, has no effect.

Is there some reason I shouldn't be running this code in a single cell, or is this a known issue with MMA 10.1? If not, can others (especially those running 10.1 on a Mac) try replicating this?:

enter image description here

theorist
  • 3,633
  • 1
  • 15
  • 27
  • 1
    I cannot reproduce this problem on V11.0.1 or V10.4 (Win 64, 24 GB RAM). – gwr Mar 11 '17 at 18:02
  • 2
    There were several types of crashes involving ParametricPlot3D that were fixed in 10.1.1, and at least a couple more in 10.3. My suggestion: upgrade. – rcollyer Mar 11 '17 at 18:05
  • @gwr Thanks for catching that, I've corrected it in the post. [Note to others: that was a copying error in the post; it does not affect my results—as can be seen from the screenshot, the bracket was present in the notebook.] – theorist Mar 11 '17 at 18:10
  • @rcollyer Thanks for letting me know, sounds like it is time to upgrade. But I'm going to wait three more days, until 3/14, to see if they offer another Pi Day promotion this year :). I'll report back after doing so. – theorist Mar 11 '17 at 18:50

1 Answers1

0

Consistent with comments made by gwr and rcollyer, I can confirm that upgrading from the older version I was using (10.1.0), to the version current at the time of this post (11.0.1), eliminated the problem.

theorist
  • 3,633
  • 1
  • 15
  • 27