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).
Another way to calculate and display the results dynamically is to use javascript functions in the :value attribute : sum squared =