fixed rational equations
Merge pull request #9 from mkotov/trig-1

fixed rational equations