How can I solve equations with F#?
For example (just a loose syntax I made up):
define a, b where (a + b = 5) and (a - b = 1)
define c where (c = c / 2)
print a, b, c
I want it to output 3
, 2
and 0
.
Also, can it do things like define d where d = c + a
using solutions from previously defined equations?