?

Average Error: 0.0 → 0.0
Time: 2.2s
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
Error23.0
Cost1312
\[\begin{array}{l} t_1 := t \cdot \left(-z\right)\\ \mathbf{if}\;x \leq -3.1 \cdot 10^{+101}:\\ \;\;\;\;y \cdot x\\ \mathbf{elif}\;x \leq -3.7 \cdot 10^{+68}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -3.8 \cdot 10^{+45}:\\ \;\;\;\;y \cdot x\\ \mathbf{elif}\;x \leq -1.4 \cdot 10^{-37}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -7.5 \cdot 10^{-44}:\\ \;\;\;\;y \cdot x\\ \mathbf{elif}\;x \leq -2.1 \cdot 10^{-139}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -1.35 \cdot 10^{-161}:\\ \;\;\;\;y \cdot x\\ \mathbf{elif}\;x \leq 2.9 \cdot 10^{-118}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;y \cdot x\\ \end{array} \]
Alternative 2
Error31.0
Cost192
\[y \cdot x \]

Error

Reproduce?

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