for and with
for
Parametric graphs with any variable
Desmos normally uses for parametric graphs. With for, any variable can be the parameter.
1
2
Loading graph…
Both bounds must be explicit, as in . Use infinity for an unbounded side: .
Iterating through lists
1
2
3
With several lists, for uses every combination. See Lists and Sequences.
with
Substituting a value
with replaces an existing variable only within one expression.
1
2
3
The ordinary line is ; the expression using with draws .
Local variables
1
This cannot be referenced from other expressions, which helps prevent naming collisions. Function parameters can provide a similar structure.
1
2