Average Error: 0.0 → 0.0
Time: 3.0s
Precision: binary64
Cost: 448
\[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);
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    code = (x * y) - (z * t)
end function
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    code = (x * y) - (z * t)
end function
public static double code(double x, double y, double z, double t) {
	return (x * y) - (z * t);
}
public static double code(double x, double y, double z, double t) {
	return (x * y) - (z * t);
}
def code(x, y, z, t):
	return (x * y) - (z * t)
def code(x, y, z, t):
	return (x * y) - (z * t)
function code(x, y, z, t)
	return Float64(Float64(x * y) - Float64(z * t))
end
function code(x, y, z, t)
	return Float64(Float64(x * y) - Float64(z * t))
end
function tmp = code(x, y, z, t)
	tmp = (x * y) - (z * t);
end
function tmp = code(x, y, z, t)
	tmp = (x * y) - (z * t);
end
code[x_, y_, z_, t_] := N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_, t_] := N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]
x \cdot y - z \cdot t
x \cdot y - z \cdot t

Error

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

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

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

Alternatives

Alternative 1
Error21.3
Cost1048
\[\begin{array}{l} t_1 := t \cdot \left(-z\right)\\ \mathbf{if}\;z \leq -7.1 \cdot 10^{+143}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -3.4 \cdot 10^{+134}:\\ \;\;\;\;x \cdot y\\ \mathbf{elif}\;z \leq -4.8 \cdot 10^{+20}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -3.8 \cdot 10^{-16}:\\ \;\;\;\;x \cdot y\\ \mathbf{elif}\;z \leq -2.2 \cdot 10^{-33}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 1.45 \cdot 10^{-51}:\\ \;\;\;\;x \cdot y\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 2
Error31.4
Cost192
\[x \cdot y \]

Error

Reproduce

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