
(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 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (+ t -1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t + (-1.0d0)) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t + -1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t + -1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t + -1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t + -1\right) \cdot \log a\right) - b}}{y}
\end{array}
Initial program 98.2%
Final simplification98.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (+ t -1.0) -4.0) (not (<= (+ t -1.0) 200.0))) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y) (/ (* x (exp (- (- (* y (log z)) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((t + -1.0) <= -4.0) || !((t + -1.0) <= 200.0)) {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
} else {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (((t + (-1.0d0)) <= (-4.0d0)) .or. (.not. ((t + (-1.0d0)) <= 200.0d0))) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
else
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((t + -1.0) <= -4.0) || !((t + -1.0) <= 200.0)) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
} else {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((t + -1.0) <= -4.0) or not ((t + -1.0) <= 200.0): tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y else: tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(t + -1.0) <= -4.0) || !(Float64(t + -1.0) <= 200.0)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (((t + -1.0) <= -4.0) || ~(((t + -1.0) <= 200.0))) tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; else tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(t + -1.0), $MachinePrecision], -4.0], N[Not[LessEqual[N[(t + -1.0), $MachinePrecision], 200.0]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t + -1 \leq -4 \lor \neg \left(t + -1 \leq 200\right):\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\end{array}
\end{array}
if (-.f64 t #s(literal 1 binary64)) < -4 or 200 < (-.f64 t #s(literal 1 binary64)) Initial program 99.3%
Taylor expanded in y around 0 91.3%
if -4 < (-.f64 t #s(literal 1 binary64)) < 200Initial program 97.3%
Taylor expanded in t around 0 97.1%
+-commutative97.1%
mul-1-neg97.1%
unsub-neg97.1%
Simplified97.1%
Final simplification94.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -6.8e+96) (not (<= y 4.2e+141))) (/ (* 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 <= -6.8e+96) || !(y <= 4.2e+141)) {
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 <= (-6.8d+96)) .or. (.not. (y <= 4.2d+141))) 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 <= -6.8e+96) || !(y <= 4.2e+141)) {
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 <= -6.8e+96) or not (y <= 4.2e+141): 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 <= -6.8e+96) || !(y <= 4.2e+141)) 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 <= -6.8e+96) || ~((y <= 4.2e+141))) 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, -6.8e+96], N[Not[LessEqual[y, 4.2e+141]], $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 -6.8 \cdot 10^{+96} \lor \neg \left(y \leq 4.2 \cdot 10^{+141}\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 < -6.8000000000000002e96 or 4.1999999999999997e141 < y Initial program 100.0%
Taylor expanded in t around 0 97.1%
+-commutative97.1%
mul-1-neg97.1%
unsub-neg97.1%
Simplified97.1%
Taylor expanded in b around 0 92.9%
div-exp92.9%
*-commutative92.9%
exp-to-pow92.9%
rem-exp-log92.9%
Simplified92.9%
if -6.8000000000000002e96 < y < 4.1999999999999997e141Initial program 97.6%
Taylor expanded in y around 0 92.1%
Final simplification92.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -9.5e+59) (not (<= y 9.5e+46))) (/ (* x (/ (pow z y) a)) y) (/ (* x (/ (pow a (+ t -1.0)) (exp b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -9.5e+59) || !(y <= 9.5e+46)) {
tmp = (x * (pow(z, y) / a)) / y;
} else {
tmp = (x * (pow(a, (t + -1.0)) / exp(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 <= (-9.5d+59)) .or. (.not. (y <= 9.5d+46))) then
tmp = (x * ((z ** y) / a)) / y
else
tmp = (x * ((a ** (t + (-1.0d0))) / exp(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 <= -9.5e+59) || !(y <= 9.5e+46)) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else {
tmp = (x * (Math.pow(a, (t + -1.0)) / Math.exp(b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -9.5e+59) or not (y <= 9.5e+46): tmp = (x * (math.pow(z, y) / a)) / y else: tmp = (x * (math.pow(a, (t + -1.0)) / math.exp(b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -9.5e+59) || !(y <= 9.5e+46)) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = Float64(Float64(x * Float64((a ^ Float64(t + -1.0)) / exp(b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -9.5e+59) || ~((y <= 9.5e+46))) tmp = (x * ((z ^ y) / a)) / y; else tmp = (x * ((a ^ (t + -1.0)) / exp(b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -9.5e+59], N[Not[LessEqual[y, 9.5e+46]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.5 \cdot 10^{+59} \lor \neg \left(y \leq 9.5 \cdot 10^{+46}\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\\
\end{array}
\end{array}
if y < -9.50000000000000023e59 or 9.5000000000000008e46 < y Initial program 100.0%
Taylor expanded in t around 0 92.3%
+-commutative92.3%
mul-1-neg92.3%
unsub-neg92.3%
Simplified92.3%
Taylor expanded in b around 0 84.6%
div-exp84.6%
*-commutative84.6%
exp-to-pow84.6%
rem-exp-log84.6%
Simplified84.6%
if -9.50000000000000023e59 < y < 9.5000000000000008e46Initial program 97.0%
Taylor expanded in y around 0 95.4%
div-exp83.8%
exp-to-pow84.8%
sub-neg84.8%
metadata-eval84.8%
Simplified84.8%
Final simplification84.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -2.1e+60) (not (<= y 1.2e+47))) (/ (* x (/ (pow z y) a)) y) (* x (/ (pow a (+ t -1.0)) (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.1e+60) || !(y <= 1.2e+47)) {
tmp = (x * (pow(z, y) / a)) / y;
} else {
tmp = x * (pow(a, (t + -1.0)) / (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 <= (-2.1d+60)) .or. (.not. (y <= 1.2d+47))) then
tmp = (x * ((z ** y) / a)) / y
else
tmp = x * ((a ** (t + (-1.0d0))) / (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 <= -2.1e+60) || !(y <= 1.2e+47)) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else {
tmp = x * (Math.pow(a, (t + -1.0)) / (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -2.1e+60) or not (y <= 1.2e+47): tmp = (x * (math.pow(z, y) / a)) / y else: tmp = x * (math.pow(a, (t + -1.0)) / (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -2.1e+60) || !(y <= 1.2e+47)) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) / Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -2.1e+60) || ~((y <= 1.2e+47))) tmp = (x * ((z ^ y) / a)) / y; else tmp = x * ((a ^ (t + -1.0)) / (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -2.1e+60], N[Not[LessEqual[y, 1.2e+47]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.1 \cdot 10^{+60} \lor \neg \left(y \leq 1.2 \cdot 10^{+47}\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y \cdot e^{b}}\\
\end{array}
\end{array}
if y < -2.1000000000000001e60 or 1.20000000000000009e47 < y Initial program 100.0%
Taylor expanded in t around 0 92.3%
+-commutative92.3%
mul-1-neg92.3%
unsub-neg92.3%
Simplified92.3%
Taylor expanded in b around 0 84.6%
div-exp84.6%
*-commutative84.6%
exp-to-pow84.6%
rem-exp-log84.6%
Simplified84.6%
if -2.1000000000000001e60 < y < 1.20000000000000009e47Initial program 97.0%
associate-/l*95.9%
associate--l+95.9%
exp-sum89.4%
associate-/l*89.4%
*-commutative89.4%
exp-to-pow89.4%
exp-diff78.3%
*-commutative78.3%
exp-to-pow79.3%
sub-neg79.3%
metadata-eval79.3%
Simplified79.3%
Taylor expanded in y around 0 83.1%
exp-to-pow84.1%
sub-neg84.1%
metadata-eval84.1%
associate-*r/83.0%
Simplified83.0%
Final simplification83.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (exp (- b))) y)))
(if (<= b -170000000000.0)
t_1
(if (<= b -1.95e-272)
(/ (* x (/ (pow z y) a)) y)
(if (<= b 1.55e+44) (/ (* x (/ (pow a t) a)) y) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * exp(-b)) / y;
double tmp;
if (b <= -170000000000.0) {
tmp = t_1;
} else if (b <= -1.95e-272) {
tmp = (x * (pow(z, y) / a)) / y;
} else if (b <= 1.55e+44) {
tmp = (x * (pow(a, t) / a)) / y;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x * exp(-b)) / y
if (b <= (-170000000000.0d0)) then
tmp = t_1
else if (b <= (-1.95d-272)) then
tmp = (x * ((z ** y) / a)) / y
else if (b <= 1.55d+44) then
tmp = (x * ((a ** t) / a)) / y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * Math.exp(-b)) / y;
double tmp;
if (b <= -170000000000.0) {
tmp = t_1;
} else if (b <= -1.95e-272) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else if (b <= 1.55e+44) {
tmp = (x * (Math.pow(a, t) / a)) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * math.exp(-b)) / y tmp = 0 if b <= -170000000000.0: tmp = t_1 elif b <= -1.95e-272: tmp = (x * (math.pow(z, y) / a)) / y elif b <= 1.55e+44: tmp = (x * (math.pow(a, t) / a)) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * exp(Float64(-b))) / y) tmp = 0.0 if (b <= -170000000000.0) tmp = t_1; elseif (b <= -1.95e-272) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); elseif (b <= 1.55e+44) tmp = Float64(Float64(x * Float64((a ^ t) / a)) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * exp(-b)) / y; tmp = 0.0; if (b <= -170000000000.0) tmp = t_1; elseif (b <= -1.95e-272) tmp = (x * ((z ^ y) / a)) / y; elseif (b <= 1.55e+44) tmp = (x * ((a ^ t) / a)) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[Exp[(-b)], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -170000000000.0], t$95$1, If[LessEqual[b, -1.95e-272], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 1.55e+44], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot e^{-b}}{y}\\
\mathbf{if}\;b \leq -170000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.95 \cdot 10^{-272}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{elif}\;b \leq 1.55 \cdot 10^{+44}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.7e11 or 1.54999999999999998e44 < b Initial program 100.0%
Taylor expanded in t around 0 93.0%
+-commutative93.0%
mul-1-neg93.0%
unsub-neg93.0%
Simplified93.0%
Taylor expanded in b around inf 86.9%
neg-mul-186.9%
Simplified86.9%
if -1.7e11 < b < -1.9499999999999999e-272Initial program 97.6%
Taylor expanded in t around 0 80.3%
+-commutative80.3%
mul-1-neg80.3%
unsub-neg80.3%
Simplified80.3%
Taylor expanded in b around 0 80.3%
div-exp80.3%
*-commutative80.3%
exp-to-pow80.3%
rem-exp-log82.1%
Simplified82.1%
if -1.9499999999999999e-272 < b < 1.54999999999999998e44Initial program 96.2%
Taylor expanded in y around 0 74.8%
Taylor expanded in b around 0 73.7%
Simplified74.3%
unpow-prod-up74.5%
inv-pow74.5%
Applied egg-rr74.5%
associate-*l/74.5%
*-lft-identity74.5%
Simplified74.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (exp (- b))) y)))
(if (<= b -0.75)
t_1
(if (<= b -3.7e-34)
(/ (/ x a) y)
(if (<= b 5.2e+51) (/ (* x (pow a t)) y) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * exp(-b)) / y;
double tmp;
if (b <= -0.75) {
tmp = t_1;
} else if (b <= -3.7e-34) {
tmp = (x / a) / y;
} else if (b <= 5.2e+51) {
tmp = (x * pow(a, t)) / y;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x * exp(-b)) / y
if (b <= (-0.75d0)) then
tmp = t_1
else if (b <= (-3.7d-34)) then
tmp = (x / a) / y
else if (b <= 5.2d+51) then
tmp = (x * (a ** t)) / y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * Math.exp(-b)) / y;
double tmp;
if (b <= -0.75) {
tmp = t_1;
} else if (b <= -3.7e-34) {
tmp = (x / a) / y;
} else if (b <= 5.2e+51) {
tmp = (x * Math.pow(a, t)) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * math.exp(-b)) / y tmp = 0 if b <= -0.75: tmp = t_1 elif b <= -3.7e-34: tmp = (x / a) / y elif b <= 5.2e+51: tmp = (x * math.pow(a, t)) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * exp(Float64(-b))) / y) tmp = 0.0 if (b <= -0.75) tmp = t_1; elseif (b <= -3.7e-34) tmp = Float64(Float64(x / a) / y); elseif (b <= 5.2e+51) tmp = Float64(Float64(x * (a ^ t)) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * exp(-b)) / y; tmp = 0.0; if (b <= -0.75) tmp = t_1; elseif (b <= -3.7e-34) tmp = (x / a) / y; elseif (b <= 5.2e+51) tmp = (x * (a ^ t)) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[Exp[(-b)], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -0.75], t$95$1, If[LessEqual[b, -3.7e-34], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 5.2e+51], N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot e^{-b}}{y}\\
\mathbf{if}\;b \leq -0.75:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -3.7 \cdot 10^{-34}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{+51}:\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -0.75 or 5.2000000000000002e51 < b Initial program 100.0%
Taylor expanded in t around 0 93.3%
+-commutative93.3%
mul-1-neg93.3%
unsub-neg93.3%
Simplified93.3%
Taylor expanded in b around inf 85.7%
neg-mul-185.7%
Simplified85.7%
if -0.75 < b < -3.69999999999999988e-34Initial program 93.1%
Taylor expanded in y around 0 79.1%
Taylor expanded in b around 0 79.1%
Simplified72.2%
Taylor expanded in t around 0 71.6%
associate-/r*85.5%
Simplified85.5%
if -3.69999999999999988e-34 < b < 5.2000000000000002e51Initial program 96.9%
Taylor expanded in y around 0 73.8%
Taylor expanded in b around 0 73.0%
Simplified73.9%
Taylor expanded in t around inf 57.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -0.82) (not (<= b 2.8e+44))) (/ (* x (exp (- b))) y) (/ (* x (/ (pow a t) a)) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -0.82) || !(b <= 2.8e+44)) {
tmp = (x * exp(-b)) / y;
} else {
tmp = (x * (pow(a, t) / a)) / 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 <= (-0.82d0)) .or. (.not. (b <= 2.8d+44))) then
tmp = (x * exp(-b)) / y
else
tmp = (x * ((a ** t) / a)) / 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 <= -0.82) || !(b <= 2.8e+44)) {
tmp = (x * Math.exp(-b)) / y;
} else {
tmp = (x * (Math.pow(a, t) / a)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -0.82) or not (b <= 2.8e+44): tmp = (x * math.exp(-b)) / y else: tmp = (x * (math.pow(a, t) / a)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -0.82) || !(b <= 2.8e+44)) tmp = Float64(Float64(x * exp(Float64(-b))) / y); else tmp = Float64(Float64(x * Float64((a ^ t) / a)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -0.82) || ~((b <= 2.8e+44))) tmp = (x * exp(-b)) / y; else tmp = (x * ((a ^ t) / a)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -0.82], N[Not[LessEqual[b, 2.8e+44]], $MachinePrecision]], N[(N[(x * N[Exp[(-b)], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.82 \lor \neg \left(b \leq 2.8 \cdot 10^{+44}\right):\\
\;\;\;\;\frac{x \cdot e^{-b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\
\end{array}
\end{array}
if b < -0.819999999999999951 or 2.8000000000000001e44 < b Initial program 100.0%
Taylor expanded in t around 0 93.3%
+-commutative93.3%
mul-1-neg93.3%
unsub-neg93.3%
Simplified93.3%
Taylor expanded in b around inf 85.7%
neg-mul-185.7%
Simplified85.7%
if -0.819999999999999951 < b < 2.8000000000000001e44Initial program 96.7%
Taylor expanded in y around 0 74.0%
Taylor expanded in b around 0 73.3%
Simplified74.5%
unpow-prod-up74.6%
inv-pow74.6%
Applied egg-rr74.6%
associate-*l/74.6%
*-lft-identity74.6%
Simplified74.6%
Final simplification79.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -0.82) (not (<= b 1.5e+52))) (/ (* x (exp (- b))) y) (* x (/ (pow a (+ t -1.0)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -0.82) || !(b <= 1.5e+52)) {
tmp = (x * exp(-b)) / y;
} else {
tmp = x * (pow(a, (t + -1.0)) / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-0.82d0)) .or. (.not. (b <= 1.5d+52))) then
tmp = (x * exp(-b)) / y
else
tmp = x * ((a ** (t + (-1.0d0))) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -0.82) || !(b <= 1.5e+52)) {
tmp = (x * Math.exp(-b)) / y;
} else {
tmp = x * (Math.pow(a, (t + -1.0)) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -0.82) or not (b <= 1.5e+52): tmp = (x * math.exp(-b)) / y else: tmp = x * (math.pow(a, (t + -1.0)) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -0.82) || !(b <= 1.5e+52)) tmp = Float64(Float64(x * exp(Float64(-b))) / y); else tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -0.82) || ~((b <= 1.5e+52))) tmp = (x * exp(-b)) / y; else tmp = x * ((a ^ (t + -1.0)) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -0.82], N[Not[LessEqual[b, 1.5e+52]], $MachinePrecision]], N[(N[(x * N[Exp[(-b)], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.82 \lor \neg \left(b \leq 1.5 \cdot 10^{+52}\right):\\
\;\;\;\;\frac{x \cdot e^{-b}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\end{array}
\end{array}
if b < -0.819999999999999951 or 1.5e52 < b Initial program 100.0%
Taylor expanded in t around 0 93.3%
+-commutative93.3%
mul-1-neg93.3%
unsub-neg93.3%
Simplified93.3%
Taylor expanded in b around inf 85.7%
neg-mul-185.7%
Simplified85.7%
if -0.819999999999999951 < b < 1.5e52Initial program 96.7%
Taylor expanded in y around 0 74.0%
Taylor expanded in b around 0 73.3%
Simplified71.8%
Final simplification78.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -6e+121) (not (<= t 6.5e-6))) (/ (* x (pow a t)) y) (/ x (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -6e+121) || !(t <= 6.5e-6)) {
tmp = (x * pow(a, t)) / y;
} else {
tmp = x / (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 ((t <= (-6d+121)) .or. (.not. (t <= 6.5d-6))) then
tmp = (x * (a ** t)) / y
else
tmp = x / (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 ((t <= -6e+121) || !(t <= 6.5e-6)) {
tmp = (x * Math.pow(a, t)) / y;
} else {
tmp = x / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -6e+121) or not (t <= 6.5e-6): tmp = (x * math.pow(a, t)) / y else: tmp = x / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -6e+121) || !(t <= 6.5e-6)) tmp = Float64(Float64(x * (a ^ t)) / y); else tmp = Float64(x / Float64(a * Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -6e+121) || ~((t <= 6.5e-6))) tmp = (x * (a ^ t)) / y; else tmp = x / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -6e+121], N[Not[LessEqual[t, 6.5e-6]], $MachinePrecision]], N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6 \cdot 10^{+121} \lor \neg \left(t \leq 6.5 \cdot 10^{-6}\right):\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if t < -6.0000000000000005e121 or 6.4999999999999996e-6 < t Initial program 100.0%
Taylor expanded in y around 0 90.6%
Taylor expanded in b around 0 82.1%
Simplified82.1%
Taylor expanded in t around inf 83.0%
if -6.0000000000000005e121 < t < 6.4999999999999996e-6Initial program 97.0%
associate-/l*95.8%
associate--l+95.8%
exp-sum82.7%
associate-/l*79.4%
*-commutative79.4%
exp-to-pow79.4%
exp-diff76.1%
*-commutative76.1%
exp-to-pow77.1%
sub-neg77.1%
metadata-eval77.1%
Simplified77.1%
Taylor expanded in y around 0 69.6%
exp-to-pow70.7%
sub-neg70.7%
metadata-eval70.7%
associate-*r/70.9%
Simplified70.9%
Taylor expanded in t around 0 74.5%
Final simplification78.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -0.82) (not (<= b 6.5))) (/ (* x (exp (- b))) y) (/ (/ x a) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -0.82) || !(b <= 6.5)) {
tmp = (x * exp(-b)) / y;
} else {
tmp = (x / a) / 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 <= (-0.82d0)) .or. (.not. (b <= 6.5d0))) then
tmp = (x * exp(-b)) / y
else
tmp = (x / a) / 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 <= -0.82) || !(b <= 6.5)) {
tmp = (x * Math.exp(-b)) / y;
} else {
tmp = (x / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -0.82) or not (b <= 6.5): tmp = (x * math.exp(-b)) / y else: tmp = (x / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -0.82) || !(b <= 6.5)) tmp = Float64(Float64(x * exp(Float64(-b))) / y); else tmp = Float64(Float64(x / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -0.82) || ~((b <= 6.5))) tmp = (x * exp(-b)) / y; else tmp = (x / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -0.82], N[Not[LessEqual[b, 6.5]], $MachinePrecision]], N[(N[(x * N[Exp[(-b)], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.82 \lor \neg \left(b \leq 6.5\right):\\
\;\;\;\;\frac{x \cdot e^{-b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\end{array}
\end{array}
if b < -0.819999999999999951 or 6.5 < b Initial program 100.0%
Taylor expanded in t around 0 89.9%
+-commutative89.9%
mul-1-neg89.9%
unsub-neg89.9%
Simplified89.9%
Taylor expanded in b around inf 82.2%
neg-mul-182.2%
Simplified82.2%
if -0.819999999999999951 < b < 6.5Initial program 96.5%
Taylor expanded in y around 0 74.3%
Taylor expanded in b around 0 74.3%
Simplified72.7%
Taylor expanded in t around 0 43.9%
associate-/r*46.1%
Simplified46.1%
Final simplification64.0%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.85e+47) (/ (* x (+ 1.0 (* b (+ -1.0 (* b (+ 0.5 (* b -0.16666666666666666))))))) y) (/ (/ x a) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.85e+47) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else {
tmp = (x / a) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.85d+47)) then
tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * (0.5d0 + (b * (-0.16666666666666666d0)))))))) / y
else
tmp = (x / a) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.85e+47) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else {
tmp = (x / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.85e+47: tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y else: tmp = (x / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.85e+47) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(-1.0 + Float64(b * Float64(0.5 + Float64(b * -0.16666666666666666))))))) / y); else tmp = Float64(Float64(x / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.85e+47) tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y; else tmp = (x / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.85e+47], N[(N[(x * N[(1.0 + N[(b * N[(-1.0 + N[(b * N[(0.5 + N[(b * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.85 \cdot 10^{+47}:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(-1 + b \cdot \left(0.5 + b \cdot -0.16666666666666666\right)\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\end{array}
\end{array}
if b < -1.8500000000000002e47Initial program 100.0%
Taylor expanded in t around 0 98.0%
+-commutative98.0%
mul-1-neg98.0%
unsub-neg98.0%
Simplified98.0%
Taylor expanded in b around inf 92.0%
neg-mul-192.0%
Simplified92.0%
Taylor expanded in b around 0 80.2%
if -1.8500000000000002e47 < b Initial program 97.8%
Taylor expanded in y around 0 79.2%
Taylor expanded in b around 0 62.3%
Simplified60.8%
Taylor expanded in t around 0 34.5%
associate-/r*36.4%
Simplified36.4%
Final simplification44.8%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.8e+39) (* x (/ (+ 1.0 (* b (+ 1.0 (* b 0.5)))) y)) (/ (/ x a) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.8e+39) {
tmp = x * ((1.0 + (b * (1.0 + (b * 0.5)))) / y);
} else {
tmp = (x / a) / 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 <= (-2.8d+39)) then
tmp = x * ((1.0d0 + (b * (1.0d0 + (b * 0.5d0)))) / y)
else
tmp = (x / a) / 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 <= -2.8e+39) {
tmp = x * ((1.0 + (b * (1.0 + (b * 0.5)))) / y);
} else {
tmp = (x / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.8e+39: tmp = x * ((1.0 + (b * (1.0 + (b * 0.5)))) / y) else: tmp = (x / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.8e+39) tmp = Float64(x * Float64(Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * 0.5)))) / y)); else tmp = Float64(Float64(x / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.8e+39) tmp = x * ((1.0 + (b * (1.0 + (b * 0.5)))) / y); else tmp = (x / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.8e+39], N[(x * N[(N[(1.0 + N[(b * N[(1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.8 \cdot 10^{+39}:\\
\;\;\;\;x \cdot \frac{1 + b \cdot \left(1 + b \cdot 0.5\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\end{array}
\end{array}
if b < -2.80000000000000001e39Initial program 100.0%
Taylor expanded in t around 0 98.0%
+-commutative98.0%
mul-1-neg98.0%
unsub-neg98.0%
Simplified98.0%
Taylor expanded in b around inf 92.0%
neg-mul-192.0%
Simplified92.0%
associate-/l*92.0%
add-sqr-sqrt92.0%
sqrt-unprod92.0%
sqr-neg92.0%
sqrt-unprod0.0%
add-sqr-sqrt9.6%
Applied egg-rr9.6%
Taylor expanded in b around 0 76.2%
*-commutative76.2%
Simplified76.2%
if -2.80000000000000001e39 < b Initial program 97.8%
Taylor expanded in y around 0 79.2%
Taylor expanded in b around 0 62.3%
Simplified60.8%
Taylor expanded in t around 0 34.5%
associate-/r*36.4%
Simplified36.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.05e+48) (/ (* x (+ 1.0 (* b (* b 0.5)))) y) (/ (/ x a) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.05e+48) {
tmp = (x * (1.0 + (b * (b * 0.5)))) / y;
} else {
tmp = (x / a) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.05d+48)) then
tmp = (x * (1.0d0 + (b * (b * 0.5d0)))) / y
else
tmp = (x / a) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.05e+48) {
tmp = (x * (1.0 + (b * (b * 0.5)))) / y;
} else {
tmp = (x / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.05e+48: tmp = (x * (1.0 + (b * (b * 0.5)))) / y else: tmp = (x / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.05e+48) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(b * 0.5)))) / y); else tmp = Float64(Float64(x / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.05e+48) tmp = (x * (1.0 + (b * (b * 0.5)))) / y; else tmp = (x / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.05e+48], N[(N[(x * N[(1.0 + N[(b * N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.05 \cdot 10^{+48}:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(b \cdot 0.5\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\end{array}
\end{array}
if b < -1.0499999999999999e48Initial program 100.0%
Taylor expanded in t around 0 98.0%
+-commutative98.0%
mul-1-neg98.0%
unsub-neg98.0%
Simplified98.0%
Taylor expanded in b around inf 92.0%
neg-mul-192.0%
Simplified92.0%
Taylor expanded in b around 0 72.3%
Taylor expanded in b around inf 72.3%
if -1.0499999999999999e48 < b Initial program 97.8%
Taylor expanded in y around 0 79.2%
Taylor expanded in b around 0 62.3%
Simplified60.8%
Taylor expanded in t around 0 34.5%
associate-/r*36.4%
Simplified36.4%
Final simplification43.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.15e+55) (- (/ x y) (* x (/ b y))) (/ (/ x a) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.15e+55) {
tmp = (x / y) - (x * (b / y));
} else {
tmp = (x / a) / 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 <= (-2.15d+55)) then
tmp = (x / y) - (x * (b / y))
else
tmp = (x / a) / 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 <= -2.15e+55) {
tmp = (x / y) - (x * (b / y));
} else {
tmp = (x / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.15e+55: tmp = (x / y) - (x * (b / y)) else: tmp = (x / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.15e+55) tmp = Float64(Float64(x / y) - Float64(x * Float64(b / y))); else tmp = Float64(Float64(x / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.15e+55) tmp = (x / y) - (x * (b / y)); else tmp = (x / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.15e+55], N[(N[(x / y), $MachinePrecision] - N[(x * N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.15 \cdot 10^{+55}:\\
\;\;\;\;\frac{x}{y} - x \cdot \frac{b}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\end{array}
\end{array}
if b < -2.1499999999999999e55Initial 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 b around inf 91.6%
neg-mul-191.6%
Simplified91.6%
Taylor expanded in b around 0 73.2%
Taylor expanded in b around 0 34.5%
+-commutative34.5%
mul-1-neg34.5%
unsub-neg34.5%
*-commutative34.5%
associate-/l*42.5%
Simplified42.5%
if -2.1499999999999999e55 < b Initial program 97.8%
Taylor expanded in y around 0 79.4%
Taylor expanded in b around 0 61.7%
Simplified60.3%
Taylor expanded in t around 0 34.2%
associate-/r*36.1%
Simplified36.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.15e+56) (/ (* x (- 1.0 b)) y) (/ (/ x a) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.15e+56) {
tmp = (x * (1.0 - b)) / y;
} else {
tmp = (x / a) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.15d+56)) then
tmp = (x * (1.0d0 - b)) / y
else
tmp = (x / a) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.15e+56) {
tmp = (x * (1.0 - b)) / y;
} else {
tmp = (x / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.15e+56: tmp = (x * (1.0 - b)) / y else: tmp = (x / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.15e+56) tmp = Float64(Float64(x * Float64(1.0 - b)) / y); else tmp = Float64(Float64(x / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.15e+56) tmp = (x * (1.0 - b)) / y; else tmp = (x / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.15e+56], N[(N[(x * N[(1.0 - b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.15 \cdot 10^{+56}:\\
\;\;\;\;\frac{x \cdot \left(1 - b\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\end{array}
\end{array}
if b < -1.15000000000000007e56Initial 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 b around inf 91.6%
neg-mul-191.6%
Simplified91.6%
Taylor expanded in b around 0 34.5%
mul-1-neg34.5%
unsub-neg34.5%
Simplified34.5%
if -1.15000000000000007e56 < b Initial program 97.8%
Taylor expanded in y around 0 79.4%
Taylor expanded in b around 0 61.7%
Simplified60.3%
Taylor expanded in t around 0 34.2%
associate-/r*36.1%
Simplified36.1%
(FPCore (x y z t a b) :precision binary64 (if (<= t -5.3e-145) (* x (/ 1.0 (* y a))) (/ (/ x a) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -5.3e-145) {
tmp = x * (1.0 / (y * a));
} else {
tmp = (x / a) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= (-5.3d-145)) then
tmp = x * (1.0d0 / (y * a))
else
tmp = (x / a) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -5.3e-145) {
tmp = x * (1.0 / (y * a));
} else {
tmp = (x / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -5.3e-145: tmp = x * (1.0 / (y * a)) else: tmp = (x / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -5.3e-145) tmp = Float64(x * Float64(1.0 / Float64(y * a))); else tmp = Float64(Float64(x / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -5.3e-145) tmp = x * (1.0 / (y * a)); else tmp = (x / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -5.3e-145], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.3 \cdot 10^{-145}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\end{array}
\end{array}
if t < -5.29999999999999999e-145Initial program 97.7%
Taylor expanded in y around 0 86.1%
Taylor expanded in b around 0 67.2%
Simplified70.6%
Taylor expanded in t around 0 42.7%
*-commutative42.7%
Simplified42.7%
if -5.29999999999999999e-145 < t Initial program 98.5%
Taylor expanded in y around 0 79.8%
Taylor expanded in b around 0 53.7%
Simplified51.0%
Taylor expanded in t around 0 28.8%
associate-/r*31.7%
Simplified31.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1060000000.0) (/ x (* y a)) (/ (/ x a) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1060000000.0) {
tmp = x / (y * a);
} else {
tmp = (x / a) / 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 <= (-1060000000.0d0)) then
tmp = x / (y * a)
else
tmp = (x / a) / 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 <= -1060000000.0) {
tmp = x / (y * a);
} else {
tmp = (x / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1060000000.0: tmp = x / (y * a) else: tmp = (x / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1060000000.0) tmp = Float64(x / Float64(y * a)); else tmp = Float64(Float64(x / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1060000000.0) tmp = x / (y * a); else tmp = (x / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1060000000.0], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1060000000:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\end{array}
\end{array}
if b < -1.06e9Initial program 100.0%
Taylor expanded in y around 0 94.4%
Taylor expanded in b around 0 45.3%
Simplified48.8%
Taylor expanded in t around 0 30.7%
if -1.06e9 < b Initial program 97.8%
Taylor expanded in y around 0 78.8%
Taylor expanded in b around 0 62.0%
Simplified60.5%
Taylor expanded in t around 0 34.2%
associate-/r*36.6%
Simplified36.6%
Final simplification35.3%
(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.2%
Taylor expanded in y around 0 82.1%
Taylor expanded in b around 0 58.6%
Simplified58.1%
Taylor expanded in t around 0 33.5%
Final simplification33.5%
(FPCore (x y z t a b) :precision binary64 (/ x y))
double code(double x, double y, double z, double t, double a, double b) {
return x / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / y;
}
def code(x, y, z, t, a, b): return x / y
function code(x, y, z, t, a, b) return Float64(x / y) end
function tmp = code(x, y, z, t, a, b) tmp = x / y; end
code[x_, y_, z_, t_, a_, b_] := N[(x / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y}
\end{array}
Initial program 98.2%
Taylor expanded in t around 0 81.0%
+-commutative81.0%
mul-1-neg81.0%
unsub-neg81.0%
Simplified81.0%
Taylor expanded in b around inf 49.8%
neg-mul-149.8%
Simplified49.8%
Taylor expanded in b around 0 14.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (- t 1.0)))
(t_2 (/ (* x (/ t_1 y)) (- (+ b 1.0) (* y (log z))))))
(if (< t -0.8845848504127471)
t_2
(if (< t 852031.2288374073)
(/ (* (/ x y) t_1) (exp (- b (* (log z) y))))
t_2))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a ** (t - 1.0d0)
t_2 = (x * (t_1 / y)) / ((b + 1.0d0) - (y * log(z)))
if (t < (-0.8845848504127471d0)) then
tmp = t_2
else if (t < 852031.2288374073d0) then
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = Math.pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * Math.log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / Math.exp((b - (Math.log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, (t - 1.0)) t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * math.log(z))) tmp = 0 if t < -0.8845848504127471: tmp = t_2 elif t < 852031.2288374073: tmp = ((x / y) * t_1) / math.exp((b - (math.log(z) * y))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = a ^ Float64(t - 1.0) t_2 = Float64(Float64(x * Float64(t_1 / y)) / Float64(Float64(b + 1.0) - Float64(y * log(z)))) tmp = 0.0 if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = Float64(Float64(Float64(x / y) * t_1) / exp(Float64(b - Float64(log(z) * y)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a ^ (t - 1.0); t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z))); tmp = 0.0; if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = ((x / y) * t_1) / exp((b - (log(z) * y))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision] / N[(N[(b + 1.0), $MachinePrecision] - N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -0.8845848504127471], t$95$2, If[Less[t, 852031.2288374073], N[(N[(N[(x / y), $MachinePrecision] * t$95$1), $MachinePrecision] / N[Exp[N[(b - N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {a}^{\left(t - 1\right)}\\
t_2 := \frac{x \cdot \frac{t\_1}{y}}{\left(b + 1\right) - y \cdot \log z}\\
\mathbf{if}\;t < -0.8845848504127471:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 852031.2288374073:\\
\;\;\;\;\frac{\frac{x}{y} \cdot t\_1}{e^{b - \log z \cdot y}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024129
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:alt
(! :herbie-platform default (if (< t -8845848504127471/10000000000000000) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))) (if (< t 8520312288374073/10000000000) (/ (* (/ x y) (pow a (- t 1))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))