Desmos assign operator ($\rightarrow$) assigning multiple times without click manually

576 Views Asked by At

How do I assign a variabel automatically for n-times without clicking it n-times?

I have this statement that I must click the red circled button in picture to assign updated value for variabel $a$: enter image description here

where initially: $a=[3]$

Then yes its worked, the $a$ value will updated after I click the button to: $a=[3,2.98]$

This is problem for me if I want repeat multiple times like 100 times due to manually click it therefore it will slow (depends on my fingers) .

So I expect I can iterate (assigning) it automatically to the 100 times.

Here is full graph: https://www.desmos.com/calculator/8rovvdndnr

1

There are 1 best solutions below

0
On

Thanks @Graviton now I can extend your graph version.

While your answer was only introducing ticker feature, now I can solve my problem.

My problem is limited to the 100 iterrations. So how do I do it?

Just define expression conditional action with curly bracket desmos syntax in variabel $I$ that is... do action $A$ (appending list $a$ then increment $i+=1$) while $i < 100$.

Since I don't need delay, so I set to 0ms.

Then to run the program just click the metronome ticks buttons. Here is full version of graph: https://www.desmos.com/calculator/9fwflxdhdc

About my mathematical problem, it's just simple computational problem where the application is commonly in Machine Learning or Artificial Inteligent, that is Gradient Descent. Where:

  • $f(x)$ is function.
  • $l(x,r)$ is learning function with parameter $r$ is learning rate.

Since gradient descent need previous output of $l(x,r)$ and desmos currently doesn't support recursive $l(l(l(3,r),r),r)$, you can use this solution to compute recursive function.