Stan Wagon's Third Edition of Mathematica in Action has this code on page 30:
Manipulate[
Plot[Sin[x], {x, 0, Pi},
Method -> {Refinement -> {ControlValue -> (90 - n °)}},
Mesh -> All,
MeshStyle -> {Red, PointSize[Large]},
PlotPoints -> 8],
{n, 0, 90, 2}]
It does not work. Are Refinement
and ControlValue
options of the past for Mathematica?
Is there a workaround for this code?
The Cure
Manipulate[
Plot[Sin[x], {x, 0, Pi},
Method -> {Refinement -> {ControlValue -> (90 - n) \[Degree]}},
Mesh -> All,
MeshStyle -> {Red, PointSize[Large]},
PlotPoints -> 8],
{n, 0, 90, 2}
]
Folks are correct, the degree symbol was misplaced. However, my real question here is why do Refinement
and ControlValue
have blue rather than black coloring in my notebook, and why can I not find them in the documentation?