Average Error: 0.0 → 0.0
Time: 1.0s
Precision: binary64
\[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 code(double b, double a, double c) {
	return ((double) (((double) (b * b)) - ((double) (a * c))));
}
double code(double b, double a, double c) {
	return ((double) (((double) (b * b)) - ((double) (a * c))));
}

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 2020152 
(FPCore (b a c)
  :name "(- (* b b) (* a c))"
  :precision binary64
  (- (* b b) (* a c)))