I am trying to write a demonstration that plots user defined function and uses this function for further calculations. I tried the following code:
Manipulate[Plot[xx, {t, 0, 1}], {{xx, 0, "x(t)="}}]
I have two questions:
- This code plots the graph for some functions, but when I try t² in the input field, it does not graph anything (although it graphs t*t) This is a problem, because I would like to use this mainly to ask for polynomials.
- I would also like to use the input to define the function x(t), (for example to take and use the derivative) but I don't know enough of the mathematica language to do this.
I tried to look at tutorials, but could not find the relevant parts. Any help would be appreciated.
t^2
works for me as input. Can you put a screenshot of what you're trying? $\endgroup$Power[t, 2]
instead oft^2
. $\endgroup$t²
? For me it works if I'm usingt^2
or t + Ctrl + ^ + 2. It doesn't work if one is usingt²
. $\endgroup$