Average Error: 0.0 → 0.0
Time: 4.3s
Precision: binary64
Cost: 448
\[x \cdot y - z \cdot t\]
\[x \cdot y - z \cdot t\]
x \cdot y - z \cdot t
x \cdot y - z \cdot t
(FPCore (x y z t) :precision binary64 (- (* x y) (* z t)))
(FPCore (x y z t) :precision binary64 (- (* x y) (* z t)))
double code(double x, double y, double z, double t) {
	return (x * y) - (z * t);
}
double code(double x, double y, double z, double t) {
	return (x * y) - (z * t);
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Alternatives

Alternative 1
Error16.3
Cost1361
\[\begin{array}{l} \mathbf{if}\;z \cdot t \leq -9.482902123141514 \cdot 10^{-59} \lor \neg \left(z \cdot t \leq 2.6454540358837224 \cdot 10^{-68} \lor \neg \left(z \cdot t \leq 2.8076562141193225 \cdot 10^{+32}\right) \land z \cdot t \leq 2.7756933597716596 \cdot 10^{+72}\right):\\ \;\;\;\;-z \cdot t\\ \mathbf{else}:\\ \;\;\;\;x \cdot y\\ \end{array}\]
Alternative 2
Error30.9
Cost192
\[x \cdot y\]
Alternative 3
Error61.0
Cost64
\[0\]
Alternative 4
Error61.7
Cost64
\[1\]

Error

Derivation

  1. Initial program 0.0

    \[x \cdot y - z \cdot t\]
  2. Simplified0.0

    \[\leadsto \color{blue}{x \cdot y - z \cdot t}\]
  3. Final simplification0.0

    \[\leadsto x \cdot y - z \cdot t\]

Reproduce

herbie shell --seed 2021044 
(FPCore (x y z t)
  :name "Linear.V3:cross from linear-1.19.1.3"
  :precision binary64
  (- (* x y) (* z t)))