tangledown.org
Examples
Cookies
Mortgage
Syntax
Coins
Back to Page
If you want to make t[number](0<total cents_as_dollars) with t[number](coins ' coins'), use t[](pennies ' pennies'), t[](nickels ' nickels'), t[](dimes ' dimes'), t[](quarters ' quarters'), t[](halfdollars ' halfdollars') and t[](dollars ' dollars'). ~~~~.initialize #total: 300 #coins: 5 ~~~~ ~~~~.equations #coins: #pennies + #nickels + #dimes + #quarters + #halfdollars + #dollars #total: #pennies + 5*#nickels + 25*#quarters + 10*#dimes + 50*#halfdollars + 100*#dollars ~~~~ _Right now, TangleDown cannot solve this kind of problem. For one, it is underconstrained. Additionally, SymPy doens't solve inequalities in a way that would be easily captured through simple text Markdown. Using OpenMDAO, again, would solve this problem._
Navigate
Home
Sympy
Coins
TangleDown Syntax
Mortgage