?

Average Error: 0.1 → 0.1
Time: 1.7min
Precision: binary64
Cost: 576

?

\[\left(x \cdot y + z\right) \cdot y + t \]
\[\left(x \cdot y + z\right) \cdot y + t \]
(FPCore (x y z t) :precision binary64 (+ (* (+ (* x y) z) y) t))
(FPCore (x y z t) :precision binary64 (+ (* (+ (* x y) z) y) t))
double code(double x, double y, double z, double t) {
	return (((x * y) + z) * y) + t;
}
double code(double x, double y, double z, double t) {
	return (((x * y) + z) * y) + 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) * y) + 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) * y) + t
end function
public static double code(double x, double y, double z, double t) {
	return (((x * y) + z) * y) + t;
}
public static double code(double x, double y, double z, double t) {
	return (((x * y) + z) * y) + t;
}
def code(x, y, z, t):
	return (((x * y) + z) * y) + t
def code(x, y, z, t):
	return (((x * y) + z) * y) + t
function code(x, y, z, t)
	return Float64(Float64(Float64(Float64(x * y) + z) * y) + t)
end
function code(x, y, z, t)
	return Float64(Float64(Float64(Float64(x * y) + z) * y) + t)
end
function tmp = code(x, y, z, t)
	tmp = (((x * y) + z) * y) + t;
end
function tmp = code(x, y, z, t)
	tmp = (((x * y) + z) * y) + t;
end
code[x_, y_, z_, t_] := N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision]
code[x_, y_, z_, t_] := N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision]
\left(x \cdot y + z\right) \cdot y + t
\left(x \cdot y + z\right) \cdot y + t

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation?

  1. Initial program 0.1

    \[\left(x \cdot y + z\right) \cdot y + t \]

Alternatives

Alternative 1
Error28.9
Cost848
\[\begin{array}{l} t_1 := \left(y \cdot x\right) \cdot y\\ \mathbf{if}\;t \leq -1.75 \cdot 10^{-307}:\\ \;\;\;\;t\\ \mathbf{elif}\;t \leq 2.5 \cdot 10^{-133}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 110:\\ \;\;\;\;t\\ \mathbf{elif}\;t \leq 8 \cdot 10^{+42}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]
Alternative 2
Error15.4
Cost848
\[\begin{array}{l} t_1 := z \cdot y + t\\ t_2 := \left(y \cdot x\right) \cdot y\\ \mathbf{if}\;t \leq 1.5 \cdot 10^{-209}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 1.15 \cdot 10^{-157}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq 110:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 8 \cdot 10^{+42}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 3
Error8.3
Cost712
\[\begin{array}{l} t_1 := z \cdot y + t\\ \mathbf{if}\;z \leq -6.8 \cdot 10^{-20}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 185000:\\ \;\;\;\;x \cdot \left(y \cdot y\right) + t\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 4
Error5.3
Cost712
\[\begin{array}{l} t_1 := z \cdot y + t\\ \mathbf{if}\;z \leq -7 \cdot 10^{-14}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 1.55 \cdot 10^{+48}:\\ \;\;\;\;\left(y \cdot x\right) \cdot y + t\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 5
Error29.5
Cost64
\[t \]

Error

Reproduce?

herbie shell --seed 2023033 
(FPCore (x y z t)
  :name "Language.Haskell.HsColour.ColourHighlight:unbase from hscolour-1.23"
  :precision binary64
  (+ (* (+ (* x y) z) y) t))