Use solved variables in other equations
y = 2z + 1
z(3) => 1
z(3) * 5 => 5*z(3) //This should be 5
3 comments

Pedro commented
My initial hyperventilating enthusiasm with Calca soon vanished when I realised that creating a new definition with the value of a solved variable or using that solved variable in other equations is not supported:
y = a * b
res1 = y(a=2,b=3)=> 6
res1=> 6res2 = a(y=3, b=4)=> 0.75
res2=> a(y=3, b=4)
#res2 should be 0.75 
Barry Ferg commented
Even something as simple as this doesn't work:
5 = y + 3
y => 2
x = y
x + 1 => y + 1I think it is because when it solves for "y", the "y" is an expression so the engine doesn't actually define it like it would a variable. Quite counterintuitive, ideally the whole document could be treated as a system of equations or at least allow for variables to be defined based on "solved" expressions.

Björn Carlsson commented
hyp = sqrt(x^2 + y^2)
hyp = 95
x = 50it would be nice if it became this: y => 80.7775
but this is the result: y => sqrt(hyp^2  2,500)