tags:

views:

61

answers:

2

We all know this is true:

(a+b)c = ca+b*c

But how to judge it in programme?

+1  A: 

One way is to convert the algebraic expressions in the same format.
Simplify both left and right expressions by applying the algrebraic rules.
For simple equations it won't be too hard to implement it.

Check out Simplify any Algebraic Expression. Tryout various expressions to get an idea.

Nick D