Desmos for sequential programming?

This is just a curiosity.

Using actions and a ticker you can actually create sequential programs in Desmos.
You can simulate commands, if, while, for, etc …
Here’s an example that calculates triangular numbers: Click S_Start

https://www.desmos.com/geometry/g87ax8e7pu

the pseudo-code would be:

n = 0
p = 5
for i=1 to p
   n = n+i
   i = i+1

Did anyone ever use this technique to create something useful or as a teaching example?

It’s a pity that lists of actions are not allowed …

1 Like