Curvenote simple reactive variables example to calculate a sum

This shows an example of how to use Curvenote reactive components to make a simple calculator that is programmed in a very human natural way (compare with the same script but without reactive variables).


a: b: c:
sum (a+b+c):
sum squared (a+b+c)²:

Another way to calculate and display the results dynamically is to use javascript functions in the :value attribute : sum squared = (or in concise scientific notation: ).