Commit 167b8b23 authored by Anastasiia's avatar Anastasiia

remove debugging statements

parent 8d25e2fb
......@@ -265,16 +265,9 @@ object DynamicPhase extends DaisyPhase {
case Variable(id) => valMap(id)
case RealLiteral(r) => r.toDouble
case Plus(x, y) =>
reporter.debug(s"x + y = $x + $y")
val tmp = eval(x) + eval(y)
reporter.debug(s"=$tmp")
tmp
case Plus(x, y) => eval(x) + eval(y)
case Minus(x, y) => eval(x) - eval(y)
case Times(x, y) => reporter.debug(s"x * y = $x * $y")
val tmp = eval(x) * eval(y)
reporter.debug(s"=$tmp")
tmp
case Times(x, y) => eval(x) * eval(y)
case Division(x, y) => eval(x) / eval(y)
case Pow(x, y) => math.pow( eval(x), eval(y))
case UMinus(x) => - eval(x)
......
......@@ -123,12 +123,6 @@ class ErrorMeasurerRational {
val absError = rat_abs(Rational.fromDouble(lowPrec) - highPrec)
val relError = rat_abs(absError / highPrec)
// if (relError > currentRelError_Max) {
// System.out.println("The changing double input is:" + inputX + " value is "+ lowPrec)
// for (i <- inputR)
// System.out.println("absErr:"+ absError +";Rational input is " + i._2.toFractionString + " value is " + highPrec)
//
// }
currentAbsError_Min = rat_min(currentAbsError_Min, absError)
currentAbsError_Max = rat_max(currentAbsError_Max, absError)
currentRelError_Min = rat_min(currentRelError_Min, relError)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment