I really new to Mathematica and I am working on developing interactive CDF. To understand the basics I start with a simple example but even with that I have a problem. In this simple CDF I want to able enter a function (Sin, Cos...) This is the example that I started from
Panel[DynamicModule[{f = Sin[ x]},
Column[{InputField[Dynamic[f]], Dynamic[Plot[f, {x, -5, 5}]]}]]]
But here I would like to be able not only change the function also the range and one more parameter such as frequency. So I know I need to use manipulate (I want to use as CDF)
Manipulate[
DynamicModule[{f = Sin[o x + p]},
Column[{InputField[Dynamic[f]], Dynamic[Plot[f, {x, -5, 5}]]}]], {o,
1, 10}, { p, 2, 10}]
but here I can't change the function even I type Cos
and slide the o or p it goes back to Sin
.
Any idea how I can do this? Also what does Column function's purpose in here?
Column
just places theInputField
above the plot. $\endgroup$