
(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 25 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 (/ y (exp (- (fma y (log z) (* (+ t -1.0) (log a))) b)))))
double code(double x, double y, double z, double t, double a, double b) {
return x / (y / exp((fma(y, log(z), ((t + -1.0) * log(a))) - b)));
}
function code(x, y, z, t, a, b) return Float64(x / Float64(y / exp(Float64(fma(y, log(z), Float64(Float64(t + -1.0) * log(a))) - b)))) end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(y / N[Exp[N[(N[(y * N[Log[z], $MachinePrecision] + N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\frac{y}{e^{\mathsf{fma}\left(y, \log z, \left(t + -1\right) \cdot \log a\right) - b}}}
\end{array}
Initial program 97.8%
associate-/l*98.5%
fma-def98.5%
sub-neg98.5%
metadata-eval98.5%
Simplified98.5%
Final simplification98.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -4.6e+45) (not (<= t 4.4e+27))) (/ (* 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 <= -4.6e+45) || !(t <= 4.4e+27)) {
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 <= (-4.6d+45)) .or. (.not. (t <= 4.4d+27))) 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 <= -4.6e+45) || !(t <= 4.4e+27)) {
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 <= -4.6e+45) or not (t <= 4.4e+27): 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 <= -4.6e+45) || !(t <= 4.4e+27)) 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 <= -4.6e+45) || ~((t <= 4.4e+27))) 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, -4.6e+45], N[Not[LessEqual[t, 4.4e+27]], $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 -4.6 \cdot 10^{+45} \lor \neg \left(t \leq 4.4 \cdot 10^{+27}\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 < -4.60000000000000025e45 or 4.3999999999999997e27 < t Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 94.0%
if -4.60000000000000025e45 < t < 4.3999999999999997e27Initial program 96.1%
Taylor expanded in t around 0 95.4%
+-commutative95.4%
mul-1-neg95.4%
unsub-neg95.4%
Simplified95.4%
Final simplification94.7%
(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 97.8%
Final simplification97.8%
(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 (/ x (* a t_2)))
(t_4 (* (/ x a) (/ (pow z y) t_2))))
(if (<= t -3.6e+34)
t_1
(if (<= t -3.8e-146)
t_4
(if (<= t 7.2e-287)
t_3
(if (<= t 4.5e-156)
(/ (* x (/ (pow z y) y)) a)
(if (<= t 6.2e-106) t_3 (if (<= t 4e+27) t_4 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 = x / (a * t_2);
double t_4 = (x / a) * (pow(z, y) / t_2);
double tmp;
if (t <= -3.6e+34) {
tmp = t_1;
} else if (t <= -3.8e-146) {
tmp = t_4;
} else if (t <= 7.2e-287) {
tmp = t_3;
} else if (t <= 4.5e-156) {
tmp = (x * (pow(z, y) / y)) / a;
} else if (t <= 6.2e-106) {
tmp = t_3;
} else if (t <= 4e+27) {
tmp = t_4;
} 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) :: t_4
real(8) :: tmp
t_1 = (x * (a ** (t + (-1.0d0)))) / y
t_2 = y * exp(b)
t_3 = x / (a * t_2)
t_4 = (x / a) * ((z ** y) / t_2)
if (t <= (-3.6d+34)) then
tmp = t_1
else if (t <= (-3.8d-146)) then
tmp = t_4
else if (t <= 7.2d-287) then
tmp = t_3
else if (t <= 4.5d-156) then
tmp = (x * ((z ** y) / y)) / a
else if (t <= 6.2d-106) then
tmp = t_3
else if (t <= 4d+27) then
tmp = t_4
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 = x / (a * t_2);
double t_4 = (x / a) * (Math.pow(z, y) / t_2);
double tmp;
if (t <= -3.6e+34) {
tmp = t_1;
} else if (t <= -3.8e-146) {
tmp = t_4;
} else if (t <= 7.2e-287) {
tmp = t_3;
} else if (t <= 4.5e-156) {
tmp = (x * (Math.pow(z, y) / y)) / a;
} else if (t <= 6.2e-106) {
tmp = t_3;
} else if (t <= 4e+27) {
tmp = t_4;
} 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 = x / (a * t_2) t_4 = (x / a) * (math.pow(z, y) / t_2) tmp = 0 if t <= -3.6e+34: tmp = t_1 elif t <= -3.8e-146: tmp = t_4 elif t <= 7.2e-287: tmp = t_3 elif t <= 4.5e-156: tmp = (x * (math.pow(z, y) / y)) / a elif t <= 6.2e-106: tmp = t_3 elif t <= 4e+27: tmp = t_4 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(x / Float64(a * t_2)) t_4 = Float64(Float64(x / a) * Float64((z ^ y) / t_2)) tmp = 0.0 if (t <= -3.6e+34) tmp = t_1; elseif (t <= -3.8e-146) tmp = t_4; elseif (t <= 7.2e-287) tmp = t_3; elseif (t <= 4.5e-156) tmp = Float64(Float64(x * Float64((z ^ y) / y)) / a); elseif (t <= 6.2e-106) tmp = t_3; elseif (t <= 4e+27) tmp = t_4; 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 = x / (a * t_2); t_4 = (x / a) * ((z ^ y) / t_2); tmp = 0.0; if (t <= -3.6e+34) tmp = t_1; elseif (t <= -3.8e-146) tmp = t_4; elseif (t <= 7.2e-287) tmp = t_3; elseif (t <= 4.5e-156) tmp = (x * ((z ^ y) / y)) / a; elseif (t <= 6.2e-106) tmp = t_3; elseif (t <= 4e+27) tmp = t_4; 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[(x / N[(a * t$95$2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.6e+34], t$95$1, If[LessEqual[t, -3.8e-146], t$95$4, If[LessEqual[t, 7.2e-287], t$95$3, If[LessEqual[t, 4.5e-156], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[t, 6.2e-106], t$95$3, If[LessEqual[t, 4e+27], t$95$4, 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 := \frac{x}{a \cdot t_2}\\
t_4 := \frac{x}{a} \cdot \frac{{z}^{y}}{t_2}\\
\mathbf{if}\;t \leq -3.6 \cdot 10^{+34}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -3.8 \cdot 10^{-146}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;t \leq 7.2 \cdot 10^{-287}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-156}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{y}}{a}\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-106}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 4 \cdot 10^{+27}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -3.6e34 or 4.0000000000000001e27 < t Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 92.4%
Taylor expanded in b around 0 83.2%
exp-to-pow83.2%
sub-neg83.2%
metadata-eval83.2%
+-commutative83.2%
Simplified83.2%
if -3.6e34 < t < -3.79999999999999994e-146 or 6.19999999999999971e-106 < t < 4.0000000000000001e27Initial program 98.5%
associate-*l/92.3%
*-commutative92.3%
exp-diff83.8%
exp-sum80.4%
*-commutative80.4%
exp-to-pow80.4%
*-commutative80.4%
exp-to-pow81.4%
sub-neg81.4%
metadata-eval81.4%
Simplified81.4%
Taylor expanded in t around 0 88.1%
times-frac88.0%
Simplified88.0%
if -3.79999999999999994e-146 < t < 7.2000000000000003e-287 or 4.49999999999999986e-156 < t < 6.19999999999999971e-106Initial program 93.0%
associate-*l/90.6%
*-commutative90.6%
exp-diff76.3%
exp-sum76.3%
*-commutative76.3%
exp-to-pow76.3%
*-commutative76.3%
exp-to-pow77.7%
sub-neg77.7%
metadata-eval77.7%
Simplified77.7%
Taylor expanded in t around 0 79.9%
times-frac67.7%
Simplified67.7%
Taylor expanded in y around 0 88.2%
if 7.2000000000000003e-287 < t < 4.49999999999999986e-156Initial program 95.8%
associate-*l/92.0%
*-commutative92.0%
exp-diff75.9%
exp-sum75.9%
*-commutative75.9%
exp-to-pow75.9%
*-commutative75.9%
exp-to-pow77.3%
sub-neg77.3%
metadata-eval77.3%
Simplified77.3%
Taylor expanded in t around 0 77.3%
times-frac74.2%
Simplified74.2%
Taylor expanded in b around 0 71.6%
*-commutative71.6%
associate-*r/78.0%
Applied egg-rr78.0%
Final simplification84.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.8e+54) (not (<= y 7.4e+107))) (/ (* x (/ (pow z y) y)) a) (/ (* 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 <= -1.8e+54) || !(y <= 7.4e+107)) {
tmp = (x * (pow(z, y) / y)) / a;
} 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 <= (-1.8d+54)) .or. (.not. (y <= 7.4d+107))) then
tmp = (x * ((z ** y) / y)) / a
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 <= -1.8e+54) || !(y <= 7.4e+107)) {
tmp = (x * (Math.pow(z, y) / y)) / a;
} 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 <= -1.8e+54) or not (y <= 7.4e+107): tmp = (x * (math.pow(z, y) / y)) / a 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 <= -1.8e+54) || !(y <= 7.4e+107)) tmp = Float64(Float64(x * Float64((z ^ y) / y)) / a); 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 <= -1.8e+54) || ~((y <= 7.4e+107))) tmp = (x * ((z ^ y) / y)) / a; 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, -1.8e+54], N[Not[LessEqual[y, 7.4e+107]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $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 -1.8 \cdot 10^{+54} \lor \neg \left(y \leq 7.4 \cdot 10^{+107}\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -1.8000000000000001e54 or 7.4e107 < y Initial program 100.0%
associate-*l/85.1%
*-commutative85.1%
exp-diff61.7%
exp-sum50.0%
*-commutative50.0%
exp-to-pow50.0%
*-commutative50.0%
exp-to-pow50.0%
sub-neg50.0%
metadata-eval50.0%
Simplified50.0%
Taylor expanded in t around 0 58.6%
times-frac61.8%
Simplified61.8%
Taylor expanded in b around 0 74.7%
*-commutative74.7%
associate-*r/86.4%
Applied egg-rr86.4%
if -1.8000000000000001e54 < y < 7.4e107Initial program 96.5%
associate-/l*97.7%
fma-def97.7%
sub-neg97.7%
metadata-eval97.7%
Simplified97.7%
Taylor expanded in y around 0 91.1%
Final simplification89.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -3.3e+53) (not (<= y 6e+61))) (/ (* x (/ (pow z y) y)) a) (* (/ (pow a (+ t -1.0)) (exp b)) (/ x y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -3.3e+53) || !(y <= 6e+61)) {
tmp = (x * (pow(z, y) / y)) / a;
} else {
tmp = (pow(a, (t + -1.0)) / exp(b)) * (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 ((y <= (-3.3d+53)) .or. (.not. (y <= 6d+61))) then
tmp = (x * ((z ** y) / y)) / a
else
tmp = ((a ** (t + (-1.0d0))) / exp(b)) * (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 ((y <= -3.3e+53) || !(y <= 6e+61)) {
tmp = (x * (Math.pow(z, y) / y)) / a;
} else {
tmp = (Math.pow(a, (t + -1.0)) / Math.exp(b)) * (x / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -3.3e+53) or not (y <= 6e+61): tmp = (x * (math.pow(z, y) / y)) / a else: tmp = (math.pow(a, (t + -1.0)) / math.exp(b)) * (x / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -3.3e+53) || !(y <= 6e+61)) tmp = Float64(Float64(x * Float64((z ^ y) / y)) / a); else tmp = Float64(Float64((a ^ Float64(t + -1.0)) / exp(b)) * Float64(x / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -3.3e+53) || ~((y <= 6e+61))) tmp = (x * ((z ^ y) / y)) / a; else tmp = ((a ^ (t + -1.0)) / exp(b)) * (x / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -3.3e+53], N[Not[LessEqual[y, 6e+61]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], N[(N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.3 \cdot 10^{+53} \lor \neg \left(y \leq 6 \cdot 10^{+61}\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{{a}^{\left(t + -1\right)}}{e^{b}} \cdot \frac{x}{y}\\
\end{array}
\end{array}
if y < -3.3000000000000002e53 or 6e61 < y Initial program 100.0%
associate-*l/86.7%
*-commutative86.7%
exp-diff62.9%
exp-sum50.5%
*-commutative50.5%
exp-to-pow50.5%
*-commutative50.5%
exp-to-pow50.5%
sub-neg50.5%
metadata-eval50.5%
Simplified50.5%
Taylor expanded in t around 0 58.2%
times-frac59.2%
Simplified59.2%
Taylor expanded in b around 0 70.7%
*-commutative70.7%
associate-*r/83.1%
Applied egg-rr83.1%
if -3.3000000000000002e53 < y < 6e61Initial program 96.3%
associate-*l/93.6%
*-commutative93.6%
exp-diff79.7%
exp-sum75.7%
*-commutative75.7%
exp-to-pow75.7%
*-commutative75.7%
exp-to-pow76.9%
sub-neg76.9%
metadata-eval76.9%
Simplified76.9%
Taylor expanded in y around 0 78.5%
exp-to-pow79.6%
sub-neg79.6%
metadata-eval79.6%
Simplified79.6%
Final simplification81.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.8e+51) (not (<= y 6.2e+61))) (/ (* x (/ (pow z y) y)) a) (/ x (/ (* y (exp b)) (pow a (+ t -1.0))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.8e+51) || !(y <= 6.2e+61)) {
tmp = (x * (pow(z, y) / y)) / a;
} else {
tmp = x / ((y * exp(b)) / pow(a, (t + -1.0)));
}
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 <= (-1.8d+51)) .or. (.not. (y <= 6.2d+61))) then
tmp = (x * ((z ** y) / y)) / a
else
tmp = x / ((y * exp(b)) / (a ** (t + (-1.0d0))))
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 <= -1.8e+51) || !(y <= 6.2e+61)) {
tmp = (x * (Math.pow(z, y) / y)) / a;
} else {
tmp = x / ((y * Math.exp(b)) / Math.pow(a, (t + -1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.8e+51) or not (y <= 6.2e+61): tmp = (x * (math.pow(z, y) / y)) / a else: tmp = x / ((y * math.exp(b)) / math.pow(a, (t + -1.0))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.8e+51) || !(y <= 6.2e+61)) tmp = Float64(Float64(x * Float64((z ^ y) / y)) / a); else tmp = Float64(x / Float64(Float64(y * exp(b)) / (a ^ Float64(t + -1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.8e+51) || ~((y <= 6.2e+61))) tmp = (x * ((z ^ y) / y)) / a; else tmp = x / ((y * exp(b)) / (a ^ (t + -1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.8e+51], N[Not[LessEqual[y, 6.2e+61]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision] / N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.8 \cdot 10^{+51} \lor \neg \left(y \leq 6.2 \cdot 10^{+61}\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{y \cdot e^{b}}{{a}^{\left(t + -1\right)}}}\\
\end{array}
\end{array}
if y < -1.80000000000000005e51 or 6.1999999999999998e61 < y Initial program 100.0%
associate-*l/86.7%
*-commutative86.7%
exp-diff62.9%
exp-sum50.5%
*-commutative50.5%
exp-to-pow50.5%
*-commutative50.5%
exp-to-pow50.5%
sub-neg50.5%
metadata-eval50.5%
Simplified50.5%
Taylor expanded in t around 0 58.2%
times-frac59.2%
Simplified59.2%
Taylor expanded in b around 0 70.7%
*-commutative70.7%
associate-*r/83.1%
Applied egg-rr83.1%
if -1.80000000000000005e51 < y < 6.1999999999999998e61Initial program 96.3%
associate-*l/93.6%
*-commutative93.6%
exp-diff79.7%
exp-sum75.7%
*-commutative75.7%
exp-to-pow75.7%
*-commutative75.7%
exp-to-pow76.9%
sub-neg76.9%
metadata-eval76.9%
Simplified76.9%
Taylor expanded in y around 0 77.2%
associate-/l*82.4%
exp-to-pow83.6%
sub-neg83.6%
metadata-eval83.6%
Simplified83.6%
Final simplification83.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (/ (pow z y) y)) a))
(t_2 (/ (* x (pow a (+ t -1.0))) y))
(t_3 (/ x (* a (* y (exp b))))))
(if (<= t -5.2e+45)
t_2
(if (<= t -1.65e-184)
t_1
(if (<= t 1e-286)
t_3
(if (<= t 1.5e-155) t_1 (if (<= t 4.2e-30) t_3 t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * (pow(z, y) / y)) / a;
double t_2 = (x * pow(a, (t + -1.0))) / y;
double t_3 = x / (a * (y * exp(b)));
double tmp;
if (t <= -5.2e+45) {
tmp = t_2;
} else if (t <= -1.65e-184) {
tmp = t_1;
} else if (t <= 1e-286) {
tmp = t_3;
} else if (t <= 1.5e-155) {
tmp = t_1;
} else if (t <= 4.2e-30) {
tmp = t_3;
} 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) :: t_3
real(8) :: tmp
t_1 = (x * ((z ** y) / y)) / a
t_2 = (x * (a ** (t + (-1.0d0)))) / y
t_3 = x / (a * (y * exp(b)))
if (t <= (-5.2d+45)) then
tmp = t_2
else if (t <= (-1.65d-184)) then
tmp = t_1
else if (t <= 1d-286) then
tmp = t_3
else if (t <= 1.5d-155) then
tmp = t_1
else if (t <= 4.2d-30) then
tmp = t_3
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(z, y) / y)) / a;
double t_2 = (x * Math.pow(a, (t + -1.0))) / y;
double t_3 = x / (a * (y * Math.exp(b)));
double tmp;
if (t <= -5.2e+45) {
tmp = t_2;
} else if (t <= -1.65e-184) {
tmp = t_1;
} else if (t <= 1e-286) {
tmp = t_3;
} else if (t <= 1.5e-155) {
tmp = t_1;
} else if (t <= 4.2e-30) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * (math.pow(z, y) / y)) / a t_2 = (x * math.pow(a, (t + -1.0))) / y t_3 = x / (a * (y * math.exp(b))) tmp = 0 if t <= -5.2e+45: tmp = t_2 elif t <= -1.65e-184: tmp = t_1 elif t <= 1e-286: tmp = t_3 elif t <= 1.5e-155: tmp = t_1 elif t <= 4.2e-30: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * Float64((z ^ y) / y)) / a) t_2 = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y) t_3 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (t <= -5.2e+45) tmp = t_2; elseif (t <= -1.65e-184) tmp = t_1; elseif (t <= 1e-286) tmp = t_3; elseif (t <= 1.5e-155) tmp = t_1; elseif (t <= 4.2e-30) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * ((z ^ y) / y)) / a; t_2 = (x * (a ^ (t + -1.0))) / y; t_3 = x / (a * (y * exp(b))); tmp = 0.0; if (t <= -5.2e+45) tmp = t_2; elseif (t <= -1.65e-184) tmp = t_1; elseif (t <= 1e-286) tmp = t_3; elseif (t <= 1.5e-155) tmp = t_1; elseif (t <= 4.2e-30) tmp = t_3; else tmp = t_2; 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] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$3 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.2e+45], t$95$2, If[LessEqual[t, -1.65e-184], t$95$1, If[LessEqual[t, 1e-286], t$95$3, If[LessEqual[t, 1.5e-155], t$95$1, If[LessEqual[t, 4.2e-30], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \frac{{z}^{y}}{y}}{a}\\
t_2 := \frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
t_3 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;t \leq -5.2 \cdot 10^{+45}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.65 \cdot 10^{-184}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 10^{-286}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{-155}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-30}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -5.20000000000000014e45 or 4.2000000000000004e-30 < t Initial program 100.0%
associate-/l*100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 91.2%
Taylor expanded in b around 0 82.4%
exp-to-pow82.4%
sub-neg82.4%
metadata-eval82.4%
+-commutative82.4%
Simplified82.4%
if -5.20000000000000014e45 < t < -1.6499999999999999e-184 or 1.00000000000000005e-286 < t < 1.49999999999999992e-155Initial program 96.2%
associate-*l/91.7%
*-commutative91.7%
exp-diff77.8%
exp-sum75.1%
*-commutative75.1%
exp-to-pow75.1%
*-commutative75.1%
exp-to-pow76.3%
sub-neg76.3%
metadata-eval76.3%
Simplified76.3%
Taylor expanded in t around 0 83.2%
times-frac79.3%
Simplified79.3%
Taylor expanded in b around 0 75.6%
*-commutative75.6%
associate-*r/82.5%
Applied egg-rr82.5%
if -1.6499999999999999e-184 < t < 1.00000000000000005e-286 or 1.49999999999999992e-155 < t < 4.2000000000000004e-30Initial program 95.4%
associate-*l/92.3%
*-commutative92.3%
exp-diff80.8%
exp-sum80.8%
*-commutative80.8%
exp-to-pow80.8%
*-commutative80.8%
exp-to-pow82.1%
sub-neg82.1%
metadata-eval82.1%
Simplified82.1%
Taylor expanded in t around 0 83.8%
times-frac75.5%
Simplified75.5%
Taylor expanded in y around 0 84.2%
Final simplification82.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (/ (pow z y) y) (/ x a))) (t_2 (/ x (* a (* y (exp b))))))
(if (<= b -350000000000.0)
t_2
(if (<= b 4e-219)
t_1
(if (<= b 1e-41)
(* (/ x y) (/ (pow z y) a))
(if (<= b 6000000000000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (pow(z, y) / y) * (x / a);
double t_2 = x / (a * (y * exp(b)));
double tmp;
if (b <= -350000000000.0) {
tmp = t_2;
} else if (b <= 4e-219) {
tmp = t_1;
} else if (b <= 1e-41) {
tmp = (x / y) * (pow(z, y) / a);
} else if (b <= 6000000000000.0) {
tmp = t_1;
} 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 = ((z ** y) / y) * (x / a)
t_2 = x / (a * (y * exp(b)))
if (b <= (-350000000000.0d0)) then
tmp = t_2
else if (b <= 4d-219) then
tmp = t_1
else if (b <= 1d-41) then
tmp = (x / y) * ((z ** y) / a)
else if (b <= 6000000000000.0d0) then
tmp = t_1
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(z, y) / y) * (x / a);
double t_2 = x / (a * (y * Math.exp(b)));
double tmp;
if (b <= -350000000000.0) {
tmp = t_2;
} else if (b <= 4e-219) {
tmp = t_1;
} else if (b <= 1e-41) {
tmp = (x / y) * (Math.pow(z, y) / a);
} else if (b <= 6000000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (math.pow(z, y) / y) * (x / a) t_2 = x / (a * (y * math.exp(b))) tmp = 0 if b <= -350000000000.0: tmp = t_2 elif b <= 4e-219: tmp = t_1 elif b <= 1e-41: tmp = (x / y) * (math.pow(z, y) / a) elif b <= 6000000000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64((z ^ y) / y) * Float64(x / a)) t_2 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (b <= -350000000000.0) tmp = t_2; elseif (b <= 4e-219) tmp = t_1; elseif (b <= 1e-41) tmp = Float64(Float64(x / y) * Float64((z ^ y) / a)); elseif (b <= 6000000000000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((z ^ y) / y) * (x / a); t_2 = x / (a * (y * exp(b))); tmp = 0.0; if (b <= -350000000000.0) tmp = t_2; elseif (b <= 4e-219) tmp = t_1; elseif (b <= 1e-41) tmp = (x / y) * ((z ^ y) / a); elseif (b <= 6000000000000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision] * N[(x / a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -350000000000.0], t$95$2, If[LessEqual[b, 4e-219], t$95$1, If[LessEqual[b, 1e-41], N[(N[(x / y), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6000000000000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{{z}^{y}}{y} \cdot \frac{x}{a}\\
t_2 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -350000000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 4 \cdot 10^{-219}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 10^{-41}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{{z}^{y}}{a}\\
\mathbf{elif}\;b \leq 6000000000000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -3.5e11 or 6e12 < b Initial program 100.0%
associate-*l/93.3%
*-commutative93.3%
exp-diff58.3%
exp-sum52.5%
*-commutative52.5%
exp-to-pow52.5%
*-commutative52.5%
exp-to-pow52.5%
sub-neg52.5%
metadata-eval52.5%
Simplified52.5%
Taylor expanded in t around 0 66.8%
times-frac60.1%
Simplified60.1%
Taylor expanded in y around 0 80.3%
if -3.5e11 < b < 4.0000000000000001e-219 or 1.00000000000000001e-41 < b < 6e12Initial program 97.7%
associate-*l/84.5%
*-commutative84.5%
exp-diff80.3%
exp-sum74.1%
*-commutative74.1%
exp-to-pow74.1%
*-commutative74.1%
exp-to-pow75.1%
sub-neg75.1%
metadata-eval75.1%
Simplified75.1%
Taylor expanded in t around 0 64.3%
times-frac68.4%
Simplified68.4%
Taylor expanded in b around 0 71.5%
if 4.0000000000000001e-219 < b < 1.00000000000000001e-41Initial program 91.5%
associate-*l/98.1%
*-commutative98.1%
exp-diff98.1%
exp-sum83.1%
*-commutative83.1%
exp-to-pow83.1%
*-commutative83.1%
exp-to-pow84.9%
sub-neg84.9%
metadata-eval84.9%
Simplified84.9%
Taylor expanded in t around 0 65.8%
times-frac68.1%
Simplified68.1%
Taylor expanded in b around 0 65.8%
*-commutative65.8%
times-frac80.5%
Simplified80.5%
Final simplification77.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (pow a (+ t -1.0))) y)) (t_2 (/ x (* a (* y (exp b))))))
(if (<= b -1.6e+110)
t_2
(if (<= b 2.3e-301)
t_1
(if (<= b 4.8e-63)
(* (/ x y) (/ (pow z y) a))
(if (<= b 8e+44) t_1 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;
double t_2 = x / (a * (y * exp(b)));
double tmp;
if (b <= -1.6e+110) {
tmp = t_2;
} else if (b <= 2.3e-301) {
tmp = t_1;
} else if (b <= 4.8e-63) {
tmp = (x / y) * (pow(z, y) / a);
} else if (b <= 8e+44) {
tmp = t_1;
} 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
t_2 = x / (a * (y * exp(b)))
if (b <= (-1.6d+110)) then
tmp = t_2
else if (b <= 2.3d-301) then
tmp = t_1
else if (b <= 4.8d-63) then
tmp = (x / y) * ((z ** y) / a)
else if (b <= 8d+44) then
tmp = t_1
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;
double t_2 = x / (a * (y * Math.exp(b)));
double tmp;
if (b <= -1.6e+110) {
tmp = t_2;
} else if (b <= 2.3e-301) {
tmp = t_1;
} else if (b <= 4.8e-63) {
tmp = (x / y) * (Math.pow(z, y) / a);
} else if (b <= 8e+44) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * math.pow(a, (t + -1.0))) / y t_2 = x / (a * (y * math.exp(b))) tmp = 0 if b <= -1.6e+110: tmp = t_2 elif b <= 2.3e-301: tmp = t_1 elif b <= 4.8e-63: tmp = (x / y) * (math.pow(z, y) / a) elif b <= 8e+44: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y) t_2 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (b <= -1.6e+110) tmp = t_2; elseif (b <= 2.3e-301) tmp = t_1; elseif (b <= 4.8e-63) tmp = Float64(Float64(x / y) * Float64((z ^ y) / a)); elseif (b <= 8e+44) tmp = t_1; 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; t_2 = x / (a * (y * exp(b))); tmp = 0.0; if (b <= -1.6e+110) tmp = t_2; elseif (b <= 2.3e-301) tmp = t_1; elseif (b <= 4.8e-63) tmp = (x / y) * ((z ^ y) / a); elseif (b <= 8e+44) tmp = t_1; 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] / y), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.6e+110], t$95$2, If[LessEqual[b, 2.3e-301], t$95$1, If[LessEqual[b, 4.8e-63], N[(N[(x / y), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8e+44], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
t_2 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -1.6 \cdot 10^{+110}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 2.3 \cdot 10^{-301}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 4.8 \cdot 10^{-63}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{{z}^{y}}{a}\\
\mathbf{elif}\;b \leq 8 \cdot 10^{+44}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -1.59999999999999997e110 or 8.0000000000000007e44 < b Initial program 100.0%
associate-*l/93.4%
*-commutative93.4%
exp-diff61.5%
exp-sum57.1%
*-commutative57.1%
exp-to-pow57.1%
*-commutative57.1%
exp-to-pow57.1%
sub-neg57.1%
metadata-eval57.1%
Simplified57.1%
Taylor expanded in t around 0 71.5%
times-frac62.7%
Simplified62.7%
Taylor expanded in y around 0 87.0%
if -1.59999999999999997e110 < b < 2.3000000000000002e-301 or 4.8000000000000001e-63 < b < 8.0000000000000007e44Initial program 98.1%
associate-/l*98.8%
fma-def98.8%
sub-neg98.8%
metadata-eval98.8%
Simplified98.8%
Taylor expanded in y around 0 78.0%
Taylor expanded in b around 0 73.6%
exp-to-pow74.6%
sub-neg74.6%
metadata-eval74.6%
+-commutative74.6%
Simplified74.6%
if 2.3000000000000002e-301 < b < 4.8000000000000001e-63Initial program 93.9%
associate-*l/96.7%
*-commutative96.7%
exp-diff96.7%
exp-sum84.7%
*-commutative84.7%
exp-to-pow84.7%
*-commutative84.7%
exp-to-pow86.1%
sub-neg86.1%
metadata-eval86.1%
Simplified86.1%
Taylor expanded in t around 0 66.4%
times-frac74.6%
Simplified74.6%
Taylor expanded in b around 0 66.4%
*-commutative66.4%
times-frac81.5%
Simplified81.5%
Final simplification80.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -250000000000.0) (not (<= b 22000000000.0))) (/ x (* a (* y (exp b)))) (* (/ (pow z y) y) (/ x a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -250000000000.0) || !(b <= 22000000000.0)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = (pow(z, y) / y) * (x / 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 <= (-250000000000.0d0)) .or. (.not. (b <= 22000000000.0d0))) then
tmp = x / (a * (y * exp(b)))
else
tmp = ((z ** y) / y) * (x / 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 <= -250000000000.0) || !(b <= 22000000000.0)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = (Math.pow(z, y) / y) * (x / a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -250000000000.0) or not (b <= 22000000000.0): tmp = x / (a * (y * math.exp(b))) else: tmp = (math.pow(z, y) / y) * (x / a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -250000000000.0) || !(b <= 22000000000.0)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(Float64((z ^ y) / y) * Float64(x / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -250000000000.0) || ~((b <= 22000000000.0))) tmp = x / (a * (y * exp(b))); else tmp = ((z ^ y) / y) * (x / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -250000000000.0], N[Not[LessEqual[b, 22000000000.0]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision] * N[(x / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -250000000000 \lor \neg \left(b \leq 22000000000\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{{z}^{y}}{y} \cdot \frac{x}{a}\\
\end{array}
\end{array}
if b < -2.5e11 or 2.2e10 < b Initial program 100.0%
associate-*l/93.3%
*-commutative93.3%
exp-diff58.3%
exp-sum52.5%
*-commutative52.5%
exp-to-pow52.5%
*-commutative52.5%
exp-to-pow52.5%
sub-neg52.5%
metadata-eval52.5%
Simplified52.5%
Taylor expanded in t around 0 66.8%
times-frac60.1%
Simplified60.1%
Taylor expanded in y around 0 80.3%
if -2.5e11 < b < 2.2e10Initial program 95.9%
associate-*l/88.5%
*-commutative88.5%
exp-diff85.5%
exp-sum76.7%
*-commutative76.7%
exp-to-pow76.7%
*-commutative76.7%
exp-to-pow78.0%
sub-neg78.0%
metadata-eval78.0%
Simplified78.0%
Taylor expanded in t around 0 64.7%
times-frac68.3%
Simplified68.3%
Taylor expanded in b around 0 70.5%
Final simplification75.1%
(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 97.8%
associate-*l/90.8%
*-commutative90.8%
exp-diff72.8%
exp-sum65.4%
*-commutative65.4%
exp-to-pow65.4%
*-commutative65.4%
exp-to-pow66.0%
sub-neg66.0%
metadata-eval66.0%
Simplified66.0%
Taylor expanded in t around 0 65.7%
times-frac64.5%
Simplified64.5%
Taylor expanded in y around 0 57.8%
Final simplification57.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (/ y x))))
(if (<= b 2.3e-140)
(/ (- (* a (/ x a)) (* x (* y (/ b y)))) (* y a))
(if (<= b 45000000000000.0)
(/ (- a (* t_1 (/ b (/ y x)))) (* a t_1))
(if (<= b 2e+143)
(/ (/ x a) (* y b))
(* (/ 1.0 a) (/ x (* y (+ b 1.0)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (y / x);
double tmp;
if (b <= 2.3e-140) {
tmp = ((a * (x / a)) - (x * (y * (b / y)))) / (y * a);
} else if (b <= 45000000000000.0) {
tmp = (a - (t_1 * (b / (y / x)))) / (a * t_1);
} else if (b <= 2e+143) {
tmp = (x / a) / (y * b);
} else {
tmp = (1.0 / a) * (x / (y * (b + 1.0)));
}
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 = a * (y / x)
if (b <= 2.3d-140) then
tmp = ((a * (x / a)) - (x * (y * (b / y)))) / (y * a)
else if (b <= 45000000000000.0d0) then
tmp = (a - (t_1 * (b / (y / x)))) / (a * t_1)
else if (b <= 2d+143) then
tmp = (x / a) / (y * b)
else
tmp = (1.0d0 / a) * (x / (y * (b + 1.0d0)))
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 = a * (y / x);
double tmp;
if (b <= 2.3e-140) {
tmp = ((a * (x / a)) - (x * (y * (b / y)))) / (y * a);
} else if (b <= 45000000000000.0) {
tmp = (a - (t_1 * (b / (y / x)))) / (a * t_1);
} else if (b <= 2e+143) {
tmp = (x / a) / (y * b);
} else {
tmp = (1.0 / a) * (x / (y * (b + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (y / x) tmp = 0 if b <= 2.3e-140: tmp = ((a * (x / a)) - (x * (y * (b / y)))) / (y * a) elif b <= 45000000000000.0: tmp = (a - (t_1 * (b / (y / x)))) / (a * t_1) elif b <= 2e+143: tmp = (x / a) / (y * b) else: tmp = (1.0 / a) * (x / (y * (b + 1.0))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(y / x)) tmp = 0.0 if (b <= 2.3e-140) tmp = Float64(Float64(Float64(a * Float64(x / a)) - Float64(x * Float64(y * Float64(b / y)))) / Float64(y * a)); elseif (b <= 45000000000000.0) tmp = Float64(Float64(a - Float64(t_1 * Float64(b / Float64(y / x)))) / Float64(a * t_1)); elseif (b <= 2e+143) tmp = Float64(Float64(x / a) / Float64(y * b)); else tmp = Float64(Float64(1.0 / a) * Float64(x / Float64(y * Float64(b + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (y / x); tmp = 0.0; if (b <= 2.3e-140) tmp = ((a * (x / a)) - (x * (y * (b / y)))) / (y * a); elseif (b <= 45000000000000.0) tmp = (a - (t_1 * (b / (y / x)))) / (a * t_1); elseif (b <= 2e+143) tmp = (x / a) / (y * b); else tmp = (1.0 / a) * (x / (y * (b + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, 2.3e-140], N[(N[(N[(a * N[(x / a), $MachinePrecision]), $MachinePrecision] - N[(x * N[(y * N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 45000000000000.0], N[(N[(a - N[(t$95$1 * N[(b / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2e+143], N[(N[(x / a), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / a), $MachinePrecision] * N[(x / N[(y * N[(b + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \frac{y}{x}\\
\mathbf{if}\;b \leq 2.3 \cdot 10^{-140}:\\
\;\;\;\;\frac{a \cdot \frac{x}{a} - x \cdot \left(y \cdot \frac{b}{y}\right)}{y \cdot a}\\
\mathbf{elif}\;b \leq 45000000000000:\\
\;\;\;\;\frac{a - t_1 \cdot \frac{b}{\frac{y}{x}}}{a \cdot t_1}\\
\mathbf{elif}\;b \leq 2 \cdot 10^{+143}:\\
\;\;\;\;\frac{\frac{x}{a}}{y \cdot b}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{a} \cdot \frac{x}{y \cdot \left(b + 1\right)}\\
\end{array}
\end{array}
if b < 2.3000000000000001e-140Initial program 97.9%
associate-*l/88.0%
*-commutative88.0%
exp-diff71.7%
exp-sum66.0%
*-commutative66.0%
exp-to-pow66.0%
*-commutative66.0%
exp-to-pow66.7%
sub-neg66.7%
metadata-eval66.7%
Simplified66.7%
Taylor expanded in t around 0 67.2%
times-frac67.7%
Simplified67.7%
Taylor expanded in y around 0 56.5%
Taylor expanded in b around 0 40.0%
+-commutative40.0%
mul-1-neg40.0%
unsub-neg40.0%
*-commutative40.0%
times-frac35.4%
Simplified35.4%
associate-/r*35.9%
*-un-lft-identity35.9%
associate-*l/35.9%
associate-*r/35.9%
associate-*l/39.8%
frac-sub41.8%
associate-*l/41.8%
*-un-lft-identity41.8%
clear-num41.8%
un-div-inv42.4%
Applied egg-rr42.4%
*-commutative42.4%
associate-/r/46.2%
associate-*r*46.2%
Simplified46.2%
if 2.3000000000000001e-140 < b < 4.5e13Initial program 93.9%
associate-*l/93.1%
*-commutative93.1%
exp-diff90.5%
exp-sum77.3%
*-commutative77.3%
exp-to-pow77.3%
*-commutative77.3%
exp-to-pow78.9%
sub-neg78.9%
metadata-eval78.9%
Simplified78.9%
Taylor expanded in t around 0 66.7%
times-frac61.3%
Simplified61.3%
Taylor expanded in y around 0 31.2%
Taylor expanded in b around 0 23.7%
+-commutative23.7%
mul-1-neg23.7%
unsub-neg23.7%
*-commutative23.7%
times-frac23.7%
Simplified23.7%
clear-num23.7%
associate-*l/21.3%
frac-sub35.8%
*-un-lft-identity35.8%
*-commutative35.8%
*-un-lft-identity35.8%
times-frac38.2%
/-rgt-identity38.2%
clear-num38.2%
un-div-inv38.2%
*-commutative38.2%
*-un-lft-identity38.2%
times-frac38.2%
/-rgt-identity38.2%
Applied egg-rr38.2%
if 4.5e13 < b < 2e143Initial program 100.0%
associate-*l/96.4%
*-commutative96.4%
exp-diff64.3%
exp-sum50.0%
*-commutative50.0%
exp-to-pow50.0%
*-commutative50.0%
exp-to-pow50.0%
sub-neg50.0%
metadata-eval50.0%
Simplified50.0%
Taylor expanded in t around 0 57.3%
times-frac53.7%
Simplified53.7%
Taylor expanded in y around 0 68.4%
Taylor expanded in b around 0 34.6%
distribute-lft-out34.6%
distribute-rgt1-in34.6%
Simplified34.6%
Taylor expanded in b around inf 34.6%
associate-/r*41.3%
*-commutative41.3%
Simplified41.3%
if 2e143 < b Initial program 100.0%
associate-*l/96.8%
*-commutative96.8%
exp-diff64.5%
exp-sum61.3%
*-commutative61.3%
exp-to-pow61.3%
*-commutative61.3%
exp-to-pow61.3%
sub-neg61.3%
metadata-eval61.3%
Simplified61.3%
Taylor expanded in t around 0 64.6%
times-frac61.3%
Simplified61.3%
Taylor expanded in y around 0 87.3%
Taylor expanded in b around 0 53.7%
distribute-lft-out53.7%
distribute-rgt1-in53.7%
Simplified53.7%
*-un-lft-identity53.7%
times-frac54.8%
*-commutative54.8%
+-commutative54.8%
Applied egg-rr54.8%
Final simplification45.5%
(FPCore (x y z t a b) :precision binary64 (if (<= b 1e-215) (/ (- (* a (/ x a)) (* x (* y (/ b y)))) (* y a)) (* (/ 1.0 a) (/ x (* y (+ b 1.0))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1e-215) {
tmp = ((a * (x / a)) - (x * (y * (b / y)))) / (y * a);
} else {
tmp = (1.0 / a) * (x / (y * (b + 1.0)));
}
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 <= 1d-215) then
tmp = ((a * (x / a)) - (x * (y * (b / y)))) / (y * a)
else
tmp = (1.0d0 / a) * (x / (y * (b + 1.0d0)))
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 <= 1e-215) {
tmp = ((a * (x / a)) - (x * (y * (b / y)))) / (y * a);
} else {
tmp = (1.0 / a) * (x / (y * (b + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 1e-215: tmp = ((a * (x / a)) - (x * (y * (b / y)))) / (y * a) else: tmp = (1.0 / a) * (x / (y * (b + 1.0))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 1e-215) tmp = Float64(Float64(Float64(a * Float64(x / a)) - Float64(x * Float64(y * Float64(b / y)))) / Float64(y * a)); else tmp = Float64(Float64(1.0 / a) * Float64(x / Float64(y * Float64(b + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 1e-215) tmp = ((a * (x / a)) - (x * (y * (b / y)))) / (y * a); else tmp = (1.0 / a) * (x / (y * (b + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1e-215], N[(N[(N[(a * N[(x / a), $MachinePrecision]), $MachinePrecision] - N[(x * N[(y * N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / a), $MachinePrecision] * N[(x / N[(y * N[(b + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 10^{-215}:\\
\;\;\;\;\frac{a \cdot \frac{x}{a} - x \cdot \left(y \cdot \frac{b}{y}\right)}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{a} \cdot \frac{x}{y \cdot \left(b + 1\right)}\\
\end{array}
\end{array}
if b < 1.00000000000000004e-215Initial program 98.5%
associate-*l/87.2%
*-commutative87.2%
exp-diff69.7%
exp-sum64.9%
*-commutative64.9%
exp-to-pow64.9%
*-commutative64.9%
exp-to-pow65.6%
sub-neg65.6%
metadata-eval65.6%
Simplified65.6%
Taylor expanded in t around 0 68.7%
times-frac67.3%
Simplified67.3%
Taylor expanded in y around 0 58.5%
Taylor expanded in b around 0 40.8%
+-commutative40.8%
mul-1-neg40.8%
unsub-neg40.8%
*-commutative40.8%
times-frac36.5%
Simplified36.5%
associate-/r*36.4%
*-un-lft-identity36.4%
associate-*l/36.4%
associate-*r/37.1%
associate-*l/41.3%
frac-sub44.1%
associate-*l/44.1%
*-un-lft-identity44.1%
clear-num44.1%
un-div-inv44.7%
Applied egg-rr44.7%
*-commutative44.7%
associate-/r/48.1%
associate-*r*48.0%
Simplified48.0%
if 1.00000000000000004e-215 < b Initial program 96.9%
associate-*l/95.6%
*-commutative95.6%
exp-diff77.1%
exp-sum66.0%
*-commutative66.0%
exp-to-pow66.0%
*-commutative66.0%
exp-to-pow66.6%
sub-neg66.6%
metadata-eval66.6%
Simplified66.6%
Taylor expanded in t around 0 61.6%
times-frac60.6%
Simplified60.6%
Taylor expanded in y around 0 56.8%
Taylor expanded in b around 0 37.6%
distribute-lft-out37.6%
distribute-rgt1-in37.6%
Simplified37.6%
*-un-lft-identity37.6%
times-frac37.8%
*-commutative37.8%
+-commutative37.8%
Applied egg-rr37.8%
Final simplification43.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -8.5e-27)
(/ (* x (- b)) (* y a))
(if (<= b -1.45e-124)
(/ (/ x a) y)
(if (<= b 3.3e-34) (/ 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 <= -8.5e-27) {
tmp = (x * -b) / (y * a);
} else if (b <= -1.45e-124) {
tmp = (x / a) / y;
} else if (b <= 3.3e-34) {
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 <= (-8.5d-27)) then
tmp = (x * -b) / (y * a)
else if (b <= (-1.45d-124)) then
tmp = (x / a) / y
else if (b <= 3.3d-34) 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 <= -8.5e-27) {
tmp = (x * -b) / (y * a);
} else if (b <= -1.45e-124) {
tmp = (x / a) / y;
} else if (b <= 3.3e-34) {
tmp = x / (y * a);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -8.5e-27: tmp = (x * -b) / (y * a) elif b <= -1.45e-124: tmp = (x / a) / y elif b <= 3.3e-34: 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 <= -8.5e-27) tmp = Float64(Float64(x * Float64(-b)) / Float64(y * a)); elseif (b <= -1.45e-124) tmp = Float64(Float64(x / a) / y); elseif (b <= 3.3e-34) tmp = Float64(x / Float64(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 <= -8.5e-27) tmp = (x * -b) / (y * a); elseif (b <= -1.45e-124) tmp = (x / a) / y; elseif (b <= 3.3e-34) 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, -8.5e-27], N[(N[(x * (-b)), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.45e-124], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 3.3e-34], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.5 \cdot 10^{-27}:\\
\;\;\;\;\frac{x \cdot \left(-b\right)}{y \cdot a}\\
\mathbf{elif}\;b \leq -1.45 \cdot 10^{-124}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{elif}\;b \leq 3.3 \cdot 10^{-34}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < -8.50000000000000033e-27Initial program 100.0%
associate-*l/91.5%
*-commutative91.5%
exp-diff54.9%
exp-sum50.7%
*-commutative50.7%
exp-to-pow50.7%
*-commutative50.7%
exp-to-pow50.7%
sub-neg50.7%
metadata-eval50.7%
Simplified50.7%
Taylor expanded in t around 0 67.9%
times-frac59.4%
Simplified59.4%
Taylor expanded in y around 0 73.8%
Taylor expanded in b around 0 44.1%
+-commutative44.1%
mul-1-neg44.1%
unsub-neg44.1%
*-commutative44.1%
times-frac37.5%
Simplified37.5%
Taylor expanded in b around inf 44.1%
associate-*r/44.1%
*-commutative44.1%
neg-mul-144.1%
distribute-rgt-neg-in44.1%
*-commutative44.1%
Simplified44.1%
if -8.50000000000000033e-27 < b < -1.4500000000000001e-124Initial program 98.1%
associate-/l*98.1%
fma-def98.1%
sub-neg98.1%
metadata-eval98.1%
Simplified98.1%
Taylor expanded in y around 0 79.7%
Taylor expanded in b around 0 79.7%
exp-to-pow81.4%
sub-neg81.4%
metadata-eval81.4%
+-commutative81.4%
Simplified81.4%
Taylor expanded in t around 0 48.8%
if -1.4500000000000001e-124 < b < 3.29999999999999983e-34Initial program 94.6%
associate-*l/91.3%
*-commutative91.3%
exp-diff91.3%
exp-sum82.0%
*-commutative82.0%
exp-to-pow82.0%
*-commutative82.0%
exp-to-pow83.6%
sub-neg83.6%
metadata-eval83.6%
Simplified83.6%
Taylor expanded in t around 0 67.8%
times-frac71.8%
Simplified71.8%
Taylor expanded in y around 0 40.1%
Taylor expanded in b around 0 40.1%
*-commutative40.1%
Simplified40.1%
if 3.29999999999999983e-34 < b Initial program 100.0%
associate-*l/94.0%
*-commutative94.0%
exp-diff64.2%
exp-sum55.2%
*-commutative55.2%
exp-to-pow55.2%
*-commutative55.2%
exp-to-pow55.2%
sub-neg55.2%
metadata-eval55.2%
Simplified55.2%
Taylor expanded in t around 0 59.9%
times-frac56.9%
Simplified56.9%
Taylor expanded in y around 0 72.2%
Taylor expanded in b around 0 41.2%
distribute-lft-out41.2%
distribute-rgt1-in41.2%
Simplified41.2%
Taylor expanded in b around inf 41.2%
*-commutative41.2%
Simplified41.2%
Final simplification42.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b 1.95e-215) (/ (- x (* x b)) (* y a)) (* (/ 1.0 a) (/ x (* y (+ b 1.0))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.95e-215) {
tmp = (x - (x * b)) / (y * a);
} else {
tmp = (1.0 / a) * (x / (y * (b + 1.0)));
}
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.95d-215) then
tmp = (x - (x * b)) / (y * a)
else
tmp = (1.0d0 / a) * (x / (y * (b + 1.0d0)))
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.95e-215) {
tmp = (x - (x * b)) / (y * a);
} else {
tmp = (1.0 / a) * (x / (y * (b + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 1.95e-215: tmp = (x - (x * b)) / (y * a) else: tmp = (1.0 / a) * (x / (y * (b + 1.0))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 1.95e-215) tmp = Float64(Float64(x - Float64(x * b)) / Float64(y * a)); else tmp = Float64(Float64(1.0 / a) * Float64(x / Float64(y * Float64(b + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 1.95e-215) tmp = (x - (x * b)) / (y * a); else tmp = (1.0 / a) * (x / (y * (b + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.95e-215], N[(N[(x - N[(x * b), $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / a), $MachinePrecision] * N[(x / N[(y * N[(b + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.95 \cdot 10^{-215}:\\
\;\;\;\;\frac{x - x \cdot b}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{a} \cdot \frac{x}{y \cdot \left(b + 1\right)}\\
\end{array}
\end{array}
if b < 1.95e-215Initial program 98.5%
associate-*l/87.2%
*-commutative87.2%
exp-diff69.7%
exp-sum64.9%
*-commutative64.9%
exp-to-pow64.9%
*-commutative64.9%
exp-to-pow65.6%
sub-neg65.6%
metadata-eval65.6%
Simplified65.6%
Taylor expanded in t around 0 68.7%
times-frac67.3%
Simplified67.3%
Taylor expanded in y around 0 58.5%
Taylor expanded in b around 0 40.8%
+-commutative40.8%
mul-1-neg40.8%
unsub-neg40.8%
*-commutative40.8%
times-frac36.5%
Simplified36.5%
frac-times40.8%
*-commutative40.8%
sub-div44.3%
*-commutative44.3%
Applied egg-rr44.3%
if 1.95e-215 < b Initial program 96.9%
associate-*l/95.6%
*-commutative95.6%
exp-diff77.1%
exp-sum66.0%
*-commutative66.0%
exp-to-pow66.0%
*-commutative66.0%
exp-to-pow66.6%
sub-neg66.6%
metadata-eval66.6%
Simplified66.6%
Taylor expanded in t around 0 61.6%
times-frac60.6%
Simplified60.6%
Taylor expanded in y around 0 56.8%
Taylor expanded in b around 0 37.6%
distribute-lft-out37.6%
distribute-rgt1-in37.6%
Simplified37.6%
*-un-lft-identity37.6%
times-frac37.8%
*-commutative37.8%
+-commutative37.8%
Applied egg-rr37.8%
Final simplification41.6%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.78e-124) (/ (- (/ x a) (* x (/ b a))) y) (/ x (* a (* y (+ b 1.0))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.78e-124) {
tmp = ((x / a) - (x * (b / a))) / y;
} else {
tmp = x / (a * (y * (b + 1.0)));
}
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.78d-124)) then
tmp = ((x / a) - (x * (b / a))) / y
else
tmp = x / (a * (y * (b + 1.0d0)))
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.78e-124) {
tmp = ((x / a) - (x * (b / a))) / y;
} else {
tmp = x / (a * (y * (b + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.78e-124: tmp = ((x / a) - (x * (b / a))) / y else: tmp = x / (a * (y * (b + 1.0))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.78e-124) tmp = Float64(Float64(Float64(x / a) - Float64(x * Float64(b / a))) / y); else tmp = Float64(x / Float64(a * Float64(y * Float64(b + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.78e-124) tmp = ((x / a) - (x * (b / a))) / y; else tmp = x / (a * (y * (b + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.78e-124], N[(N[(N[(x / a), $MachinePrecision] - N[(x * N[(b / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * N[(b + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.78 \cdot 10^{-124}:\\
\;\;\;\;\frac{\frac{x}{a} - x \cdot \frac{b}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(b + 1\right)\right)}\\
\end{array}
\end{array}
if b < -1.78e-124Initial program 99.6%
associate-*l/87.8%
*-commutative87.8%
exp-diff59.5%
exp-sum55.2%
*-commutative55.2%
exp-to-pow55.2%
*-commutative55.2%
exp-to-pow55.5%
sub-neg55.5%
metadata-eval55.5%
Simplified55.5%
Taylor expanded in t around 0 67.7%
times-frac62.2%
Simplified62.2%
Taylor expanded in y around 0 66.0%
Taylor expanded in b around 0 43.1%
+-commutative43.1%
mul-1-neg43.1%
unsub-neg43.1%
*-commutative43.1%
times-frac36.9%
Simplified36.9%
associate-/r*39.0%
*-un-lft-identity39.0%
associate-*l/39.0%
associate-*r/40.0%
associate-*r/44.3%
sub-div44.3%
associate-*l/44.3%
*-un-lft-identity44.3%
*-commutative44.3%
Applied egg-rr44.3%
if -1.78e-124 < b Initial program 96.8%
associate-*l/92.4%
*-commutative92.4%
exp-diff80.2%
exp-sum71.1%
*-commutative71.1%
exp-to-pow71.1%
*-commutative71.1%
exp-to-pow72.0%
sub-neg72.0%
metadata-eval72.0%
Simplified72.0%
Taylor expanded in t around 0 64.6%
times-frac65.7%
Simplified65.7%
Taylor expanded in y around 0 53.2%
Taylor expanded in b around 0 39.3%
distribute-lft-out40.5%
distribute-rgt1-in40.5%
Simplified40.5%
Final simplification41.9%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.4e-71) (/ (- (/ x y) (/ b (/ y x))) a) (/ x (* a (* y (+ b 1.0))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.4e-71) {
tmp = ((x / y) - (b / (y / x))) / a;
} else {
tmp = x / (a * (y * (b + 1.0)));
}
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 <= (-2.4d-71)) then
tmp = ((x / y) - (b / (y / x))) / a
else
tmp = x / (a * (y * (b + 1.0d0)))
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 <= -2.4e-71) {
tmp = ((x / y) - (b / (y / x))) / a;
} else {
tmp = x / (a * (y * (b + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.4e-71: tmp = ((x / y) - (b / (y / x))) / a else: tmp = x / (a * (y * (b + 1.0))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.4e-71) tmp = Float64(Float64(Float64(x / y) - Float64(b / Float64(y / x))) / a); else tmp = Float64(x / Float64(a * Float64(y * Float64(b + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.4e-71) tmp = ((x / y) - (b / (y / x))) / a; else tmp = x / (a * (y * (b + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.4e-71], N[(N[(N[(x / y), $MachinePrecision] - N[(b / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(a * N[(y * N[(b + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.4 \cdot 10^{-71}:\\
\;\;\;\;\frac{\frac{x}{y} - \frac{b}{\frac{y}{x}}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(b + 1\right)\right)}\\
\end{array}
\end{array}
if b < -2.4e-71Initial program 99.7%
associate-*l/90.7%
*-commutative90.7%
exp-diff56.9%
exp-sum51.7%
*-commutative51.7%
exp-to-pow51.7%
*-commutative51.7%
exp-to-pow51.9%
sub-neg51.9%
metadata-eval51.9%
Simplified51.9%
Taylor expanded in t around 0 67.8%
times-frac60.0%
Simplified60.0%
Taylor expanded in y around 0 72.0%
Taylor expanded in b around 0 44.6%
+-commutative44.6%
mul-1-neg44.6%
unsub-neg44.6%
*-commutative44.6%
times-frac38.5%
Simplified38.5%
associate-/r*41.0%
associate-*l/48.4%
sub-div48.4%
clear-num48.4%
un-div-inv48.4%
Applied egg-rr48.4%
if -2.4e-71 < b Initial program 97.0%
associate-*l/90.8%
*-commutative90.8%
exp-diff79.6%
exp-sum71.3%
*-commutative71.3%
exp-to-pow71.3%
*-commutative71.3%
exp-to-pow72.1%
sub-neg72.1%
metadata-eval72.1%
Simplified72.1%
Taylor expanded in t around 0 64.8%
times-frac66.4%
Simplified66.4%
Taylor expanded in y around 0 51.7%
Taylor expanded in b around 0 38.4%
distribute-lft-out40.1%
distribute-rgt1-in40.1%
Simplified40.1%
Final simplification42.6%
(FPCore (x y z t a b) :precision binary64 (if (<= b -3.5e-49) (/ (- (/ x y) (/ (* x b) y)) a) (/ x (* a (* y (+ b 1.0))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.5e-49) {
tmp = ((x / y) - ((x * b) / y)) / a;
} else {
tmp = x / (a * (y * (b + 1.0)));
}
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 <= (-3.5d-49)) then
tmp = ((x / y) - ((x * b) / y)) / a
else
tmp = x / (a * (y * (b + 1.0d0)))
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 <= -3.5e-49) {
tmp = ((x / y) - ((x * b) / y)) / a;
} else {
tmp = x / (a * (y * (b + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3.5e-49: tmp = ((x / y) - ((x * b) / y)) / a else: tmp = x / (a * (y * (b + 1.0))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3.5e-49) tmp = Float64(Float64(Float64(x / y) - Float64(Float64(x * b) / y)) / a); else tmp = Float64(x / Float64(a * Float64(y * Float64(b + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -3.5e-49) tmp = ((x / y) - ((x * b) / y)) / a; else tmp = x / (a * (y * (b + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.5e-49], N[(N[(N[(x / y), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(a * N[(y * N[(b + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.5 \cdot 10^{-49}:\\
\;\;\;\;\frac{\frac{x}{y} - \frac{x \cdot b}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(b + 1\right)\right)}\\
\end{array}
\end{array}
if b < -3.50000000000000006e-49Initial program 99.7%
associate-*l/91.7%
*-commutative91.7%
exp-diff57.1%
exp-sum53.1%
*-commutative53.1%
exp-to-pow53.1%
*-commutative53.1%
exp-to-pow53.3%
sub-neg53.3%
metadata-eval53.3%
Simplified53.3%
Taylor expanded in t around 0 69.5%
times-frac61.6%
Simplified61.6%
Taylor expanded in y around 0 73.9%
Taylor expanded in b around 0 45.8%
+-commutative45.8%
mul-1-neg45.8%
unsub-neg45.8%
*-commutative45.8%
times-frac39.5%
Simplified39.5%
Taylor expanded in a around 0 52.2%
if -3.50000000000000006e-49 < b Initial program 97.0%
associate-*l/90.4%
*-commutative90.4%
exp-diff79.3%
exp-sum70.5%
*-commutative70.5%
exp-to-pow70.5%
*-commutative70.5%
exp-to-pow71.3%
sub-neg71.3%
metadata-eval71.3%
Simplified71.3%
Taylor expanded in t around 0 64.1%
times-frac65.7%
Simplified65.7%
Taylor expanded in y around 0 51.1%
Taylor expanded in b around 0 38.0%
distribute-lft-out39.6%
distribute-rgt1-in39.6%
Simplified39.6%
Final simplification43.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b -8.2e+78) (* (/ x y) (- (/ b a))) (if (<= b 3.3e-34) (/ 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 <= -8.2e+78) {
tmp = (x / y) * -(b / a);
} else if (b <= 3.3e-34) {
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 <= (-8.2d+78)) then
tmp = (x / y) * -(b / a)
else if (b <= 3.3d-34) 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 <= -8.2e+78) {
tmp = (x / y) * -(b / a);
} else if (b <= 3.3e-34) {
tmp = x / (y * a);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -8.2e+78: tmp = (x / y) * -(b / a) elif b <= 3.3e-34: 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 <= -8.2e+78) tmp = Float64(Float64(x / y) * Float64(-Float64(b / a))); elseif (b <= 3.3e-34) tmp = Float64(x / Float64(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 <= -8.2e+78) tmp = (x / y) * -(b / a); elseif (b <= 3.3e-34) 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, -8.2e+78], N[(N[(x / y), $MachinePrecision] * (-N[(b / a), $MachinePrecision])), $MachinePrecision], If[LessEqual[b, 3.3e-34], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.2 \cdot 10^{+78}:\\
\;\;\;\;\frac{x}{y} \cdot \left(-\frac{b}{a}\right)\\
\mathbf{elif}\;b \leq 3.3 \cdot 10^{-34}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < -8.1999999999999994e78Initial program 100.0%
associate-*l/91.5%
*-commutative91.5%
exp-diff57.4%
exp-sum53.2%
*-commutative53.2%
exp-to-pow53.2%
*-commutative53.2%
exp-to-pow53.2%
sub-neg53.2%
metadata-eval53.2%
Simplified53.2%
Taylor expanded in t around 0 76.7%
times-frac63.9%
Simplified63.9%
Taylor expanded in y around 0 89.5%
Taylor expanded in b around 0 50.6%
+-commutative50.6%
mul-1-neg50.6%
unsub-neg50.6%
*-commutative50.6%
times-frac44.6%
Simplified44.6%
Taylor expanded in b around inf 50.6%
associate-*r/50.6%
*-commutative50.6%
neg-mul-150.6%
distribute-rgt-neg-in50.6%
*-commutative50.6%
times-frac46.5%
distribute-frac-neg46.5%
Simplified46.5%
if -8.1999999999999994e78 < b < 3.29999999999999983e-34Initial program 96.1%
associate-*l/89.0%
*-commutative89.0%
exp-diff81.9%
exp-sum74.2%
*-commutative74.2%
exp-to-pow74.2%
*-commutative74.2%
exp-to-pow75.4%
sub-neg75.4%
metadata-eval75.4%
Simplified75.4%
Taylor expanded in t around 0 64.8%
times-frac68.2%
Simplified68.2%
Taylor expanded in y around 0 40.5%
Taylor expanded in b around 0 38.5%
*-commutative38.5%
Simplified38.5%
if 3.29999999999999983e-34 < b Initial program 100.0%
associate-*l/94.0%
*-commutative94.0%
exp-diff64.2%
exp-sum55.2%
*-commutative55.2%
exp-to-pow55.2%
*-commutative55.2%
exp-to-pow55.2%
sub-neg55.2%
metadata-eval55.2%
Simplified55.2%
Taylor expanded in t around 0 59.9%
times-frac56.9%
Simplified56.9%
Taylor expanded in y around 0 72.2%
Taylor expanded in b around 0 41.2%
distribute-lft-out41.2%
distribute-rgt1-in41.2%
Simplified41.2%
Taylor expanded in b around inf 41.2%
*-commutative41.2%
Simplified41.2%
Final simplification40.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -8.5e-27) (/ (* x (- b)) (* y a)) (/ x (* a (* y (+ b 1.0))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -8.5e-27) {
tmp = (x * -b) / (y * a);
} else {
tmp = x / (a * (y * (b + 1.0)));
}
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 <= (-8.5d-27)) then
tmp = (x * -b) / (y * a)
else
tmp = x / (a * (y * (b + 1.0d0)))
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 <= -8.5e-27) {
tmp = (x * -b) / (y * a);
} else {
tmp = x / (a * (y * (b + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -8.5e-27: tmp = (x * -b) / (y * a) else: tmp = x / (a * (y * (b + 1.0))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -8.5e-27) tmp = Float64(Float64(x * Float64(-b)) / Float64(y * a)); else tmp = Float64(x / Float64(a * Float64(y * Float64(b + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -8.5e-27) tmp = (x * -b) / (y * a); else tmp = x / (a * (y * (b + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -8.5e-27], N[(N[(x * (-b)), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(b + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.5 \cdot 10^{-27}:\\
\;\;\;\;\frac{x \cdot \left(-b\right)}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(b + 1\right)\right)}\\
\end{array}
\end{array}
if b < -8.50000000000000033e-27Initial program 100.0%
associate-*l/91.5%
*-commutative91.5%
exp-diff54.9%
exp-sum50.7%
*-commutative50.7%
exp-to-pow50.7%
*-commutative50.7%
exp-to-pow50.7%
sub-neg50.7%
metadata-eval50.7%
Simplified50.7%
Taylor expanded in t around 0 67.9%
times-frac59.4%
Simplified59.4%
Taylor expanded in y around 0 73.8%
Taylor expanded in b around 0 44.1%
+-commutative44.1%
mul-1-neg44.1%
unsub-neg44.1%
*-commutative44.1%
times-frac37.5%
Simplified37.5%
Taylor expanded in b around inf 44.1%
associate-*r/44.1%
*-commutative44.1%
neg-mul-144.1%
distribute-rgt-neg-in44.1%
*-commutative44.1%
Simplified44.1%
if -8.50000000000000033e-27 < b Initial program 97.0%
associate-*l/90.5%
*-commutative90.5%
exp-diff79.6%
exp-sum71.0%
*-commutative71.0%
exp-to-pow71.0%
*-commutative71.0%
exp-to-pow71.9%
sub-neg71.9%
metadata-eval71.9%
Simplified71.9%
Taylor expanded in t around 0 64.9%
times-frac66.4%
Simplified66.4%
Taylor expanded in y around 0 51.6%
Taylor expanded in b around 0 38.8%
distribute-lft-out40.4%
distribute-rgt1-in40.4%
Simplified40.4%
Final simplification41.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b 3.3e-34) (/ (- x (* x b)) (* y a)) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 3.3e-34) {
tmp = (x - (x * b)) / (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 <= 3.3d-34) then
tmp = (x - (x * b)) / (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 <= 3.3e-34) {
tmp = (x - (x * b)) / (y * a);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 3.3e-34: tmp = (x - (x * b)) / (y * a) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 3.3e-34) tmp = Float64(Float64(x - Float64(x * b)) / Float64(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 <= 3.3e-34) tmp = (x - (x * b)) / (y * a); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 3.3e-34], N[(N[(x - N[(x * b), $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 3.3 \cdot 10^{-34}:\\
\;\;\;\;\frac{x - x \cdot b}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 3.29999999999999983e-34Initial program 97.0%
associate-*l/89.6%
*-commutative89.6%
exp-diff75.8%
exp-sum69.0%
*-commutative69.0%
exp-to-pow69.0%
*-commutative69.0%
exp-to-pow69.9%
sub-neg69.9%
metadata-eval69.9%
Simplified69.9%
Taylor expanded in t around 0 67.7%
times-frac67.1%
Simplified67.1%
Taylor expanded in y around 0 52.7%
Taylor expanded in b around 0 38.3%
+-commutative38.3%
mul-1-neg38.3%
unsub-neg38.3%
*-commutative38.3%
times-frac34.4%
Simplified34.4%
frac-times38.3%
*-commutative38.3%
sub-div41.5%
*-commutative41.5%
Applied egg-rr41.5%
if 3.29999999999999983e-34 < b Initial program 100.0%
associate-*l/94.0%
*-commutative94.0%
exp-diff64.2%
exp-sum55.2%
*-commutative55.2%
exp-to-pow55.2%
*-commutative55.2%
exp-to-pow55.2%
sub-neg55.2%
metadata-eval55.2%
Simplified55.2%
Taylor expanded in t around 0 59.9%
times-frac56.9%
Simplified56.9%
Taylor expanded in y around 0 72.2%
Taylor expanded in b around 0 41.2%
distribute-lft-out41.2%
distribute-rgt1-in41.2%
Simplified41.2%
Taylor expanded in b around inf 41.2%
*-commutative41.2%
Simplified41.2%
Final simplification41.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b 3.3e-34) (/ 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 <= 3.3e-34) {
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 <= 3.3d-34) 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 <= 3.3e-34) {
tmp = x / (y * a);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 3.3e-34: 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 <= 3.3e-34) tmp = Float64(x / Float64(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 <= 3.3e-34) 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, 3.3e-34], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 3.3 \cdot 10^{-34}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 3.29999999999999983e-34Initial program 97.0%
associate-*l/89.6%
*-commutative89.6%
exp-diff75.8%
exp-sum69.0%
*-commutative69.0%
exp-to-pow69.0%
*-commutative69.0%
exp-to-pow69.9%
sub-neg69.9%
metadata-eval69.9%
Simplified69.9%
Taylor expanded in t around 0 67.7%
times-frac67.1%
Simplified67.1%
Taylor expanded in y around 0 52.7%
Taylor expanded in b around 0 35.9%
*-commutative35.9%
Simplified35.9%
if 3.29999999999999983e-34 < b Initial program 100.0%
associate-*l/94.0%
*-commutative94.0%
exp-diff64.2%
exp-sum55.2%
*-commutative55.2%
exp-to-pow55.2%
*-commutative55.2%
exp-to-pow55.2%
sub-neg55.2%
metadata-eval55.2%
Simplified55.2%
Taylor expanded in t around 0 59.9%
times-frac56.9%
Simplified56.9%
Taylor expanded in y around 0 72.2%
Taylor expanded in b around 0 41.2%
distribute-lft-out41.2%
distribute-rgt1-in41.2%
Simplified41.2%
Taylor expanded in b around inf 41.2%
*-commutative41.2%
Simplified41.2%
Final simplification37.3%
(FPCore (x y z t a b) :precision binary64 (if (<= t -2.9e-292) (/ (/ x a) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -2.9e-292) {
tmp = (x / a) / y;
} 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 (t <= (-2.9d-292)) then
tmp = (x / a) / y
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 (t <= -2.9e-292) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -2.9e-292: tmp = (x / a) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -2.9e-292) tmp = Float64(Float64(x / a) / y); 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 (t <= -2.9e-292) tmp = (x / a) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -2.9e-292], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.9 \cdot 10^{-292}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if t < -2.89999999999999993e-292Initial program 98.6%
associate-/l*98.0%
fma-def98.0%
sub-neg98.0%
metadata-eval98.0%
Simplified98.0%
Taylor expanded in y around 0 82.9%
Taylor expanded in b around 0 64.9%
exp-to-pow65.5%
sub-neg65.5%
metadata-eval65.5%
+-commutative65.5%
Simplified65.5%
Taylor expanded in t around 0 39.1%
if -2.89999999999999993e-292 < t Initial program 96.9%
associate-*l/92.0%
*-commutative92.0%
exp-diff75.4%
exp-sum67.4%
*-commutative67.4%
exp-to-pow67.4%
*-commutative67.4%
exp-to-pow68.2%
sub-neg68.2%
metadata-eval68.2%
Simplified68.2%
Taylor expanded in t around 0 64.5%
times-frac62.2%
Simplified62.2%
Taylor expanded in y around 0 57.3%
Taylor expanded in b around 0 32.1%
*-commutative32.1%
Simplified32.1%
Final simplification35.6%
(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 97.8%
associate-*l/90.8%
*-commutative90.8%
exp-diff72.8%
exp-sum65.4%
*-commutative65.4%
exp-to-pow65.4%
*-commutative65.4%
exp-to-pow66.0%
sub-neg66.0%
metadata-eval66.0%
Simplified66.0%
Taylor expanded in t around 0 65.7%
times-frac64.5%
Simplified64.5%
Taylor expanded in y around 0 57.8%
Taylor expanded in b around 0 32.4%
*-commutative32.4%
Simplified32.4%
Final simplification32.4%
(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 2023308
(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))