# Problem with code from Stan Wagon's book [duplicate]

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?

David, replace

Method -> {Refinement -> {ControlValue -> (90 - n °)}}


with

Method -> {Refinement -> {ControlValue -> (90 - n) °}}

• More detail would be helpful – bbgodfrey Jul 25 '15 at 20:41
• @bbgodfrey Misplaced parenthesis in OP's code. See my comment above. – Sjoerd C. de Vries Jul 25 '15 at 22:11
• @Willinski . Yes, that is definitely a mistake, but my real question here is why do Refinement and ControlValue remain in blue, and why can I not find them in the documentation? – David Jul 26 '15 at 0:53
• @David, MaxBend` used to be documented, but stopped being documented since version 6 IIRC. – J. M. is in limbo Jul 26 '15 at 1:14