I would like to animate drawing the function only after press the [Check] button.
Here is a way to do it. I changed the function to be defined parametrically (this happens when you use t as a variable). This is a useful way to control animations. Alternatively, you can define it normally, and have the domain restriction vary with the timer.
Thanks for the solution. However can you please explain the a_{nimate} line and the s_{howGraph} line ? I’m not familiar with such (arg1, arg2, arg3) three arguments command.
a_{nimate}\left(t,\ s_{tart},\ d_{uration}\right)=\operatorname{median}\left(0,1,\frac{t-s_{tart}}{d_{uration}}\right)
hi, one more question.
How did you manage the (t, t^2) define as line. When I try it defined as point.
thnks
In desmos, you can create functions with any number of arguments. For example,
f(a, b, c) = a + b + c
n = f(2, 3, 4) would return 8
The key to the animation is using the median function. If t represents the timer, then median(0, 1, t) will always return 0 until is between 0 and 1, and then 1 after t is greater than 1.
The benefit is that you can create instances of timers that vary from 0 to 1, which you can think of as 0% to 100% of whatever animation move you want to make (position, opacity, rotation, etc.).
animate(t, start, dur) = median(0, 1, t - start / dur) means that you are creating a new function called animate, and the parameters are the timer variable, the start time, and the duration of the animation. Notice that start creates a horizontal shift, and dur creates a horizontal stretch. So you are basically just transforming the median function.
So if I then write:
t0 = 0
showgraph = animate(t0, 0, 2)
That will create a variable called showgraph that will vary from 0 to 1 starting when t0 is 0 and ending when t0 is 2.
That showgraph number can then be multiplied by other quantities in the graph that you want to vary over time.
If you want a better explanation with examples, you can work through these modules:
Make sure you haven’t defined t in another line.
many thanks, here is what I’ve done (screen 2).
animate drawung graph
Cool, I like how you are analyzing their sketch! I added in a couple lines into the graph to show how you can simplify things by applying a function to a list. It’s a very helpful thing to know, because it can make complicated projects much easier to manage.
How nice, thanks for your help. I liked the most the lable “correct” in hebrew.
Thanks a million.