?

Average Accuracy: 97.1% → 97.1%
Time: 26.5s
Precision: binary64
Cost: 20160

?

\[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
\[\frac{x \cdot e^{\left(y \cdot \log z + \left(t + -1\right) \cdot \log a\right) - b}}{y} \]
(FPCore (x y z t a b)
 :precision binary64
 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
(FPCore (x y z t a b)
 :precision binary64
 (/ (* x (exp (- (+ (* y (log z)) (* (+ t -1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
	return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
double code(double x, double y, double z, double t, double a, double b) {
	return (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
    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
    code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
real(8) function code(x, y, z, t, a, b)
    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
    code = (x * exp((((y * log(z)) + ((t + (-1.0d0)) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
public static double code(double x, double y, double z, double t, double a, double b) {
	return (x * Math.exp((((y * Math.log(z)) + ((t + -1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b):
	return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
def code(x, y, z, t, a, b):
	return (x * math.exp((((y * math.log(z)) + ((t + -1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b)
	return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y)
end
function code(x, y, z, t, a, b)
	return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t + -1.0) * log(a))) - b))) / y)
end
function tmp = code(x, y, z, t, a, b)
	tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
end
function tmp = code(x, y, z, t, a, b)
	tmp = (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y;
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\frac{x \cdot e^{\left(y \cdot \log z + \left(t + -1\right) \cdot \log a\right) - b}}{y}

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original97.1%
Target82.8%
Herbie97.1%
\[\begin{array}{l} \mathbf{if}\;t < -0.8845848504127471:\\ \;\;\;\;\frac{x \cdot \frac{{a}^{\left(t - 1\right)}}{y}}{\left(b + 1\right) - y \cdot \log z}\\ \mathbf{elif}\;t < 852031.2288374073:\\ \;\;\;\;\frac{\frac{x}{y} \cdot {a}^{\left(t - 1\right)}}{e^{b - \log z \cdot y}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot \frac{{a}^{\left(t - 1\right)}}{y}}{\left(b + 1\right) - y \cdot \log z}\\ \end{array} \]

Derivation?

  1. Initial program 97.1%

    \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
  2. Final simplification97.1%

    \[\leadsto \frac{x \cdot e^{\left(y \cdot \log z + \left(t + -1\right) \cdot \log a\right) - b}}{y} \]

Alternatives

Alternative 1
Accuracy91.7%
Cost40592
\[\begin{array}{l} t_1 := \left(t + -1\right) \cdot \log a\\ t_2 := y \cdot e^{b}\\ \mathbf{if}\;t_1 \leq -2000000:\\ \;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\ \mathbf{elif}\;t_1 \leq -358:\\ \;\;\;\;\frac{x}{y \cdot \left(a + a \cdot b\right)}\\ \mathbf{elif}\;t_1 \leq -186:\\ \;\;\;\;x \cdot \frac{\frac{{z}^{y}}{{a}^{\left(1 - t\right)}}}{t_2}\\ \mathbf{elif}\;t_1 \leq -52:\\ \;\;\;\;\frac{x}{a \cdot t_2}\\ \mathbf{else}:\\ \;\;\;\;\frac{{z}^{y}}{a} \cdot \frac{x}{t_2}\\ \end{array} \]
Alternative 2
Accuracy91.7%
Cost27016
\[\begin{array}{l} t_1 := \left(t + -1\right) \cdot \log a\\ t_2 := y \cdot e^{b}\\ \mathbf{if}\;t_1 \leq -2000:\\ \;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\ \mathbf{elif}\;t_1 \leq -52:\\ \;\;\;\;\frac{x}{{a}^{\left(1 - t\right)} \cdot t_2}\\ \mathbf{else}:\\ \;\;\;\;\frac{{z}^{y}}{a} \cdot \frac{x}{t_2}\\ \end{array} \]
Alternative 3
Accuracy83.2%
Cost7308
\[\begin{array}{l} t_1 := \frac{x \cdot \frac{{a}^{t}}{a}}{y}\\ \mathbf{if}\;b \leq -6.7 \cdot 10^{-47}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq -1.55 \cdot 10^{-130}:\\ \;\;\;\;\frac{{z}^{y}}{a} \cdot \frac{x}{y}\\ \mathbf{elif}\;b \leq 320:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\ \end{array} \]
Alternative 4
Accuracy80.1%
Cost7044
\[\begin{array}{l} \mathbf{if}\;b \leq 33:\\ \;\;\;\;\frac{{z}^{y}}{a} \cdot \frac{x}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\ \end{array} \]
Alternative 5
Accuracy67.4%
Cost6980
\[\begin{array}{l} \mathbf{if}\;b \leq -59000:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \end{array} \]
Alternative 6
Accuracy66.3%
Cost6980
\[\begin{array}{l} \mathbf{if}\;b \leq -3.1 \cdot 10^{-226}:\\ \;\;\;\;\frac{x}{y \cdot \left(a + a \cdot b\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{y \cdot e^{b}}}{a}\\ \end{array} \]
Alternative 7
Accuracy45.7%
Cost713
\[\begin{array}{l} \mathbf{if}\;b \leq -59000 \lor \neg \left(b \leq 1\right):\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \end{array} \]
Alternative 8
Accuracy46.3%
Cost712
\[\begin{array}{l} \mathbf{if}\;b \leq -59000:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\ \mathbf{elif}\;b \leq 1:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\ \end{array} \]
Alternative 9
Accuracy46.5%
Cost712
\[\begin{array}{l} \mathbf{if}\;b \leq -59000:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\ \mathbf{elif}\;b \leq 3.15 \cdot 10^{+29}:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{a \cdot b}}{y}\\ \end{array} \]
Alternative 10
Accuracy48.4%
Cost708
\[\begin{array}{l} \mathbf{if}\;a \leq 9.6 \cdot 10^{-113}:\\ \;\;\;\;\frac{\frac{x}{y}}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot \left(a + a \cdot b\right)}\\ \end{array} \]
Alternative 11
Accuracy38.4%
Cost585
\[\begin{array}{l} \mathbf{if}\;x \leq -1 \cdot 10^{-12} \lor \neg \left(x \leq 1.6 \cdot 10^{-108}\right):\\ \;\;\;\;\frac{x}{y \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{y}}{a}\\ \end{array} \]
Alternative 12
Accuracy38.4%
Cost584
\[\begin{array}{l} \mathbf{if}\;x \leq -1 \cdot 10^{-12}:\\ \;\;\;\;x \cdot \frac{1}{y \cdot a}\\ \mathbf{elif}\;x \leq 1.5 \cdot 10^{-108}:\\ \;\;\;\;\frac{\frac{x}{y}}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \end{array} \]
Alternative 13
Accuracy34.0%
Cost320
\[\frac{x}{y \cdot a} \]

Error

Reproduce?

herbie shell --seed 2023135 
(FPCore (x y z t a b)
  :name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
  :precision binary64

  :herbie-target
  (if (< t -0.8845848504127471) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z)))) (if (< t 852031.2288374073) (/ (* (/ x y) (pow a (- t 1.0))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z))))))

  (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))