0
|
543 Views
|
4 Replies
|
1 Total Likes
View groups...
Share
GROUPS:

# Can Wolfram Language be used to simplify two algebra expressions by Elements rather than numbers?

Posted 1 month ago
 If I have two equations: a + b = c a = d * e Is there a way to return every equation for all five Elements a, b, c, d and e? There should be ten equations returned, for example for the element b there are two possible equations by rearranging a + b = c for one equation and substituting a = d * e for the other: b = c – a b = c – d * e I've tried Solve and FullSimplify without success.
4 Replies
Sort By:
Posted 1 month ago
 ToString[InputForm[Reduce[eqn, #] & /@ vars]] would be one way to get the result in a form closer to what could be incorporated into C++
Posted 1 month ago
 Try e.g.: eqn = {a + b == c, a == d*e}; vars = {a, b, c, d, e}; Reduce[eqn, #] & /@ vars N.b.: '=' is an assignment; for defining an equation you need '=='.
Posted 1 month ago
 Thank you, that's very helpful.What I'm trying to do is capture the result as parameters in a C++ program. Which is my next step :)
Posted 1 month ago