
(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 17 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.7%
Final simplification98.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -9.8e+79) (not (<= t 450000000.0))) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y) (/ (* x (exp (- (- (* y (log z)) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -9.8e+79) || !(t <= 450000000.0)) {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
} else {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / 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 ((t <= (-9.8d+79)) .or. (.not. (t <= 450000000.0d0))) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
else
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / 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 ((t <= -9.8e+79) || !(t <= 450000000.0)) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
} else {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -9.8e+79) or not (t <= 450000000.0): tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y else: tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -9.8e+79) || !(t <= 450000000.0)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -9.8e+79) || ~((t <= 450000000.0))) tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; else tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -9.8e+79], N[Not[LessEqual[t, 450000000.0]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.8 \cdot 10^{+79} \lor \neg \left(t \leq 450000000\right):\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\end{array}
\end{array}
if t < -9.7999999999999997e79 or 4.5e8 < t Initial program 100.0%
Taylor expanded in y around 0 95.1%
if -9.7999999999999997e79 < t < 4.5e8Initial program 97.8%
Taylor expanded in t around 0 94.9%
+-commutative94.9%
mul-1-neg94.9%
unsub-neg94.9%
Simplified94.9%
Final simplification95.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (+ t -1.0))) (t_2 (/ (* x (/ (pow z y) a)) y)))
(if (<= y -4.2e-10)
t_2
(if (<= y 1.3e-147)
(/ (* x t_1) y)
(if (<= y 5.3e-74)
(/ x (* a (* y (exp b))))
(if (<= y 3.05e+113) (* (/ t_1 (exp b)) (/ x 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 * (pow(z, y) / a)) / y;
double tmp;
if (y <= -4.2e-10) {
tmp = t_2;
} else if (y <= 1.3e-147) {
tmp = (x * t_1) / y;
} else if (y <= 5.3e-74) {
tmp = x / (a * (y * exp(b)));
} else if (y <= 3.05e+113) {
tmp = (t_1 / exp(b)) * (x / 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 * ((z ** y) / a)) / y
if (y <= (-4.2d-10)) then
tmp = t_2
else if (y <= 1.3d-147) then
tmp = (x * t_1) / y
else if (y <= 5.3d-74) then
tmp = x / (a * (y * exp(b)))
else if (y <= 3.05d+113) then
tmp = (t_1 / exp(b)) * (x / 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 * (Math.pow(z, y) / a)) / y;
double tmp;
if (y <= -4.2e-10) {
tmp = t_2;
} else if (y <= 1.3e-147) {
tmp = (x * t_1) / y;
} else if (y <= 5.3e-74) {
tmp = x / (a * (y * Math.exp(b)));
} else if (y <= 3.05e+113) {
tmp = (t_1 / Math.exp(b)) * (x / 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 * (math.pow(z, y) / a)) / y tmp = 0 if y <= -4.2e-10: tmp = t_2 elif y <= 1.3e-147: tmp = (x * t_1) / y elif y <= 5.3e-74: tmp = x / (a * (y * math.exp(b))) elif y <= 3.05e+113: tmp = (t_1 / math.exp(b)) * (x / 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((z ^ y) / a)) / y) tmp = 0.0 if (y <= -4.2e-10) tmp = t_2; elseif (y <= 1.3e-147) tmp = Float64(Float64(x * t_1) / y); elseif (y <= 5.3e-74) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); elseif (y <= 3.05e+113) tmp = Float64(Float64(t_1 / exp(b)) * Float64(x / 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 * ((z ^ y) / a)) / y; tmp = 0.0; if (y <= -4.2e-10) tmp = t_2; elseif (y <= 1.3e-147) tmp = (x * t_1) / y; elseif (y <= 5.3e-74) tmp = x / (a * (y * exp(b))); elseif (y <= 3.05e+113) tmp = (t_1 / exp(b)) * (x / 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[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -4.2e-10], t$95$2, If[LessEqual[y, 1.3e-147], N[(N[(x * t$95$1), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 5.3e-74], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.05e+113], N[(N[(t$95$1 / N[Exp[b], $MachinePrecision]), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {a}^{\left(t + -1\right)}\\
t_2 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -4.2 \cdot 10^{-10}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{-147}:\\
\;\;\;\;\frac{x \cdot t_1}{y}\\
\mathbf{elif}\;y \leq 5.3 \cdot 10^{-74}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{elif}\;y \leq 3.05 \cdot 10^{+113}:\\
\;\;\;\;\frac{t_1}{e^{b}} \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -4.2e-10 or 3.04999999999999998e113 < y Initial program 99.9%
Taylor expanded in t around 0 89.1%
+-commutative89.1%
mul-1-neg89.1%
unsub-neg89.1%
Simplified89.1%
Taylor expanded in b around 0 79.9%
*-commutative79.9%
div-exp79.9%
*-commutative79.9%
exp-to-pow79.9%
rem-exp-log80.0%
Simplified80.0%
if -4.2e-10 < y < 1.2999999999999999e-147Initial program 96.9%
associate-*l/87.2%
*-commutative87.2%
+-commutative87.2%
associate--l+87.2%
exp-sum76.8%
*-commutative76.8%
exp-to-pow78.1%
sub-neg78.1%
metadata-eval78.1%
exp-diff78.1%
*-commutative78.1%
exp-to-pow78.1%
Simplified78.1%
Taylor expanded in y around 0 82.1%
exp-to-pow83.8%
sub-neg83.8%
metadata-eval83.8%
Simplified83.8%
Taylor expanded in b around 0 81.1%
if 1.2999999999999999e-147 < y < 5.29999999999999987e-74Initial program 97.2%
associate-*l/76.9%
*-commutative76.9%
+-commutative76.9%
associate--l+76.9%
exp-sum69.8%
*-commutative69.8%
exp-to-pow71.7%
sub-neg71.7%
metadata-eval71.7%
exp-diff71.7%
*-commutative71.7%
exp-to-pow71.7%
Simplified71.7%
Taylor expanded in t around 0 92.8%
times-frac71.6%
Simplified71.6%
Taylor expanded in y around 0 92.8%
if 5.29999999999999987e-74 < y < 3.04999999999999998e113Initial program 99.3%
associate-*l/99.3%
*-commutative99.3%
+-commutative99.3%
associate--l+99.3%
exp-sum80.9%
*-commutative80.9%
exp-to-pow81.6%
sub-neg81.6%
metadata-eval81.6%
exp-diff57.9%
*-commutative57.9%
exp-to-pow57.9%
Simplified57.9%
Taylor expanded in y around 0 76.5%
exp-to-pow77.2%
sub-neg77.2%
metadata-eval77.2%
Simplified77.2%
Final simplification80.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (pow a (+ t -1.0))) (* y (exp b))))
(t_2 (/ (* x (/ (pow z y) a)) y)))
(if (<= y -5.8e+76)
t_2
(if (<= y -1.95e+48)
t_1
(if (<= y -1.06e-10)
t_2
(if (<= y 1.15e+41)
t_1
(if (<= y 3.05e+113) (/ (/ x (* a (exp b))) y) t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * pow(a, (t + -1.0))) / (y * exp(b));
double t_2 = (x * (pow(z, y) / a)) / y;
double tmp;
if (y <= -5.8e+76) {
tmp = t_2;
} else if (y <= -1.95e+48) {
tmp = t_1;
} else if (y <= -1.06e-10) {
tmp = t_2;
} else if (y <= 1.15e+41) {
tmp = t_1;
} else if (y <= 3.05e+113) {
tmp = (x / (a * exp(b))) / 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 = (x * (a ** (t + (-1.0d0)))) / (y * exp(b))
t_2 = (x * ((z ** y) / a)) / y
if (y <= (-5.8d+76)) then
tmp = t_2
else if (y <= (-1.95d+48)) then
tmp = t_1
else if (y <= (-1.06d-10)) then
tmp = t_2
else if (y <= 1.15d+41) then
tmp = t_1
else if (y <= 3.05d+113) then
tmp = (x / (a * exp(b))) / 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 = (x * Math.pow(a, (t + -1.0))) / (y * Math.exp(b));
double t_2 = (x * (Math.pow(z, y) / a)) / y;
double tmp;
if (y <= -5.8e+76) {
tmp = t_2;
} else if (y <= -1.95e+48) {
tmp = t_1;
} else if (y <= -1.06e-10) {
tmp = t_2;
} else if (y <= 1.15e+41) {
tmp = t_1;
} else if (y <= 3.05e+113) {
tmp = (x / (a * Math.exp(b))) / y;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * math.pow(a, (t + -1.0))) / (y * math.exp(b)) t_2 = (x * (math.pow(z, y) / a)) / y tmp = 0 if y <= -5.8e+76: tmp = t_2 elif y <= -1.95e+48: tmp = t_1 elif y <= -1.06e-10: tmp = t_2 elif y <= 1.15e+41: tmp = t_1 elif y <= 3.05e+113: tmp = (x / (a * math.exp(b))) / y else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * (a ^ Float64(t + -1.0))) / Float64(y * exp(b))) t_2 = Float64(Float64(x * Float64((z ^ y) / a)) / y) tmp = 0.0 if (y <= -5.8e+76) tmp = t_2; elseif (y <= -1.95e+48) tmp = t_1; elseif (y <= -1.06e-10) tmp = t_2; elseif (y <= 1.15e+41) tmp = t_1; elseif (y <= 3.05e+113) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * (a ^ (t + -1.0))) / (y * exp(b)); t_2 = (x * ((z ^ y) / a)) / y; tmp = 0.0; if (y <= -5.8e+76) tmp = t_2; elseif (y <= -1.95e+48) tmp = t_1; elseif (y <= -1.06e-10) tmp = t_2; elseif (y <= 1.15e+41) tmp = t_1; elseif (y <= 3.05e+113) tmp = (x / (a * exp(b))) / y; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -5.8e+76], t$95$2, If[LessEqual[y, -1.95e+48], t$95$1, If[LessEqual[y, -1.06e-10], t$95$2, If[LessEqual[y, 1.15e+41], t$95$1, If[LessEqual[y, 3.05e+113], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot {a}^{\left(t + -1\right)}}{y \cdot e^{b}}\\
t_2 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -5.8 \cdot 10^{+76}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -1.95 \cdot 10^{+48}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.06 \cdot 10^{-10}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{+41}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.05 \cdot 10^{+113}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -5.8000000000000003e76 or -1.95e48 < y < -1.06e-10 or 3.04999999999999998e113 < y Initial program 99.9%
Taylor expanded in t around 0 91.5%
+-commutative91.5%
mul-1-neg91.5%
unsub-neg91.5%
Simplified91.5%
Taylor expanded in b around 0 85.0%
*-commutative85.0%
div-exp85.0%
*-commutative85.0%
exp-to-pow85.0%
rem-exp-log85.1%
Simplified85.1%
if -5.8000000000000003e76 < y < -1.95e48 or -1.06e-10 < y < 1.1499999999999999e41Initial program 97.5%
associate-*l/87.6%
*-commutative87.6%
+-commutative87.6%
associate--l+87.6%
exp-sum74.1%
*-commutative74.1%
exp-to-pow75.4%
sub-neg75.4%
metadata-eval75.4%
exp-diff70.8%
*-commutative70.8%
exp-to-pow70.8%
Simplified70.8%
Taylor expanded in y around 0 80.5%
exp-to-pow82.1%
sub-neg82.1%
metadata-eval82.1%
Simplified82.1%
if 1.1499999999999999e41 < y < 3.04999999999999998e113Initial program 100.0%
Taylor expanded in t around 0 94.2%
+-commutative94.2%
mul-1-neg94.2%
unsub-neg94.2%
Simplified94.2%
Taylor expanded in y around 0 77.5%
exp-neg77.5%
associate-*r/77.5%
*-rgt-identity77.5%
+-commutative77.5%
exp-sum77.5%
rem-exp-log77.5%
Simplified77.5%
Final simplification83.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (pow a (+ t -1.0))) y))
(t_2 (* y (exp b)))
(t_3 (* a t_2)))
(if (<= t -7.5e+65)
t_1
(if (<= t -5.4e-21)
(* (/ x a) (/ (pow z y) t_2))
(if (<= t -2.8e-63)
(/ x t_3)
(if (<= t 2300000000.0) (/ (* x (pow z y)) t_3) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * pow(a, (t + -1.0))) / y;
double t_2 = y * exp(b);
double t_3 = a * t_2;
double tmp;
if (t <= -7.5e+65) {
tmp = t_1;
} else if (t <= -5.4e-21) {
tmp = (x / a) * (pow(z, y) / t_2);
} else if (t <= -2.8e-63) {
tmp = x / t_3;
} else if (t <= 2300000000.0) {
tmp = (x * pow(z, y)) / t_3;
} else {
tmp = t_1;
}
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) :: t_3
real(8) :: tmp
t_1 = (x * (a ** (t + (-1.0d0)))) / y
t_2 = y * exp(b)
t_3 = a * t_2
if (t <= (-7.5d+65)) then
tmp = t_1
else if (t <= (-5.4d-21)) then
tmp = (x / a) * ((z ** y) / t_2)
else if (t <= (-2.8d-63)) then
tmp = x / t_3
else if (t <= 2300000000.0d0) then
tmp = (x * (z ** y)) / t_3
else
tmp = t_1
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 = (x * Math.pow(a, (t + -1.0))) / y;
double t_2 = y * Math.exp(b);
double t_3 = a * t_2;
double tmp;
if (t <= -7.5e+65) {
tmp = t_1;
} else if (t <= -5.4e-21) {
tmp = (x / a) * (Math.pow(z, y) / t_2);
} else if (t <= -2.8e-63) {
tmp = x / t_3;
} else if (t <= 2300000000.0) {
tmp = (x * Math.pow(z, y)) / t_3;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * math.pow(a, (t + -1.0))) / y t_2 = y * math.exp(b) t_3 = a * t_2 tmp = 0 if t <= -7.5e+65: tmp = t_1 elif t <= -5.4e-21: tmp = (x / a) * (math.pow(z, y) / t_2) elif t <= -2.8e-63: tmp = x / t_3 elif t <= 2300000000.0: tmp = (x * math.pow(z, y)) / t_3 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y) t_2 = Float64(y * exp(b)) t_3 = Float64(a * t_2) tmp = 0.0 if (t <= -7.5e+65) tmp = t_1; elseif (t <= -5.4e-21) tmp = Float64(Float64(x / a) * Float64((z ^ y) / t_2)); elseif (t <= -2.8e-63) tmp = Float64(x / t_3); elseif (t <= 2300000000.0) tmp = Float64(Float64(x * (z ^ y)) / t_3); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * (a ^ (t + -1.0))) / y; t_2 = y * exp(b); t_3 = a * t_2; tmp = 0.0; if (t <= -7.5e+65) tmp = t_1; elseif (t <= -5.4e-21) tmp = (x / a) * ((z ^ y) / t_2); elseif (t <= -2.8e-63) tmp = x / t_3; elseif (t <= 2300000000.0) tmp = (x * (z ^ y)) / t_3; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * t$95$2), $MachinePrecision]}, If[LessEqual[t, -7.5e+65], t$95$1, If[LessEqual[t, -5.4e-21], N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.8e-63], N[(x / t$95$3), $MachinePrecision], If[LessEqual[t, 2300000000.0], N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / t$95$3), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
t_2 := y \cdot e^{b}\\
t_3 := a \cdot t_2\\
\mathbf{if}\;t \leq -7.5 \cdot 10^{+65}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -5.4 \cdot 10^{-21}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{t_2}\\
\mathbf{elif}\;t \leq -2.8 \cdot 10^{-63}:\\
\;\;\;\;\frac{x}{t_3}\\
\mathbf{elif}\;t \leq 2300000000:\\
\;\;\;\;\frac{x \cdot {z}^{y}}{t_3}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -7.50000000000000006e65 or 2.3e9 < t Initial program 100.0%
associate-*l/90.3%
*-commutative90.3%
+-commutative90.3%
associate--l+90.3%
exp-sum55.3%
*-commutative55.3%
exp-to-pow55.3%
sub-neg55.3%
metadata-eval55.3%
exp-diff48.5%
*-commutative48.5%
exp-to-pow48.5%
Simplified48.5%
Taylor expanded in y around 0 69.9%
exp-to-pow69.9%
sub-neg69.9%
metadata-eval69.9%
Simplified69.9%
Taylor expanded in b around 0 84.7%
if -7.50000000000000006e65 < t < -5.4000000000000002e-21Initial program 100.0%
associate-*l/95.0%
*-commutative95.0%
+-commutative95.0%
associate--l+95.0%
exp-sum65.0%
*-commutative65.0%
exp-to-pow65.0%
sub-neg65.0%
metadata-eval65.0%
exp-diff65.0%
*-commutative65.0%
exp-to-pow65.0%
Simplified65.0%
Taylor expanded in t around 0 80.7%
times-frac85.7%
Simplified85.7%
if -5.4000000000000002e-21 < t < -2.8000000000000002e-63Initial program 98.1%
associate-*l/91.7%
*-commutative91.7%
+-commutative91.7%
associate--l+91.7%
exp-sum91.6%
*-commutative91.6%
exp-to-pow92.6%
sub-neg92.6%
metadata-eval92.6%
exp-diff38.8%
*-commutative38.8%
exp-to-pow38.8%
Simplified38.8%
Taylor expanded in t around 0 46.2%
times-frac46.0%
Simplified46.0%
Taylor expanded in y around 0 81.2%
if -2.8000000000000002e-63 < t < 2.3e9Initial program 97.4%
associate-*l/85.4%
*-commutative85.4%
+-commutative85.4%
associate--l+85.4%
exp-sum83.8%
*-commutative83.8%
exp-to-pow85.1%
sub-neg85.1%
metadata-eval85.1%
exp-diff73.5%
*-commutative73.5%
exp-to-pow73.5%
Simplified73.5%
Taylor expanded in t around 0 79.6%
Final simplification82.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -5.3e+82) (not (<= y 2.05e+214))) (/ (* x (/ (pow z y) a)) y) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -5.3e+82) || !(y <= 2.05e+214)) {
tmp = (x * (pow(z, y) / a)) / y;
} else {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / 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 ((y <= (-5.3d+82)) .or. (.not. (y <= 2.05d+214))) then
tmp = (x * ((z ** y) / a)) / y
else
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / 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 ((y <= -5.3e+82) || !(y <= 2.05e+214)) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -5.3e+82) or not (y <= 2.05e+214): tmp = (x * (math.pow(z, y) / a)) / y else: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -5.3e+82) || !(y <= 2.05e+214)) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -5.3e+82) || ~((y <= 2.05e+214))) tmp = (x * ((z ^ y) / a)) / y; else tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -5.3e+82], N[Not[LessEqual[y, 2.05e+214]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.3 \cdot 10^{+82} \lor \neg \left(y \leq 2.05 \cdot 10^{+214}\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -5.29999999999999977e82 or 2.05e214 < y Initial program 100.0%
Taylor expanded in t around 0 94.4%
+-commutative94.4%
mul-1-neg94.4%
unsub-neg94.4%
Simplified94.4%
Taylor expanded in b around 0 90.2%
*-commutative90.2%
div-exp90.2%
*-commutative90.2%
exp-to-pow90.2%
rem-exp-log90.2%
Simplified90.2%
if -5.29999999999999977e82 < y < 2.05e214Initial program 98.2%
Taylor expanded in y around 0 89.7%
Final simplification89.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (/ (pow z y) a)) y)))
(if (<= y -4.2e-10)
t_1
(if (<= y 1.16e-147)
(/ (* x (pow a (+ t -1.0))) y)
(if (<= y 3.1e+117) (/ (/ x (* a (exp b))) y) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * (pow(z, y) / a)) / y;
double tmp;
if (y <= -4.2e-10) {
tmp = t_1;
} else if (y <= 1.16e-147) {
tmp = (x * pow(a, (t + -1.0))) / y;
} else if (y <= 3.1e+117) {
tmp = (x / (a * exp(b))) / y;
} else {
tmp = t_1;
}
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 = (x * ((z ** y) / a)) / y
if (y <= (-4.2d-10)) then
tmp = t_1
else if (y <= 1.16d-147) then
tmp = (x * (a ** (t + (-1.0d0)))) / y
else if (y <= 3.1d+117) then
tmp = (x / (a * exp(b))) / y
else
tmp = t_1
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 = (x * (Math.pow(z, y) / a)) / y;
double tmp;
if (y <= -4.2e-10) {
tmp = t_1;
} else if (y <= 1.16e-147) {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
} else if (y <= 3.1e+117) {
tmp = (x / (a * Math.exp(b))) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * (math.pow(z, y) / a)) / y tmp = 0 if y <= -4.2e-10: tmp = t_1 elif y <= 1.16e-147: tmp = (x * math.pow(a, (t + -1.0))) / y elif y <= 3.1e+117: tmp = (x / (a * math.exp(b))) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * Float64((z ^ y) / a)) / y) tmp = 0.0 if (y <= -4.2e-10) tmp = t_1; elseif (y <= 1.16e-147) tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); elseif (y <= 3.1e+117) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * ((z ^ y) / a)) / y; tmp = 0.0; if (y <= -4.2e-10) tmp = t_1; elseif (y <= 1.16e-147) tmp = (x * (a ^ (t + -1.0))) / y; elseif (y <= 3.1e+117) tmp = (x / (a * exp(b))) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -4.2e-10], t$95$1, If[LessEqual[y, 1.16e-147], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 3.1e+117], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -4.2 \cdot 10^{-10}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.16 \cdot 10^{-147}:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{+117}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -4.2e-10 or 3.09999999999999975e117 < y Initial program 99.9%
Taylor expanded in t around 0 89.1%
+-commutative89.1%
mul-1-neg89.1%
unsub-neg89.1%
Simplified89.1%
Taylor expanded in b around 0 79.9%
*-commutative79.9%
div-exp79.9%
*-commutative79.9%
exp-to-pow79.9%
rem-exp-log80.0%
Simplified80.0%
if -4.2e-10 < y < 1.1599999999999999e-147Initial program 96.9%
associate-*l/87.2%
*-commutative87.2%
+-commutative87.2%
associate--l+87.2%
exp-sum76.8%
*-commutative76.8%
exp-to-pow78.1%
sub-neg78.1%
metadata-eval78.1%
exp-diff78.1%
*-commutative78.1%
exp-to-pow78.1%
Simplified78.1%
Taylor expanded in y around 0 82.1%
exp-to-pow83.8%
sub-neg83.8%
metadata-eval83.8%
Simplified83.8%
Taylor expanded in b around 0 81.1%
if 1.1599999999999999e-147 < y < 3.09999999999999975e117Initial program 98.7%
Taylor expanded in t around 0 81.9%
+-commutative81.9%
mul-1-neg81.9%
unsub-neg81.9%
Simplified81.9%
Taylor expanded in y around 0 71.0%
exp-neg71.0%
associate-*r/71.0%
*-rgt-identity71.0%
+-commutative71.0%
exp-sum71.0%
rem-exp-log72.1%
Simplified72.1%
Final simplification78.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.7e+108) (not (<= b 8.4e+60))) (/ x (* a (* y (exp b)))) (* (/ x y) (/ (pow a t) a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.7e+108) || !(b <= 8.4e+60)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = (x / y) * (pow(a, t) / a);
}
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 <= (-1.7d+108)) .or. (.not. (b <= 8.4d+60))) then
tmp = x / (a * (y * exp(b)))
else
tmp = (x / y) * ((a ** t) / a)
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 <= -1.7e+108) || !(b <= 8.4e+60)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = (x / y) * (Math.pow(a, t) / a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.7e+108) or not (b <= 8.4e+60): tmp = x / (a * (y * math.exp(b))) else: tmp = (x / y) * (math.pow(a, t) / a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.7e+108) || !(b <= 8.4e+60)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(Float64(x / y) * Float64((a ^ t) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -1.7e+108) || ~((b <= 8.4e+60))) tmp = x / (a * (y * exp(b))); else tmp = (x / y) * ((a ^ t) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.7e+108], N[Not[LessEqual[b, 8.4e+60]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / y), $MachinePrecision] * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.7 \cdot 10^{+108} \lor \neg \left(b \leq 8.4 \cdot 10^{+60}\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{{a}^{t}}{a}\\
\end{array}
\end{array}
if b < -1.69999999999999998e108 or 8.4000000000000004e60 < b Initial program 100.0%
associate-*l/91.2%
*-commutative91.2%
+-commutative91.2%
associate--l+91.2%
exp-sum72.5%
*-commutative72.5%
exp-to-pow72.5%
sub-neg72.5%
metadata-eval72.5%
exp-diff52.7%
*-commutative52.7%
exp-to-pow52.7%
Simplified52.7%
Taylor expanded in t around 0 66.0%
times-frac53.9%
Simplified53.9%
Taylor expanded in y around 0 88.1%
if -1.69999999999999998e108 < b < 8.4000000000000004e60Initial program 97.9%
associate-*l/86.9%
*-commutative86.9%
+-commutative86.9%
associate--l+86.9%
exp-sum70.6%
*-commutative70.6%
exp-to-pow71.6%
sub-neg71.6%
metadata-eval71.6%
exp-diff65.6%
*-commutative65.6%
exp-to-pow65.6%
Simplified65.6%
Taylor expanded in b around 0 78.4%
*-commutative78.4%
exp-to-pow79.7%
sub-neg79.7%
metadata-eval79.7%
associate-*r/71.7%
associate-*l*71.7%
Simplified71.7%
Taylor expanded in y around 0 65.6%
unpow-prod-up65.7%
unpow-165.7%
Applied egg-rr65.7%
associate-*r/65.7%
*-rgt-identity65.7%
Simplified65.7%
Final simplification73.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.2e+55) (not (<= b 1.22e+61))) (/ x (* a (* y (exp b)))) (/ (* x (pow a (+ t -1.0))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.2e+55) || !(b <= 1.22e+61)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = (x * 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 <= (-1.2d+55)) .or. (.not. (b <= 1.22d+61))) then
tmp = x / (a * (y * exp(b)))
else
tmp = (x * (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 <= -1.2e+55) || !(b <= 1.22e+61)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.2e+55) or not (b <= 1.22e+61): tmp = x / (a * (y * math.exp(b))) else: tmp = (x * math.pow(a, (t + -1.0))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.2e+55) || !(b <= 1.22e+61)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(Float64(x * (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 <= -1.2e+55) || ~((b <= 1.22e+61))) tmp = x / (a * (y * exp(b))); else tmp = (x * (a ^ (t + -1.0))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.2e+55], N[Not[LessEqual[b, 1.22e+61]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.2 \cdot 10^{+55} \lor \neg \left(b \leq 1.22 \cdot 10^{+61}\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\end{array}
\end{array}
if b < -1.2e55 or 1.22e61 < b Initial program 100.0%
associate-*l/91.5%
*-commutative91.5%
+-commutative91.5%
associate--l+91.5%
exp-sum73.6%
*-commutative73.6%
exp-to-pow73.6%
sub-neg73.6%
metadata-eval73.6%
exp-diff52.8%
*-commutative52.8%
exp-to-pow52.8%
Simplified52.8%
Taylor expanded in t around 0 65.2%
times-frac51.9%
Simplified51.9%
Taylor expanded in y around 0 85.1%
if -1.2e55 < b < 1.22e61Initial program 97.7%
associate-*l/86.3%
*-commutative86.3%
+-commutative86.3%
associate--l+86.3%
exp-sum69.6%
*-commutative69.6%
exp-to-pow70.8%
sub-neg70.8%
metadata-eval70.8%
exp-diff66.8%
*-commutative66.8%
exp-to-pow66.8%
Simplified66.8%
Taylor expanded in y around 0 63.1%
exp-to-pow64.5%
sub-neg64.5%
metadata-eval64.5%
Simplified64.5%
Taylor expanded in b around 0 70.2%
Final simplification76.4%
(FPCore (x y z t a b) :precision binary64 (/ x (* a (* y (exp b)))))
double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y * exp(b)));
}
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 * exp(b)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y * Math.exp(b)));
}
def code(x, y, z, t, a, b): return x / (a * (y * math.exp(b)))
function code(x, y, z, t, a, b) return Float64(x / Float64(a * Float64(y * exp(b)))) end
function tmp = code(x, y, z, t, a, b) tmp = x / (a * (y * exp(b))); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{a \cdot \left(y \cdot e^{b}\right)}
\end{array}
Initial program 98.7%
associate-*l/88.4%
*-commutative88.4%
+-commutative88.4%
associate--l+88.4%
exp-sum71.3%
*-commutative71.3%
exp-to-pow72.0%
sub-neg72.0%
metadata-eval72.0%
exp-diff61.0%
*-commutative61.0%
exp-to-pow61.0%
Simplified61.0%
Taylor expanded in t around 0 62.7%
times-frac57.2%
Simplified57.2%
Taylor expanded in y around 0 58.7%
Final simplification58.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (- b) (* y a)))))
(if (<= b -2.3e+98)
t_1
(if (<= b -3.1e-268)
(/ 1.0 (* y (/ a x)))
(if (<= b 3.4e-213)
t_1
(if (<= b 4.4e-23) (/ (/ x y) a) (/ x (* a (* y b)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (-b / (y * a));
double tmp;
if (b <= -2.3e+98) {
tmp = t_1;
} else if (b <= -3.1e-268) {
tmp = 1.0 / (y * (a / x));
} else if (b <= 3.4e-213) {
tmp = t_1;
} else if (b <= 4.4e-23) {
tmp = (x / y) / a;
} else {
tmp = x / (a * (y * b));
}
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 = x * (-b / (y * a))
if (b <= (-2.3d+98)) then
tmp = t_1
else if (b <= (-3.1d-268)) then
tmp = 1.0d0 / (y * (a / x))
else if (b <= 3.4d-213) then
tmp = t_1
else if (b <= 4.4d-23) then
tmp = (x / y) / a
else
tmp = x / (a * (y * b))
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 = x * (-b / (y * a));
double tmp;
if (b <= -2.3e+98) {
tmp = t_1;
} else if (b <= -3.1e-268) {
tmp = 1.0 / (y * (a / x));
} else if (b <= 3.4e-213) {
tmp = t_1;
} else if (b <= 4.4e-23) {
tmp = (x / y) / a;
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * (-b / (y * a)) tmp = 0 if b <= -2.3e+98: tmp = t_1 elif b <= -3.1e-268: tmp = 1.0 / (y * (a / x)) elif b <= 3.4e-213: tmp = t_1 elif b <= 4.4e-23: tmp = (x / y) / a else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(Float64(-b) / Float64(y * a))) tmp = 0.0 if (b <= -2.3e+98) tmp = t_1; elseif (b <= -3.1e-268) tmp = Float64(1.0 / Float64(y * Float64(a / x))); elseif (b <= 3.4e-213) tmp = t_1; elseif (b <= 4.4e-23) tmp = Float64(Float64(x / y) / a); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (-b / (y * a)); tmp = 0.0; if (b <= -2.3e+98) tmp = t_1; elseif (b <= -3.1e-268) tmp = 1.0 / (y * (a / x)); elseif (b <= 3.4e-213) tmp = t_1; elseif (b <= 4.4e-23) tmp = (x / y) / a; else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[((-b) / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.3e+98], t$95$1, If[LessEqual[b, -3.1e-268], N[(1.0 / N[(y * N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.4e-213], t$95$1, If[LessEqual[b, 4.4e-23], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{-b}{y \cdot a}\\
\mathbf{if}\;b \leq -2.3 \cdot 10^{+98}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -3.1 \cdot 10^{-268}:\\
\;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{-213}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{-23}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < -2.30000000000000013e98 or -3.0999999999999998e-268 < b < 3.4000000000000002e-213Initial program 99.2%
associate-*l/89.5%
*-commutative89.5%
+-commutative89.5%
associate--l+89.5%
exp-sum72.1%
*-commutative72.1%
exp-to-pow72.5%
sub-neg72.5%
metadata-eval72.5%
exp-diff58.0%
*-commutative58.0%
exp-to-pow58.0%
Simplified58.0%
Taylor expanded in t around 0 64.3%
times-frac57.1%
Simplified57.1%
Taylor expanded in y around 0 61.7%
Taylor expanded in b around 0 30.9%
+-commutative30.9%
mul-1-neg30.9%
unsub-neg30.9%
*-commutative30.9%
*-commutative30.9%
times-frac31.1%
Simplified31.1%
Taylor expanded in b around inf 33.8%
associate-*r/33.8%
*-commutative33.8%
neg-mul-133.8%
distribute-rgt-neg-in33.8%
*-commutative33.8%
associate-*r/39.6%
Simplified39.6%
if -2.30000000000000013e98 < b < -3.0999999999999998e-268Initial program 99.2%
associate-*l/89.8%
*-commutative89.8%
+-commutative89.8%
associate--l+89.8%
exp-sum73.7%
*-commutative73.7%
exp-to-pow74.3%
sub-neg74.3%
metadata-eval74.3%
exp-diff66.9%
*-commutative66.9%
exp-to-pow66.9%
Simplified66.9%
Taylor expanded in b around 0 77.4%
*-commutative77.4%
exp-to-pow78.0%
sub-neg78.0%
metadata-eval78.0%
associate-*r/71.9%
associate-*l*71.9%
Simplified71.9%
Taylor expanded in y around 0 65.3%
Taylor expanded in t around 0 35.6%
associate-*l/35.6%
*-un-lft-identity35.6%
associate-/r*35.5%
clear-num35.5%
associate-*r/37.9%
Applied egg-rr37.9%
if 3.4000000000000002e-213 < b < 4.3999999999999999e-23Initial program 94.2%
associate-*l/85.8%
*-commutative85.8%
+-commutative85.8%
associate--l+85.8%
exp-sum71.9%
*-commutative71.9%
exp-to-pow75.0%
sub-neg75.0%
metadata-eval75.0%
exp-diff75.0%
*-commutative75.0%
exp-to-pow75.0%
Simplified75.0%
Taylor expanded in b around 0 77.5%
*-commutative77.5%
exp-to-pow80.6%
sub-neg80.6%
metadata-eval80.6%
associate-*r/75.0%
associate-*l*75.0%
Simplified75.0%
Taylor expanded in y around 0 82.2%
Taylor expanded in t around 0 60.6%
associate-*l/60.7%
*-un-lft-identity60.7%
Applied egg-rr60.7%
if 4.3999999999999999e-23 < b Initial program 99.8%
associate-*l/87.2%
*-commutative87.2%
+-commutative87.2%
associate--l+87.2%
exp-sum67.2%
*-commutative67.2%
exp-to-pow67.2%
sub-neg67.2%
metadata-eval67.2%
exp-diff50.1%
*-commutative50.1%
exp-to-pow50.1%
Simplified50.1%
Taylor expanded in t around 0 60.3%
times-frac47.4%
Simplified47.4%
Taylor expanded in y around 0 74.8%
Taylor expanded in b around 0 47.9%
distribute-lft-out47.9%
*-commutative47.9%
Simplified47.9%
Taylor expanded in b around inf 48.8%
*-commutative48.8%
Simplified48.8%
Final simplification44.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.9e+110)
(/ (* b (- x)) (* y a))
(if (<= b -4.4e-268)
(/ 1.0 (* y (/ a x)))
(if (<= b 5.5e-214)
(* x (/ (- b) (* y a)))
(if (<= b 5.5e-23) (/ (/ x y) a) (/ x (* a (* y b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.9e+110) {
tmp = (b * -x) / (y * a);
} else if (b <= -4.4e-268) {
tmp = 1.0 / (y * (a / x));
} else if (b <= 5.5e-214) {
tmp = x * (-b / (y * a));
} else if (b <= 5.5e-23) {
tmp = (x / y) / a;
} else {
tmp = x / (a * (y * b));
}
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 <= (-1.9d+110)) then
tmp = (b * -x) / (y * a)
else if (b <= (-4.4d-268)) then
tmp = 1.0d0 / (y * (a / x))
else if (b <= 5.5d-214) then
tmp = x * (-b / (y * a))
else if (b <= 5.5d-23) then
tmp = (x / y) / a
else
tmp = x / (a * (y * b))
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 <= -1.9e+110) {
tmp = (b * -x) / (y * a);
} else if (b <= -4.4e-268) {
tmp = 1.0 / (y * (a / x));
} else if (b <= 5.5e-214) {
tmp = x * (-b / (y * a));
} else if (b <= 5.5e-23) {
tmp = (x / y) / a;
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.9e+110: tmp = (b * -x) / (y * a) elif b <= -4.4e-268: tmp = 1.0 / (y * (a / x)) elif b <= 5.5e-214: tmp = x * (-b / (y * a)) elif b <= 5.5e-23: tmp = (x / y) / a else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.9e+110) tmp = Float64(Float64(b * Float64(-x)) / Float64(y * a)); elseif (b <= -4.4e-268) tmp = Float64(1.0 / Float64(y * Float64(a / x))); elseif (b <= 5.5e-214) tmp = Float64(x * Float64(Float64(-b) / Float64(y * a))); elseif (b <= 5.5e-23) tmp = Float64(Float64(x / y) / a); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.9e+110) tmp = (b * -x) / (y * a); elseif (b <= -4.4e-268) tmp = 1.0 / (y * (a / x)); elseif (b <= 5.5e-214) tmp = x * (-b / (y * a)); elseif (b <= 5.5e-23) tmp = (x / y) / a; else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.9e+110], N[(N[(b * (-x)), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.4e-268], N[(1.0 / N[(y * N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.5e-214], N[(x * N[((-b) / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.5e-23], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.9 \cdot 10^{+110}:\\
\;\;\;\;\frac{b \cdot \left(-x\right)}{y \cdot a}\\
\mathbf{elif}\;b \leq -4.4 \cdot 10^{-268}:\\
\;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-214}:\\
\;\;\;\;x \cdot \frac{-b}{y \cdot a}\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-23}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.89999999999999994e110Initial program 100.0%
associate-*l/94.1%
*-commutative94.1%
+-commutative94.1%
associate--l+94.1%
exp-sum73.5%
*-commutative73.5%
exp-to-pow73.5%
sub-neg73.5%
metadata-eval73.5%
exp-diff50.0%
*-commutative50.0%
exp-to-pow50.0%
Simplified50.0%
Taylor expanded in t around 0 64.8%
times-frac58.9%
Simplified58.9%
Taylor expanded in y around 0 91.3%
Taylor expanded in b around 0 37.3%
+-commutative37.3%
mul-1-neg37.3%
unsub-neg37.3%
*-commutative37.3%
*-commutative37.3%
times-frac31.9%
Simplified31.9%
Taylor expanded in b around inf 37.3%
associate-*r/37.3%
*-commutative37.3%
neg-mul-137.3%
distribute-lft-neg-in37.3%
*-commutative37.3%
*-commutative37.3%
Simplified37.3%
if -1.89999999999999994e110 < b < -4.40000000000000008e-268Initial program 99.3%
associate-*l/90.4%
*-commutative90.4%
+-commutative90.4%
associate--l+90.4%
exp-sum74.1%
*-commutative74.1%
exp-to-pow74.6%
sub-neg74.6%
metadata-eval74.6%
exp-diff65.3%
*-commutative65.3%
exp-to-pow65.3%
Simplified65.3%
Taylor expanded in b around 0 76.4%
*-commutative76.4%
exp-to-pow77.0%
sub-neg77.0%
metadata-eval77.0%
associate-*r/71.3%
associate-*l*71.3%
Simplified71.3%
Taylor expanded in y around 0 64.0%
Taylor expanded in t around 0 36.0%
associate-*l/36.0%
*-un-lft-identity36.0%
associate-/r*35.2%
clear-num35.9%
associate-*r/38.1%
Applied egg-rr38.1%
if -4.40000000000000008e-268 < b < 5.50000000000000024e-214Initial program 98.1%
associate-*l/82.6%
*-commutative82.6%
+-commutative82.6%
associate--l+82.6%
exp-sum69.2%
*-commutative69.2%
exp-to-pow70.1%
sub-neg70.1%
metadata-eval70.1%
exp-diff70.1%
*-commutative70.1%
exp-to-pow70.1%
Simplified70.1%
Taylor expanded in t around 0 67.9%
times-frac61.3%
Simplified61.3%
Taylor expanded in y around 0 31.7%
Taylor expanded in b around 0 25.0%
+-commutative25.0%
mul-1-neg25.0%
unsub-neg25.0%
*-commutative25.0%
*-commutative25.0%
times-frac31.6%
Simplified31.6%
Taylor expanded in b around inf 31.7%
associate-*r/31.7%
*-commutative31.7%
neg-mul-131.7%
distribute-rgt-neg-in31.7%
*-commutative31.7%
associate-*r/44.5%
Simplified44.5%
if 5.50000000000000024e-214 < b < 5.5000000000000001e-23Initial program 94.2%
associate-*l/85.8%
*-commutative85.8%
+-commutative85.8%
associate--l+85.8%
exp-sum71.9%
*-commutative71.9%
exp-to-pow75.0%
sub-neg75.0%
metadata-eval75.0%
exp-diff75.0%
*-commutative75.0%
exp-to-pow75.0%
Simplified75.0%
Taylor expanded in b around 0 77.5%
*-commutative77.5%
exp-to-pow80.6%
sub-neg80.6%
metadata-eval80.6%
associate-*r/75.0%
associate-*l*75.0%
Simplified75.0%
Taylor expanded in y around 0 82.2%
Taylor expanded in t around 0 60.6%
associate-*l/60.7%
*-un-lft-identity60.7%
Applied egg-rr60.7%
if 5.5000000000000001e-23 < b Initial program 99.8%
associate-*l/87.2%
*-commutative87.2%
+-commutative87.2%
associate--l+87.2%
exp-sum67.2%
*-commutative67.2%
exp-to-pow67.2%
sub-neg67.2%
metadata-eval67.2%
exp-diff50.1%
*-commutative50.1%
exp-to-pow50.1%
Simplified50.1%
Taylor expanded in t around 0 60.3%
times-frac47.4%
Simplified47.4%
Taylor expanded in y around 0 74.8%
Taylor expanded in b around 0 47.9%
distribute-lft-out47.9%
*-commutative47.9%
Simplified47.9%
Taylor expanded in b around inf 48.8%
*-commutative48.8%
Simplified48.8%
Final simplification44.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.65e-268)
(* (/ (/ x a) y) (- 1.0 b))
(if (<= b 3.7e-214)
(* x (/ (- b) (* y a)))
(if (<= b 1.6e+58) (/ (/ x y) a) (/ x (* a (* y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.65e-268) {
tmp = ((x / a) / y) * (1.0 - b);
} else if (b <= 3.7e-214) {
tmp = x * (-b / (y * a));
} else if (b <= 1.6e+58) {
tmp = (x / y) / a;
} else {
tmp = x / (a * (y * b));
}
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 <= (-1.65d-268)) then
tmp = ((x / a) / y) * (1.0d0 - b)
else if (b <= 3.7d-214) then
tmp = x * (-b / (y * a))
else if (b <= 1.6d+58) then
tmp = (x / y) / a
else
tmp = x / (a * (y * b))
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 <= -1.65e-268) {
tmp = ((x / a) / y) * (1.0 - b);
} else if (b <= 3.7e-214) {
tmp = x * (-b / (y * a));
} else if (b <= 1.6e+58) {
tmp = (x / y) / a;
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.65e-268: tmp = ((x / a) / y) * (1.0 - b) elif b <= 3.7e-214: tmp = x * (-b / (y * a)) elif b <= 1.6e+58: tmp = (x / y) / a else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.65e-268) tmp = Float64(Float64(Float64(x / a) / y) * Float64(1.0 - b)); elseif (b <= 3.7e-214) tmp = Float64(x * Float64(Float64(-b) / Float64(y * a))); elseif (b <= 1.6e+58) tmp = Float64(Float64(x / y) / a); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.65e-268) tmp = ((x / a) / y) * (1.0 - b); elseif (b <= 3.7e-214) tmp = x * (-b / (y * a)); elseif (b <= 1.6e+58) tmp = (x / y) / a; else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.65e-268], N[(N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision] * N[(1.0 - b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.7e-214], N[(x * N[((-b) / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.6e+58], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.65 \cdot 10^{-268}:\\
\;\;\;\;\frac{\frac{x}{a}}{y} \cdot \left(1 - b\right)\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{-214}:\\
\;\;\;\;x \cdot \frac{-b}{y \cdot a}\\
\mathbf{elif}\;b \leq 1.6 \cdot 10^{+58}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.64999999999999996e-268Initial program 99.5%
associate-*l/91.4%
*-commutative91.4%
+-commutative91.4%
associate--l+91.4%
exp-sum73.9%
*-commutative73.9%
exp-to-pow74.3%
sub-neg74.3%
metadata-eval74.3%
exp-diff61.0%
*-commutative61.0%
exp-to-pow61.0%
Simplified61.0%
Taylor expanded in t around 0 62.2%
times-frac58.0%
Simplified58.0%
Taylor expanded in y around 0 57.1%
Taylor expanded in b around 0 20.7%
distribute-lft-out24.1%
*-commutative24.1%
Simplified24.1%
Taylor expanded in b around 0 35.5%
*-commutative35.5%
+-commutative35.5%
times-frac37.5%
*-commutative37.5%
neg-mul-137.5%
sub-neg37.5%
*-rgt-identity37.5%
times-frac35.5%
associate-*l/33.3%
distribute-lft-out--33.3%
associate-/l/34.8%
Simplified34.8%
if -1.64999999999999996e-268 < b < 3.7000000000000002e-214Initial program 98.1%
associate-*l/82.6%
*-commutative82.6%
+-commutative82.6%
associate--l+82.6%
exp-sum69.2%
*-commutative69.2%
exp-to-pow70.1%
sub-neg70.1%
metadata-eval70.1%
exp-diff70.1%
*-commutative70.1%
exp-to-pow70.1%
Simplified70.1%
Taylor expanded in t around 0 67.9%
times-frac61.3%
Simplified61.3%
Taylor expanded in y around 0 31.7%
Taylor expanded in b around 0 25.0%
+-commutative25.0%
mul-1-neg25.0%
unsub-neg25.0%
*-commutative25.0%
*-commutative25.0%
times-frac31.6%
Simplified31.6%
Taylor expanded in b around inf 31.7%
associate-*r/31.7%
*-commutative31.7%
neg-mul-131.7%
distribute-rgt-neg-in31.7%
*-commutative31.7%
associate-*r/44.5%
Simplified44.5%
if 3.7000000000000002e-214 < b < 1.60000000000000008e58Initial program 95.4%
associate-*l/83.2%
*-commutative83.2%
+-commutative83.2%
associate--l+83.2%
exp-sum64.4%
*-commutative64.4%
exp-to-pow66.8%
sub-neg66.8%
metadata-eval66.8%
exp-diff64.7%
*-commutative64.7%
exp-to-pow64.7%
Simplified64.7%
Taylor expanded in b around 0 77.5%
*-commutative77.5%
exp-to-pow79.9%
sub-neg79.9%
metadata-eval79.9%
associate-*r/73.0%
associate-*l*73.0%
Simplified73.0%
Taylor expanded in y around 0 76.5%
Taylor expanded in t around 0 52.3%
associate-*l/52.4%
*-un-lft-identity52.4%
Applied egg-rr52.4%
if 1.60000000000000008e58 < b Initial program 100.0%
associate-*l/89.7%
*-commutative89.7%
+-commutative89.7%
associate--l+89.7%
exp-sum72.4%
*-commutative72.4%
exp-to-pow72.4%
sub-neg72.4%
metadata-eval72.4%
exp-diff53.4%
*-commutative53.4%
exp-to-pow53.4%
Simplified53.4%
Taylor expanded in t around 0 65.6%
times-frac51.8%
Simplified51.8%
Taylor expanded in y around 0 84.7%
Taylor expanded in b around 0 53.1%
distribute-lft-out53.1%
*-commutative53.1%
Simplified53.1%
Taylor expanded in b around inf 53.1%
*-commutative53.1%
Simplified53.1%
Final simplification43.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -2e-268)
(/ (- (/ x a) (/ (* x b) a)) y)
(if (<= b 3.7e-214)
(* x (/ (- b) (* y a)))
(if (<= b 3.3e-23) (/ (/ x y) a) (/ x (* a (* y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2e-268) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else if (b <= 3.7e-214) {
tmp = x * (-b / (y * a));
} else if (b <= 3.3e-23) {
tmp = (x / y) / a;
} else {
tmp = x / (a * (y * b));
}
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 <= (-2d-268)) then
tmp = ((x / a) - ((x * b) / a)) / y
else if (b <= 3.7d-214) then
tmp = x * (-b / (y * a))
else if (b <= 3.3d-23) then
tmp = (x / y) / a
else
tmp = x / (a * (y * b))
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 <= -2e-268) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else if (b <= 3.7e-214) {
tmp = x * (-b / (y * a));
} else if (b <= 3.3e-23) {
tmp = (x / y) / a;
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2e-268: tmp = ((x / a) - ((x * b) / a)) / y elif b <= 3.7e-214: tmp = x * (-b / (y * a)) elif b <= 3.3e-23: tmp = (x / y) / a else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2e-268) tmp = Float64(Float64(Float64(x / a) - Float64(Float64(x * b) / a)) / y); elseif (b <= 3.7e-214) tmp = Float64(x * Float64(Float64(-b) / Float64(y * a))); elseif (b <= 3.3e-23) tmp = Float64(Float64(x / y) / a); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2e-268) tmp = ((x / a) - ((x * b) / a)) / y; elseif (b <= 3.7e-214) tmp = x * (-b / (y * a)); elseif (b <= 3.3e-23) tmp = (x / y) / a; else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2e-268], N[(N[(N[(x / a), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 3.7e-214], N[(x * N[((-b) / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.3e-23], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2 \cdot 10^{-268}:\\
\;\;\;\;\frac{\frac{x}{a} - \frac{x \cdot b}{a}}{y}\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{-214}:\\
\;\;\;\;x \cdot \frac{-b}{y \cdot a}\\
\mathbf{elif}\;b \leq 3.3 \cdot 10^{-23}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.99999999999999992e-268Initial program 99.5%
associate-*l/91.4%
*-commutative91.4%
+-commutative91.4%
associate--l+91.4%
exp-sum73.9%
*-commutative73.9%
exp-to-pow74.3%
sub-neg74.3%
metadata-eval74.3%
exp-diff61.0%
*-commutative61.0%
exp-to-pow61.0%
Simplified61.0%
Taylor expanded in t around 0 62.2%
times-frac58.0%
Simplified58.0%
Taylor expanded in y around 0 57.1%
Taylor expanded in b around 0 35.5%
+-commutative35.5%
mul-1-neg35.5%
unsub-neg35.5%
*-commutative35.5%
*-commutative35.5%
times-frac34.8%
Simplified34.8%
Taylor expanded in y around 0 41.2%
if -1.99999999999999992e-268 < b < 3.7000000000000002e-214Initial program 98.1%
associate-*l/82.6%
*-commutative82.6%
+-commutative82.6%
associate--l+82.6%
exp-sum69.2%
*-commutative69.2%
exp-to-pow70.1%
sub-neg70.1%
metadata-eval70.1%
exp-diff70.1%
*-commutative70.1%
exp-to-pow70.1%
Simplified70.1%
Taylor expanded in t around 0 67.9%
times-frac61.3%
Simplified61.3%
Taylor expanded in y around 0 31.7%
Taylor expanded in b around 0 25.0%
+-commutative25.0%
mul-1-neg25.0%
unsub-neg25.0%
*-commutative25.0%
*-commutative25.0%
times-frac31.6%
Simplified31.6%
Taylor expanded in b around inf 31.7%
associate-*r/31.7%
*-commutative31.7%
neg-mul-131.7%
distribute-rgt-neg-in31.7%
*-commutative31.7%
associate-*r/44.5%
Simplified44.5%
if 3.7000000000000002e-214 < b < 3.30000000000000021e-23Initial program 94.2%
associate-*l/85.8%
*-commutative85.8%
+-commutative85.8%
associate--l+85.8%
exp-sum71.9%
*-commutative71.9%
exp-to-pow75.0%
sub-neg75.0%
metadata-eval75.0%
exp-diff75.0%
*-commutative75.0%
exp-to-pow75.0%
Simplified75.0%
Taylor expanded in b around 0 77.5%
*-commutative77.5%
exp-to-pow80.6%
sub-neg80.6%
metadata-eval80.6%
associate-*r/75.0%
associate-*l*75.0%
Simplified75.0%
Taylor expanded in y around 0 82.2%
Taylor expanded in t around 0 60.6%
associate-*l/60.7%
*-un-lft-identity60.7%
Applied egg-rr60.7%
if 3.30000000000000021e-23 < b Initial program 99.8%
associate-*l/87.2%
*-commutative87.2%
+-commutative87.2%
associate--l+87.2%
exp-sum67.2%
*-commutative67.2%
exp-to-pow67.2%
sub-neg67.2%
metadata-eval67.2%
exp-diff50.1%
*-commutative50.1%
exp-to-pow50.1%
Simplified50.1%
Taylor expanded in t around 0 60.3%
times-frac47.4%
Simplified47.4%
Taylor expanded in y around 0 74.8%
Taylor expanded in b around 0 47.9%
distribute-lft-out47.9%
*-commutative47.9%
Simplified47.9%
Taylor expanded in b around inf 48.8%
*-commutative48.8%
Simplified48.8%
Final simplification46.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b 4.5e-24) (/ 1.0 (* y (/ a x))) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 4.5e-24) {
tmp = 1.0 / (y * (a / x));
} else {
tmp = x / (a * (y * b));
}
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 <= 4.5d-24) then
tmp = 1.0d0 / (y * (a / x))
else
tmp = x / (a * (y * b))
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 <= 4.5e-24) {
tmp = 1.0 / (y * (a / x));
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 4.5e-24: tmp = 1.0 / (y * (a / x)) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 4.5e-24) tmp = Float64(1.0 / Float64(y * Float64(a / x))); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 4.5e-24) tmp = 1.0 / (y * (a / x)); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 4.5e-24], N[(1.0 / N[(y * N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 4.5 \cdot 10^{-24}:\\
\;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 4.4999999999999997e-24Initial program 98.2%
associate-*l/88.9%
*-commutative88.9%
+-commutative88.9%
associate--l+88.9%
exp-sum72.8%
*-commutative72.8%
exp-to-pow73.8%
sub-neg73.8%
metadata-eval73.8%
exp-diff65.1%
*-commutative65.1%
exp-to-pow65.1%
Simplified65.1%
Taylor expanded in b around 0 73.3%
*-commutative73.3%
exp-to-pow74.4%
sub-neg74.4%
metadata-eval74.4%
associate-*r/67.5%
associate-*l*67.5%
Simplified67.5%
Taylor expanded in y around 0 60.1%
Taylor expanded in t around 0 35.8%
associate-*l/35.8%
*-un-lft-identity35.8%
associate-/r*36.3%
clear-num36.9%
associate-*r/36.8%
Applied egg-rr36.8%
if 4.4999999999999997e-24 < b Initial program 99.8%
associate-*l/87.2%
*-commutative87.2%
+-commutative87.2%
associate--l+87.2%
exp-sum67.2%
*-commutative67.2%
exp-to-pow67.2%
sub-neg67.2%
metadata-eval67.2%
exp-diff50.1%
*-commutative50.1%
exp-to-pow50.1%
Simplified50.1%
Taylor expanded in t around 0 60.3%
times-frac47.4%
Simplified47.4%
Taylor expanded in y around 0 74.8%
Taylor expanded in b around 0 47.9%
distribute-lft-out47.9%
*-commutative47.9%
Simplified47.9%
Taylor expanded in b around inf 48.8%
*-commutative48.8%
Simplified48.8%
Final simplification40.1%
(FPCore (x y z t a b) :precision binary64 (if (<= x 1.4e+135) (/ (/ x y) a) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= 1.4e+135) {
tmp = (x / y) / a;
} else {
tmp = x / (y * a);
}
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 (x <= 1.4d+135) then
tmp = (x / y) / a
else
tmp = x / (y * a)
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 (x <= 1.4e+135) {
tmp = (x / y) / a;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= 1.4e+135: tmp = (x / y) / a else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= 1.4e+135) tmp = Float64(Float64(x / y) / a); else tmp = Float64(x / Float64(y * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= 1.4e+135) tmp = (x / y) / a; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, 1.4e+135], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.4 \cdot 10^{+135}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if x < 1.40000000000000001e135Initial program 98.6%
associate-*l/90.5%
*-commutative90.5%
+-commutative90.5%
associate--l+90.5%
exp-sum74.0%
*-commutative74.0%
exp-to-pow74.9%
sub-neg74.9%
metadata-eval74.9%
exp-diff63.0%
*-commutative63.0%
exp-to-pow63.0%
Simplified63.0%
Taylor expanded in b around 0 70.0%
*-commutative70.0%
exp-to-pow70.8%
sub-neg70.8%
metadata-eval70.8%
associate-*r/65.1%
associate-*l*65.1%
Simplified65.1%
Taylor expanded in y around 0 59.3%
Taylor expanded in t around 0 36.5%
associate-*l/36.5%
*-un-lft-identity36.5%
Applied egg-rr36.5%
if 1.40000000000000001e135 < x Initial program 98.8%
Taylor expanded in t around 0 80.2%
+-commutative80.2%
mul-1-neg80.2%
unsub-neg80.2%
Simplified80.2%
Taylor expanded in b around 0 64.8%
*-commutative64.8%
div-exp64.8%
*-commutative64.8%
exp-to-pow64.8%
rem-exp-log65.7%
Simplified65.7%
Taylor expanded in y around 0 34.4%
*-commutative34.4%
Simplified34.4%
Final simplification36.2%
(FPCore (x y z t a b) :precision binary64 (/ x (* y a)))
double code(double x, double y, double z, double t, double a, double b) {
return x / (y * a);
}
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 / (y * a)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (y * a);
}
def code(x, y, z, t, a, b): return x / (y * a)
function code(x, y, z, t, a, b) return Float64(x / Float64(y * a)) end
function tmp = code(x, y, z, t, a, b) tmp = x / (y * a); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y \cdot a}
\end{array}
Initial program 98.7%
Taylor expanded in t around 0 79.7%
+-commutative79.7%
mul-1-neg79.7%
unsub-neg79.7%
Simplified79.7%
Taylor expanded in b around 0 60.5%
*-commutative60.5%
div-exp60.5%
*-commutative60.5%
exp-to-pow60.5%
rem-exp-log61.3%
Simplified61.3%
Taylor expanded in y around 0 33.7%
*-commutative33.7%
Simplified33.7%
Final simplification33.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 2023318
(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))