Fixed a formula to calculate the relative error
Merge pull request #336 from ivan-korolev:fix_relative_error_formula