Average Error: 0.0 → 0.0
Time: 3.8s
Precision: 64
\[b \cdot b - a \cdot c\]
\[b \cdot b - a \cdot c\]
b \cdot b - a \cdot c
b \cdot b - a \cdot c
double f(double b, double a, double c) {
        double r1482319 = b;
        double r1482320 = r1482319 * r1482319;
        double r1482321 = a;
        double r1482322 = c;
        double r1482323 = r1482321 * r1482322;
        double r1482324 = r1482320 - r1482323;
        return r1482324;
}

double f(double b, double a, double c) {
        double r1482325 = b;
        double r1482326 = r1482325 * r1482325;
        double r1482327 = a;
        double r1482328 = c;
        double r1482329 = r1482327 * r1482328;
        double r1482330 = r1482326 - r1482329;
        return r1482330;
}

Error

Bits error versus b

Bits error versus a

Bits error versus c

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[b \cdot b - a \cdot c\]
  2. Final simplification0.0

    \[\leadsto b \cdot b - a \cdot c\]

Reproduce

herbie shell --seed 1 
(FPCore (b a c)
  :name "b*b-a*c"
  :precision binary64
  (- (* b b) (* a c)))