Algosim documentation: How do I work with variables?

How do I work with variables?

To assign a value to a variable, use the operator. In the Algosim front end, you insert this operator by typing a colon (:) followed by an equals sign (=) and then space or a punctuation character.

Examples:

a ≔ 3
3
b ≔ i^i
0.207879576351
a + b
3.20787957635

You may set several variables at once to the same value:

a, b, c ≔ 5
5
a + b + c
15

You may also set them to different values:

a, b, c ≔ 1, 2, 3
3
a + b + c
6

To delete a variable, use the delete function:

delete(a)
success

Documentation links