?

Average Error: 0.1 → 0.1
Time: 42.5s
Precision: binary64
Cost: 14016

?

\[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
\[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
(FPCore (x y z t a b c i)
 :precision binary64
 (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))
(FPCore (x y z t a b c i)
 :precision binary64
 (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
}
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
}
real(8) function code(x, y, z, t, a, b, c, i)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    code = (((((x * log(y)) + z) + t) + a) + ((b - 0.5d0) * log(c))) + (y * i)
end function
real(8) function code(x, y, z, t, a, b, c, i)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    code = (((((x * log(y)) + z) + t) + a) + ((b - 0.5d0) * log(c))) + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
}
def code(x, y, z, t, a, b, c, i):
	return (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i)
def code(x, y, z, t, a, b, c, i):
	return (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i)
function code(x, y, z, t, a, b, c, i)
	return Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i))
end
function code(x, y, z, t, a, b, c, i)
	return Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i))
end
function tmp = code(x, y, z, t, a, b, c, i)
	tmp = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
end
function tmp = code(x, y, z, t, a, b, c, i)
	tmp = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation?

  1. Initial program 0.1

    \[\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]
  2. Final simplification0.1

    \[\leadsto \left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \]

Alternatives

Alternative 1
Error3.6
Cost14152
\[\begin{array}{l} t_1 := \left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + -0.5 \cdot \log c\right) + y \cdot i\\ \mathbf{if}\;x \leq -2.4 \cdot 10^{+98}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 2.3 \cdot 10^{+68}:\\ \;\;\;\;\left(\left(b - 0.5\right) \cdot \log c + \left(a + \left(t + z\right)\right)\right) + y \cdot i\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 2
Error4.9
Cost13896
\[\begin{array}{l} t_1 := \left(-0.5 \cdot \log c + \left(a + z\right)\right) + \left(t + \log y \cdot x\right)\\ \mathbf{if}\;x \leq -2.9 \cdot 10^{+100}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 1.1 \cdot 10^{+94}:\\ \;\;\;\;\left(\left(b - 0.5\right) \cdot \log c + \left(a + \left(t + z\right)\right)\right) + y \cdot i\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 3
Error7.3
Cost7624
\[\begin{array}{l} t_1 := \log y \cdot x\\ \mathbf{if}\;x \leq -3.5 \cdot 10^{+190}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 1.45 \cdot 10^{+205}:\\ \;\;\;\;\left(\left(b - 0.5\right) \cdot \log c + \left(a + \left(t + z\right)\right)\right) + y \cdot i\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 4
Error17.7
Cost7496
\[\begin{array}{l} t_1 := \log y \cdot x\\ \mathbf{if}\;x \leq -9 \cdot 10^{+191}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 4.6 \cdot 10^{+204}:\\ \;\;\;\;\left(\log c \cdot \left(b - 0.5\right) + \left(z + a\right)\right) + y \cdot i\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 5
Error14.3
Cost7368
\[\begin{array}{l} t_1 := \log y \cdot x\\ \mathbf{if}\;x \leq -1.08 \cdot 10^{+192}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 1.1 \cdot 10^{+205}:\\ \;\;\;\;\left(b - 0.5\right) \cdot \log c + \left(a + \left(t + z\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 6
Error18.6
Cost7368
\[\begin{array}{l} t_1 := \log y \cdot x\\ \mathbf{if}\;x \leq -3.6 \cdot 10^{+192}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 4 \cdot 10^{+205}:\\ \;\;\;\;\left(\log c \cdot b + \left(z + a\right)\right) + y \cdot i\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 7
Error15.3
Cost7240
\[\begin{array}{l} t_1 := \log y \cdot x\\ \mathbf{if}\;x \leq -2.15 \cdot 10^{+191}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 1.22 \cdot 10^{+207}:\\ \;\;\;\;\log c \cdot b + \left(a + \left(t + z\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 8
Error24.5
Cost7240
\[\begin{array}{l} t_1 := \log y \cdot x\\ \mathbf{if}\;x \leq -2.15 \cdot 10^{+191}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 4.5 \cdot 10^{+206}:\\ \;\;\;\;\left(b - 0.5\right) \cdot \log c + \left(a + z\right)\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 9
Error25.4
Cost7112
\[\begin{array}{l} t_1 := \log y \cdot x\\ \mathbf{if}\;x \leq -2.9 \cdot 10^{+192}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 2.15 \cdot 10^{+205}:\\ \;\;\;\;\log c \cdot b + \left(a + z\right)\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 10
Error29.0
Cost6856
\[\begin{array}{l} t_1 := \log c \cdot b\\ \mathbf{if}\;b \leq -2.7 \cdot 10^{+188}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq 8 \cdot 10^{+226}:\\ \;\;\;\;\left(a + z\right) + y \cdot i\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 11
Error29.0
Cost6856
\[\begin{array}{l} t_1 := \log y \cdot x\\ \mathbf{if}\;x \leq -1.45 \cdot 10^{+192}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 4.5 \cdot 10^{+204}:\\ \;\;\;\;\left(a + z\right) + y \cdot i\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 12
Error42.1
Cost716
\[\begin{array}{l} t_1 := a + y \cdot i\\ \mathbf{if}\;z \leq -7.4 \cdot 10^{+143}:\\ \;\;\;\;z\\ \mathbf{elif}\;z \leq -1 \cdot 10^{+85}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -1.85 \cdot 10^{+55}:\\ \;\;\;\;z\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 13
Error41.2
Cost452
\[\begin{array}{l} \mathbf{if}\;a \leq 1.45 \cdot 10^{+104}:\\ \;\;\;\;z + y \cdot i\\ \mathbf{else}:\\ \;\;\;\;a + y \cdot i\\ \end{array} \]
Alternative 14
Error34.2
Cost448
\[\left(a + z\right) + y \cdot i \]
Alternative 15
Error48.2
Cost196
\[\begin{array}{l} \mathbf{if}\;a \leq 1.05 \cdot 10^{+104}:\\ \;\;\;\;z\\ \mathbf{else}:\\ \;\;\;\;a\\ \end{array} \]
Alternative 16
Error52.2
Cost64
\[a \]

Error

Reproduce?

herbie shell --seed 2023077 
(FPCore (x y z t a b c i)
  :name "Numeric.SpecFunctions:logBeta from math-functions-0.1.5.2, B"
  :precision binary64
  (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))