Manipulate
Manipulate(plot, {x, min, max})generate a JavaScript control for the expression
plotwhich can be manipulated by a range slider{x, min, max}.
Manipulate(formula, {x, min, max, step})display generated
formulas and define thesteps in which the values forxshould change.
Note: This feature is not available on all supported platforms.
Manipulate generates JavaScript output for the following JavaScript libraries:
Examples
In the console apps, this command shows an HTML page with a JavaScript plot control,
where the value of the variable a can be manipulated by a slider in the range [0..10].
>> Manipulate(Plot(Sin(x)*Cos(1 + a*x), {x, 0, 2*Pi}), {a,0,10})A 3D surface plot control:
>> Manipulate(Plot3D(Sin(a*x*y), {x, -1.5, 1.5}, {y, -1.5, 1.5}), {a,1,5})Display a slider for the generated formulas:
>> Manipulate(Factor(x^n + 1), {n, 1, 5, 1})Display buttons to change the plotted function:
>> Manipulate(Plot(f(x), {x, 0, 2*Pi}), {f, {Sin, Cos, Tan, Cot}})With JSForm you can display the generated JavaScript form of the Manipulate function
>> Manipulate(Plot(Sin(x)*Cos(1 + a*x), {x, 0, 2*Pi}), {a,0,10}) // JSFormRelated terms
JSForm, ParametricPlot, Plot, Plot3D
Implementation status
- ✅ - full supported