Average Error: 0.6 → 0.6
Time: 4.0s
Precision: binary64
\[{\left(\left(\left(\left(3 \cdot x1\right) \cdot y2 - x1 \cdot y3\right) - \left(3 \cdot x2\right) \cdot y1\right) + x3 \cdot y1\right)}^{2}\]
\[{\left(\left(\left(\left(3 \cdot x1\right) \cdot y2 - x1 \cdot y3\right) - \left(3 \cdot x2\right) \cdot y1\right) + x3 \cdot y1\right)}^{2}\]
{\left(\left(\left(\left(3 \cdot x1\right) \cdot y2 - x1 \cdot y3\right) - \left(3 \cdot x2\right) \cdot y1\right) + x3 \cdot y1\right)}^{2}
{\left(\left(\left(\left(3 \cdot x1\right) \cdot y2 - x1 \cdot y3\right) - \left(3 \cdot x2\right) \cdot y1\right) + x3 \cdot y1\right)}^{2}
double code(double x1, double y2, double y3, double x2, double y1, double x3) {
	return ((double) pow(((double) (((double) (((double) (((double) (((double) (3.0 * x1)) * y2)) - ((double) (x1 * y3)))) - ((double) (((double) (3.0 * x2)) * y1)))) + ((double) (x3 * y1)))), 2.0));
}
double code(double x1, double y2, double y3, double x2, double y1, double x3) {
	return ((double) pow(((double) (((double) (((double) (((double) (((double) (3.0 * x1)) * y2)) - ((double) (x1 * y3)))) - ((double) (((double) (3.0 * x2)) * y1)))) + ((double) (x3 * y1)))), 2.0));
}

Error

Bits error versus x1

Bits error versus y2

Bits error versus y3

Bits error versus x2

Bits error versus y1

Bits error versus x3

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.6

    \[{\left(\left(\left(\left(3 \cdot x1\right) \cdot y2 - x1 \cdot y3\right) - \left(3 \cdot x2\right) \cdot y1\right) + x3 \cdot y1\right)}^{2}\]
  2. Final simplification0.6

    \[\leadsto {\left(\left(\left(\left(3 \cdot x1\right) \cdot y2 - x1 \cdot y3\right) - \left(3 \cdot x2\right) \cdot y1\right) + x3 \cdot y1\right)}^{2}\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x1 y2 y3 x2 y1 x3)
  :name "(pow (+ (- (- (* (* 3 x1) y2) (* x1 y3)) (* (* 3 x2) y1)) (* x3 y1)) 2)"
  :precision binary64
  (pow (+ (- (- (* (* 3.0 x1) y2) (* x1 y3)) (* (* 3.0 x2) y1)) (* x3 y1)) 2.0))