
(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 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (+ t -1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t + (-1.0d0)) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t + -1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t + -1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t + -1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t + -1\right) \cdot \log a\right) - b}}{y}
\end{array}
Initial program 97.5%
Final simplification97.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.02e+27) (not (<= y 58000.0))) (/ (* x (exp (- (- (* y (log z)) (log a)) b))) y) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.02e+27) || !(y <= 58000.0)) {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
} else {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-1.02d+27)) .or. (.not. (y <= 58000.0d0))) then
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y
else
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.02e+27) || !(y <= 58000.0)) {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
} else {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.02e+27) or not (y <= 58000.0): tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y else: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.02e+27) || !(y <= 58000.0)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.02e+27) || ~((y <= 58000.0))) tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; else tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.02e+27], N[Not[LessEqual[y, 58000.0]], $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[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.02 \cdot 10^{+27} \lor \neg \left(y \leq 58000\right):\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -1.0199999999999999e27 or 58000 < y Initial program 100.0%
Taylor expanded in t around 0 93.4%
+-commutative93.4%
mul-1-neg93.4%
unsub-neg93.4%
Simplified93.4%
if -1.0199999999999999e27 < y < 58000Initial program 95.7%
Taylor expanded in y around 0 95.3%
Final simplification94.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.05e+28) (not (<= y 57000000.0))) (/ (* x (/ (pow z y) a)) y) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.05e+28) || !(y <= 57000000.0)) {
tmp = (x * (pow(z, y) / a)) / y;
} else {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-1.05d+28)) .or. (.not. (y <= 57000000.0d0))) then
tmp = (x * ((z ** y) / a)) / y
else
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.05e+28) || !(y <= 57000000.0)) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.05e+28) or not (y <= 57000000.0): tmp = (x * (math.pow(z, y) / a)) / y else: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.05e+28) || !(y <= 57000000.0)) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.05e+28) || ~((y <= 57000000.0))) tmp = (x * ((z ^ y) / a)) / y; else tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.05e+28], N[Not[LessEqual[y, 57000000.0]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.05 \cdot 10^{+28} \lor \neg \left(y \leq 57000000\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -1.04999999999999995e28 or 5.7e7 < y Initial program 100.0%
Taylor expanded in t around 0 93.4%
+-commutative93.4%
mul-1-neg93.4%
unsub-neg93.4%
Simplified93.4%
Taylor expanded in b around 0 85.9%
div-exp85.9%
*-commutative85.9%
exp-to-pow85.9%
rem-exp-log85.9%
Simplified85.9%
if -1.04999999999999995e28 < y < 5.7e7Initial program 95.7%
Taylor expanded in y around 0 95.3%
Final simplification91.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -90000.0) (not (<= y 86.0))) (/ (* x (/ (pow z y) a)) y) (* x (/ (/ (pow a t) a) (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -90000.0) || !(y <= 86.0)) {
tmp = (x * (pow(z, y) / a)) / y;
} else {
tmp = x * ((pow(a, t) / a) / (y * exp(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 ((y <= (-90000.0d0)) .or. (.not. (y <= 86.0d0))) then
tmp = (x * ((z ** y) / a)) / y
else
tmp = x * (((a ** t) / a) / (y * exp(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 ((y <= -90000.0) || !(y <= 86.0)) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else {
tmp = x * ((Math.pow(a, t) / a) / (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -90000.0) or not (y <= 86.0): tmp = (x * (math.pow(z, y) / a)) / y else: tmp = x * ((math.pow(a, t) / a) / (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -90000.0) || !(y <= 86.0)) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = Float64(x * Float64(Float64((a ^ t) / a) / Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -90000.0) || ~((y <= 86.0))) tmp = (x * ((z ^ y) / a)) / y; else tmp = x * (((a ^ t) / a) / (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -90000.0], N[Not[LessEqual[y, 86.0]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -90000 \lor \neg \left(y \leq 86\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{\frac{{a}^{t}}{a}}{y \cdot e^{b}}\\
\end{array}
\end{array}
if y < -9e4 or 86 < y Initial program 100.0%
Taylor expanded in t around 0 92.8%
+-commutative92.8%
mul-1-neg92.8%
unsub-neg92.8%
Simplified92.8%
Taylor expanded in b around 0 84.8%
div-exp84.8%
*-commutative84.8%
exp-to-pow84.8%
rem-exp-log84.8%
Simplified84.8%
if -9e4 < y < 86Initial program 95.6%
associate-/l*97.9%
associate--l+97.9%
exp-sum97.9%
associate-/l*97.9%
*-commutative97.9%
exp-to-pow97.9%
exp-diff88.3%
*-commutative88.3%
exp-to-pow89.6%
sub-neg89.6%
metadata-eval89.6%
Simplified89.6%
Taylor expanded in y around 0 87.9%
exp-to-pow89.0%
sub-neg89.0%
metadata-eval89.0%
Simplified89.0%
unpow-prod-up65.3%
unpow-165.3%
Applied egg-rr89.2%
associate-*r/65.3%
*-rgt-identity65.3%
Simplified89.2%
Final simplification87.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x (* a (exp b))) y)) (t_2 (/ (* x (/ (pow z y) a)) y)))
(if (<= y -1.5e+26)
t_2
(if (<= y 1.85e-193)
t_1
(if (<= y 1.1e-148)
(* (/ (pow a t) a) (/ x y))
(if (<= y 1600000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / (a * exp(b))) / y;
double t_2 = (x * (pow(z, y) / a)) / y;
double tmp;
if (y <= -1.5e+26) {
tmp = t_2;
} else if (y <= 1.85e-193) {
tmp = t_1;
} else if (y <= 1.1e-148) {
tmp = (pow(a, t) / a) * (x / y);
} else if (y <= 1600000.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 * exp(b))) / y
t_2 = (x * ((z ** y) / a)) / y
if (y <= (-1.5d+26)) then
tmp = t_2
else if (y <= 1.85d-193) then
tmp = t_1
else if (y <= 1.1d-148) then
tmp = ((a ** t) / a) * (x / y)
else if (y <= 1600000.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.exp(b))) / y;
double t_2 = (x * (Math.pow(z, y) / a)) / y;
double tmp;
if (y <= -1.5e+26) {
tmp = t_2;
} else if (y <= 1.85e-193) {
tmp = t_1;
} else if (y <= 1.1e-148) {
tmp = (Math.pow(a, t) / a) * (x / y);
} else if (y <= 1600000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / (a * math.exp(b))) / y t_2 = (x * (math.pow(z, y) / a)) / y tmp = 0 if y <= -1.5e+26: tmp = t_2 elif y <= 1.85e-193: tmp = t_1 elif y <= 1.1e-148: tmp = (math.pow(a, t) / a) * (x / y) elif y <= 1600000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / Float64(a * exp(b))) / y) t_2 = Float64(Float64(x * Float64((z ^ y) / a)) / y) tmp = 0.0 if (y <= -1.5e+26) tmp = t_2; elseif (y <= 1.85e-193) tmp = t_1; elseif (y <= 1.1e-148) tmp = Float64(Float64((a ^ t) / a) * Float64(x / y)); elseif (y <= 1600000.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 * exp(b))) / y; t_2 = (x * ((z ^ y) / a)) / y; tmp = 0.0; if (y <= -1.5e+26) tmp = t_2; elseif (y <= 1.85e-193) tmp = t_1; elseif (y <= 1.1e-148) tmp = ((a ^ t) / a) * (x / y); elseif (y <= 1600000.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 / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -1.5e+26], t$95$2, If[LessEqual[y, 1.85e-193], t$95$1, If[LessEqual[y, 1.1e-148], N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1600000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{a \cdot e^{b}}}{y}\\
t_2 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -1.5 \cdot 10^{+26}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.85 \cdot 10^{-193}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-148}:\\
\;\;\;\;\frac{{a}^{t}}{a} \cdot \frac{x}{y}\\
\mathbf{elif}\;y \leq 1600000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -1.49999999999999999e26 or 1.6e6 < y Initial program 100.0%
Taylor expanded in t around 0 93.4%
+-commutative93.4%
mul-1-neg93.4%
unsub-neg93.4%
Simplified93.4%
Taylor expanded in b around 0 85.9%
div-exp85.9%
*-commutative85.9%
exp-to-pow85.9%
rem-exp-log85.9%
Simplified85.9%
if -1.49999999999999999e26 < y < 1.8500000000000001e-193 or 1.10000000000000009e-148 < y < 1.6e6Initial program 97.3%
Taylor expanded in t around 0 83.3%
+-commutative83.3%
mul-1-neg83.3%
unsub-neg83.3%
Simplified83.3%
Taylor expanded in y around 0 82.9%
exp-neg82.9%
associate-*r/82.9%
*-rgt-identity82.9%
+-commutative82.9%
exp-sum82.9%
rem-exp-log83.9%
Simplified83.9%
if 1.8500000000000001e-193 < y < 1.10000000000000009e-148Initial program 80.5%
associate-/l*97.7%
associate--l+97.7%
exp-sum97.7%
associate-/l*97.7%
*-commutative97.7%
exp-to-pow97.7%
exp-diff90.6%
*-commutative90.6%
exp-to-pow92.7%
sub-neg92.7%
metadata-eval92.7%
Simplified92.7%
Taylor expanded in y around 0 73.4%
*-commutative73.4%
*-commutative73.4%
times-frac90.6%
exp-to-pow92.7%
sub-neg92.7%
metadata-eval92.7%
Simplified92.7%
Taylor expanded in b around 0 83.8%
exp-to-pow86.0%
sub-neg86.0%
metadata-eval86.0%
Simplified86.0%
unpow-prod-up86.0%
unpow-186.0%
Applied egg-rr86.0%
associate-*r/86.0%
*-rgt-identity86.0%
Simplified86.0%
Final simplification84.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* (exp b) (* y a)))))
(if (<= b -3.7e-67)
t_1
(if (<= b 8.5e+14)
(/ x (* b (* a (+ y (/ y b)))))
(if (<= b 8.6e+135)
t_1
(/
x
(*
a
(+
y
(*
b
(+ y (* b (+ (* 0.16666666666666666 (* y b)) (* y 0.5)))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (exp(b) * (y * a));
double tmp;
if (b <= -3.7e-67) {
tmp = t_1;
} else if (b <= 8.5e+14) {
tmp = x / (b * (a * (y + (y / b))));
} else if (b <= 8.6e+135) {
tmp = t_1;
} else {
tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666 * (y * b)) + (y * 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) :: t_1
real(8) :: tmp
t_1 = x / (exp(b) * (y * a))
if (b <= (-3.7d-67)) then
tmp = t_1
else if (b <= 8.5d+14) then
tmp = x / (b * (a * (y + (y / b))))
else if (b <= 8.6d+135) then
tmp = t_1
else
tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666d0 * (y * b)) + (y * 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 t_1 = x / (Math.exp(b) * (y * a));
double tmp;
if (b <= -3.7e-67) {
tmp = t_1;
} else if (b <= 8.5e+14) {
tmp = x / (b * (a * (y + (y / b))));
} else if (b <= 8.6e+135) {
tmp = t_1;
} else {
tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666 * (y * b)) + (y * 0.5)))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (math.exp(b) * (y * a)) tmp = 0 if b <= -3.7e-67: tmp = t_1 elif b <= 8.5e+14: tmp = x / (b * (a * (y + (y / b)))) elif b <= 8.6e+135: tmp = t_1 else: tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666 * (y * b)) + (y * 0.5))))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(exp(b) * Float64(y * a))) tmp = 0.0 if (b <= -3.7e-67) tmp = t_1; elseif (b <= 8.5e+14) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); elseif (b <= 8.6e+135) tmp = t_1; else tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(y + Float64(b * Float64(Float64(0.16666666666666666 * Float64(y * b)) + Float64(y * 0.5)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (exp(b) * (y * a)); tmp = 0.0; if (b <= -3.7e-67) tmp = t_1; elseif (b <= 8.5e+14) tmp = x / (b * (a * (y + (y / b)))); elseif (b <= 8.6e+135) tmp = t_1; else tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666 * (y * b)) + (y * 0.5))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(N[Exp[b], $MachinePrecision] * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.7e-67], t$95$1, If[LessEqual[b, 8.5e+14], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.6e+135], t$95$1, N[(x / N[(a * N[(y + N[(b * N[(y + N[(b * N[(N[(0.16666666666666666 * N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(y * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{e^{b} \cdot \left(y \cdot a\right)}\\
\mathbf{if}\;b \leq -3.7 \cdot 10^{-67}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{+14}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{elif}\;b \leq 8.6 \cdot 10^{+135}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(y + b \cdot \left(0.16666666666666666 \cdot \left(y \cdot b\right) + y \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -3.6999999999999999e-67 or 8.5e14 < b < 8.59999999999999945e135Initial program 99.8%
Taylor expanded in t around 0 88.4%
+-commutative88.4%
mul-1-neg88.4%
unsub-neg88.4%
Simplified88.4%
Taylor expanded in y around 0 76.1%
associate-/l*75.2%
exp-neg75.2%
exp-sum75.2%
rem-exp-log75.3%
associate-/l/75.3%
associate-/r*75.3%
*-commutative75.3%
associate-/r*75.3%
associate-/l*75.3%
*-rgt-identity75.3%
associate-*r*71.4%
*-commutative71.4%
Simplified71.4%
if -3.6999999999999999e-67 < b < 8.5e14Initial program 94.6%
Taylor expanded in t around 0 77.4%
+-commutative77.4%
mul-1-neg77.4%
unsub-neg77.4%
Simplified77.4%
Taylor expanded in y around 0 39.6%
associate-/l*43.3%
exp-neg43.3%
exp-sum43.3%
rem-exp-log44.7%
associate-/l/44.7%
associate-/r*44.6%
*-commutative44.6%
associate-/r*45.4%
associate-/l*45.5%
*-rgt-identity45.5%
associate-*r*45.5%
*-commutative45.5%
Simplified45.5%
Taylor expanded in b around 0 42.9%
distribute-lft-out45.5%
distribute-rgt1-in45.5%
Simplified45.5%
Taylor expanded in b around inf 41.0%
associate-/l*50.2%
distribute-lft-out55.4%
Simplified55.4%
if 8.59999999999999945e135 < b Initial program 100.0%
Taylor expanded in t around 0 100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
Taylor expanded in y around 0 89.1%
associate-/l*89.1%
exp-neg89.1%
exp-sum89.1%
rem-exp-log89.1%
associate-/l/89.1%
associate-/r*89.1%
*-commutative89.1%
associate-/r*89.1%
associate-/l*89.1%
*-rgt-identity89.1%
associate-*r*66.8%
*-commutative66.8%
Simplified66.8%
Taylor expanded in b around 0 72.8%
Taylor expanded in a around 0 86.4%
Final simplification66.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.82e+59) (not (<= b 4.1e+43))) (/ (/ x (* a (exp b))) y) (* x (/ (pow z y) (* y a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.82e+59) || !(b <= 4.1e+43)) {
tmp = (x / (a * exp(b))) / y;
} else {
tmp = x * (pow(z, y) / (y * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-1.82d+59)) .or. (.not. (b <= 4.1d+43))) then
tmp = (x / (a * exp(b))) / y
else
tmp = x * ((z ** y) / (y * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.82e+59) || !(b <= 4.1e+43)) {
tmp = (x / (a * Math.exp(b))) / y;
} else {
tmp = x * (Math.pow(z, y) / (y * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.82e+59) or not (b <= 4.1e+43): tmp = (x / (a * math.exp(b))) / y else: tmp = x * (math.pow(z, y) / (y * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.82e+59) || !(b <= 4.1e+43)) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); else tmp = Float64(x * Float64((z ^ y) / Float64(y * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -1.82e+59) || ~((b <= 4.1e+43))) tmp = (x / (a * exp(b))) / y; else tmp = x * ((z ^ y) / (y * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.82e+59], N[Not[LessEqual[b, 4.1e+43]], $MachinePrecision]], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[Power[z, y], $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.82 \cdot 10^{+59} \lor \neg \left(b \leq 4.1 \cdot 10^{+43}\right):\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{z}^{y}}{y \cdot a}\\
\end{array}
\end{array}
if b < -1.82000000000000008e59 or 4.1e43 < b Initial program 100.0%
Taylor expanded in t around 0 95.4%
+-commutative95.4%
mul-1-neg95.4%
unsub-neg95.4%
Simplified95.4%
Taylor expanded in y around 0 87.2%
exp-neg87.2%
associate-*r/87.2%
*-rgt-identity87.2%
+-commutative87.2%
exp-sum87.2%
rem-exp-log87.2%
Simplified87.2%
if -1.82000000000000008e59 < b < 4.1e43Initial program 95.6%
associate-/l*97.9%
associate--l+97.9%
exp-sum84.4%
associate-/l*83.7%
*-commutative83.7%
exp-to-pow83.7%
exp-diff80.3%
*-commutative80.3%
exp-to-pow81.6%
sub-neg81.6%
metadata-eval81.6%
Simplified81.6%
Taylor expanded in b around 0 82.5%
associate-/l*82.5%
exp-to-pow83.7%
sub-neg83.7%
metadata-eval83.7%
Simplified83.7%
Taylor expanded in t around 0 74.4%
*-commutative74.4%
Simplified74.4%
Final simplification79.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.5e-75) (not (<= b 8.5e+14))) (/ (/ x (* a (exp b))) y) (/ x (* b (* a (+ y (/ y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.5e-75) || !(b <= 8.5e+14)) {
tmp = (x / (a * exp(b))) / y;
} 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 <= (-1.5d-75)) .or. (.not. (b <= 8.5d+14))) then
tmp = (x / (a * exp(b))) / y
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 <= -1.5e-75) || !(b <= 8.5e+14)) {
tmp = (x / (a * Math.exp(b))) / y;
} else {
tmp = x / (b * (a * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.5e-75) or not (b <= 8.5e+14): tmp = (x / (a * math.exp(b))) / y else: tmp = x / (b * (a * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.5e-75) || !(b <= 8.5e+14)) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); 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 <= -1.5e-75) || ~((b <= 8.5e+14))) tmp = (x / (a * exp(b))) / y; else tmp = x / (b * (a * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.5e-75], N[Not[LessEqual[b, 8.5e+14]], $MachinePrecision]], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $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 -1.5 \cdot 10^{-75} \lor \neg \left(b \leq 8.5 \cdot 10^{+14}\right):\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < -1.4999999999999999e-75 or 8.5e14 < b Initial program 99.8%
Taylor expanded in t around 0 91.4%
+-commutative91.4%
mul-1-neg91.4%
unsub-neg91.4%
Simplified91.4%
Taylor expanded in y around 0 78.9%
exp-neg78.9%
associate-*r/78.9%
*-rgt-identity78.9%
+-commutative78.9%
exp-sum78.9%
rem-exp-log79.0%
Simplified79.0%
if -1.4999999999999999e-75 < b < 8.5e14Initial program 94.6%
Taylor expanded in t around 0 77.2%
+-commutative77.2%
mul-1-neg77.2%
unsub-neg77.2%
Simplified77.2%
Taylor expanded in y around 0 39.8%
associate-/l*43.6%
exp-neg43.6%
exp-sum43.6%
rem-exp-log45.0%
associate-/l/45.0%
associate-/r*45.0%
*-commutative45.0%
associate-/r*45.7%
associate-/l*45.8%
*-rgt-identity45.8%
associate-*r*45.8%
*-commutative45.8%
Simplified45.8%
Taylor expanded in b around 0 43.2%
distribute-lft-out45.8%
distribute-rgt1-in45.8%
Simplified45.8%
Taylor expanded in b around inf 41.3%
associate-/l*50.6%
distribute-lft-out55.8%
Simplified55.8%
Final simplification68.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -2.7e-62)
(- t_1 (* b (- t_1 (* b (- t_1 (/ (* x b) (* y a)))))))
(if (<= b 3.2e+93)
(/ x (* b (* a (+ y (/ y b)))))
(/
x
(*
y
(+
a
(*
b
(+ a (* b (+ (* 0.16666666666666666 (* a b)) (* a 0.5))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -2.7e-62) {
tmp = t_1 - (b * (t_1 - (b * (t_1 - ((x * b) / (y * a))))));
} else if (b <= 3.2e+93) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (y * (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 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) :: t_1
real(8) :: tmp
t_1 = x / (y * a)
if (b <= (-2.7d-62)) then
tmp = t_1 - (b * (t_1 - (b * (t_1 - ((x * b) / (y * a))))))
else if (b <= 3.2d+93) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (y * (a + (b * (a + (b * ((0.16666666666666666d0 * (a * b)) + (a * 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 t_1 = x / (y * a);
double tmp;
if (b <= -2.7e-62) {
tmp = t_1 - (b * (t_1 - (b * (t_1 - ((x * b) / (y * a))))));
} else if (b <= 3.2e+93) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (y * (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5)))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -2.7e-62: tmp = t_1 - (b * (t_1 - (b * (t_1 - ((x * b) / (y * a)))))) elif b <= 3.2e+93: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (y * (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5))))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -2.7e-62) tmp = Float64(t_1 - Float64(b * Float64(t_1 - Float64(b * Float64(t_1 - Float64(Float64(x * b) / Float64(y * a))))))); elseif (b <= 3.2e+93) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(y * Float64(a + Float64(b * Float64(a + Float64(b * Float64(Float64(0.16666666666666666 * Float64(a * b)) + Float64(a * 0.5)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -2.7e-62) tmp = t_1 - (b * (t_1 - (b * (t_1 - ((x * b) / (y * a)))))); elseif (b <= 3.2e+93) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (y * (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5))))))); 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, -2.7e-62], N[(t$95$1 - N[(b * N[(t$95$1 - N[(b * N[(t$95$1 - N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.2e+93], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a + N[(b * N[(a + N[(b * N[(N[(0.16666666666666666 * N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(a * 0.5), $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 -2.7 \cdot 10^{-62}:\\
\;\;\;\;t\_1 - b \cdot \left(t\_1 - b \cdot \left(t\_1 - \frac{x \cdot b}{y \cdot a}\right)\right)\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{+93}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a + b \cdot \left(a + b \cdot \left(0.16666666666666666 \cdot \left(a \cdot b\right) + a \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -2.70000000000000019e-62Initial program 99.9%
Taylor expanded in t around 0 93.4%
+-commutative93.4%
mul-1-neg93.4%
unsub-neg93.4%
Simplified93.4%
Taylor expanded in y around 0 79.1%
associate-/l*77.9%
exp-neg77.9%
exp-sum77.9%
rem-exp-log77.9%
associate-/l/77.9%
associate-/r*77.9%
*-commutative77.9%
associate-/r*77.9%
associate-/l*77.9%
*-rgt-identity77.9%
associate-*r*72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in b around 0 14.1%
distribute-lft-out14.2%
distribute-rgt1-in14.2%
Simplified14.2%
Taylor expanded in b around 0 62.8%
if -2.70000000000000019e-62 < b < 3.2000000000000001e93Initial program 95.2%
Taylor expanded in t around 0 75.9%
+-commutative75.9%
mul-1-neg75.9%
unsub-neg75.9%
Simplified75.9%
Taylor expanded in y around 0 41.7%
associate-/l*44.9%
exp-neg44.9%
exp-sum44.9%
rem-exp-log46.1%
associate-/l/46.1%
associate-/r*46.1%
*-commutative46.1%
associate-/r*46.8%
associate-/l*46.9%
*-rgt-identity46.9%
associate-*r*46.9%
*-commutative46.9%
Simplified46.9%
Taylor expanded in b around 0 42.5%
distribute-lft-out44.7%
distribute-rgt1-in44.7%
Simplified44.7%
Taylor expanded in b around inf 40.9%
associate-/l*48.8%
distribute-lft-out53.3%
Simplified53.3%
if 3.2000000000000001e93 < b Initial program 100.0%
Taylor expanded in t around 0 97.9%
+-commutative97.9%
mul-1-neg97.9%
unsub-neg97.9%
Simplified97.9%
Taylor expanded in y around 0 89.3%
associate-/l*89.3%
exp-neg89.3%
exp-sum89.3%
rem-exp-log89.3%
associate-/l/89.3%
associate-/r*89.3%
*-commutative89.3%
associate-/r*89.3%
associate-/l*89.3%
*-rgt-identity89.3%
associate-*r*71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in b around 0 70.2%
Taylor expanded in y around 0 80.8%
Final simplification61.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -1.55e-62)
(- t_1 (* b (- t_1 (/ (* x b) (* y a)))))
(if (<= b 3.8e+93)
(/ x (* b (* a (+ y (/ y b)))))
(/
x
(*
a
(+
y
(*
b
(+ y (* b (+ (* 0.16666666666666666 (* y b)) (* y 0.5))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -1.55e-62) {
tmp = t_1 - (b * (t_1 - ((x * b) / (y * a))));
} else if (b <= 3.8e+93) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666 * (y * b)) + (y * 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) :: t_1
real(8) :: tmp
t_1 = x / (y * a)
if (b <= (-1.55d-62)) then
tmp = t_1 - (b * (t_1 - ((x * b) / (y * a))))
else if (b <= 3.8d+93) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666d0 * (y * b)) + (y * 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 t_1 = x / (y * a);
double tmp;
if (b <= -1.55e-62) {
tmp = t_1 - (b * (t_1 - ((x * b) / (y * a))));
} else if (b <= 3.8e+93) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666 * (y * b)) + (y * 0.5)))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -1.55e-62: tmp = t_1 - (b * (t_1 - ((x * b) / (y * a)))) elif b <= 3.8e+93: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666 * (y * b)) + (y * 0.5))))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -1.55e-62) tmp = Float64(t_1 - Float64(b * Float64(t_1 - Float64(Float64(x * b) / Float64(y * a))))); elseif (b <= 3.8e+93) 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(b * Float64(Float64(0.16666666666666666 * Float64(y * b)) + Float64(y * 0.5)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -1.55e-62) tmp = t_1 - (b * (t_1 - ((x * b) / (y * a)))); elseif (b <= 3.8e+93) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666 * (y * b)) + (y * 0.5))))))); 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, -1.55e-62], N[(t$95$1 - N[(b * N[(t$95$1 - N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.8e+93], 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[(b * N[(N[(0.16666666666666666 * N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(y * 0.5), $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 -1.55 \cdot 10^{-62}:\\
\;\;\;\;t\_1 - b \cdot \left(t\_1 - \frac{x \cdot b}{y \cdot a}\right)\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{+93}:\\
\;\;\;\;\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 + b \cdot \left(0.16666666666666666 \cdot \left(y \cdot b\right) + y \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -1.55e-62Initial program 99.9%
Taylor expanded in t around 0 93.4%
+-commutative93.4%
mul-1-neg93.4%
unsub-neg93.4%
Simplified93.4%
Taylor expanded in y around 0 79.1%
associate-/l*77.9%
exp-neg77.9%
exp-sum77.9%
rem-exp-log77.9%
associate-/l/77.9%
associate-/r*77.9%
*-commutative77.9%
associate-/r*77.9%
associate-/l*77.9%
*-rgt-identity77.9%
associate-*r*72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in b around 0 14.1%
distribute-lft-out14.2%
distribute-rgt1-in14.2%
Simplified14.2%
Taylor expanded in b around 0 57.7%
if -1.55e-62 < b < 3.7999999999999998e93Initial program 95.2%
Taylor expanded in t around 0 75.9%
+-commutative75.9%
mul-1-neg75.9%
unsub-neg75.9%
Simplified75.9%
Taylor expanded in y around 0 41.7%
associate-/l*44.9%
exp-neg44.9%
exp-sum44.9%
rem-exp-log46.1%
associate-/l/46.1%
associate-/r*46.1%
*-commutative46.1%
associate-/r*46.8%
associate-/l*46.9%
*-rgt-identity46.9%
associate-*r*46.9%
*-commutative46.9%
Simplified46.9%
Taylor expanded in b around 0 42.5%
distribute-lft-out44.7%
distribute-rgt1-in44.7%
Simplified44.7%
Taylor expanded in b around inf 40.9%
associate-/l*48.8%
distribute-lft-out53.3%
Simplified53.3%
if 3.7999999999999998e93 < b Initial program 100.0%
Taylor expanded in t around 0 97.9%
+-commutative97.9%
mul-1-neg97.9%
unsub-neg97.9%
Simplified97.9%
Taylor expanded in y around 0 89.3%
associate-/l*89.3%
exp-neg89.3%
exp-sum89.3%
rem-exp-log89.3%
associate-/l/89.3%
associate-/r*89.3%
*-commutative89.3%
associate-/r*89.3%
associate-/l*89.3%
*-rgt-identity89.3%
associate-*r*71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in b around 0 70.2%
Taylor expanded in a around 0 80.8%
Final simplification59.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -1.55e-62)
(- t_1 (* b (- t_1 (/ (* x b) (* y a)))))
(if (<= b 3.2e+93)
(/ x (* b (* a (+ y (/ y b)))))
(/
x
(*
y
(+
a
(*
b
(+ a (* b (+ (* 0.16666666666666666 (* a b)) (* a 0.5))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -1.55e-62) {
tmp = t_1 - (b * (t_1 - ((x * b) / (y * a))));
} else if (b <= 3.2e+93) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (y * (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 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) :: t_1
real(8) :: tmp
t_1 = x / (y * a)
if (b <= (-1.55d-62)) then
tmp = t_1 - (b * (t_1 - ((x * b) / (y * a))))
else if (b <= 3.2d+93) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (y * (a + (b * (a + (b * ((0.16666666666666666d0 * (a * b)) + (a * 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 t_1 = x / (y * a);
double tmp;
if (b <= -1.55e-62) {
tmp = t_1 - (b * (t_1 - ((x * b) / (y * a))));
} else if (b <= 3.2e+93) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (y * (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5)))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -1.55e-62: tmp = t_1 - (b * (t_1 - ((x * b) / (y * a)))) elif b <= 3.2e+93: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (y * (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5))))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -1.55e-62) tmp = Float64(t_1 - Float64(b * Float64(t_1 - Float64(Float64(x * b) / Float64(y * a))))); elseif (b <= 3.2e+93) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(y * Float64(a + Float64(b * Float64(a + Float64(b * Float64(Float64(0.16666666666666666 * Float64(a * b)) + Float64(a * 0.5)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -1.55e-62) tmp = t_1 - (b * (t_1 - ((x * b) / (y * a)))); elseif (b <= 3.2e+93) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (y * (a + (b * (a + (b * ((0.16666666666666666 * (a * b)) + (a * 0.5))))))); 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, -1.55e-62], N[(t$95$1 - N[(b * N[(t$95$1 - N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.2e+93], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a + N[(b * N[(a + N[(b * N[(N[(0.16666666666666666 * N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(a * 0.5), $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 -1.55 \cdot 10^{-62}:\\
\;\;\;\;t\_1 - b \cdot \left(t\_1 - \frac{x \cdot b}{y \cdot a}\right)\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{+93}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a + b \cdot \left(a + b \cdot \left(0.16666666666666666 \cdot \left(a \cdot b\right) + a \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -1.55e-62Initial program 99.9%
Taylor expanded in t around 0 93.4%
+-commutative93.4%
mul-1-neg93.4%
unsub-neg93.4%
Simplified93.4%
Taylor expanded in y around 0 79.1%
associate-/l*77.9%
exp-neg77.9%
exp-sum77.9%
rem-exp-log77.9%
associate-/l/77.9%
associate-/r*77.9%
*-commutative77.9%
associate-/r*77.9%
associate-/l*77.9%
*-rgt-identity77.9%
associate-*r*72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in b around 0 14.1%
distribute-lft-out14.2%
distribute-rgt1-in14.2%
Simplified14.2%
Taylor expanded in b around 0 57.7%
if -1.55e-62 < b < 3.2000000000000001e93Initial program 95.2%
Taylor expanded in t around 0 75.9%
+-commutative75.9%
mul-1-neg75.9%
unsub-neg75.9%
Simplified75.9%
Taylor expanded in y around 0 41.7%
associate-/l*44.9%
exp-neg44.9%
exp-sum44.9%
rem-exp-log46.1%
associate-/l/46.1%
associate-/r*46.1%
*-commutative46.1%
associate-/r*46.8%
associate-/l*46.9%
*-rgt-identity46.9%
associate-*r*46.9%
*-commutative46.9%
Simplified46.9%
Taylor expanded in b around 0 42.5%
distribute-lft-out44.7%
distribute-rgt1-in44.7%
Simplified44.7%
Taylor expanded in b around inf 40.9%
associate-/l*48.8%
distribute-lft-out53.3%
Simplified53.3%
if 3.2000000000000001e93 < b Initial program 100.0%
Taylor expanded in t around 0 97.9%
+-commutative97.9%
mul-1-neg97.9%
unsub-neg97.9%
Simplified97.9%
Taylor expanded in y around 0 89.3%
associate-/l*89.3%
exp-neg89.3%
exp-sum89.3%
rem-exp-log89.3%
associate-/l/89.3%
associate-/r*89.3%
*-commutative89.3%
associate-/r*89.3%
associate-/l*89.3%
*-rgt-identity89.3%
associate-*r*71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in b around 0 70.2%
Taylor expanded in y around 0 80.8%
Final simplification59.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -8e-91)
(- (/ x (* y a)) (/ (* x b) (* y a)))
(if (<= b 3.2e+93)
(/ x (* b (* a (+ y (/ y b)))))
(/ x (+ (* y a) (* b (+ (* y a) (* 0.5 (* a (* y b))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -8e-91) {
tmp = (x / (y * a)) - ((x * b) / (y * a));
} else if (b <= 3.2e+93) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / ((y * a) + (b * ((y * a) + (0.5 * (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 <= (-8d-91)) then
tmp = (x / (y * a)) - ((x * b) / (y * a))
else if (b <= 3.2d+93) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / ((y * a) + (b * ((y * a) + (0.5d0 * (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 <= -8e-91) {
tmp = (x / (y * a)) - ((x * b) / (y * a));
} else if (b <= 3.2e+93) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / ((y * a) + (b * ((y * a) + (0.5 * (a * (y * b))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -8e-91: tmp = (x / (y * a)) - ((x * b) / (y * a)) elif b <= 3.2e+93: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / ((y * a) + (b * ((y * a) + (0.5 * (a * (y * b)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -8e-91) tmp = Float64(Float64(x / Float64(y * a)) - Float64(Float64(x * b) / Float64(y * a))); elseif (b <= 3.2e+93) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(Float64(y * a) + Float64(b * Float64(Float64(y * a) + Float64(0.5 * Float64(a * Float64(y * b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -8e-91) tmp = (x / (y * a)) - ((x * b) / (y * a)); elseif (b <= 3.2e+93) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / ((y * a) + (b * ((y * a) + (0.5 * (a * (y * b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -8e-91], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.2e+93], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(N[(y * a), $MachinePrecision] + N[(b * N[(N[(y * a), $MachinePrecision] + N[(0.5 * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8 \cdot 10^{-91}:\\
\;\;\;\;\frac{x}{y \cdot a} - \frac{x \cdot b}{y \cdot a}\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{+93}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a + b \cdot \left(y \cdot a + 0.5 \cdot \left(a \cdot \left(y \cdot b\right)\right)\right)}\\
\end{array}
\end{array}
if b < -8.00000000000000018e-91Initial program 99.7%
Taylor expanded in t around 0 90.5%
+-commutative90.5%
mul-1-neg90.5%
unsub-neg90.5%
Simplified90.5%
Taylor expanded in y around 0 74.5%
associate-/l*73.4%
exp-neg73.4%
exp-sum73.4%
rem-exp-log73.5%
associate-/l/73.5%
associate-/r*73.5%
*-commutative73.5%
associate-/r*74.6%
associate-/l*74.6%
*-rgt-identity74.6%
associate-*r*69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in b around 0 44.2%
if -8.00000000000000018e-91 < b < 3.2000000000000001e93Initial program 95.0%
Taylor expanded in t around 0 76.6%
+-commutative76.6%
mul-1-neg76.6%
unsub-neg76.6%
Simplified76.6%
Taylor expanded in y around 0 42.2%
associate-/l*45.6%
exp-neg45.6%
exp-sum45.6%
rem-exp-log46.9%
associate-/l/46.9%
associate-/r*46.9%
*-commutative46.9%
associate-/r*46.9%
associate-/l*46.9%
*-rgt-identity46.9%
associate-*r*46.9%
*-commutative46.9%
Simplified46.9%
Taylor expanded in b around 0 42.2%
distribute-lft-out44.6%
distribute-rgt1-in44.6%
Simplified44.6%
Taylor expanded in b around inf 41.3%
associate-/l*49.8%
distribute-lft-out53.8%
Simplified53.8%
if 3.2000000000000001e93 < b Initial program 100.0%
Taylor expanded in t around 0 97.9%
+-commutative97.9%
mul-1-neg97.9%
unsub-neg97.9%
Simplified97.9%
Taylor expanded in y around 0 89.3%
associate-/l*89.3%
exp-neg89.3%
exp-sum89.3%
rem-exp-log89.3%
associate-/l/89.3%
associate-/r*89.3%
*-commutative89.3%
associate-/r*89.3%
associate-/l*89.3%
*-rgt-identity89.3%
associate-*r*71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in b around 0 53.7%
Final simplification50.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -2.5e-62)
(- t_1 (* b (- t_1 (/ (* x b) (* y a)))))
(if (<= b 3.2e+93)
(/ x (* b (* a (+ y (/ y b)))))
(/ x (+ (* y a) (* b (+ (* y a) (* 0.5 (* a (* y b)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -2.5e-62) {
tmp = t_1 - (b * (t_1 - ((x * b) / (y * a))));
} else if (b <= 3.2e+93) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / ((y * a) + (b * ((y * a) + (0.5 * (a * (y * b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (y * a)
if (b <= (-2.5d-62)) then
tmp = t_1 - (b * (t_1 - ((x * b) / (y * a))))
else if (b <= 3.2d+93) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / ((y * a) + (b * ((y * a) + (0.5d0 * (a * (y * b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -2.5e-62) {
tmp = t_1 - (b * (t_1 - ((x * b) / (y * a))));
} else if (b <= 3.2e+93) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / ((y * a) + (b * ((y * a) + (0.5 * (a * (y * b))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -2.5e-62: tmp = t_1 - (b * (t_1 - ((x * b) / (y * a)))) elif b <= 3.2e+93: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / ((y * a) + (b * ((y * a) + (0.5 * (a * (y * b)))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -2.5e-62) tmp = Float64(t_1 - Float64(b * Float64(t_1 - Float64(Float64(x * b) / Float64(y * a))))); elseif (b <= 3.2e+93) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(Float64(y * a) + Float64(b * Float64(Float64(y * a) + Float64(0.5 * Float64(a * Float64(y * b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -2.5e-62) tmp = t_1 - (b * (t_1 - ((x * b) / (y * a)))); elseif (b <= 3.2e+93) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / ((y * a) + (b * ((y * a) + (0.5 * (a * (y * b)))))); 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, -2.5e-62], N[(t$95$1 - N[(b * N[(t$95$1 - N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.2e+93], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(N[(y * a), $MachinePrecision] + N[(b * N[(N[(y * a), $MachinePrecision] + N[(0.5 * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot a}\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{-62}:\\
\;\;\;\;t\_1 - b \cdot \left(t\_1 - \frac{x \cdot b}{y \cdot a}\right)\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{+93}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a + b \cdot \left(y \cdot a + 0.5 \cdot \left(a \cdot \left(y \cdot b\right)\right)\right)}\\
\end{array}
\end{array}
if b < -2.5000000000000001e-62Initial program 99.9%
Taylor expanded in t around 0 93.4%
+-commutative93.4%
mul-1-neg93.4%
unsub-neg93.4%
Simplified93.4%
Taylor expanded in y around 0 79.1%
associate-/l*77.9%
exp-neg77.9%
exp-sum77.9%
rem-exp-log77.9%
associate-/l/77.9%
associate-/r*77.9%
*-commutative77.9%
associate-/r*77.9%
associate-/l*77.9%
*-rgt-identity77.9%
associate-*r*72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in b around 0 14.1%
distribute-lft-out14.2%
distribute-rgt1-in14.2%
Simplified14.2%
Taylor expanded in b around 0 57.7%
if -2.5000000000000001e-62 < b < 3.2000000000000001e93Initial program 95.2%
Taylor expanded in t around 0 75.9%
+-commutative75.9%
mul-1-neg75.9%
unsub-neg75.9%
Simplified75.9%
Taylor expanded in y around 0 41.7%
associate-/l*44.9%
exp-neg44.9%
exp-sum44.9%
rem-exp-log46.1%
associate-/l/46.1%
associate-/r*46.1%
*-commutative46.1%
associate-/r*46.8%
associate-/l*46.9%
*-rgt-identity46.9%
associate-*r*46.9%
*-commutative46.9%
Simplified46.9%
Taylor expanded in b around 0 42.5%
distribute-lft-out44.7%
distribute-rgt1-in44.7%
Simplified44.7%
Taylor expanded in b around inf 40.9%
associate-/l*48.8%
distribute-lft-out53.3%
Simplified53.3%
if 3.2000000000000001e93 < b Initial program 100.0%
Taylor expanded in t around 0 97.9%
+-commutative97.9%
mul-1-neg97.9%
unsub-neg97.9%
Simplified97.9%
Taylor expanded in y around 0 89.3%
associate-/l*89.3%
exp-neg89.3%
exp-sum89.3%
rem-exp-log89.3%
associate-/l/89.3%
associate-/r*89.3%
*-commutative89.3%
associate-/r*89.3%
associate-/l*89.3%
*-rgt-identity89.3%
associate-*r*71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in b around 0 53.7%
Final simplification54.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2e-62) (* (/ x (* y a)) (- (- -1.0) b)) (if (<= b 4e+117) (/ x (* b (* a (+ y (/ y b))))) (/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2e-62) {
tmp = (x / (y * a)) * (-(-1.0) - b);
} else if (b <= 4e+117) {
tmp = x / (b * (a * (y + (y / b))));
} 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 <= (-2d-62)) then
tmp = (x / (y * a)) * (-(-1.0d0) - b)
else if (b <= 4d+117) then
tmp = x / (b * (a * (y + (y / b))))
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 <= -2e-62) {
tmp = (x / (y * a)) * (-(-1.0) - b);
} else if (b <= 4e+117) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2e-62: tmp = (x / (y * a)) * (-(-1.0) - b) elif b <= 4e+117: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2e-62) tmp = Float64(Float64(x / Float64(y * a)) * Float64(Float64(-(-1.0)) - b)); elseif (b <= 4e+117) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); 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 <= -2e-62) tmp = (x / (y * a)) * (-(-1.0) - b); elseif (b <= 4e+117) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2e-62], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] * N[((--1.0) - b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4e+117], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2 \cdot 10^{-62}:\\
\;\;\;\;\frac{x}{y \cdot a} \cdot \left(\left(--1\right) - b\right)\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+117}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -2.0000000000000001e-62Initial program 99.9%
Taylor expanded in t around 0 93.4%
+-commutative93.4%
mul-1-neg93.4%
unsub-neg93.4%
Simplified93.4%
Taylor expanded in y around 0 79.1%
associate-/l*77.9%
exp-neg77.9%
exp-sum77.9%
rem-exp-log77.9%
associate-/l/77.9%
associate-/r*77.9%
*-commutative77.9%
associate-/r*77.9%
associate-/l*77.9%
*-rgt-identity77.9%
associate-*r*72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in b around 0 14.1%
distribute-lft-out14.2%
distribute-rgt1-in14.2%
Simplified14.2%
Taylor expanded in b around 0 43.9%
mul-1-neg43.9%
remove-double-neg43.9%
distribute-neg-out43.9%
associate-/l*41.5%
mul-1-neg41.5%
distribute-rgt-out41.5%
*-commutative41.5%
Simplified41.5%
if -2.0000000000000001e-62 < b < 4.0000000000000002e117Initial program 95.5%
Taylor expanded in t around 0 76.6%
+-commutative76.6%
mul-1-neg76.6%
unsub-neg76.6%
Simplified76.6%
Taylor expanded in y around 0 44.3%
associate-/l*47.3%
exp-neg47.4%
exp-sum47.4%
rem-exp-log48.5%
associate-/l/48.5%
associate-/r*48.5%
*-commutative48.5%
associate-/r*49.1%
associate-/l*49.2%
*-rgt-identity49.2%
associate-*r*49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in b around 0 42.3%
distribute-lft-out44.4%
distribute-rgt1-in44.4%
Simplified44.4%
Taylor expanded in b around inf 40.8%
associate-/l*48.3%
distribute-lft-out52.5%
Simplified52.5%
if 4.0000000000000002e117 < b Initial program 100.0%
Taylor expanded in t around 0 100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
Taylor expanded in y around 0 89.6%
associate-/l*89.6%
exp-neg89.6%
exp-sum89.6%
rem-exp-log89.6%
associate-/l/89.6%
associate-/r*89.6%
*-commutative89.6%
associate-/r*89.6%
associate-/l*89.6%
*-rgt-identity89.6%
associate-*r*68.6%
*-commutative68.6%
Simplified68.6%
Taylor expanded in b around 0 33.6%
distribute-lft-out33.6%
distribute-rgt1-in33.6%
Simplified33.6%
Taylor expanded in b around inf 33.6%
associate-*r*38.8%
*-commutative38.8%
Simplified38.8%
Final simplification47.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x a) y)))
(if (<= b -2e-62)
(- t_1 (* b t_1))
(if (<= b 1.2e+118)
(/ x (* b (* a (+ y (/ y b)))))
(/ x (* y (* a b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / a) / y;
double tmp;
if (b <= -2e-62) {
tmp = t_1 - (b * t_1);
} else if (b <= 1.2e+118) {
tmp = x / (b * (a * (y + (y / b))));
} 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) :: t_1
real(8) :: tmp
t_1 = (x / a) / y
if (b <= (-2d-62)) then
tmp = t_1 - (b * t_1)
else if (b <= 1.2d+118) then
tmp = x / (b * (a * (y + (y / b))))
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 t_1 = (x / a) / y;
double tmp;
if (b <= -2e-62) {
tmp = t_1 - (b * t_1);
} else if (b <= 1.2e+118) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / a) / y tmp = 0 if b <= -2e-62: tmp = t_1 - (b * t_1) elif b <= 1.2e+118: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / a) / y) tmp = 0.0 if (b <= -2e-62) tmp = Float64(t_1 - Float64(b * t_1)); elseif (b <= 1.2e+118) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / a) / y; tmp = 0.0; if (b <= -2e-62) tmp = t_1 - (b * t_1); elseif (b <= 1.2e+118) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -2e-62], N[(t$95$1 - N[(b * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.2e+118], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{a}}{y}\\
\mathbf{if}\;b \leq -2 \cdot 10^{-62}:\\
\;\;\;\;t\_1 - b \cdot t\_1\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{+118}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -2.0000000000000001e-62Initial program 99.9%
Taylor expanded in t around 0 93.4%
+-commutative93.4%
mul-1-neg93.4%
unsub-neg93.4%
Simplified93.4%
Taylor expanded in y around 0 79.1%
associate-/l*77.9%
exp-neg77.9%
exp-sum77.9%
rem-exp-log77.9%
associate-/l/77.9%
associate-/r*77.9%
*-commutative77.9%
associate-/r*77.9%
associate-/l*77.9%
*-rgt-identity77.9%
associate-*r*72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in b around 0 43.9%
+-commutative43.9%
mul-1-neg43.9%
unsub-neg43.9%
associate-/r*45.1%
associate-/l*42.6%
associate-/r*42.7%
Simplified42.7%
if -2.0000000000000001e-62 < b < 1.2e118Initial program 95.5%
Taylor expanded in t around 0 76.6%
+-commutative76.6%
mul-1-neg76.6%
unsub-neg76.6%
Simplified76.6%
Taylor expanded in y around 0 44.3%
associate-/l*47.3%
exp-neg47.4%
exp-sum47.4%
rem-exp-log48.5%
associate-/l/48.5%
associate-/r*48.5%
*-commutative48.5%
associate-/r*49.1%
associate-/l*49.2%
*-rgt-identity49.2%
associate-*r*49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in b around 0 42.3%
distribute-lft-out44.4%
distribute-rgt1-in44.4%
Simplified44.4%
Taylor expanded in b around inf 40.8%
associate-/l*48.3%
distribute-lft-out52.5%
Simplified52.5%
if 1.2e118 < b Initial program 100.0%
Taylor expanded in t around 0 100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
Taylor expanded in y around 0 89.6%
associate-/l*89.6%
exp-neg89.6%
exp-sum89.6%
rem-exp-log89.6%
associate-/l/89.6%
associate-/r*89.6%
*-commutative89.6%
associate-/r*89.6%
associate-/l*89.6%
*-rgt-identity89.6%
associate-*r*68.6%
*-commutative68.6%
Simplified68.6%
Taylor expanded in b around 0 33.6%
distribute-lft-out33.6%
distribute-rgt1-in33.6%
Simplified33.6%
Taylor expanded in b around inf 33.6%
associate-*r*38.8%
*-commutative38.8%
Simplified38.8%
Final simplification47.6%
(FPCore (x y z t a b) :precision binary64 (if (<= b -3.7e-91) (- (/ x (* y a)) (/ (* x b) (* y a))) (if (<= b 4e+117) (/ x (* b (* a (+ y (/ y b))))) (/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.7e-91) {
tmp = (x / (y * a)) - ((x * b) / (y * a));
} else if (b <= 4e+117) {
tmp = x / (b * (a * (y + (y / b))));
} 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 <= (-3.7d-91)) then
tmp = (x / (y * a)) - ((x * b) / (y * a))
else if (b <= 4d+117) then
tmp = x / (b * (a * (y + (y / b))))
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 <= -3.7e-91) {
tmp = (x / (y * a)) - ((x * b) / (y * a));
} else if (b <= 4e+117) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3.7e-91: tmp = (x / (y * a)) - ((x * b) / (y * a)) elif b <= 4e+117: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3.7e-91) tmp = Float64(Float64(x / Float64(y * a)) - Float64(Float64(x * b) / Float64(y * a))); elseif (b <= 4e+117) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); 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 <= -3.7e-91) tmp = (x / (y * a)) - ((x * b) / (y * a)); elseif (b <= 4e+117) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.7e-91], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4e+117], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.7 \cdot 10^{-91}:\\
\;\;\;\;\frac{x}{y \cdot a} - \frac{x \cdot b}{y \cdot a}\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+117}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -3.7000000000000002e-91Initial program 99.7%
Taylor expanded in t around 0 90.5%
+-commutative90.5%
mul-1-neg90.5%
unsub-neg90.5%
Simplified90.5%
Taylor expanded in y around 0 74.5%
associate-/l*73.4%
exp-neg73.4%
exp-sum73.4%
rem-exp-log73.5%
associate-/l/73.5%
associate-/r*73.5%
*-commutative73.5%
associate-/r*74.6%
associate-/l*74.6%
*-rgt-identity74.6%
associate-*r*69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in b around 0 44.2%
if -3.7000000000000002e-91 < b < 4.0000000000000002e117Initial program 95.3%
Taylor expanded in t around 0 77.3%
+-commutative77.3%
mul-1-neg77.3%
unsub-neg77.3%
Simplified77.3%
Taylor expanded in y around 0 44.9%
associate-/l*48.2%
exp-neg48.2%
exp-sum48.2%
rem-exp-log49.3%
associate-/l/49.3%
associate-/r*49.3%
*-commutative49.3%
associate-/r*49.3%
associate-/l*49.4%
*-rgt-identity49.4%
associate-*r*49.4%
*-commutative49.4%
Simplified49.4%
Taylor expanded in b around 0 42.1%
distribute-lft-out44.3%
distribute-rgt1-in44.3%
Simplified44.3%
Taylor expanded in b around inf 41.2%
associate-/l*49.2%
distribute-lft-out52.9%
Simplified52.9%
if 4.0000000000000002e117 < b Initial program 100.0%
Taylor expanded in t around 0 100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
Taylor expanded in y around 0 89.6%
associate-/l*89.6%
exp-neg89.6%
exp-sum89.6%
rem-exp-log89.6%
associate-/l/89.6%
associate-/r*89.6%
*-commutative89.6%
associate-/r*89.6%
associate-/l*89.6%
*-rgt-identity89.6%
associate-*r*68.6%
*-commutative68.6%
Simplified68.6%
Taylor expanded in b around 0 33.6%
distribute-lft-out33.6%
distribute-rgt1-in33.6%
Simplified33.6%
Taylor expanded in b around inf 33.6%
associate-*r*38.8%
*-commutative38.8%
Simplified38.8%
Final simplification47.9%
(FPCore (x y z t a b) :precision binary64 (if (<= b 3.4e-18) (* (/ x (* y a)) (- (- -1.0) b)) (/ x (* y (* a b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 3.4e-18) {
tmp = (x / (y * a)) * (-(-1.0) - b);
} 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 <= 3.4d-18) then
tmp = (x / (y * a)) * (-(-1.0d0) - b)
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 <= 3.4e-18) {
tmp = (x / (y * a)) * (-(-1.0) - b);
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 3.4e-18: tmp = (x / (y * a)) * (-(-1.0) - b) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 3.4e-18) tmp = Float64(Float64(x / Float64(y * a)) * Float64(Float64(-(-1.0)) - b)); 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 <= 3.4e-18) tmp = (x / (y * a)) * (-(-1.0) - b); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 3.4e-18], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] * N[((--1.0) - b), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 3.4 \cdot 10^{-18}:\\
\;\;\;\;\frac{x}{y \cdot a} \cdot \left(\left(--1\right) - b\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < 3.40000000000000001e-18Initial program 96.6%
Taylor expanded in t around 0 82.5%
+-commutative82.5%
mul-1-neg82.5%
unsub-neg82.5%
Simplified82.5%
Taylor expanded in y around 0 56.4%
associate-/l*58.2%
exp-neg58.2%
exp-sum58.2%
rem-exp-log59.1%
associate-/l/59.1%
associate-/r*59.1%
*-commutative59.1%
associate-/r*59.5%
associate-/l*59.6%
*-rgt-identity59.6%
associate-*r*57.5%
*-commutative57.5%
Simplified57.5%
Taylor expanded in b around 0 32.6%
distribute-lft-out34.2%
distribute-rgt1-in34.2%
Simplified34.2%
Taylor expanded in b around 0 42.8%
mul-1-neg42.8%
remove-double-neg42.8%
distribute-neg-out42.8%
associate-/l*40.2%
mul-1-neg40.2%
distribute-rgt-out45.1%
*-commutative45.1%
Simplified45.1%
if 3.40000000000000001e-18 < b Initial program 100.0%
Taylor expanded in t around 0 92.4%
+-commutative92.4%
mul-1-neg92.4%
unsub-neg92.4%
Simplified92.4%
Taylor expanded in y around 0 75.9%
associate-/l*75.9%
exp-neg75.9%
exp-sum75.9%
rem-exp-log75.9%
associate-/l/75.9%
associate-/r*75.9%
*-commutative75.9%
associate-/r*75.9%
associate-/l*75.9%
*-rgt-identity75.9%
associate-*r*63.5%
*-commutative63.5%
Simplified63.5%
Taylor expanded in b around 0 32.8%
distribute-lft-out32.8%
distribute-rgt1-in32.8%
Simplified32.8%
Taylor expanded in b around inf 32.8%
associate-*r*35.8%
*-commutative35.8%
Simplified35.8%
Final simplification42.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b 4.1e-181) (* (/ x y) (/ 1.0 a)) (/ x (* y (* a (+ 1.0 b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 4.1e-181) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (y * (a * (1.0 + b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 4.1d-181) then
tmp = (x / y) * (1.0d0 / a)
else
tmp = x / (y * (a * (1.0d0 + b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 4.1e-181) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (y * (a * (1.0 + b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 4.1e-181: tmp = (x / y) * (1.0 / a) else: tmp = x / (y * (a * (1.0 + b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 4.1e-181) tmp = Float64(Float64(x / y) * Float64(1.0 / a)); else tmp = Float64(x / Float64(y * Float64(a * Float64(1.0 + b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 4.1e-181) tmp = (x / y) * (1.0 / a); else tmp = x / (y * (a * (1.0 + b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 4.1e-181], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * N[(1.0 + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 4.1 \cdot 10^{-181}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot \left(1 + b\right)\right)}\\
\end{array}
\end{array}
if b < 4.1000000000000001e-181Initial program 97.5%
associate-/l*99.0%
associate--l+99.0%
exp-sum83.6%
associate-/l*83.0%
*-commutative83.0%
exp-to-pow83.0%
exp-diff75.9%
*-commutative75.9%
exp-to-pow76.8%
sub-neg76.8%
metadata-eval76.8%
Simplified76.8%
Taylor expanded in y around 0 67.1%
*-commutative67.1%
*-commutative67.1%
times-frac66.8%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
Simplified67.6%
Taylor expanded in b around 0 60.3%
exp-to-pow61.1%
sub-neg61.1%
metadata-eval61.1%
Simplified61.1%
Taylor expanded in t around 0 42.7%
if 4.1000000000000001e-181 < b Initial program 97.5%
Taylor expanded in t around 0 86.1%
+-commutative86.1%
mul-1-neg86.1%
unsub-neg86.1%
Simplified86.1%
Taylor expanded in y around 0 62.4%
associate-/l*64.3%
exp-neg64.3%
exp-sum64.3%
rem-exp-log64.7%
associate-/l/64.7%
associate-/r*64.7%
*-commutative64.7%
associate-/r*64.7%
associate-/l*64.8%
*-rgt-identity64.8%
associate-*r*56.8%
*-commutative56.8%
Simplified56.8%
Taylor expanded in b around 0 36.8%
distribute-lft-out36.8%
distribute-rgt1-in36.8%
Simplified36.8%
Taylor expanded in x around 0 36.8%
*-commutative36.8%
associate-*l*38.7%
Simplified38.7%
Final simplification41.2%
(FPCore (x y z t a b) :precision binary64 (if (<= y 2.2e-256) (/ x (* y a)) (* (/ x y) (/ 1.0 a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 2.2e-256) {
tmp = x / (y * a);
} else {
tmp = (x / y) * (1.0 / a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= 2.2d-256) then
tmp = x / (y * a)
else
tmp = (x / y) * (1.0d0 / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 2.2e-256) {
tmp = x / (y * a);
} else {
tmp = (x / y) * (1.0 / a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= 2.2e-256: tmp = x / (y * a) else: tmp = (x / y) * (1.0 / a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= 2.2e-256) tmp = Float64(x / Float64(y * a)); else tmp = Float64(Float64(x / y) * Float64(1.0 / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= 2.2e-256) tmp = x / (y * a); else tmp = (x / y) * (1.0 / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, 2.2e-256], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.2 \cdot 10^{-256}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\end{array}
\end{array}
if y < 2.2000000000000001e-256Initial program 98.2%
Taylor expanded in t around 0 85.5%
+-commutative85.5%
mul-1-neg85.5%
unsub-neg85.5%
Simplified85.5%
Taylor expanded in y around 0 63.4%
associate-/l*64.2%
exp-neg64.2%
exp-sum64.2%
rem-exp-log64.9%
associate-/l/64.9%
associate-/r*64.9%
*-commutative64.9%
associate-/r*65.6%
associate-/l*65.6%
*-rgt-identity65.6%
associate-*r*60.0%
*-commutative60.0%
Simplified60.0%
Taylor expanded in b around 0 41.9%
if 2.2000000000000001e-256 < y Initial program 96.5%
associate-/l*99.4%
associate--l+99.4%
exp-sum82.6%
associate-/l*82.6%
*-commutative82.6%
exp-to-pow82.6%
exp-diff77.3%
*-commutative77.3%
exp-to-pow77.8%
sub-neg77.8%
metadata-eval77.8%
Simplified77.8%
Taylor expanded in y around 0 64.3%
*-commutative64.3%
*-commutative64.3%
times-frac66.2%
exp-to-pow66.8%
sub-neg66.8%
metadata-eval66.8%
Simplified66.8%
Taylor expanded in b around 0 52.8%
exp-to-pow53.3%
sub-neg53.3%
metadata-eval53.3%
Simplified53.3%
Taylor expanded in t around 0 35.7%
Final simplification39.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b 6e-35) (* (/ x y) (/ 1.0 a)) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 6e-35) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 6d-35) then
tmp = (x / y) * (1.0d0 / a)
else
tmp = x / (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 6e-35) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 6e-35: tmp = (x / y) * (1.0 / a) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 6e-35) tmp = Float64(Float64(x / y) * Float64(1.0 / a)); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 6e-35) tmp = (x / y) * (1.0 / a); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 6e-35], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 6 \cdot 10^{-35}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 5.99999999999999978e-35Initial program 96.6%
associate-/l*98.5%
associate--l+98.5%
exp-sum83.8%
associate-/l*83.3%
*-commutative83.3%
exp-to-pow83.3%
exp-diff77.4%
*-commutative77.4%
exp-to-pow78.3%
sub-neg78.3%
metadata-eval78.3%
Simplified78.3%
Taylor expanded in y around 0 67.4%
*-commutative67.4%
*-commutative67.4%
times-frac66.7%
exp-to-pow67.5%
sub-neg67.5%
metadata-eval67.5%
Simplified67.5%
Taylor expanded in b around 0 61.2%
exp-to-pow62.0%
sub-neg62.0%
metadata-eval62.0%
Simplified62.0%
Taylor expanded in t around 0 42.9%
if 5.99999999999999978e-35 < b Initial program 99.7%
Taylor expanded in t around 0 90.6%
+-commutative90.6%
mul-1-neg90.6%
unsub-neg90.6%
Simplified90.6%
Taylor expanded in y around 0 70.7%
associate-/l*72.0%
exp-neg72.0%
exp-sum72.0%
rem-exp-log72.0%
associate-/l/72.0%
associate-/r*72.0%
*-commutative72.0%
associate-/r*72.0%
associate-/l*72.0%
*-rgt-identity72.0%
associate-*r*60.7%
*-commutative60.7%
Simplified60.7%
Taylor expanded in b around 0 32.6%
distribute-lft-out32.6%
distribute-rgt1-in32.6%
Simplified32.6%
Taylor expanded in b around inf 31.7%
*-commutative31.7%
Simplified31.7%
Final simplification39.8%
(FPCore (x y z t a b) :precision binary64 (if (<= b 4e-106) (* (/ x y) (/ 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 <= 4e-106) {
tmp = (x / y) * (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 <= 4d-106) then
tmp = (x / y) * (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 <= 4e-106) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 4e-106: tmp = (x / y) * (1.0 / a) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 4e-106) tmp = Float64(Float64(x / y) * Float64(1.0 / 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 <= 4e-106) tmp = (x / y) * (1.0 / a); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 4e-106], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 4 \cdot 10^{-106}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < 3.99999999999999976e-106Initial program 96.4%
associate-/l*98.9%
associate--l+98.9%
exp-sum84.1%
associate-/l*83.5%
*-commutative83.5%
exp-to-pow83.5%
exp-diff77.0%
*-commutative77.0%
exp-to-pow78.0%
sub-neg78.0%
metadata-eval78.0%
Simplified78.0%
Taylor expanded in y around 0 67.3%
*-commutative67.3%
*-commutative67.3%
times-frac67.0%
exp-to-pow67.8%
sub-neg67.8%
metadata-eval67.8%
Simplified67.8%
Taylor expanded in b around 0 61.0%
exp-to-pow61.8%
sub-neg61.8%
metadata-eval61.8%
Simplified61.8%
Taylor expanded in t around 0 42.6%
if 3.99999999999999976e-106 < b Initial program 99.5%
Taylor expanded in t around 0 89.8%
+-commutative89.8%
mul-1-neg89.8%
unsub-neg89.8%
Simplified89.8%
Taylor expanded in y around 0 66.9%
associate-/l*67.2%
exp-neg67.2%
exp-sum67.2%
rem-exp-log67.3%
associate-/l/67.3%
associate-/r*67.3%
*-commutative67.3%
associate-/r*67.3%
associate-/l*67.3%
*-rgt-identity67.3%
associate-*r*58.1%
*-commutative58.1%
Simplified58.1%
Taylor expanded in b around 0 35.1%
distribute-lft-out35.1%
distribute-rgt1-in35.1%
Simplified35.1%
Taylor expanded in b around inf 33.3%
associate-*r*36.7%
*-commutative36.7%
Simplified36.7%
Final simplification40.6%
(FPCore (x y z t a b) :precision binary64 (/ x (* y a)))
double code(double x, double y, double z, double t, double a, double b) {
return x / (y * a);
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / (y * a)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (y * a);
}
def code(x, y, z, t, a, b): return x / (y * a)
function code(x, y, z, t, a, b) return Float64(x / Float64(y * a)) end
function tmp = code(x, y, z, t, a, b) tmp = x / (y * a); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y \cdot a}
\end{array}
Initial program 97.5%
Taylor expanded in t around 0 85.0%
+-commutative85.0%
mul-1-neg85.0%
unsub-neg85.0%
Simplified85.0%
Taylor expanded in y around 0 61.4%
associate-/l*62.7%
exp-neg62.7%
exp-sum62.7%
rem-exp-log63.3%
associate-/l/63.3%
associate-/r*63.3%
*-commutative63.3%
associate-/r*63.7%
associate-/l*63.7%
*-rgt-identity63.7%
associate-*r*59.0%
*-commutative59.0%
Simplified59.0%
Taylor expanded in b around 0 35.4%
Final simplification35.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 2024071
(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))