More elegant way of solving exact equations
Merge pull request #1955 from Manoj-Kumar-S/speed

More elegant way of solving exact equations