How do I label the "2" and "3" so they show "square" and "cubed" in Manipulate controls? The following is my code:
f[x_] := x
Manipulate[f[x]^n, {x, -10, 10, 1}, {n, {2, 3}}]
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityHow do I label the "2" and "3" so they show "square" and "cubed" in Manipulate controls? The following is my code:
f[x_] := x
Manipulate[f[x]^n, {x, -10, 10, 1}, {n, {2, 3}}]
I'd do it this way:
Manipulate[
x^n,
{x, -10, 10, 1, Appearance-> "Labeled"},
{{n, 2}, {2 -> "square", 3 -> "cube"}}]
Manipulate
. Open the "Details and Options` section and it should jump right at you :) $\endgroup$ – halirutan♦ Mar 6 '20 at 5:30