
(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;
}
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;
}
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 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]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 10 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(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;
}
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;
}
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 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]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
(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;
}
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;
}
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 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]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
Initial program 98.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- t 1.0) (log a)))
(t_2 (/ (* x (exp (- (* (log a) t) b))) y)))
(if (<= t_1 -200000.0)
t_2
(if (<= t_1 80.0)
(* (/ (pow a (- t 1.0)) (* (exp b) y)) x)
(if (<= t_1 2e+32) (/ (/ (* (pow z y) x) a) y) t_2)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - 1.0) * log(a);
double t_2 = (x * exp(((log(a) * t) - b))) / y;
double tmp;
if (t_1 <= -200000.0) {
tmp = t_2;
} else if (t_1 <= 80.0) {
tmp = (pow(a, (t - 1.0)) / (exp(b) * y)) * x;
} else if (t_1 <= 2e+32) {
tmp = ((pow(z, y) * x) / a) / y;
} else {
tmp = t_2;
}
return tmp;
}
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
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (t - 1.0d0) * log(a)
t_2 = (x * exp(((log(a) * t) - b))) / y
if (t_1 <= (-200000.0d0)) then
tmp = t_2
else if (t_1 <= 80.0d0) then
tmp = ((a ** (t - 1.0d0)) / (exp(b) * y)) * x
else if (t_1 <= 2d+32) then
tmp = (((z ** y) * x) / a) / y
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - 1.0) * Math.log(a);
double t_2 = (x * Math.exp(((Math.log(a) * t) - b))) / y;
double tmp;
if (t_1 <= -200000.0) {
tmp = t_2;
} else if (t_1 <= 80.0) {
tmp = (Math.pow(a, (t - 1.0)) / (Math.exp(b) * y)) * x;
} else if (t_1 <= 2e+32) {
tmp = ((Math.pow(z, y) * x) / a) / y;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - 1.0) * math.log(a) t_2 = (x * math.exp(((math.log(a) * t) - b))) / y tmp = 0 if t_1 <= -200000.0: tmp = t_2 elif t_1 <= 80.0: tmp = (math.pow(a, (t - 1.0)) / (math.exp(b) * y)) * x elif t_1 <= 2e+32: tmp = ((math.pow(z, y) * x) / a) / y else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - 1.0) * log(a)) t_2 = Float64(Float64(x * exp(Float64(Float64(log(a) * t) - b))) / y) tmp = 0.0 if (t_1 <= -200000.0) tmp = t_2; elseif (t_1 <= 80.0) tmp = Float64(Float64((a ^ Float64(t - 1.0)) / Float64(exp(b) * y)) * x); elseif (t_1 <= 2e+32) tmp = Float64(Float64(Float64((z ^ y) * x) / a) / y); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - 1.0) * log(a); t_2 = (x * exp(((log(a) * t) - b))) / y; tmp = 0.0; if (t_1 <= -200000.0) tmp = t_2; elseif (t_1 <= 80.0) tmp = ((a ^ (t - 1.0)) / (exp(b) * y)) * x; elseif (t_1 <= 2e+32) tmp = (((z ^ y) * x) / a) / y; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * t), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t$95$1, -200000.0], t$95$2, If[LessEqual[t$95$1, 80.0], N[(N[(N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision] / N[(N[Exp[b], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[t$95$1, 2e+32], N[(N[(N[(N[Power[z, y], $MachinePrecision] * x), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t - 1\right) \cdot \log a\\
t_2 := \frac{x \cdot e^{\log a \cdot t - b}}{y}\\
\mathbf{if}\;t\_1 \leq -200000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 80:\\
\;\;\;\;\frac{{a}^{\left(t - 1\right)}}{e^{b} \cdot y} \cdot x\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+32}:\\
\;\;\;\;\frac{\frac{{z}^{y} \cdot x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -2e5 or 2.00000000000000011e32 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) Initial program 100.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lower-log.f6494.4
Applied rewrites94.4%
if -2e5 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < 80Initial program 96.0%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites88.8%
Taylor expanded in y around 0
exp-to-powN/A
lower-pow.f64N/A
lower--.f6480.7
Applied rewrites80.7%
if 80 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < 2.00000000000000011e32Initial program 99.0%
Taylor expanded in b around 0
exp-sumN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
*-commutativeN/A
exp-to-powN/A
lower-pow.f64N/A
exp-to-powN/A
lower-pow.f64N/A
lower--.f6484.9
Applied rewrites84.9%
Taylor expanded in t around 0
Applied rewrites87.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- t 1.0) (log a)))
(t_2 (/ (* x (exp (- (* (log a) t) b))) y)))
(if (<= t_1 -50000000.0)
t_2
(if (<= t_1 80.0)
(* (/ (pow a -1.0) (* (exp b) y)) x)
(if (<= t_1 2e+32) (/ (/ (* (pow z y) x) a) y) t_2)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - 1.0) * log(a);
double t_2 = (x * exp(((log(a) * t) - b))) / y;
double tmp;
if (t_1 <= -50000000.0) {
tmp = t_2;
} else if (t_1 <= 80.0) {
tmp = (pow(a, -1.0) / (exp(b) * y)) * x;
} else if (t_1 <= 2e+32) {
tmp = ((pow(z, y) * x) / a) / y;
} else {
tmp = t_2;
}
return tmp;
}
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
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (t - 1.0d0) * log(a)
t_2 = (x * exp(((log(a) * t) - b))) / y
if (t_1 <= (-50000000.0d0)) then
tmp = t_2
else if (t_1 <= 80.0d0) then
tmp = ((a ** (-1.0d0)) / (exp(b) * y)) * x
else if (t_1 <= 2d+32) then
tmp = (((z ** y) * x) / a) / y
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - 1.0) * Math.log(a);
double t_2 = (x * Math.exp(((Math.log(a) * t) - b))) / y;
double tmp;
if (t_1 <= -50000000.0) {
tmp = t_2;
} else if (t_1 <= 80.0) {
tmp = (Math.pow(a, -1.0) / (Math.exp(b) * y)) * x;
} else if (t_1 <= 2e+32) {
tmp = ((Math.pow(z, y) * x) / a) / y;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - 1.0) * math.log(a) t_2 = (x * math.exp(((math.log(a) * t) - b))) / y tmp = 0 if t_1 <= -50000000.0: tmp = t_2 elif t_1 <= 80.0: tmp = (math.pow(a, -1.0) / (math.exp(b) * y)) * x elif t_1 <= 2e+32: tmp = ((math.pow(z, y) * x) / a) / y else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - 1.0) * log(a)) t_2 = Float64(Float64(x * exp(Float64(Float64(log(a) * t) - b))) / y) tmp = 0.0 if (t_1 <= -50000000.0) tmp = t_2; elseif (t_1 <= 80.0) tmp = Float64(Float64((a ^ -1.0) / Float64(exp(b) * y)) * x); elseif (t_1 <= 2e+32) tmp = Float64(Float64(Float64((z ^ y) * x) / a) / y); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - 1.0) * log(a); t_2 = (x * exp(((log(a) * t) - b))) / y; tmp = 0.0; if (t_1 <= -50000000.0) tmp = t_2; elseif (t_1 <= 80.0) tmp = ((a ^ -1.0) / (exp(b) * y)) * x; elseif (t_1 <= 2e+32) tmp = (((z ^ y) * x) / a) / y; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * t), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t$95$1, -50000000.0], t$95$2, If[LessEqual[t$95$1, 80.0], N[(N[(N[Power[a, -1.0], $MachinePrecision] / N[(N[Exp[b], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[t$95$1, 2e+32], N[(N[(N[(N[Power[z, y], $MachinePrecision] * x), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t - 1\right) \cdot \log a\\
t_2 := \frac{x \cdot e^{\log a \cdot t - b}}{y}\\
\mathbf{if}\;t\_1 \leq -50000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 80:\\
\;\;\;\;\frac{{a}^{-1}}{e^{b} \cdot y} \cdot x\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+32}:\\
\;\;\;\;\frac{\frac{{z}^{y} \cdot x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -5e7 or 2.00000000000000011e32 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) Initial program 100.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lower-log.f6494.4
Applied rewrites94.4%
if -5e7 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < 80Initial program 96.0%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites87.7%
Taylor expanded in y around 0
exp-to-powN/A
lower-pow.f64N/A
lower--.f6479.7
Applied rewrites79.7%
Taylor expanded in t around 0
Applied rewrites80.7%
if 80 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < 2.00000000000000011e32Initial program 99.0%
Taylor expanded in b around 0
exp-sumN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
*-commutativeN/A
exp-to-powN/A
lower-pow.f64N/A
exp-to-powN/A
lower-pow.f64N/A
lower--.f6484.9
Applied rewrites84.9%
Taylor expanded in t around 0
Applied rewrites87.0%
Final simplification88.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- t 1.0) (log a))) (t_2 (/ (* (pow a (- t 1.0)) x) y)))
(if (<= t_1 -5e+72)
t_2
(if (<= t_1 80.0)
(* (/ (pow a -1.0) (* (exp b) y)) x)
(if (<= t_1 2e+32) (/ (/ (* (pow z y) x) a) y) t_2)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - 1.0) * log(a);
double t_2 = (pow(a, (t - 1.0)) * x) / y;
double tmp;
if (t_1 <= -5e+72) {
tmp = t_2;
} else if (t_1 <= 80.0) {
tmp = (pow(a, -1.0) / (exp(b) * y)) * x;
} else if (t_1 <= 2e+32) {
tmp = ((pow(z, y) * x) / a) / y;
} else {
tmp = t_2;
}
return tmp;
}
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
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (t - 1.0d0) * log(a)
t_2 = ((a ** (t - 1.0d0)) * x) / y
if (t_1 <= (-5d+72)) then
tmp = t_2
else if (t_1 <= 80.0d0) then
tmp = ((a ** (-1.0d0)) / (exp(b) * y)) * x
else if (t_1 <= 2d+32) then
tmp = (((z ** y) * x) / a) / y
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - 1.0) * Math.log(a);
double t_2 = (Math.pow(a, (t - 1.0)) * x) / y;
double tmp;
if (t_1 <= -5e+72) {
tmp = t_2;
} else if (t_1 <= 80.0) {
tmp = (Math.pow(a, -1.0) / (Math.exp(b) * y)) * x;
} else if (t_1 <= 2e+32) {
tmp = ((Math.pow(z, y) * x) / a) / y;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - 1.0) * math.log(a) t_2 = (math.pow(a, (t - 1.0)) * x) / y tmp = 0 if t_1 <= -5e+72: tmp = t_2 elif t_1 <= 80.0: tmp = (math.pow(a, -1.0) / (math.exp(b) * y)) * x elif t_1 <= 2e+32: tmp = ((math.pow(z, y) * x) / a) / y else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - 1.0) * log(a)) t_2 = Float64(Float64((a ^ Float64(t - 1.0)) * x) / y) tmp = 0.0 if (t_1 <= -5e+72) tmp = t_2; elseif (t_1 <= 80.0) tmp = Float64(Float64((a ^ -1.0) / Float64(exp(b) * y)) * x); elseif (t_1 <= 2e+32) tmp = Float64(Float64(Float64((z ^ y) * x) / a) / y); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - 1.0) * log(a); t_2 = ((a ^ (t - 1.0)) * x) / y; tmp = 0.0; if (t_1 <= -5e+72) tmp = t_2; elseif (t_1 <= 80.0) tmp = ((a ^ -1.0) / (exp(b) * y)) * x; elseif (t_1 <= 2e+32) tmp = (((z ^ y) * x) / a) / y; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+72], t$95$2, If[LessEqual[t$95$1, 80.0], N[(N[(N[Power[a, -1.0], $MachinePrecision] / N[(N[Exp[b], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[t$95$1, 2e+32], N[(N[(N[(N[Power[z, y], $MachinePrecision] * x), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t - 1\right) \cdot \log a\\
t_2 := \frac{{a}^{\left(t - 1\right)} \cdot x}{y}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+72}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 80:\\
\;\;\;\;\frac{{a}^{-1}}{e^{b} \cdot y} \cdot x\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+32}:\\
\;\;\;\;\frac{\frac{{z}^{y} \cdot x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -4.99999999999999992e72 or 2.00000000000000011e32 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) Initial program 100.0%
Taylor expanded in b around 0
exp-sumN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
*-commutativeN/A
exp-to-powN/A
lower-pow.f64N/A
exp-to-powN/A
lower-pow.f64N/A
lower--.f6474.4
Applied rewrites74.4%
Taylor expanded in y around 0
Applied rewrites86.4%
if -4.99999999999999992e72 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < 80Initial program 96.9%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites78.5%
Taylor expanded in y around 0
exp-to-powN/A
lower-pow.f64N/A
lower--.f6472.2
Applied rewrites72.2%
Taylor expanded in t around 0
Applied rewrites76.0%
if 80 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < 2.00000000000000011e32Initial program 99.0%
Taylor expanded in b around 0
exp-sumN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
*-commutativeN/A
exp-to-powN/A
lower-pow.f64N/A
exp-to-powN/A
lower-pow.f64N/A
lower--.f6484.9
Applied rewrites84.9%
Taylor expanded in t around 0
Applied rewrites87.0%
Final simplification82.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -3e+93) (not (<= t 31.0))) (/ (* x (exp (- (* (log a) t) b))) y) (/ (* x (exp (- (fma (log z) y (- (log a))) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -3e+93) || !(t <= 31.0)) {
tmp = (x * exp(((log(a) * t) - b))) / y;
} else {
tmp = (x * exp((fma(log(z), y, -log(a)) - b))) / y;
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -3e+93) || !(t <= 31.0)) tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * t) - b))) / y); else tmp = Float64(Float64(x * exp(Float64(fma(log(z), y, Float64(-log(a))) - b))) / y); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -3e+93], N[Not[LessEqual[t, 31.0]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * t), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[Log[z], $MachinePrecision] * y + (-N[Log[a], $MachinePrecision])), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3 \cdot 10^{+93} \lor \neg \left(t \leq 31\right):\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot t - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\mathsf{fma}\left(\log z, y, -\log a\right) - b}}{y}\\
\end{array}
\end{array}
if t < -2.99999999999999978e93 or 31 < t Initial program 100.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lower-log.f6497.1
Applied rewrites97.1%
if -2.99999999999999978e93 < t < 31Initial program 97.6%
Taylor expanded in t around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-log.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-log.f6494.6
Applied rewrites94.6%
Final simplification95.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1950.0) (not (<= b 1.45e+21))) (/ (* x (exp (- (* (log a) t) b))) y) (/ (* (* x (pow z y)) (pow a (- t 1.0))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1950.0) || !(b <= 1.45e+21)) {
tmp = (x * exp(((log(a) * t) - b))) / y;
} else {
tmp = ((x * pow(z, y)) * pow(a, (t - 1.0))) / y;
}
return tmp;
}
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
real(8) :: tmp
if ((b <= (-1950.0d0)) .or. (.not. (b <= 1.45d+21))) then
tmp = (x * exp(((log(a) * t) - b))) / y
else
tmp = ((x * (z ** y)) * (a ** (t - 1.0d0))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1950.0) || !(b <= 1.45e+21)) {
tmp = (x * Math.exp(((Math.log(a) * t) - b))) / y;
} else {
tmp = ((x * Math.pow(z, y)) * Math.pow(a, (t - 1.0))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1950.0) or not (b <= 1.45e+21): tmp = (x * math.exp(((math.log(a) * t) - b))) / y else: tmp = ((x * math.pow(z, y)) * math.pow(a, (t - 1.0))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1950.0) || !(b <= 1.45e+21)) tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * t) - b))) / y); else tmp = Float64(Float64(Float64(x * (z ^ y)) * (a ^ Float64(t - 1.0))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -1950.0) || ~((b <= 1.45e+21))) tmp = (x * exp(((log(a) * t) - b))) / y; else tmp = ((x * (z ^ y)) * (a ^ (t - 1.0))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1950.0], N[Not[LessEqual[b, 1.45e+21]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * t), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] * N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1950 \lor \neg \left(b \leq 1.45 \cdot 10^{+21}\right):\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot t - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x \cdot {z}^{y}\right) \cdot {a}^{\left(t - 1\right)}}{y}\\
\end{array}
\end{array}
if b < -1950 or 1.45e21 < b Initial program 100.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lower-log.f6491.9
Applied rewrites91.9%
if -1950 < b < 1.45e21Initial program 97.4%
Taylor expanded in b around 0
exp-sumN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
*-commutativeN/A
exp-to-powN/A
lower-pow.f64N/A
exp-to-powN/A
lower-pow.f64N/A
lower--.f6490.3
Applied rewrites90.3%
Final simplification91.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (exp (- b))))
(if (<= b -3700000.0)
(* (/ t_1 y) x)
(if (<= b 4.5e+24) (/ (* (pow a (- t 1.0)) x) y) (/ (* x t_1) y)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = exp(-b);
double tmp;
if (b <= -3700000.0) {
tmp = (t_1 / y) * x;
} else if (b <= 4.5e+24) {
tmp = (pow(a, (t - 1.0)) * x) / y;
} else {
tmp = (x * t_1) / y;
}
return tmp;
}
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
real(8) :: t_1
real(8) :: tmp
t_1 = exp(-b)
if (b <= (-3700000.0d0)) then
tmp = (t_1 / y) * x
else if (b <= 4.5d+24) then
tmp = ((a ** (t - 1.0d0)) * x) / y
else
tmp = (x * t_1) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = Math.exp(-b);
double tmp;
if (b <= -3700000.0) {
tmp = (t_1 / y) * x;
} else if (b <= 4.5e+24) {
tmp = (Math.pow(a, (t - 1.0)) * x) / y;
} else {
tmp = (x * t_1) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.exp(-b) tmp = 0 if b <= -3700000.0: tmp = (t_1 / y) * x elif b <= 4.5e+24: tmp = (math.pow(a, (t - 1.0)) * x) / y else: tmp = (x * t_1) / y return tmp
function code(x, y, z, t, a, b) t_1 = exp(Float64(-b)) tmp = 0.0 if (b <= -3700000.0) tmp = Float64(Float64(t_1 / y) * x); elseif (b <= 4.5e+24) tmp = Float64(Float64((a ^ Float64(t - 1.0)) * x) / y); else tmp = Float64(Float64(x * t_1) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = exp(-b); tmp = 0.0; if (b <= -3700000.0) tmp = (t_1 / y) * x; elseif (b <= 4.5e+24) tmp = ((a ^ (t - 1.0)) * x) / y; else tmp = (x * t_1) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[Exp[(-b)], $MachinePrecision]}, If[LessEqual[b, -3700000.0], N[(N[(t$95$1 / y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[b, 4.5e+24], N[(N[(N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * t$95$1), $MachinePrecision] / y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := e^{-b}\\
\mathbf{if}\;b \leq -3700000:\\
\;\;\;\;\frac{t\_1}{y} \cdot x\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{+24}:\\
\;\;\;\;\frac{{a}^{\left(t - 1\right)} \cdot x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot t\_1}{y}\\
\end{array}
\end{array}
if b < -3.7e6Initial program 100.0%
Taylor expanded in t around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-log.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-log.f6488.1
Applied rewrites88.1%
Taylor expanded in b around inf
mul-1-negN/A
lower-neg.f6480.6
Applied rewrites80.6%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6480.6
Applied rewrites80.6%
if -3.7e6 < b < 4.50000000000000019e24Initial program 97.5%
Taylor expanded in b around 0
exp-sumN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
*-commutativeN/A
exp-to-powN/A
lower-pow.f64N/A
exp-to-powN/A
lower-pow.f64N/A
lower--.f6490.4
Applied rewrites90.4%
Taylor expanded in y around 0
Applied rewrites75.2%
if 4.50000000000000019e24 < b Initial program 100.0%
Taylor expanded in t around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-log.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-log.f6493.0
Applied rewrites93.0%
Taylor expanded in b around inf
mul-1-negN/A
lower-neg.f6490.6
Applied rewrites90.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -340.0) (not (<= b 7.6e+20))) (* (/ (exp (- b)) y) x) (/ (* (pow a -1.0) x) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -340.0) || !(b <= 7.6e+20)) {
tmp = (exp(-b) / y) * x;
} else {
tmp = (pow(a, -1.0) * x) / y;
}
return tmp;
}
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
real(8) :: tmp
if ((b <= (-340.0d0)) .or. (.not. (b <= 7.6d+20))) then
tmp = (exp(-b) / y) * x
else
tmp = ((a ** (-1.0d0)) * x) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -340.0) || !(b <= 7.6e+20)) {
tmp = (Math.exp(-b) / y) * x;
} else {
tmp = (Math.pow(a, -1.0) * x) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -340.0) or not (b <= 7.6e+20): tmp = (math.exp(-b) / y) * x else: tmp = (math.pow(a, -1.0) * x) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -340.0) || !(b <= 7.6e+20)) tmp = Float64(Float64(exp(Float64(-b)) / y) * x); else tmp = Float64(Float64((a ^ -1.0) * x) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -340.0) || ~((b <= 7.6e+20))) tmp = (exp(-b) / y) * x; else tmp = ((a ^ -1.0) * x) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -340.0], N[Not[LessEqual[b, 7.6e+20]], $MachinePrecision]], N[(N[(N[Exp[(-b)], $MachinePrecision] / y), $MachinePrecision] * x), $MachinePrecision], N[(N[(N[Power[a, -1.0], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -340 \lor \neg \left(b \leq 7.6 \cdot 10^{+20}\right):\\
\;\;\;\;\frac{e^{-b}}{y} \cdot x\\
\mathbf{else}:\\
\;\;\;\;\frac{{a}^{-1} \cdot x}{y}\\
\end{array}
\end{array}
if b < -340 or 7.6e20 < b Initial program 100.0%
Taylor expanded in t around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-log.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-log.f6489.3
Applied rewrites89.3%
Taylor expanded in b around inf
mul-1-negN/A
lower-neg.f6483.9
Applied rewrites83.9%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6483.9
Applied rewrites83.9%
if -340 < b < 7.6e20Initial program 97.4%
Taylor expanded in b around 0
exp-sumN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
*-commutativeN/A
exp-to-powN/A
lower-pow.f64N/A
exp-to-powN/A
lower-pow.f64N/A
lower--.f6490.3
Applied rewrites90.3%
Taylor expanded in y around 0
Applied rewrites74.9%
Taylor expanded in t around 0
Applied rewrites43.2%
Final simplification60.7%
(FPCore (x y z t a b) :precision binary64 (/ (* (pow a -1.0) x) y))
double code(double x, double y, double z, double t, double a, double b) {
return (pow(a, -1.0) * x) / 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 = ((a ** (-1.0d0)) * x) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (Math.pow(a, -1.0) * x) / y;
}
def code(x, y, z, t, a, b): return (math.pow(a, -1.0) * x) / y
function code(x, y, z, t, a, b) return Float64(Float64((a ^ -1.0) * x) / y) end
function tmp = code(x, y, z, t, a, b) tmp = ((a ^ -1.0) * x) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[Power[a, -1.0], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{{a}^{-1} \cdot x}{y}
\end{array}
Initial program 98.5%
Taylor expanded in b around 0
exp-sumN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
*-commutativeN/A
exp-to-powN/A
lower-pow.f64N/A
exp-to-powN/A
lower-pow.f64N/A
lower--.f6471.8
Applied rewrites71.8%
Taylor expanded in y around 0
Applied rewrites58.4%
Taylor expanded in t around 0
Applied rewrites31.8%
Final simplification31.8%
(FPCore (x y z t a b) :precision binary64 (/ (/ x a) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x / a) / 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 / a) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x / a) / y;
}
def code(x, y, z, t, a, b): return (x / a) / y
function code(x, y, z, t, a, b) return Float64(Float64(x / a) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x / a) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{x}{a}}{y}
\end{array}
Initial program 98.5%
Taylor expanded in b around 0
exp-sumN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
*-commutativeN/A
exp-to-powN/A
lower-pow.f64N/A
exp-to-powN/A
lower-pow.f64N/A
lower--.f6471.8
Applied rewrites71.8%
Taylor expanded in t around 0
Applied rewrites62.7%
Taylor expanded in y around 0
Applied rewrites31.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (- t 1.0)))
(t_2 (/ (* x (/ t_1 y)) (- (+ b 1.0) (* y (log z))))))
(if (< t -0.8845848504127471)
t_2
(if (< t 852031.2288374073)
(/ (* (/ x y) t_1) (exp (- b (* (log z) y))))
t_2))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
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
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a ** (t - 1.0d0)
t_2 = (x * (t_1 / y)) / ((b + 1.0d0) - (y * log(z)))
if (t < (-0.8845848504127471d0)) then
tmp = t_2
else if (t < 852031.2288374073d0) then
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = Math.pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * Math.log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / Math.exp((b - (Math.log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, (t - 1.0)) t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * math.log(z))) tmp = 0 if t < -0.8845848504127471: tmp = t_2 elif t < 852031.2288374073: tmp = ((x / y) * t_1) / math.exp((b - (math.log(z) * y))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = a ^ Float64(t - 1.0) t_2 = Float64(Float64(x * Float64(t_1 / y)) / Float64(Float64(b + 1.0) - Float64(y * log(z)))) tmp = 0.0 if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = Float64(Float64(Float64(x / y) * t_1) / exp(Float64(b - Float64(log(z) * y)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a ^ (t - 1.0); t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z))); tmp = 0.0; if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = ((x / y) * t_1) / exp((b - (log(z) * y))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision] / N[(N[(b + 1.0), $MachinePrecision] - N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -0.8845848504127471], t$95$2, If[Less[t, 852031.2288374073], N[(N[(N[(x / y), $MachinePrecision] * t$95$1), $MachinePrecision] / N[Exp[N[(b - N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {a}^{\left(t - 1\right)}\\
t_2 := \frac{x \cdot \frac{t\_1}{y}}{\left(b + 1\right) - y \cdot \log z}\\
\mathbf{if}\;t < -0.8845848504127471:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 852031.2288374073:\\
\;\;\;\;\frac{\frac{x}{y} \cdot t\_1}{e^{b - \log z \cdot y}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024339
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:alt
(! :herbie-platform default (if (< t -8845848504127471/10000000000000000) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))) (if (< t 8520312288374073/10000000000) (/ (* (/ x y) (pow a (- t 1))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))