
(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 24 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)) (* (log a) (+ t -1.0))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + (log(a) * (t + -1.0))) - 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)) + (log(a) * (t + (-1.0d0)))) - 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)) + (Math.log(a) * (t + -1.0))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + (math.log(a) * (t + -1.0))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(log(a) * Float64(t + -1.0))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + (log(a) * (t + -1.0))) - 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[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \log a \cdot \left(t + -1\right)\right) - b}}{y}
\end{array}
Initial program 98.9%
Final simplification98.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -2.4e-9) (not (<= y 1.26e+33))) (/ (* x (exp (- (- (* y (log z)) (log a)) b))) y) (/ (* x (exp (- (* (log a) (+ t -1.0)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.4e-9) || !(y <= 1.26e+33)) {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
} else {
tmp = (x * exp(((log(a) * (t + -1.0)) - 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 <= (-2.4d-9)) .or. (.not. (y <= 1.26d+33))) then
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y
else
tmp = (x * exp(((log(a) * (t + (-1.0d0))) - 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 <= -2.4e-9) || !(y <= 1.26e+33)) {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
} else {
tmp = (x * Math.exp(((Math.log(a) * (t + -1.0)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -2.4e-9) or not (y <= 1.26e+33): tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y else: tmp = (x * math.exp(((math.log(a) * (t + -1.0)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -2.4e-9) || !(y <= 1.26e+33)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * Float64(t + -1.0)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -2.4e-9) || ~((y <= 1.26e+33))) tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; else tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -2.4e-9], N[Not[LessEqual[y, 1.26e+33]], $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], N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.4 \cdot 10^{-9} \lor \neg \left(y \leq 1.26 \cdot 10^{+33}\right):\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t + -1\right) - b}}{y}\\
\end{array}
\end{array}
if y < -2.4e-9 or 1.26e33 < y Initial program 99.8%
Taylor expanded in t around 0 94.5%
+-commutative94.5%
mul-1-neg94.5%
unsub-neg94.5%
Simplified94.5%
if -2.4e-9 < y < 1.26e33Initial program 98.1%
Taylor expanded in y around 0 96.7%
Final simplification95.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (+ t -1.0)))
(t_2 (* y (exp b)))
(t_3 (/ (/ (* x (pow z y)) a) y)))
(if (<= y -3.35e+77)
t_3
(if (<= y -6200000000.0)
(/ x (* a t_2))
(if (<= y -4.9e-13)
(* (/ x a) (/ (pow z y) t_2))
(if (<= y -8.2e-106)
(/ (* x t_1) y)
(if (<= y 5.2e+103) (* x (/ (/ t_1 y) (exp b))) t_3)))))))
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 = y * exp(b);
double t_3 = ((x * pow(z, y)) / a) / y;
double tmp;
if (y <= -3.35e+77) {
tmp = t_3;
} else if (y <= -6200000000.0) {
tmp = x / (a * t_2);
} else if (y <= -4.9e-13) {
tmp = (x / a) * (pow(z, y) / t_2);
} else if (y <= -8.2e-106) {
tmp = (x * t_1) / y;
} else if (y <= 5.2e+103) {
tmp = x * ((t_1 / y) / exp(b));
} else {
tmp = t_3;
}
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 = a ** (t + (-1.0d0))
t_2 = y * exp(b)
t_3 = ((x * (z ** y)) / a) / y
if (y <= (-3.35d+77)) then
tmp = t_3
else if (y <= (-6200000000.0d0)) then
tmp = x / (a * t_2)
else if (y <= (-4.9d-13)) then
tmp = (x / a) * ((z ** y) / t_2)
else if (y <= (-8.2d-106)) then
tmp = (x * t_1) / y
else if (y <= 5.2d+103) then
tmp = x * ((t_1 / y) / exp(b))
else
tmp = t_3
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 = y * Math.exp(b);
double t_3 = ((x * Math.pow(z, y)) / a) / y;
double tmp;
if (y <= -3.35e+77) {
tmp = t_3;
} else if (y <= -6200000000.0) {
tmp = x / (a * t_2);
} else if (y <= -4.9e-13) {
tmp = (x / a) * (Math.pow(z, y) / t_2);
} else if (y <= -8.2e-106) {
tmp = (x * t_1) / y;
} else if (y <= 5.2e+103) {
tmp = x * ((t_1 / y) / Math.exp(b));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, (t + -1.0)) t_2 = y * math.exp(b) t_3 = ((x * math.pow(z, y)) / a) / y tmp = 0 if y <= -3.35e+77: tmp = t_3 elif y <= -6200000000.0: tmp = x / (a * t_2) elif y <= -4.9e-13: tmp = (x / a) * (math.pow(z, y) / t_2) elif y <= -8.2e-106: tmp = (x * t_1) / y elif y <= 5.2e+103: tmp = x * ((t_1 / y) / math.exp(b)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = a ^ Float64(t + -1.0) t_2 = Float64(y * exp(b)) t_3 = Float64(Float64(Float64(x * (z ^ y)) / a) / y) tmp = 0.0 if (y <= -3.35e+77) tmp = t_3; elseif (y <= -6200000000.0) tmp = Float64(x / Float64(a * t_2)); elseif (y <= -4.9e-13) tmp = Float64(Float64(x / a) * Float64((z ^ y) / t_2)); elseif (y <= -8.2e-106) tmp = Float64(Float64(x * t_1) / y); elseif (y <= 5.2e+103) tmp = Float64(x * Float64(Float64(t_1 / y) / exp(b))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a ^ (t + -1.0); t_2 = y * exp(b); t_3 = ((x * (z ^ y)) / a) / y; tmp = 0.0; if (y <= -3.35e+77) tmp = t_3; elseif (y <= -6200000000.0) tmp = x / (a * t_2); elseif (y <= -4.9e-13) tmp = (x / a) * ((z ^ y) / t_2); elseif (y <= -8.2e-106) tmp = (x * t_1) / y; elseif (y <= 5.2e+103) tmp = x * ((t_1 / y) / exp(b)); else tmp = t_3; 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[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -3.35e+77], t$95$3, If[LessEqual[y, -6200000000.0], N[(x / N[(a * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4.9e-13], N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -8.2e-106], N[(N[(x * t$95$1), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 5.2e+103], N[(x * N[(N[(t$95$1 / y), $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {a}^{\left(t + -1\right)}\\
t_2 := y \cdot e^{b}\\
t_3 := \frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -3.35 \cdot 10^{+77}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -6200000000:\\
\;\;\;\;\frac{x}{a \cdot t\_2}\\
\mathbf{elif}\;y \leq -4.9 \cdot 10^{-13}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{t\_2}\\
\mathbf{elif}\;y \leq -8.2 \cdot 10^{-106}:\\
\;\;\;\;\frac{x \cdot t\_1}{y}\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{+103}:\\
\;\;\;\;x \cdot \frac{\frac{t\_1}{y}}{e^{b}}\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y < -3.35000000000000014e77 or 5.2000000000000003e103 < y Initial program 100.0%
Taylor expanded in b around 0 92.5%
exp-sum67.5%
*-commutative67.5%
exp-to-pow67.5%
exp-to-pow67.5%
sub-neg67.5%
metadata-eval67.5%
Simplified67.5%
Taylor expanded in t around 0 88.2%
if -3.35000000000000014e77 < y < -6.2e9Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum38.5%
associate-/l*38.5%
*-commutative38.5%
exp-to-pow38.5%
exp-diff38.5%
*-commutative38.5%
exp-to-pow38.5%
sub-neg38.5%
metadata-eval38.5%
Simplified38.5%
Taylor expanded in y around 0 77.4%
associate-/r*77.4%
exp-to-pow77.4%
sub-neg77.4%
metadata-eval77.4%
Simplified77.4%
Taylor expanded in t around 0 77.7%
if -6.2e9 < y < -4.90000000000000033e-13Initial program 95.6%
associate-/l*95.6%
associate--l+95.6%
exp-sum81.8%
associate-/l*81.8%
*-commutative81.8%
exp-to-pow81.9%
exp-diff67.6%
*-commutative67.6%
exp-to-pow71.4%
sub-neg71.4%
metadata-eval71.4%
Simplified71.4%
Taylor expanded in t around 0 100.0%
times-frac85.8%
Applied egg-rr85.8%
if -4.90000000000000033e-13 < y < -8.1999999999999998e-106Initial program 99.6%
Taylor expanded in b around 0 78.9%
exp-sum78.9%
*-commutative78.9%
exp-to-pow78.9%
exp-to-pow79.2%
sub-neg79.2%
metadata-eval79.2%
Simplified79.2%
Taylor expanded in y around 0 78.9%
exp-to-pow79.2%
sub-neg79.2%
metadata-eval79.2%
+-commutative79.2%
Simplified79.2%
if -8.1999999999999998e-106 < y < 5.2000000000000003e103Initial program 98.1%
associate-/l*98.1%
associate--l+98.1%
exp-sum86.9%
associate-/l*86.9%
*-commutative86.9%
exp-to-pow87.0%
exp-diff78.9%
*-commutative78.9%
exp-to-pow80.0%
sub-neg80.0%
metadata-eval80.0%
Simplified80.0%
Taylor expanded in y around 0 84.7%
associate-/r*81.5%
exp-to-pow82.5%
sub-neg82.5%
metadata-eval82.5%
Simplified82.5%
Final simplification84.2%
(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 -5e+78)
t_2
(if (<= y -10000000000.0)
(/ x (* a (* y (exp b))))
(if (<= y -1.65e-9)
t_2
(if (<= y -1.65e-102)
(/ (* x t_1) y)
(if (<= y 1.15e+105) (* x (/ (/ t_1 y) (exp b))) 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 <= -5e+78) {
tmp = t_2;
} else if (y <= -10000000000.0) {
tmp = x / (a * (y * exp(b)));
} else if (y <= -1.65e-9) {
tmp = t_2;
} else if (y <= -1.65e-102) {
tmp = (x * t_1) / y;
} else if (y <= 1.15e+105) {
tmp = x * ((t_1 / y) / exp(b));
} 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 <= (-5d+78)) then
tmp = t_2
else if (y <= (-10000000000.0d0)) then
tmp = x / (a * (y * exp(b)))
else if (y <= (-1.65d-9)) then
tmp = t_2
else if (y <= (-1.65d-102)) then
tmp = (x * t_1) / y
else if (y <= 1.15d+105) then
tmp = x * ((t_1 / y) / exp(b))
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 <= -5e+78) {
tmp = t_2;
} else if (y <= -10000000000.0) {
tmp = x / (a * (y * Math.exp(b)));
} else if (y <= -1.65e-9) {
tmp = t_2;
} else if (y <= -1.65e-102) {
tmp = (x * t_1) / y;
} else if (y <= 1.15e+105) {
tmp = x * ((t_1 / y) / Math.exp(b));
} 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 <= -5e+78: tmp = t_2 elif y <= -10000000000.0: tmp = x / (a * (y * math.exp(b))) elif y <= -1.65e-9: tmp = t_2 elif y <= -1.65e-102: tmp = (x * t_1) / y elif y <= 1.15e+105: tmp = x * ((t_1 / y) / math.exp(b)) 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(Float64(x * (z ^ y)) / a) / y) tmp = 0.0 if (y <= -5e+78) tmp = t_2; elseif (y <= -10000000000.0) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); elseif (y <= -1.65e-9) tmp = t_2; elseif (y <= -1.65e-102) tmp = Float64(Float64(x * t_1) / y); elseif (y <= 1.15e+105) tmp = Float64(x * Float64(Float64(t_1 / y) / exp(b))); 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 <= -5e+78) tmp = t_2; elseif (y <= -10000000000.0) tmp = x / (a * (y * exp(b))); elseif (y <= -1.65e-9) tmp = t_2; elseif (y <= -1.65e-102) tmp = (x * t_1) / y; elseif (y <= 1.15e+105) tmp = x * ((t_1 / y) / exp(b)); 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[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -5e+78], t$95$2, If[LessEqual[y, -10000000000.0], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.65e-9], t$95$2, If[LessEqual[y, -1.65e-102], N[(N[(x * t$95$1), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 1.15e+105], N[(x * N[(N[(t$95$1 / y), $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {a}^{\left(t + -1\right)}\\
t_2 := \frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -5 \cdot 10^{+78}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -10000000000:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{elif}\;y \leq -1.65 \cdot 10^{-9}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.65 \cdot 10^{-102}:\\
\;\;\;\;\frac{x \cdot t\_1}{y}\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{+105}:\\
\;\;\;\;x \cdot \frac{\frac{t\_1}{y}}{e^{b}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -4.99999999999999984e78 or -1e10 < y < -1.65000000000000009e-9 or 1.1499999999999999e105 < y Initial program 99.7%
Taylor expanded in b around 0 90.7%
exp-sum66.5%
*-commutative66.5%
exp-to-pow66.5%
exp-to-pow66.8%
sub-neg66.8%
metadata-eval66.8%
Simplified66.8%
Taylor expanded in t around 0 87.1%
if -4.99999999999999984e78 < y < -1e10Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum38.5%
associate-/l*38.5%
*-commutative38.5%
exp-to-pow38.5%
exp-diff38.5%
*-commutative38.5%
exp-to-pow38.5%
sub-neg38.5%
metadata-eval38.5%
Simplified38.5%
Taylor expanded in y around 0 77.4%
associate-/r*77.4%
exp-to-pow77.4%
sub-neg77.4%
metadata-eval77.4%
Simplified77.4%
Taylor expanded in t around 0 77.7%
if -1.65000000000000009e-9 < y < -1.65e-102Initial program 99.6%
Taylor expanded in b around 0 78.9%
exp-sum78.9%
*-commutative78.9%
exp-to-pow78.9%
exp-to-pow79.2%
sub-neg79.2%
metadata-eval79.2%
Simplified79.2%
Taylor expanded in y around 0 78.9%
exp-to-pow79.2%
sub-neg79.2%
metadata-eval79.2%
+-commutative79.2%
Simplified79.2%
if -1.65e-102 < y < 1.1499999999999999e105Initial program 98.1%
associate-/l*98.1%
associate--l+98.1%
exp-sum86.9%
associate-/l*86.9%
*-commutative86.9%
exp-to-pow87.0%
exp-diff78.9%
*-commutative78.9%
exp-to-pow80.0%
sub-neg80.0%
metadata-eval80.0%
Simplified80.0%
Taylor expanded in y around 0 84.7%
associate-/r*81.5%
exp-to-pow82.5%
sub-neg82.5%
metadata-eval82.5%
Simplified82.5%
Final simplification83.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (* y (exp b)))) (t_2 (* x (pow z y))) (t_3 (/ (/ t_2 a) y)))
(if (<= y -5.1e+76)
t_3
(if (<= y -31500000000.0)
(/ x t_1)
(if (<= y -1.95e-10)
(/ t_2 t_1)
(if (<= y 2.4e+103)
(* x (/ (/ (pow a (+ t -1.0)) y) (exp b)))
t_3))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (y * exp(b));
double t_2 = x * pow(z, y);
double t_3 = (t_2 / a) / y;
double tmp;
if (y <= -5.1e+76) {
tmp = t_3;
} else if (y <= -31500000000.0) {
tmp = x / t_1;
} else if (y <= -1.95e-10) {
tmp = t_2 / t_1;
} else if (y <= 2.4e+103) {
tmp = x * ((pow(a, (t + -1.0)) / y) / exp(b));
} else {
tmp = t_3;
}
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 = a * (y * exp(b))
t_2 = x * (z ** y)
t_3 = (t_2 / a) / y
if (y <= (-5.1d+76)) then
tmp = t_3
else if (y <= (-31500000000.0d0)) then
tmp = x / t_1
else if (y <= (-1.95d-10)) then
tmp = t_2 / t_1
else if (y <= 2.4d+103) then
tmp = x * (((a ** (t + (-1.0d0))) / y) / exp(b))
else
tmp = t_3
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 * Math.exp(b));
double t_2 = x * Math.pow(z, y);
double t_3 = (t_2 / a) / y;
double tmp;
if (y <= -5.1e+76) {
tmp = t_3;
} else if (y <= -31500000000.0) {
tmp = x / t_1;
} else if (y <= -1.95e-10) {
tmp = t_2 / t_1;
} else if (y <= 2.4e+103) {
tmp = x * ((Math.pow(a, (t + -1.0)) / y) / Math.exp(b));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (y * math.exp(b)) t_2 = x * math.pow(z, y) t_3 = (t_2 / a) / y tmp = 0 if y <= -5.1e+76: tmp = t_3 elif y <= -31500000000.0: tmp = x / t_1 elif y <= -1.95e-10: tmp = t_2 / t_1 elif y <= 2.4e+103: tmp = x * ((math.pow(a, (t + -1.0)) / y) / math.exp(b)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(y * exp(b))) t_2 = Float64(x * (z ^ y)) t_3 = Float64(Float64(t_2 / a) / y) tmp = 0.0 if (y <= -5.1e+76) tmp = t_3; elseif (y <= -31500000000.0) tmp = Float64(x / t_1); elseif (y <= -1.95e-10) tmp = Float64(t_2 / t_1); elseif (y <= 2.4e+103) tmp = Float64(x * Float64(Float64((a ^ Float64(t + -1.0)) / y) / exp(b))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (y * exp(b)); t_2 = x * (z ^ y); t_3 = (t_2 / a) / y; tmp = 0.0; if (y <= -5.1e+76) tmp = t_3; elseif (y <= -31500000000.0) tmp = x / t_1; elseif (y <= -1.95e-10) tmp = t_2 / t_1; elseif (y <= 2.4e+103) tmp = x * (((a ^ (t + -1.0)) / y) / exp(b)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t$95$2 / a), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -5.1e+76], t$95$3, If[LessEqual[y, -31500000000.0], N[(x / t$95$1), $MachinePrecision], If[LessEqual[y, -1.95e-10], N[(t$95$2 / t$95$1), $MachinePrecision], If[LessEqual[y, 2.4e+103], N[(x * N[(N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y \cdot e^{b}\right)\\
t_2 := x \cdot {z}^{y}\\
t_3 := \frac{\frac{t\_2}{a}}{y}\\
\mathbf{if}\;y \leq -5.1 \cdot 10^{+76}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -31500000000:\\
\;\;\;\;\frac{x}{t\_1}\\
\mathbf{elif}\;y \leq -1.95 \cdot 10^{-10}:\\
\;\;\;\;\frac{t\_2}{t\_1}\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{+103}:\\
\;\;\;\;x \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y < -5.1000000000000002e76 or 2.3999999999999998e103 < y Initial program 100.0%
Taylor expanded in b around 0 92.5%
exp-sum67.5%
*-commutative67.5%
exp-to-pow67.5%
exp-to-pow67.5%
sub-neg67.5%
metadata-eval67.5%
Simplified67.5%
Taylor expanded in t around 0 88.2%
if -5.1000000000000002e76 < y < -3.15e10Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum38.5%
associate-/l*38.5%
*-commutative38.5%
exp-to-pow38.5%
exp-diff38.5%
*-commutative38.5%
exp-to-pow38.5%
sub-neg38.5%
metadata-eval38.5%
Simplified38.5%
Taylor expanded in y around 0 77.4%
associate-/r*77.4%
exp-to-pow77.4%
sub-neg77.4%
metadata-eval77.4%
Simplified77.4%
Taylor expanded in t around 0 77.7%
if -3.15e10 < y < -1.95e-10Initial program 95.6%
associate-/l*95.6%
associate--l+95.6%
exp-sum81.8%
associate-/l*81.8%
*-commutative81.8%
exp-to-pow81.9%
exp-diff67.6%
*-commutative67.6%
exp-to-pow71.4%
sub-neg71.4%
metadata-eval71.4%
Simplified71.4%
Taylor expanded in t around 0 100.0%
if -1.95e-10 < y < 2.3999999999999998e103Initial program 98.3%
associate-/l*98.3%
associate--l+98.3%
exp-sum88.6%
associate-/l*88.6%
*-commutative88.6%
exp-to-pow88.6%
exp-diff78.2%
*-commutative78.2%
exp-to-pow79.1%
sub-neg79.1%
metadata-eval79.1%
Simplified79.1%
Taylor expanded in y around 0 83.2%
associate-/r*79.7%
exp-to-pow80.7%
sub-neg80.7%
metadata-eval80.7%
Simplified80.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.25e+81) (not (<= y 2e+149))) (/ (/ (* x (pow z y)) a) y) (/ (* x (exp (- (* (log a) (+ t -1.0)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.25e+81) || !(y <= 2e+149)) {
tmp = ((x * pow(z, y)) / a) / y;
} else {
tmp = (x * exp(((log(a) * (t + -1.0)) - 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.25d+81)) .or. (.not. (y <= 2d+149))) then
tmp = ((x * (z ** y)) / a) / y
else
tmp = (x * exp(((log(a) * (t + (-1.0d0))) - 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.25e+81) || !(y <= 2e+149)) {
tmp = ((x * Math.pow(z, y)) / a) / y;
} else {
tmp = (x * Math.exp(((Math.log(a) * (t + -1.0)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.25e+81) or not (y <= 2e+149): tmp = ((x * math.pow(z, y)) / a) / y else: tmp = (x * math.exp(((math.log(a) * (t + -1.0)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.25e+81) || !(y <= 2e+149)) tmp = Float64(Float64(Float64(x * (z ^ y)) / a) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * Float64(t + -1.0)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.25e+81) || ~((y <= 2e+149))) tmp = ((x * (z ^ y)) / a) / y; else tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.25e+81], N[Not[LessEqual[y, 2e+149]], $MachinePrecision]], N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.25 \cdot 10^{+81} \lor \neg \left(y \leq 2 \cdot 10^{+149}\right):\\
\;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t + -1\right) - b}}{y}\\
\end{array}
\end{array}
if y < -1.25e81 or 2.0000000000000001e149 < y Initial program 100.0%
Taylor expanded in b around 0 92.9%
exp-sum67.5%
*-commutative67.5%
exp-to-pow67.5%
exp-to-pow67.5%
sub-neg67.5%
metadata-eval67.5%
Simplified67.5%
Taylor expanded in t around 0 89.3%
if -1.25e81 < y < 2.0000000000000001e149Initial program 98.4%
Taylor expanded in y around 0 92.4%
Final simplification91.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ (* x (pow z y)) a) y)) (t_2 (/ x (* a (* y (exp b))))))
(if (<= b -8e+73)
t_2
(if (<= b -6.5e-91)
t_1
(if (<= b 5e-306)
(/ (* x (pow a (+ t -1.0))) y)
(if (<= b 29000000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((x * pow(z, y)) / a) / y;
double t_2 = x / (a * (y * exp(b)));
double tmp;
if (b <= -8e+73) {
tmp = t_2;
} else if (b <= -6.5e-91) {
tmp = t_1;
} else if (b <= 5e-306) {
tmp = (x * pow(a, (t + -1.0))) / y;
} else if (b <= 29000000.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 = ((x * (z ** y)) / a) / y
t_2 = x / (a * (y * exp(b)))
if (b <= (-8d+73)) then
tmp = t_2
else if (b <= (-6.5d-91)) then
tmp = t_1
else if (b <= 5d-306) then
tmp = (x * (a ** (t + (-1.0d0)))) / y
else if (b <= 29000000.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 = ((x * Math.pow(z, y)) / a) / y;
double t_2 = x / (a * (y * Math.exp(b)));
double tmp;
if (b <= -8e+73) {
tmp = t_2;
} else if (b <= -6.5e-91) {
tmp = t_1;
} else if (b <= 5e-306) {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
} else if (b <= 29000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((x * math.pow(z, y)) / a) / y t_2 = x / (a * (y * math.exp(b))) tmp = 0 if b <= -8e+73: tmp = t_2 elif b <= -6.5e-91: tmp = t_1 elif b <= 5e-306: tmp = (x * math.pow(a, (t + -1.0))) / y elif b <= 29000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(x * (z ^ y)) / a) / y) t_2 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (b <= -8e+73) tmp = t_2; elseif (b <= -6.5e-91) tmp = t_1; elseif (b <= 5e-306) tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); elseif (b <= 29000000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((x * (z ^ y)) / a) / y; t_2 = x / (a * (y * exp(b))); tmp = 0.0; if (b <= -8e+73) tmp = t_2; elseif (b <= -6.5e-91) tmp = t_1; elseif (b <= 5e-306) tmp = (x * (a ^ (t + -1.0))) / y; elseif (b <= 29000000.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[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8e+73], t$95$2, If[LessEqual[b, -6.5e-91], t$95$1, If[LessEqual[b, 5e-306], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 29000000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
t_2 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -8 \cdot 10^{+73}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -6.5 \cdot 10^{-91}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5 \cdot 10^{-306}:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{elif}\;b \leq 29000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -7.99999999999999986e73 or 2.9e7 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum69.7%
associate-/l*69.7%
*-commutative69.7%
exp-to-pow69.7%
exp-diff54.6%
*-commutative54.6%
exp-to-pow54.6%
sub-neg54.6%
metadata-eval54.6%
Simplified54.6%
Taylor expanded in y around 0 71.5%
associate-/r*66.5%
exp-to-pow66.5%
sub-neg66.5%
metadata-eval66.5%
Simplified66.5%
Taylor expanded in t around 0 85.1%
if -7.99999999999999986e73 < b < -6.5000000000000001e-91 or 4.99999999999999998e-306 < b < 2.9e7Initial program 97.9%
Taylor expanded in b around 0 94.5%
exp-sum82.8%
*-commutative82.8%
exp-to-pow82.8%
exp-to-pow83.8%
sub-neg83.8%
metadata-eval83.8%
Simplified83.8%
Taylor expanded in t around 0 76.6%
if -6.5000000000000001e-91 < b < 4.99999999999999998e-306Initial program 98.4%
Taylor expanded in b around 0 98.4%
exp-sum72.8%
*-commutative72.8%
exp-to-pow72.8%
exp-to-pow74.2%
sub-neg74.2%
metadata-eval74.2%
Simplified74.2%
Taylor expanded in y around 0 83.4%
exp-to-pow84.7%
sub-neg84.7%
metadata-eval84.7%
+-commutative84.7%
Simplified84.7%
Final simplification81.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (/ x a) (/ (pow z y) y))) (t_2 (/ x (* a (* y (exp b))))))
(if (<= b -8.8e+60)
t_2
(if (<= b -1.15e-89)
t_1
(if (<= b -2.6e-308)
(/ (* x (pow a (+ t -1.0))) y)
(if (<= b 23000000000000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / a) * (pow(z, y) / y);
double t_2 = x / (a * (y * exp(b)));
double tmp;
if (b <= -8.8e+60) {
tmp = t_2;
} else if (b <= -1.15e-89) {
tmp = t_1;
} else if (b <= -2.6e-308) {
tmp = (x * pow(a, (t + -1.0))) / y;
} else if (b <= 23000000000000.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 = (x / a) * ((z ** y) / y)
t_2 = x / (a * (y * exp(b)))
if (b <= (-8.8d+60)) then
tmp = t_2
else if (b <= (-1.15d-89)) then
tmp = t_1
else if (b <= (-2.6d-308)) then
tmp = (x * (a ** (t + (-1.0d0)))) / y
else if (b <= 23000000000000.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 = (x / a) * (Math.pow(z, y) / y);
double t_2 = x / (a * (y * Math.exp(b)));
double tmp;
if (b <= -8.8e+60) {
tmp = t_2;
} else if (b <= -1.15e-89) {
tmp = t_1;
} else if (b <= -2.6e-308) {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
} else if (b <= 23000000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / a) * (math.pow(z, y) / y) t_2 = x / (a * (y * math.exp(b))) tmp = 0 if b <= -8.8e+60: tmp = t_2 elif b <= -1.15e-89: tmp = t_1 elif b <= -2.6e-308: tmp = (x * math.pow(a, (t + -1.0))) / y elif b <= 23000000000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / a) * Float64((z ^ y) / y)) t_2 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (b <= -8.8e+60) tmp = t_2; elseif (b <= -1.15e-89) tmp = t_1; elseif (b <= -2.6e-308) tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); elseif (b <= 23000000000000.0) 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) * ((z ^ y) / y); t_2 = x / (a * (y * exp(b))); tmp = 0.0; if (b <= -8.8e+60) tmp = t_2; elseif (b <= -1.15e-89) tmp = t_1; elseif (b <= -2.6e-308) tmp = (x * (a ^ (t + -1.0))) / y; elseif (b <= 23000000000000.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[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8.8e+60], t$95$2, If[LessEqual[b, -1.15e-89], t$95$1, If[LessEqual[b, -2.6e-308], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 23000000000000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a} \cdot \frac{{z}^{y}}{y}\\
t_2 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -8.8 \cdot 10^{+60}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{-89}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.6 \cdot 10^{-308}:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{elif}\;b \leq 23000000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -8.79999999999999984e60 or 2.3e13 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum69.4%
associate-/l*69.4%
*-commutative69.4%
exp-to-pow69.4%
exp-diff55.4%
*-commutative55.4%
exp-to-pow55.4%
sub-neg55.4%
metadata-eval55.4%
Simplified55.4%
Taylor expanded in y around 0 72.0%
associate-/r*67.0%
exp-to-pow67.0%
sub-neg67.0%
metadata-eval67.0%
Simplified67.0%
Taylor expanded in t around 0 85.4%
if -8.79999999999999984e60 < b < -1.15e-89 or -2.6e-308 < b < 2.3e13Initial program 97.8%
Taylor expanded in b around 0 93.4%
exp-sum81.4%
*-commutative81.4%
exp-to-pow81.5%
exp-to-pow82.5%
sub-neg82.5%
metadata-eval82.5%
Simplified82.5%
Taylor expanded in t around 0 76.1%
associate-/l/67.2%
*-commutative67.2%
times-frac71.1%
Applied egg-rr71.1%
if -1.15e-89 < b < -2.6e-308Initial program 98.4%
Taylor expanded in b around 0 98.4%
exp-sum72.8%
*-commutative72.8%
exp-to-pow72.8%
exp-to-pow74.2%
sub-neg74.2%
metadata-eval74.2%
Simplified74.2%
Taylor expanded in y around 0 83.4%
exp-to-pow84.7%
sub-neg84.7%
metadata-eval84.7%
+-commutative84.7%
Simplified84.7%
Final simplification79.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -3.5e+60) (not (<= b 8000000000000.0))) (/ x (* a (* y (exp b)))) (* (/ x a) (/ (pow z y) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -3.5e+60) || !(b <= 8000000000000.0)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = (x / a) * (pow(z, y) / 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 <= (-3.5d+60)) .or. (.not. (b <= 8000000000000.0d0))) then
tmp = x / (a * (y * exp(b)))
else
tmp = (x / a) * ((z ** y) / 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 <= -3.5e+60) || !(b <= 8000000000000.0)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = (x / a) * (Math.pow(z, y) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -3.5e+60) or not (b <= 8000000000000.0): tmp = x / (a * (y * math.exp(b))) else: tmp = (x / a) * (math.pow(z, y) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -3.5e+60) || !(b <= 8000000000000.0)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(Float64(x / a) * Float64((z ^ y) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -3.5e+60) || ~((b <= 8000000000000.0))) tmp = x / (a * (y * exp(b))); else tmp = (x / a) * ((z ^ y) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -3.5e+60], N[Not[LessEqual[b, 8000000000000.0]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.5 \cdot 10^{+60} \lor \neg \left(b \leq 8000000000000\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y}\\
\end{array}
\end{array}
if b < -3.5000000000000002e60 or 8e12 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum69.4%
associate-/l*69.4%
*-commutative69.4%
exp-to-pow69.4%
exp-diff55.4%
*-commutative55.4%
exp-to-pow55.4%
sub-neg55.4%
metadata-eval55.4%
Simplified55.4%
Taylor expanded in y around 0 72.0%
associate-/r*67.0%
exp-to-pow67.0%
sub-neg67.0%
metadata-eval67.0%
Simplified67.0%
Taylor expanded in t around 0 85.4%
if -3.5000000000000002e60 < b < 8e12Initial program 98.0%
Taylor expanded in b around 0 94.7%
exp-sum79.2%
*-commutative79.2%
exp-to-pow79.3%
exp-to-pow80.4%
sub-neg80.4%
metadata-eval80.4%
Simplified80.4%
Taylor expanded in t around 0 73.6%
associate-/l/64.8%
*-commutative64.8%
times-frac69.1%
Applied egg-rr69.1%
Final simplification76.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -2.5e-247) (not (<= b 2700.0))) (/ x (* a (* y (exp b)))) (/ x (* b (* a (+ y (/ y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -2.5e-247) || !(b <= 2700.0)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = x / (b * (a * (y + (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 <= (-2.5d-247)) .or. (.not. (b <= 2700.0d0))) then
tmp = x / (a * (y * exp(b)))
else
tmp = x / (b * (a * (y + (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 <= -2.5e-247) || !(b <= 2700.0)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = x / (b * (a * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -2.5e-247) or not (b <= 2700.0): tmp = x / (a * (y * math.exp(b))) else: tmp = x / (b * (a * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -2.5e-247) || !(b <= 2700.0)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -2.5e-247) || ~((b <= 2700.0))) tmp = x / (a * (y * exp(b))); else tmp = x / (b * (a * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -2.5e-247], N[Not[LessEqual[b, 2700.0]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.5 \cdot 10^{-247} \lor \neg \left(b \leq 2700\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < -2.49999999999999989e-247 or 2700 < b Initial program 99.1%
associate-/l*99.6%
associate--l+99.6%
exp-sum71.0%
associate-/l*70.4%
*-commutative70.4%
exp-to-pow70.4%
exp-diff59.4%
*-commutative59.4%
exp-to-pow59.8%
sub-neg59.8%
metadata-eval59.8%
Simplified59.8%
Taylor expanded in y around 0 70.5%
associate-/r*66.6%
exp-to-pow66.9%
sub-neg66.9%
metadata-eval66.9%
Simplified66.9%
Taylor expanded in t around 0 72.3%
if -2.49999999999999989e-247 < b < 2700Initial program 98.5%
associate-/l*97.3%
associate--l+97.3%
exp-sum85.2%
associate-/l*81.2%
*-commutative81.2%
exp-to-pow81.3%
exp-diff81.3%
*-commutative81.3%
exp-to-pow82.5%
sub-neg82.5%
metadata-eval82.5%
Simplified82.5%
Taylor expanded in y around 0 64.4%
associate-/r*64.4%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
Simplified65.4%
Taylor expanded in t around 0 32.8%
associate-*r*32.8%
Simplified32.8%
Taylor expanded in b around 0 32.8%
distribute-lft-out32.8%
distribute-rgt1-in32.8%
Simplified32.8%
Taylor expanded in b around inf 34.9%
associate-/l*43.7%
distribute-lft-out43.7%
Simplified43.7%
Final simplification64.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -3.45e-248)
(+ t_1 (* b (- (* b (- t_1 (/ (* x b) (* y a)))) t_1)))
(if (<= b 1300000000000.0)
(/ x (* b (* a (+ y (/ y b)))))
(/
x
(*
a
(*
y
(+ 1.0 (* b (+ 1.0 (* b (+ 0.5 (* b 0.16666666666666666)))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -3.45e-248) {
tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1));
} else if (b <= 1300000000000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
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 / (y * a)
if (b <= (-3.45d-248)) then
tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1))
else if (b <= 1300000000000.0d0) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
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 / (y * a);
double tmp;
if (b <= -3.45e-248) {
tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1));
} else if (b <= 1300000000000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -3.45e-248: tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1)) elif b <= 1300000000000.0: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -3.45e-248) tmp = Float64(t_1 + Float64(b * Float64(Float64(b * Float64(t_1 - Float64(Float64(x * b) / Float64(y * a)))) - t_1))); elseif (b <= 1300000000000.0) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -3.45e-248) tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1)); elseif (b <= 1300000000000.0) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.45e-248], N[(t$95$1 + N[(b * N[(N[(b * N[(t$95$1 - N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1300000000000.0], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot a}\\
\mathbf{if}\;b \leq -3.45 \cdot 10^{-248}:\\
\;\;\;\;t\_1 + b \cdot \left(b \cdot \left(t\_1 - \frac{x \cdot b}{y \cdot a}\right) - t\_1\right)\\
\mathbf{elif}\;b \leq 1300000000000:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -3.45e-248Initial program 98.6%
associate-/l*99.3%
associate--l+99.3%
exp-sum71.7%
associate-/l*70.9%
*-commutative70.9%
exp-to-pow70.9%
exp-diff60.5%
*-commutative60.5%
exp-to-pow61.1%
sub-neg61.1%
metadata-eval61.1%
Simplified61.1%
Taylor expanded in y around 0 68.2%
associate-/r*66.5%
exp-to-pow67.1%
sub-neg67.1%
metadata-eval67.1%
Simplified67.1%
Taylor expanded in t around 0 63.4%
associate-*r*57.3%
Simplified57.3%
Taylor expanded in b around 0 22.0%
distribute-lft-out27.3%
distribute-rgt1-in27.3%
Simplified27.3%
Taylor expanded in b around 0 52.4%
if -3.45e-248 < b < 1.3e12Initial program 98.6%
associate-/l*97.5%
associate--l+97.5%
exp-sum84.7%
associate-/l*80.9%
*-commutative80.9%
exp-to-pow80.9%
exp-diff79.7%
*-commutative79.7%
exp-to-pow80.8%
sub-neg80.8%
metadata-eval80.8%
Simplified80.8%
Taylor expanded in y around 0 63.7%
associate-/r*62.4%
exp-to-pow63.3%
sub-neg63.3%
metadata-eval63.3%
Simplified63.3%
Taylor expanded in t around 0 33.7%
associate-*r*32.4%
Simplified32.4%
Taylor expanded in b around 0 32.5%
distribute-lft-out32.5%
distribute-rgt1-in32.5%
Simplified32.5%
Taylor expanded in b around inf 34.5%
associate-/l*42.8%
distribute-lft-out42.8%
Simplified42.8%
if 1.3e12 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum69.4%
associate-/l*69.4%
*-commutative69.4%
exp-to-pow69.4%
exp-diff58.1%
*-commutative58.1%
exp-to-pow58.1%
sub-neg58.1%
metadata-eval58.1%
Simplified58.1%
Taylor expanded in y around 0 75.9%
associate-/r*69.4%
exp-to-pow69.4%
sub-neg69.4%
metadata-eval69.4%
Simplified69.4%
Taylor expanded in t around 0 90.5%
Taylor expanded in b around 0 76.3%
Taylor expanded in y around 0 81.0%
Final simplification56.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -5e-249)
(+ t_1 (* b (- (/ (* x b) (* y a)) t_1)))
(if (<= b 5900000000000.0)
(/ x (* b (* a (+ y (/ y b)))))
(/
x
(*
a
(*
y
(+ 1.0 (* b (+ 1.0 (* b (+ 0.5 (* b 0.16666666666666666)))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -5e-249) {
tmp = t_1 + (b * (((x * b) / (y * a)) - t_1));
} else if (b <= 5900000000000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
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 / (y * a)
if (b <= (-5d-249)) then
tmp = t_1 + (b * (((x * b) / (y * a)) - t_1))
else if (b <= 5900000000000.0d0) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
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 / (y * a);
double tmp;
if (b <= -5e-249) {
tmp = t_1 + (b * (((x * b) / (y * a)) - t_1));
} else if (b <= 5900000000000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -5e-249: tmp = t_1 + (b * (((x * b) / (y * a)) - t_1)) elif b <= 5900000000000.0: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -5e-249) tmp = Float64(t_1 + Float64(b * Float64(Float64(Float64(x * b) / Float64(y * a)) - t_1))); elseif (b <= 5900000000000.0) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -5e-249) tmp = t_1 + (b * (((x * b) / (y * a)) - t_1)); elseif (b <= 5900000000000.0) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5e-249], N[(t$95$1 + N[(b * N[(N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5900000000000.0], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot a}\\
\mathbf{if}\;b \leq -5 \cdot 10^{-249}:\\
\;\;\;\;t\_1 + b \cdot \left(\frac{x \cdot b}{y \cdot a} - t\_1\right)\\
\mathbf{elif}\;b \leq 5900000000000:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -4.9999999999999999e-249Initial program 98.6%
associate-/l*99.3%
associate--l+99.3%
exp-sum71.7%
associate-/l*70.9%
*-commutative70.9%
exp-to-pow70.9%
exp-diff60.5%
*-commutative60.5%
exp-to-pow61.1%
sub-neg61.1%
metadata-eval61.1%
Simplified61.1%
Taylor expanded in y around 0 68.2%
associate-/r*66.5%
exp-to-pow67.1%
sub-neg67.1%
metadata-eval67.1%
Simplified67.1%
Taylor expanded in t around 0 63.4%
associate-*r*57.3%
Simplified57.3%
Taylor expanded in b around 0 22.0%
distribute-lft-out27.3%
distribute-rgt1-in27.3%
Simplified27.3%
Taylor expanded in b around 0 45.1%
if -4.9999999999999999e-249 < b < 5.9e12Initial program 98.6%
associate-/l*97.5%
associate--l+97.5%
exp-sum84.7%
associate-/l*80.9%
*-commutative80.9%
exp-to-pow80.9%
exp-diff79.7%
*-commutative79.7%
exp-to-pow80.8%
sub-neg80.8%
metadata-eval80.8%
Simplified80.8%
Taylor expanded in y around 0 63.7%
associate-/r*62.4%
exp-to-pow63.3%
sub-neg63.3%
metadata-eval63.3%
Simplified63.3%
Taylor expanded in t around 0 33.7%
associate-*r*32.4%
Simplified32.4%
Taylor expanded in b around 0 32.5%
distribute-lft-out32.5%
distribute-rgt1-in32.5%
Simplified32.5%
Taylor expanded in b around inf 34.5%
associate-/l*42.8%
distribute-lft-out42.8%
Simplified42.8%
if 5.9e12 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum69.4%
associate-/l*69.4%
*-commutative69.4%
exp-to-pow69.4%
exp-diff58.1%
*-commutative58.1%
exp-to-pow58.1%
sub-neg58.1%
metadata-eval58.1%
Simplified58.1%
Taylor expanded in y around 0 75.9%
associate-/r*69.4%
exp-to-pow69.4%
sub-neg69.4%
metadata-eval69.4%
Simplified69.4%
Taylor expanded in t around 0 90.5%
Taylor expanded in b around 0 76.3%
Taylor expanded in y around 0 81.0%
Final simplification53.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -5.4e-5)
(/ (* y (- (* a (/ x a)) (* x b))) (* a (* y y)))
(if (<= b 1.15e+14)
(/ x (* b (* a (+ y (/ y b)))))
(/
x
(*
a
(* y (+ 1.0 (* b (+ 1.0 (* b (+ 0.5 (* b 0.16666666666666666))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5.4e-5) {
tmp = (y * ((a * (x / a)) - (x * b))) / (a * (y * y));
} else if (b <= 1.15e+14) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
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 <= (-5.4d-5)) then
tmp = (y * ((a * (x / a)) - (x * b))) / (a * (y * y))
else if (b <= 1.15d+14) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
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 <= -5.4e-5) {
tmp = (y * ((a * (x / a)) - (x * b))) / (a * (y * y));
} else if (b <= 1.15e+14) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -5.4e-5: tmp = (y * ((a * (x / a)) - (x * b))) / (a * (y * y)) elif b <= 1.15e+14: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -5.4e-5) tmp = Float64(Float64(y * Float64(Float64(a * Float64(x / a)) - Float64(x * b))) / Float64(a * Float64(y * y))); elseif (b <= 1.15e+14) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -5.4e-5) tmp = (y * ((a * (x / a)) - (x * b))) / (a * (y * y)); elseif (b <= 1.15e+14) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -5.4e-5], N[(N[(y * N[(N[(a * N[(x / a), $MachinePrecision]), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.15e+14], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.4 \cdot 10^{-5}:\\
\;\;\;\;\frac{y \cdot \left(a \cdot \frac{x}{a} - x \cdot b\right)}{a \cdot \left(y \cdot y\right)}\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{+14}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -5.3999999999999998e-5Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum70.0%
associate-/l*70.0%
*-commutative70.0%
exp-to-pow70.0%
exp-diff52.9%
*-commutative52.9%
exp-to-pow52.9%
sub-neg52.9%
metadata-eval52.9%
Simplified52.9%
Taylor expanded in y around 0 65.9%
associate-/r*63.0%
exp-to-pow63.0%
sub-neg63.0%
metadata-eval63.0%
Simplified63.0%
Taylor expanded in t around 0 76.1%
Taylor expanded in b around 0 39.3%
+-commutative39.3%
associate-/r*39.3%
associate-*r/39.3%
frac-add35.4%
*-commutative35.4%
*-commutative35.4%
*-commutative35.4%
Applied egg-rr35.4%
+-commutative35.4%
*-commutative35.4%
*-commutative35.4%
associate-*r*39.5%
+-commutative39.5%
associate-*l*45.3%
*-commutative45.3%
distribute-lft-out45.3%
mul-1-neg45.3%
distribute-rgt-neg-in45.3%
*-commutative45.3%
Simplified45.3%
if -5.3999999999999998e-5 < b < 1.15e14Initial program 97.8%
associate-/l*97.8%
associate--l+97.8%
exp-sum80.9%
associate-/l*77.6%
*-commutative77.6%
exp-to-pow77.7%
exp-diff76.9%
*-commutative76.9%
exp-to-pow78.2%
sub-neg78.2%
metadata-eval78.2%
Simplified78.2%
Taylor expanded in y around 0 66.7%
associate-/r*65.9%
exp-to-pow67.0%
sub-neg67.0%
metadata-eval67.0%
Simplified67.0%
Taylor expanded in t around 0 37.5%
associate-*r*36.7%
Simplified36.7%
Taylor expanded in b around 0 35.6%
distribute-lft-out36.4%
distribute-rgt1-in36.4%
Simplified36.4%
Taylor expanded in b around inf 38.4%
associate-/l*42.8%
distribute-lft-out42.8%
Simplified42.8%
if 1.15e14 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum69.4%
associate-/l*69.4%
*-commutative69.4%
exp-to-pow69.4%
exp-diff58.1%
*-commutative58.1%
exp-to-pow58.1%
sub-neg58.1%
metadata-eval58.1%
Simplified58.1%
Taylor expanded in y around 0 75.9%
associate-/r*69.4%
exp-to-pow69.4%
sub-neg69.4%
metadata-eval69.4%
Simplified69.4%
Taylor expanded in t around 0 90.5%
Taylor expanded in b around 0 76.3%
Taylor expanded in y around 0 81.0%
Final simplification52.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -6.5e-5)
(* x (/ b (* y (- a))))
(if (<= b 5e-182)
(/ (* (/ x a) (+ b -1.0)) (- y))
(if (<= b 0.82) (/ (* (/ x y) (+ b -1.0)) (- a)) (/ x (* y (* a b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6.5e-5) {
tmp = x * (b / (y * -a));
} else if (b <= 5e-182) {
tmp = ((x / a) * (b + -1.0)) / -y;
} else if (b <= 0.82) {
tmp = ((x / y) * (b + -1.0)) / -a;
} else {
tmp = x / (y * (a * 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 <= (-6.5d-5)) then
tmp = x * (b / (y * -a))
else if (b <= 5d-182) then
tmp = ((x / a) * (b + (-1.0d0))) / -y
else if (b <= 0.82d0) then
tmp = ((x / y) * (b + (-1.0d0))) / -a
else
tmp = x / (y * (a * 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 <= -6.5e-5) {
tmp = x * (b / (y * -a));
} else if (b <= 5e-182) {
tmp = ((x / a) * (b + -1.0)) / -y;
} else if (b <= 0.82) {
tmp = ((x / y) * (b + -1.0)) / -a;
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -6.5e-5: tmp = x * (b / (y * -a)) elif b <= 5e-182: tmp = ((x / a) * (b + -1.0)) / -y elif b <= 0.82: tmp = ((x / y) * (b + -1.0)) / -a else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -6.5e-5) tmp = Float64(x * Float64(b / Float64(y * Float64(-a)))); elseif (b <= 5e-182) tmp = Float64(Float64(Float64(x / a) * Float64(b + -1.0)) / Float64(-y)); elseif (b <= 0.82) tmp = Float64(Float64(Float64(x / y) * Float64(b + -1.0)) / Float64(-a)); else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -6.5e-5) tmp = x * (b / (y * -a)); elseif (b <= 5e-182) tmp = ((x / a) * (b + -1.0)) / -y; elseif (b <= 0.82) tmp = ((x / y) * (b + -1.0)) / -a; else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -6.5e-5], N[(x * N[(b / N[(y * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5e-182], N[(N[(N[(x / a), $MachinePrecision] * N[(b + -1.0), $MachinePrecision]), $MachinePrecision] / (-y)), $MachinePrecision], If[LessEqual[b, 0.82], N[(N[(N[(x / y), $MachinePrecision] * N[(b + -1.0), $MachinePrecision]), $MachinePrecision] / (-a)), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.5 \cdot 10^{-5}:\\
\;\;\;\;x \cdot \frac{b}{y \cdot \left(-a\right)}\\
\mathbf{elif}\;b \leq 5 \cdot 10^{-182}:\\
\;\;\;\;\frac{\frac{x}{a} \cdot \left(b + -1\right)}{-y}\\
\mathbf{elif}\;b \leq 0.82:\\
\;\;\;\;\frac{\frac{x}{y} \cdot \left(b + -1\right)}{-a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -6.49999999999999943e-5Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum70.0%
associate-/l*70.0%
*-commutative70.0%
exp-to-pow70.0%
exp-diff52.9%
*-commutative52.9%
exp-to-pow52.9%
sub-neg52.9%
metadata-eval52.9%
Simplified52.9%
Taylor expanded in y around 0 65.9%
associate-/r*63.0%
exp-to-pow63.0%
sub-neg63.0%
metadata-eval63.0%
Simplified63.0%
Taylor expanded in t around 0 76.1%
Taylor expanded in b around 0 39.3%
Taylor expanded in b around inf 39.3%
mul-1-neg39.3%
*-commutative39.3%
*-commutative39.3%
associate-/l*40.7%
*-commutative40.7%
distribute-rgt-neg-out40.7%
*-commutative40.7%
distribute-neg-frac240.7%
distribute-rgt-neg-in40.7%
Simplified40.7%
if -6.49999999999999943e-5 < b < 5.00000000000000024e-182Initial program 97.3%
associate-/l*97.2%
associate--l+97.2%
exp-sum78.0%
associate-/l*76.8%
*-commutative76.8%
exp-to-pow76.8%
exp-diff76.7%
*-commutative76.7%
exp-to-pow78.2%
sub-neg78.2%
metadata-eval78.2%
Simplified78.2%
Taylor expanded in y around 0 71.8%
associate-/r*71.8%
exp-to-pow73.1%
sub-neg73.1%
metadata-eval73.1%
Simplified73.1%
Taylor expanded in t around 0 42.2%
Taylor expanded in b around 0 39.0%
Taylor expanded in y around 0 45.3%
+-commutative45.3%
*-lft-identity45.3%
associate-/l*45.3%
metadata-eval45.3%
times-frac45.3%
neg-mul-145.3%
associate-/l*45.3%
distribute-neg-frac245.3%
mul-1-neg45.3%
distribute-lft-in45.3%
associate-*r/45.3%
mul-1-neg45.3%
distribute-neg-frac245.3%
+-commutative45.3%
associate-/l*40.2%
distribute-rgt-out45.3%
Simplified45.3%
if 5.00000000000000024e-182 < b < 0.819999999999999951Initial program 98.4%
associate-/l*98.4%
associate--l+98.4%
exp-sum88.5%
associate-/l*83.5%
*-commutative83.5%
exp-to-pow83.7%
exp-diff83.7%
*-commutative83.7%
exp-to-pow85.0%
sub-neg85.0%
metadata-eval85.0%
Simplified85.0%
Taylor expanded in y around 0 61.8%
associate-/r*61.8%
exp-to-pow62.5%
sub-neg62.5%
metadata-eval62.5%
Simplified62.5%
Taylor expanded in t around 0 28.8%
Taylor expanded in b around 0 26.2%
Taylor expanded in a around -inf 33.1%
mul-1-neg33.1%
distribute-neg-frac233.1%
+-commutative33.1%
associate-/l*28.0%
distribute-rgt-out35.6%
Simplified35.6%
if 0.819999999999999951 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum69.1%
associate-/l*67.6%
*-commutative67.6%
exp-to-pow67.6%
exp-diff55.9%
*-commutative55.9%
exp-to-pow55.9%
sub-neg55.9%
metadata-eval55.9%
Simplified55.9%
Taylor expanded in y around 0 72.2%
associate-/r*64.8%
exp-to-pow64.8%
sub-neg64.8%
metadata-eval64.8%
Simplified64.8%
Taylor expanded in t around 0 85.5%
associate-*r*72.3%
Simplified72.3%
Taylor expanded in b around 0 41.4%
distribute-lft-out41.4%
distribute-rgt1-in41.4%
Simplified41.4%
Taylor expanded in b around inf 41.4%
associate-*r*42.9%
*-commutative42.9%
Simplified42.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -5.6e-5)
(/ (* y (- (* a (/ x a)) (* x b))) (* a (* y y)))
(if (<= b 48000000000000.0)
(/ x (* b (* a (+ y (/ y b)))))
(/ x (* a (- y (* b (* y (- -1.0 (* b 0.5))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5.6e-5) {
tmp = (y * ((a * (x / a)) - (x * b))) / (a * (y * y));
} else if (b <= 48000000000000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y - (b * (y * (-1.0 - (b * 0.5))))));
}
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 <= (-5.6d-5)) then
tmp = (y * ((a * (x / a)) - (x * b))) / (a * (y * y))
else if (b <= 48000000000000.0d0) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y - (b * (y * ((-1.0d0) - (b * 0.5d0))))))
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 <= -5.6e-5) {
tmp = (y * ((a * (x / a)) - (x * b))) / (a * (y * y));
} else if (b <= 48000000000000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y - (b * (y * (-1.0 - (b * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -5.6e-5: tmp = (y * ((a * (x / a)) - (x * b))) / (a * (y * y)) elif b <= 48000000000000.0: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y - (b * (y * (-1.0 - (b * 0.5)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -5.6e-5) tmp = Float64(Float64(y * Float64(Float64(a * Float64(x / a)) - Float64(x * b))) / Float64(a * Float64(y * y))); elseif (b <= 48000000000000.0) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y - Float64(b * Float64(y * Float64(-1.0 - Float64(b * 0.5))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -5.6e-5) tmp = (y * ((a * (x / a)) - (x * b))) / (a * (y * y)); elseif (b <= 48000000000000.0) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y - (b * (y * (-1.0 - (b * 0.5)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -5.6e-5], N[(N[(y * N[(N[(a * N[(x / a), $MachinePrecision]), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 48000000000000.0], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y - N[(b * N[(y * N[(-1.0 - N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.6 \cdot 10^{-5}:\\
\;\;\;\;\frac{y \cdot \left(a \cdot \frac{x}{a} - x \cdot b\right)}{a \cdot \left(y \cdot y\right)}\\
\mathbf{elif}\;b \leq 48000000000000:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y - b \cdot \left(y \cdot \left(-1 - b \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -5.59999999999999992e-5Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum70.0%
associate-/l*70.0%
*-commutative70.0%
exp-to-pow70.0%
exp-diff52.9%
*-commutative52.9%
exp-to-pow52.9%
sub-neg52.9%
metadata-eval52.9%
Simplified52.9%
Taylor expanded in y around 0 65.9%
associate-/r*63.0%
exp-to-pow63.0%
sub-neg63.0%
metadata-eval63.0%
Simplified63.0%
Taylor expanded in t around 0 76.1%
Taylor expanded in b around 0 39.3%
+-commutative39.3%
associate-/r*39.3%
associate-*r/39.3%
frac-add35.4%
*-commutative35.4%
*-commutative35.4%
*-commutative35.4%
Applied egg-rr35.4%
+-commutative35.4%
*-commutative35.4%
*-commutative35.4%
associate-*r*39.5%
+-commutative39.5%
associate-*l*45.3%
*-commutative45.3%
distribute-lft-out45.3%
mul-1-neg45.3%
distribute-rgt-neg-in45.3%
*-commutative45.3%
Simplified45.3%
if -5.59999999999999992e-5 < b < 4.8e13Initial program 97.8%
associate-/l*97.8%
associate--l+97.8%
exp-sum80.9%
associate-/l*77.6%
*-commutative77.6%
exp-to-pow77.7%
exp-diff76.9%
*-commutative76.9%
exp-to-pow78.2%
sub-neg78.2%
metadata-eval78.2%
Simplified78.2%
Taylor expanded in y around 0 66.7%
associate-/r*65.9%
exp-to-pow67.0%
sub-neg67.0%
metadata-eval67.0%
Simplified67.0%
Taylor expanded in t around 0 37.5%
associate-*r*36.7%
Simplified36.7%
Taylor expanded in b around 0 35.6%
distribute-lft-out36.4%
distribute-rgt1-in36.4%
Simplified36.4%
Taylor expanded in b around inf 38.4%
associate-/l*42.8%
distribute-lft-out42.8%
Simplified42.8%
if 4.8e13 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum69.4%
associate-/l*69.4%
*-commutative69.4%
exp-to-pow69.4%
exp-diff58.1%
*-commutative58.1%
exp-to-pow58.1%
sub-neg58.1%
metadata-eval58.1%
Simplified58.1%
Taylor expanded in y around 0 75.9%
associate-/r*69.4%
exp-to-pow69.4%
sub-neg69.4%
metadata-eval69.4%
Simplified69.4%
Taylor expanded in t around 0 90.5%
Taylor expanded in b around 0 67.0%
associate-*r*67.0%
distribute-rgt1-in67.0%
Simplified67.0%
Final simplification49.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= b 1.55e-289)
(/ (- (/ x y) (* x (/ b y))) a)
(if (<= b 3000000000000.0)
(/ x (* b (* a (+ y (/ y b)))))
(/ x (* a (- y (* b (* y (- -1.0 (* b 0.5))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.55e-289) {
tmp = ((x / y) - (x * (b / y))) / a;
} else if (b <= 3000000000000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y - (b * (y * (-1.0 - (b * 0.5))))));
}
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.55d-289) then
tmp = ((x / y) - (x * (b / y))) / a
else if (b <= 3000000000000.0d0) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y - (b * (y * ((-1.0d0) - (b * 0.5d0))))))
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.55e-289) {
tmp = ((x / y) - (x * (b / y))) / a;
} else if (b <= 3000000000000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y - (b * (y * (-1.0 - (b * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 1.55e-289: tmp = ((x / y) - (x * (b / y))) / a elif b <= 3000000000000.0: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y - (b * (y * (-1.0 - (b * 0.5)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 1.55e-289) tmp = Float64(Float64(Float64(x / y) - Float64(x * Float64(b / y))) / a); elseif (b <= 3000000000000.0) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y - Float64(b * Float64(y * Float64(-1.0 - Float64(b * 0.5))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 1.55e-289) tmp = ((x / y) - (x * (b / y))) / a; elseif (b <= 3000000000000.0) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y - (b * (y * (-1.0 - (b * 0.5)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.55e-289], N[(N[(N[(x / y), $MachinePrecision] - N[(x * N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b, 3000000000000.0], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y - N[(b * N[(y * N[(-1.0 - N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.55 \cdot 10^{-289}:\\
\;\;\;\;\frac{\frac{x}{y} - x \cdot \frac{b}{y}}{a}\\
\mathbf{elif}\;b \leq 3000000000000:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y - b \cdot \left(y \cdot \left(-1 - b \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < 1.55e-289Initial program 98.6%
associate-/l*98.5%
associate--l+98.5%
exp-sum70.3%
associate-/l*69.5%
*-commutative69.5%
exp-to-pow69.5%
exp-diff59.8%
*-commutative59.8%
exp-to-pow60.5%
sub-neg60.5%
metadata-eval60.5%
Simplified60.5%
Taylor expanded in y around 0 68.7%
associate-/r*67.1%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
Simplified67.6%
Taylor expanded in t around 0 61.1%
Taylor expanded in b around 0 39.9%
Taylor expanded in a around 0 42.3%
+-commutative42.3%
mul-1-neg42.3%
unsub-neg42.3%
*-commutative42.3%
associate-/l*43.8%
Simplified43.8%
if 1.55e-289 < b < 3e12Initial program 98.6%
associate-/l*98.6%
associate--l+98.6%
exp-sum88.7%
associate-/l*84.4%
*-commutative84.4%
exp-to-pow84.5%
exp-diff83.1%
*-commutative83.1%
exp-to-pow84.2%
sub-neg84.2%
metadata-eval84.2%
Simplified84.2%
Taylor expanded in y around 0 62.4%
associate-/r*61.0%
exp-to-pow61.9%
sub-neg61.9%
metadata-eval61.9%
Simplified61.9%
Taylor expanded in t around 0 34.3%
associate-*r*32.9%
Simplified32.9%
Taylor expanded in b around 0 33.0%
distribute-lft-out33.0%
distribute-rgt1-in33.0%
Simplified33.0%
Taylor expanded in b around inf 33.9%
associate-/l*43.1%
distribute-lft-out43.1%
Simplified43.1%
if 3e12 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum69.4%
associate-/l*69.4%
*-commutative69.4%
exp-to-pow69.4%
exp-diff58.1%
*-commutative58.1%
exp-to-pow58.1%
sub-neg58.1%
metadata-eval58.1%
Simplified58.1%
Taylor expanded in y around 0 75.9%
associate-/r*69.4%
exp-to-pow69.4%
sub-neg69.4%
metadata-eval69.4%
Simplified69.4%
Taylor expanded in t around 0 90.5%
Taylor expanded in b around 0 67.0%
associate-*r*67.0%
distribute-rgt1-in67.0%
Simplified67.0%
Final simplification49.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b -6.5e-5) (* x (/ b (* y (- a)))) (if (<= b 2.22e-122) (/ (* (/ x a) (+ b -1.0)) (- y)) (/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6.5e-5) {
tmp = x * (b / (y * -a));
} else if (b <= 2.22e-122) {
tmp = ((x / a) * (b + -1.0)) / -y;
} else {
tmp = x / (y * (a * 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 <= (-6.5d-5)) then
tmp = x * (b / (y * -a))
else if (b <= 2.22d-122) then
tmp = ((x / a) * (b + (-1.0d0))) / -y
else
tmp = x / (y * (a * 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 <= -6.5e-5) {
tmp = x * (b / (y * -a));
} else if (b <= 2.22e-122) {
tmp = ((x / a) * (b + -1.0)) / -y;
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -6.5e-5: tmp = x * (b / (y * -a)) elif b <= 2.22e-122: tmp = ((x / a) * (b + -1.0)) / -y else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -6.5e-5) tmp = Float64(x * Float64(b / Float64(y * Float64(-a)))); elseif (b <= 2.22e-122) tmp = Float64(Float64(Float64(x / a) * Float64(b + -1.0)) / Float64(-y)); else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -6.5e-5) tmp = x * (b / (y * -a)); elseif (b <= 2.22e-122) tmp = ((x / a) * (b + -1.0)) / -y; else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -6.5e-5], N[(x * N[(b / N[(y * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.22e-122], N[(N[(N[(x / a), $MachinePrecision] * N[(b + -1.0), $MachinePrecision]), $MachinePrecision] / (-y)), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.5 \cdot 10^{-5}:\\
\;\;\;\;x \cdot \frac{b}{y \cdot \left(-a\right)}\\
\mathbf{elif}\;b \leq 2.22 \cdot 10^{-122}:\\
\;\;\;\;\frac{\frac{x}{a} \cdot \left(b + -1\right)}{-y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -6.49999999999999943e-5Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum70.0%
associate-/l*70.0%
*-commutative70.0%
exp-to-pow70.0%
exp-diff52.9%
*-commutative52.9%
exp-to-pow52.9%
sub-neg52.9%
metadata-eval52.9%
Simplified52.9%
Taylor expanded in y around 0 65.9%
associate-/r*63.0%
exp-to-pow63.0%
sub-neg63.0%
metadata-eval63.0%
Simplified63.0%
Taylor expanded in t around 0 76.1%
Taylor expanded in b around 0 39.3%
Taylor expanded in b around inf 39.3%
mul-1-neg39.3%
*-commutative39.3%
*-commutative39.3%
associate-/l*40.7%
*-commutative40.7%
distribute-rgt-neg-out40.7%
*-commutative40.7%
distribute-neg-frac240.7%
distribute-rgt-neg-in40.7%
Simplified40.7%
if -6.49999999999999943e-5 < b < 2.22e-122Initial program 97.4%
associate-/l*97.3%
associate--l+97.3%
exp-sum78.6%
associate-/l*77.6%
*-commutative77.6%
exp-to-pow77.6%
exp-diff77.5%
*-commutative77.5%
exp-to-pow79.1%
sub-neg79.1%
metadata-eval79.1%
Simplified79.1%
Taylor expanded in y around 0 69.3%
associate-/r*69.3%
exp-to-pow70.5%
sub-neg70.5%
metadata-eval70.5%
Simplified70.5%
Taylor expanded in t around 0 40.4%
Taylor expanded in b around 0 36.8%
Taylor expanded in y around 0 43.9%
+-commutative43.9%
*-lft-identity43.9%
associate-/l*43.9%
metadata-eval43.9%
times-frac43.9%
neg-mul-143.9%
associate-/l*43.9%
distribute-neg-frac243.9%
mul-1-neg43.9%
distribute-lft-in43.9%
associate-*r/43.9%
mul-1-neg43.9%
distribute-neg-frac243.9%
+-commutative43.9%
associate-/l*38.6%
distribute-rgt-out43.9%
Simplified43.9%
if 2.22e-122 < b Initial program 99.8%
associate-/l*99.8%
associate--l+99.8%
exp-sum75.3%
associate-/l*72.0%
*-commutative72.0%
exp-to-pow72.1%
exp-diff63.2%
*-commutative63.2%
exp-to-pow63.3%
sub-neg63.3%
metadata-eval63.3%
Simplified63.3%
Taylor expanded in y around 0 70.3%
associate-/r*64.8%
exp-to-pow64.9%
sub-neg64.9%
metadata-eval64.9%
Simplified64.9%
Taylor expanded in t around 0 70.9%
associate-*r*60.9%
Simplified60.9%
Taylor expanded in b around 0 37.6%
distribute-lft-out37.6%
distribute-rgt1-in37.6%
Simplified37.6%
Taylor expanded in b around inf 37.6%
associate-*r*38.7%
*-commutative38.7%
Simplified38.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -6e-5) (* x (/ b (* y (- a)))) (if (<= b 2.22e-122) (* (/ x a) (/ 1.0 y)) (/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6e-5) {
tmp = x * (b / (y * -a));
} else if (b <= 2.22e-122) {
tmp = (x / a) * (1.0 / y);
} else {
tmp = x / (y * (a * 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 <= (-6d-5)) then
tmp = x * (b / (y * -a))
else if (b <= 2.22d-122) then
tmp = (x / a) * (1.0d0 / y)
else
tmp = x / (y * (a * 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 <= -6e-5) {
tmp = x * (b / (y * -a));
} else if (b <= 2.22e-122) {
tmp = (x / a) * (1.0 / y);
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -6e-5: tmp = x * (b / (y * -a)) elif b <= 2.22e-122: tmp = (x / a) * (1.0 / y) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -6e-5) tmp = Float64(x * Float64(b / Float64(y * Float64(-a)))); elseif (b <= 2.22e-122) tmp = Float64(Float64(x / a) * Float64(1.0 / y)); else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -6e-5) tmp = x * (b / (y * -a)); elseif (b <= 2.22e-122) tmp = (x / a) * (1.0 / y); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -6e-5], N[(x * N[(b / N[(y * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.22e-122], N[(N[(x / a), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6 \cdot 10^{-5}:\\
\;\;\;\;x \cdot \frac{b}{y \cdot \left(-a\right)}\\
\mathbf{elif}\;b \leq 2.22 \cdot 10^{-122}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -6.00000000000000015e-5Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum70.0%
associate-/l*70.0%
*-commutative70.0%
exp-to-pow70.0%
exp-diff52.9%
*-commutative52.9%
exp-to-pow52.9%
sub-neg52.9%
metadata-eval52.9%
Simplified52.9%
Taylor expanded in y around 0 65.9%
associate-/r*63.0%
exp-to-pow63.0%
sub-neg63.0%
metadata-eval63.0%
Simplified63.0%
Taylor expanded in t around 0 76.1%
Taylor expanded in b around 0 39.3%
Taylor expanded in b around inf 39.3%
mul-1-neg39.3%
*-commutative39.3%
*-commutative39.3%
associate-/l*40.7%
*-commutative40.7%
distribute-rgt-neg-out40.7%
*-commutative40.7%
distribute-neg-frac240.7%
distribute-rgt-neg-in40.7%
Simplified40.7%
if -6.00000000000000015e-5 < b < 2.22e-122Initial program 97.4%
Taylor expanded in b around 0 96.8%
exp-sum78.1%
*-commutative78.1%
exp-to-pow78.1%
exp-to-pow79.5%
sub-neg79.5%
metadata-eval79.5%
Simplified79.5%
Taylor expanded in t around 0 75.9%
associate-/l/67.7%
*-commutative67.7%
times-frac71.8%
Applied egg-rr71.8%
Taylor expanded in y around 0 43.7%
if 2.22e-122 < b Initial program 99.8%
associate-/l*99.8%
associate--l+99.8%
exp-sum75.3%
associate-/l*72.0%
*-commutative72.0%
exp-to-pow72.1%
exp-diff63.2%
*-commutative63.2%
exp-to-pow63.3%
sub-neg63.3%
metadata-eval63.3%
Simplified63.3%
Taylor expanded in y around 0 70.3%
associate-/r*64.8%
exp-to-pow64.9%
sub-neg64.9%
metadata-eval64.9%
Simplified64.9%
Taylor expanded in t around 0 70.9%
associate-*r*60.9%
Simplified60.9%
Taylor expanded in b around 0 37.6%
distribute-lft-out37.6%
distribute-rgt1-in37.6%
Simplified37.6%
Taylor expanded in b around inf 37.6%
associate-*r*38.7%
*-commutative38.7%
Simplified38.7%
Final simplification41.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.65e-63) (* x (/ 1.0 (* y a))) (if (<= b 5.5e-124) (* (/ x a) (/ 1.0 y)) (/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.65e-63) {
tmp = x * (1.0 / (y * a));
} else if (b <= 5.5e-124) {
tmp = (x / a) * (1.0 / y);
} else {
tmp = x / (y * (a * 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-63)) then
tmp = x * (1.0d0 / (y * a))
else if (b <= 5.5d-124) then
tmp = (x / a) * (1.0d0 / y)
else
tmp = x / (y * (a * 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-63) {
tmp = x * (1.0 / (y * a));
} else if (b <= 5.5e-124) {
tmp = (x / a) * (1.0 / y);
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.65e-63: tmp = x * (1.0 / (y * a)) elif b <= 5.5e-124: tmp = (x / a) * (1.0 / y) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.65e-63) tmp = Float64(x * Float64(1.0 / Float64(y * a))); elseif (b <= 5.5e-124) tmp = Float64(Float64(x / a) * Float64(1.0 / y)); else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.65e-63) tmp = x * (1.0 / (y * a)); elseif (b <= 5.5e-124) tmp = (x / a) * (1.0 / y); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.65e-63], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.5e-124], N[(N[(x / a), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.65 \cdot 10^{-63}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-124}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.64999999999999997e-63Initial program 98.7%
associate-/l*99.7%
associate--l+99.7%
exp-sum69.7%
associate-/l*68.4%
*-commutative68.4%
exp-to-pow68.4%
exp-diff53.4%
*-commutative53.4%
exp-to-pow53.7%
sub-neg53.7%
metadata-eval53.7%
Simplified53.7%
Taylor expanded in y around 0 63.7%
associate-/r*61.1%
exp-to-pow61.4%
sub-neg61.4%
metadata-eval61.4%
Simplified61.4%
Taylor expanded in t around 0 71.7%
Taylor expanded in b around 0 27.9%
div-inv30.2%
*-commutative30.2%
Applied egg-rr30.2%
if -1.64999999999999997e-63 < b < 5.50000000000000016e-124Initial program 98.3%
Taylor expanded in b around 0 98.3%
exp-sum80.9%
*-commutative80.9%
exp-to-pow80.9%
exp-to-pow82.5%
sub-neg82.5%
metadata-eval82.5%
Simplified82.5%
Taylor expanded in t around 0 74.9%
associate-/l/67.0%
*-commutative67.0%
times-frac70.3%
Applied egg-rr70.3%
Taylor expanded in y around 0 45.8%
if 5.50000000000000016e-124 < b Initial program 99.8%
associate-/l*99.8%
associate--l+99.8%
exp-sum75.3%
associate-/l*72.0%
*-commutative72.0%
exp-to-pow72.1%
exp-diff63.2%
*-commutative63.2%
exp-to-pow63.3%
sub-neg63.3%
metadata-eval63.3%
Simplified63.3%
Taylor expanded in y around 0 70.3%
associate-/r*64.8%
exp-to-pow64.9%
sub-neg64.9%
metadata-eval64.9%
Simplified64.9%
Taylor expanded in t around 0 70.9%
associate-*r*60.9%
Simplified60.9%
Taylor expanded in b around 0 37.6%
distribute-lft-out37.6%
distribute-rgt1-in37.6%
Simplified37.6%
Taylor expanded in b around inf 37.6%
associate-*r*38.7%
*-commutative38.7%
Simplified38.7%
Final simplification38.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.4e-64) (* x (/ 1.0 (* y a))) (if (<= b 2.22e-122) (* (/ x a) (/ 1.0 y)) (/ x (* a (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.4e-64) {
tmp = x * (1.0 / (y * a));
} else if (b <= 2.22e-122) {
tmp = (x / a) * (1.0 / y);
} 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.4d-64)) then
tmp = x * (1.0d0 / (y * a))
else if (b <= 2.22d-122) then
tmp = (x / a) * (1.0d0 / y)
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.4e-64) {
tmp = x * (1.0 / (y * a));
} else if (b <= 2.22e-122) {
tmp = (x / a) * (1.0 / y);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.4e-64: tmp = x * (1.0 / (y * a)) elif b <= 2.22e-122: tmp = (x / a) * (1.0 / y) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.4e-64) tmp = Float64(x * Float64(1.0 / Float64(y * a))); elseif (b <= 2.22e-122) tmp = Float64(Float64(x / a) * Float64(1.0 / y)); 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.4e-64) tmp = x * (1.0 / (y * a)); elseif (b <= 2.22e-122) tmp = (x / a) * (1.0 / y); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.4e-64], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.22e-122], N[(N[(x / a), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.4 \cdot 10^{-64}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\mathbf{elif}\;b \leq 2.22 \cdot 10^{-122}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.40000000000000002e-64Initial program 98.7%
associate-/l*99.7%
associate--l+99.7%
exp-sum69.7%
associate-/l*68.4%
*-commutative68.4%
exp-to-pow68.4%
exp-diff53.4%
*-commutative53.4%
exp-to-pow53.7%
sub-neg53.7%
metadata-eval53.7%
Simplified53.7%
Taylor expanded in y around 0 63.7%
associate-/r*61.1%
exp-to-pow61.4%
sub-neg61.4%
metadata-eval61.4%
Simplified61.4%
Taylor expanded in t around 0 71.7%
Taylor expanded in b around 0 27.9%
div-inv30.2%
*-commutative30.2%
Applied egg-rr30.2%
if -1.40000000000000002e-64 < b < 2.22e-122Initial program 98.3%
Taylor expanded in b around 0 98.3%
exp-sum80.9%
*-commutative80.9%
exp-to-pow80.9%
exp-to-pow82.5%
sub-neg82.5%
metadata-eval82.5%
Simplified82.5%
Taylor expanded in t around 0 74.9%
associate-/l/67.0%
*-commutative67.0%
times-frac70.3%
Applied egg-rr70.3%
Taylor expanded in y around 0 45.8%
if 2.22e-122 < b Initial program 99.8%
associate-/l*99.8%
associate--l+99.8%
exp-sum75.3%
associate-/l*72.0%
*-commutative72.0%
exp-to-pow72.1%
exp-diff63.2%
*-commutative63.2%
exp-to-pow63.3%
sub-neg63.3%
metadata-eval63.3%
Simplified63.3%
Taylor expanded in y around 0 70.3%
associate-/r*64.8%
exp-to-pow64.9%
sub-neg64.9%
metadata-eval64.9%
Simplified64.9%
Taylor expanded in t around 0 70.9%
associate-*r*60.9%
Simplified60.9%
Taylor expanded in b around 0 37.6%
distribute-lft-out37.6%
distribute-rgt1-in37.6%
Simplified37.6%
Taylor expanded in b around inf 37.6%
*-commutative37.6%
Simplified37.6%
Final simplification38.0%
(FPCore (x y z t a b) :precision binary64 (if (<= b 8.5e-289) (/ (- (/ x y) (* x (/ b y))) a) (/ x (* b (* a (+ y (/ y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 8.5e-289) {
tmp = ((x / y) - (x * (b / y))) / a;
} else {
tmp = x / (b * (a * (y + (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-289) then
tmp = ((x / y) - (x * (b / y))) / a
else
tmp = x / (b * (a * (y + (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-289) {
tmp = ((x / y) - (x * (b / y))) / a;
} else {
tmp = x / (b * (a * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 8.5e-289: tmp = ((x / y) - (x * (b / y))) / a else: tmp = x / (b * (a * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 8.5e-289) tmp = Float64(Float64(Float64(x / y) - Float64(x * Float64(b / y))) / a); else tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 8.5e-289) tmp = ((x / y) - (x * (b / y))) / a; else tmp = x / (b * (a * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 8.5e-289], N[(N[(N[(x / y), $MachinePrecision] - N[(x * N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 8.5 \cdot 10^{-289}:\\
\;\;\;\;\frac{\frac{x}{y} - x \cdot \frac{b}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < 8.49999999999999931e-289Initial program 98.6%
associate-/l*98.5%
associate--l+98.5%
exp-sum70.3%
associate-/l*69.5%
*-commutative69.5%
exp-to-pow69.5%
exp-diff59.8%
*-commutative59.8%
exp-to-pow60.5%
sub-neg60.5%
metadata-eval60.5%
Simplified60.5%
Taylor expanded in y around 0 68.7%
associate-/r*67.1%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
Simplified67.6%
Taylor expanded in t around 0 61.1%
Taylor expanded in b around 0 39.9%
Taylor expanded in a around 0 42.3%
+-commutative42.3%
mul-1-neg42.3%
unsub-neg42.3%
*-commutative42.3%
associate-/l*43.8%
Simplified43.8%
if 8.49999999999999931e-289 < b Initial program 99.3%
associate-/l*99.3%
associate--l+99.3%
exp-sum79.6%
associate-/l*77.3%
*-commutative77.3%
exp-to-pow77.4%
exp-diff71.3%
*-commutative71.3%
exp-to-pow71.9%
sub-neg71.9%
metadata-eval71.9%
Simplified71.9%
Taylor expanded in y around 0 68.7%
associate-/r*65.0%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
Simplified65.4%
Taylor expanded in t around 0 60.7%
associate-*r*53.9%
Simplified53.9%
Taylor expanded in b around 0 38.0%
distribute-lft-out38.0%
distribute-rgt1-in38.0%
Simplified38.0%
Taylor expanded in b around inf 37.0%
associate-/l*41.9%
distribute-lft-out41.9%
Simplified41.9%
(FPCore (x y z t a b) :precision binary64 (if (<= b -6.5e-5) (* x (/ b (* y (- a)))) (/ x (* b (* a (+ y (/ y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6.5e-5) {
tmp = x * (b / (y * -a));
} else {
tmp = x / (b * (a * (y + (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 <= (-6.5d-5)) then
tmp = x * (b / (y * -a))
else
tmp = x / (b * (a * (y + (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 <= -6.5e-5) {
tmp = x * (b / (y * -a));
} else {
tmp = x / (b * (a * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -6.5e-5: tmp = x * (b / (y * -a)) else: tmp = x / (b * (a * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -6.5e-5) tmp = Float64(x * Float64(b / Float64(y * Float64(-a)))); else tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -6.5e-5) tmp = x * (b / (y * -a)); else tmp = x / (b * (a * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -6.5e-5], N[(x * N[(b / N[(y * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.5 \cdot 10^{-5}:\\
\;\;\;\;x \cdot \frac{b}{y \cdot \left(-a\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < -6.49999999999999943e-5Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum70.0%
associate-/l*70.0%
*-commutative70.0%
exp-to-pow70.0%
exp-diff52.9%
*-commutative52.9%
exp-to-pow52.9%
sub-neg52.9%
metadata-eval52.9%
Simplified52.9%
Taylor expanded in y around 0 65.9%
associate-/r*63.0%
exp-to-pow63.0%
sub-neg63.0%
metadata-eval63.0%
Simplified63.0%
Taylor expanded in t around 0 76.1%
Taylor expanded in b around 0 39.3%
Taylor expanded in b around inf 39.3%
mul-1-neg39.3%
*-commutative39.3%
*-commutative39.3%
associate-/l*40.7%
*-commutative40.7%
distribute-rgt-neg-out40.7%
*-commutative40.7%
distribute-neg-frac240.7%
distribute-rgt-neg-in40.7%
Simplified40.7%
if -6.49999999999999943e-5 < b Initial program 98.5%
associate-/l*98.5%
associate--l+98.5%
exp-sum77.0%
associate-/l*74.9%
*-commutative74.9%
exp-to-pow74.9%
exp-diff70.6%
*-commutative70.6%
exp-to-pow71.5%
sub-neg71.5%
metadata-eval71.5%
Simplified71.5%
Taylor expanded in y around 0 69.8%
associate-/r*67.1%
exp-to-pow67.8%
sub-neg67.8%
metadata-eval67.8%
Simplified67.8%
Taylor expanded in t around 0 55.2%
associate-*r*50.3%
Simplified50.3%
Taylor expanded in b around 0 38.3%
distribute-lft-out38.9%
distribute-rgt1-in38.9%
Simplified38.9%
Taylor expanded in b around inf 39.1%
associate-/l*42.0%
distribute-lft-out42.1%
Simplified42.1%
(FPCore (x y z t a b) :precision binary64 (* x (/ 1.0 (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
return x * (1.0 / (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 * (1.0d0 / (y * a))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x * (1.0 / (y * a));
}
def code(x, y, z, t, a, b): return x * (1.0 / (y * a))
function code(x, y, z, t, a, b) return Float64(x * Float64(1.0 / Float64(y * a))) end
function tmp = code(x, y, z, t, a, b) tmp = x * (1.0 / (y * a)); end
code[x_, y_, z_, t_, a_, b_] := N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \frac{1}{y \cdot a}
\end{array}
Initial program 98.9%
associate-/l*98.9%
associate--l+98.9%
exp-sum75.1%
associate-/l*73.5%
*-commutative73.5%
exp-to-pow73.6%
exp-diff65.8%
*-commutative65.8%
exp-to-pow66.4%
sub-neg66.4%
metadata-eval66.4%
Simplified66.4%
Taylor expanded in y around 0 68.7%
associate-/r*66.0%
exp-to-pow66.5%
sub-neg66.5%
metadata-eval66.5%
Simplified66.5%
Taylor expanded in t around 0 60.9%
Taylor expanded in b around 0 29.4%
div-inv30.1%
*-commutative30.1%
Applied egg-rr30.1%
(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.9%
associate-/l*98.9%
associate--l+98.9%
exp-sum75.1%
associate-/l*73.5%
*-commutative73.5%
exp-to-pow73.6%
exp-diff65.8%
*-commutative65.8%
exp-to-pow66.4%
sub-neg66.4%
metadata-eval66.4%
Simplified66.4%
Taylor expanded in y around 0 68.7%
associate-/r*66.0%
exp-to-pow66.5%
sub-neg66.5%
metadata-eval66.5%
Simplified66.5%
Taylor expanded in t around 0 60.9%
Taylor expanded in b around 0 29.4%
Final simplification29.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 2024103
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:alt
(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))