?

Average Error: 0.0 → 0.0
Time: 6.0s
Precision: binary64
Cost: 448

?

\[200 \cdot \left(x - y\right) \]
\[200 \cdot x + -200 \cdot y \]
(FPCore (x y) :precision binary64 (* 200.0 (- x y)))
(FPCore (x y) :precision binary64 (+ (* 200.0 x) (* -200.0 y)))
double code(double x, double y) {
	return 200.0 * (x - y);
}
double code(double x, double y) {
	return (200.0 * x) + (-200.0 * y);
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    code = 200.0d0 * (x - y)
end function
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    code = (200.0d0 * x) + ((-200.0d0) * y)
end function
public static double code(double x, double y) {
	return 200.0 * (x - y);
}
public static double code(double x, double y) {
	return (200.0 * x) + (-200.0 * y);
}
def code(x, y):
	return 200.0 * (x - y)
def code(x, y):
	return (200.0 * x) + (-200.0 * y)
function code(x, y)
	return Float64(200.0 * Float64(x - y))
end
function code(x, y)
	return Float64(Float64(200.0 * x) + Float64(-200.0 * y))
end
function tmp = code(x, y)
	tmp = 200.0 * (x - y);
end
function tmp = code(x, y)
	tmp = (200.0 * x) + (-200.0 * y);
end
code[x_, y_] := N[(200.0 * N[(x - y), $MachinePrecision]), $MachinePrecision]
code[x_, y_] := N[(N[(200.0 * x), $MachinePrecision] + N[(-200.0 * y), $MachinePrecision]), $MachinePrecision]
200 \cdot \left(x - y\right)
200 \cdot x + -200 \cdot y

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation?

  1. Initial program 0.0

    \[200 \cdot \left(x - y\right) \]
  2. Taylor expanded in x around 0 0.0

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

    \[\leadsto 200 \cdot x + -200 \cdot y \]

Alternatives

Alternative 1
Error16.9
Cost720
\[\begin{array}{l} \mathbf{if}\;y \leq -5.8 \cdot 10^{+99}:\\ \;\;\;\;-200 \cdot y\\ \mathbf{elif}\;y \leq -1.9 \cdot 10^{+26}:\\ \;\;\;\;200 \cdot x\\ \mathbf{elif}\;y \leq -2 \cdot 10^{-24}:\\ \;\;\;\;-200 \cdot y\\ \mathbf{elif}\;y \leq 7 \cdot 10^{+54}:\\ \;\;\;\;200 \cdot x\\ \mathbf{else}:\\ \;\;\;\;-200 \cdot y\\ \end{array} \]
Alternative 2
Error0.0
Cost320
\[200 \cdot \left(x - y\right) \]
Alternative 3
Error31.9
Cost192
\[-200 \cdot y \]

Error

Reproduce?

herbie shell --seed 2023064 
(FPCore (x y)
  :name "Data.Colour.CIE:cieLABView from colour-2.3.3, C"
  :precision binary64
  (* 200.0 (- x y)))