chrisnc / hvx

Disciplined Convex Programming in Haskell
Other
22 stars 8 forks source link

Add the ability to compute things by hand #6

Closed cheater closed 7 years ago

cheater commented 7 years ago

I would like to take an Expr and see what happens to it at a specific value, to see how the various functions that construct Expr behave, before I run a solver on it. That would be very helpful.

chrisnc commented 7 years ago

There is a function called evaluate that's exported from the top-level module. I think it does what you're asking for.