Average Error: 0.0 → 0.0
Time: 4.7s
Precision: 64
\[\sqrt{1 - e \cdot e}\]
\[\sqrt{1 - e \cdot e}\]
\sqrt{1 - e \cdot e}
\sqrt{1 - e \cdot e}
double f(double e) {
        double r869982 = 1.0;
        double r869983 = e;
        double r869984 = r869983 * r869983;
        double r869985 = r869982 - r869984;
        double r869986 = sqrt(r869985);
        return r869986;
}

double f(double e) {
        double r869987 = 1.0;
        double r869988 = e;
        double r869989 = r869988 * r869988;
        double r869990 = r869987 - r869989;
        double r869991 = sqrt(r869990);
        return r869991;
}

Error

Bits error versus e

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\sqrt{1 - e \cdot e}\]
  2. Final simplification0.0

    \[\leadsto \sqrt{1 - e \cdot e}\]

Reproduce

herbie shell --seed 1 
(FPCore (e)
  :name "sqrt(1-e*e)"
  :precision binary64
  (sqrt (- 1 (* e e))))