
(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)) (* (log a) (+ t -1.0))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + (log(a) * (t + -1.0))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + (log(a) * (t + (-1.0d0)))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + (Math.log(a) * (t + -1.0))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + (math.log(a) * (t + -1.0))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(log(a) * Float64(t + -1.0))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + (log(a) * (t + -1.0))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \log a \cdot \left(t + -1\right)\right) - b}}{y}
\end{array}
Initial program 98.4%
Final simplification98.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.15e+72) (not (<= y 58000000000.0))) (/ (* x (exp (- (- (* y (log z)) (log a)) b))) y) (/ (* x (exp (- (* (log a) (+ t -1.0)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.15e+72) || !(y <= 58000000000.0)) {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
} else {
tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-1.15d+72)) .or. (.not. (y <= 58000000000.0d0))) then
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y
else
tmp = (x * exp(((log(a) * (t + (-1.0d0))) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.15e+72) || !(y <= 58000000000.0)) {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
} else {
tmp = (x * Math.exp(((Math.log(a) * (t + -1.0)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.15e+72) or not (y <= 58000000000.0): tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y else: tmp = (x * math.exp(((math.log(a) * (t + -1.0)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.15e+72) || !(y <= 58000000000.0)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * Float64(t + -1.0)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.15e+72) || ~((y <= 58000000000.0))) tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; else tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.15e+72], N[Not[LessEqual[y, 58000000000.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[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.15 \cdot 10^{+72} \lor \neg \left(y \leq 58000000000\right):\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t + -1\right) - b}}{y}\\
\end{array}
\end{array}
if y < -1.15e72 or 5.8e10 < y Initial program 100.0%
Taylor expanded in t around 0 94.9%
+-commutative94.9%
mul-1-neg94.9%
unsub-neg94.9%
Simplified94.9%
if -1.15e72 < y < 5.8e10Initial program 97.1%
Taylor expanded in y around 0 95.2%
Final simplification95.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (+ t -1.0)))
(t_2 (* x (/ t_1 (* y (exp b)))))
(t_3 (* x (/ (/ (pow z y) a) y))))
(if (<= y -2.7e+64)
t_3
(if (<= y 1.95e-172)
t_2
(if (<= y 1.3e-104) (/ (* x t_1) y) (if (<= y 140.0) t_2 t_3))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = pow(a, (t + -1.0));
double t_2 = x * (t_1 / (y * exp(b)));
double t_3 = x * ((pow(z, y) / a) / y);
double tmp;
if (y <= -2.7e+64) {
tmp = t_3;
} else if (y <= 1.95e-172) {
tmp = t_2;
} else if (y <= 1.3e-104) {
tmp = (x * t_1) / y;
} else if (y <= 140.0) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = a ** (t + (-1.0d0))
t_2 = x * (t_1 / (y * exp(b)))
t_3 = x * (((z ** y) / a) / y)
if (y <= (-2.7d+64)) then
tmp = t_3
else if (y <= 1.95d-172) then
tmp = t_2
else if (y <= 1.3d-104) then
tmp = (x * t_1) / y
else if (y <= 140.0d0) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = Math.pow(a, (t + -1.0));
double t_2 = x * (t_1 / (y * Math.exp(b)));
double t_3 = x * ((Math.pow(z, y) / a) / y);
double tmp;
if (y <= -2.7e+64) {
tmp = t_3;
} else if (y <= 1.95e-172) {
tmp = t_2;
} else if (y <= 1.3e-104) {
tmp = (x * t_1) / y;
} else if (y <= 140.0) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, (t + -1.0)) t_2 = x * (t_1 / (y * math.exp(b))) t_3 = x * ((math.pow(z, y) / a) / y) tmp = 0 if y <= -2.7e+64: tmp = t_3 elif y <= 1.95e-172: tmp = t_2 elif y <= 1.3e-104: tmp = (x * t_1) / y elif y <= 140.0: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = a ^ Float64(t + -1.0) t_2 = Float64(x * Float64(t_1 / Float64(y * exp(b)))) t_3 = Float64(x * Float64(Float64((z ^ y) / a) / y)) tmp = 0.0 if (y <= -2.7e+64) tmp = t_3; elseif (y <= 1.95e-172) tmp = t_2; elseif (y <= 1.3e-104) tmp = Float64(Float64(x * t_1) / y); elseif (y <= 140.0) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a ^ (t + -1.0); t_2 = x * (t_1 / (y * exp(b))); t_3 = x * (((z ^ y) / a) / y); tmp = 0.0; if (y <= -2.7e+64) tmp = t_3; elseif (y <= 1.95e-172) tmp = t_2; elseif (y <= 1.3e-104) tmp = (x * t_1) / y; elseif (y <= 140.0) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(t$95$1 / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.7e+64], t$95$3, If[LessEqual[y, 1.95e-172], t$95$2, If[LessEqual[y, 1.3e-104], N[(N[(x * t$95$1), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 140.0], t$95$2, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {a}^{\left(t + -1\right)}\\
t_2 := x \cdot \frac{t\_1}{y \cdot e^{b}}\\
t_3 := x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -2.7 \cdot 10^{+64}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 1.95 \cdot 10^{-172}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{-104}:\\
\;\;\;\;\frac{x \cdot t\_1}{y}\\
\mathbf{elif}\;y \leq 140:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y < -2.7e64 or 140 < y Initial program 100.0%
Taylor expanded in t around 0 92.6%
+-commutative92.6%
mul-1-neg92.6%
unsub-neg92.6%
Simplified92.6%
Taylor expanded in b around 0 85.9%
associate-/l*85.9%
div-exp85.9%
*-commutative85.9%
exp-to-pow85.9%
rem-exp-log85.9%
Simplified85.9%
if -2.7e64 < y < 1.94999999999999986e-172 or 1.30000000000000001e-104 < y < 140Initial program 96.9%
associate-/l*97.2%
associate--l+97.2%
exp-sum90.6%
associate-/l*90.6%
*-commutative90.6%
exp-to-pow90.6%
exp-diff86.6%
*-commutative86.6%
exp-to-pow87.7%
sub-neg87.7%
metadata-eval87.7%
Simplified87.7%
Taylor expanded in y around 0 86.5%
exp-to-pow87.4%
sub-neg87.4%
metadata-eval87.4%
associate-*r/91.1%
Simplified91.1%
if 1.94999999999999986e-172 < y < 1.30000000000000001e-104Initial program 97.5%
Taylor expanded in y around 0 97.5%
Taylor expanded in b around 0 97.5%
exp-to-pow100.0%
sub-neg100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Final simplification89.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (+ t -1.0))) (t_2 (* x (/ (/ (pow z y) a) y))))
(if (<= y -1.72e+62)
t_2
(if (<= y 1.25e-174)
(* x (/ t_1 (* y (exp b))))
(if (<= y 7.5e-103)
(/ (* x t_1) y)
(if (<= y 165.0) (/ (* x (/ t_1 (exp b))) y) t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = pow(a, (t + -1.0));
double t_2 = x * ((pow(z, y) / a) / y);
double tmp;
if (y <= -1.72e+62) {
tmp = t_2;
} else if (y <= 1.25e-174) {
tmp = x * (t_1 / (y * exp(b)));
} else if (y <= 7.5e-103) {
tmp = (x * t_1) / y;
} else if (y <= 165.0) {
tmp = (x * (t_1 / exp(b))) / y;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a ** (t + (-1.0d0))
t_2 = x * (((z ** y) / a) / y)
if (y <= (-1.72d+62)) then
tmp = t_2
else if (y <= 1.25d-174) then
tmp = x * (t_1 / (y * exp(b)))
else if (y <= 7.5d-103) then
tmp = (x * t_1) / y
else if (y <= 165.0d0) then
tmp = (x * (t_1 / exp(b))) / y
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = Math.pow(a, (t + -1.0));
double t_2 = x * ((Math.pow(z, y) / a) / y);
double tmp;
if (y <= -1.72e+62) {
tmp = t_2;
} else if (y <= 1.25e-174) {
tmp = x * (t_1 / (y * Math.exp(b)));
} else if (y <= 7.5e-103) {
tmp = (x * t_1) / y;
} else if (y <= 165.0) {
tmp = (x * (t_1 / Math.exp(b))) / y;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, (t + -1.0)) t_2 = x * ((math.pow(z, y) / a) / y) tmp = 0 if y <= -1.72e+62: tmp = t_2 elif y <= 1.25e-174: tmp = x * (t_1 / (y * math.exp(b))) elif y <= 7.5e-103: tmp = (x * t_1) / y elif y <= 165.0: tmp = (x * (t_1 / math.exp(b))) / 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(x * Float64(Float64((z ^ y) / a) / y)) tmp = 0.0 if (y <= -1.72e+62) tmp = t_2; elseif (y <= 1.25e-174) tmp = Float64(x * Float64(t_1 / Float64(y * exp(b)))); elseif (y <= 7.5e-103) tmp = Float64(Float64(x * t_1) / y); elseif (y <= 165.0) tmp = Float64(Float64(x * Float64(t_1 / exp(b))) / y); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a ^ (t + -1.0); t_2 = x * (((z ^ y) / a) / y); tmp = 0.0; if (y <= -1.72e+62) tmp = t_2; elseif (y <= 1.25e-174) tmp = x * (t_1 / (y * exp(b))); elseif (y <= 7.5e-103) tmp = (x * t_1) / y; elseif (y <= 165.0) tmp = (x * (t_1 / exp(b))) / 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[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.72e+62], t$95$2, If[LessEqual[y, 1.25e-174], N[(x * N[(t$95$1 / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.5e-103], N[(N[(x * t$95$1), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 165.0], N[(N[(x * N[(t$95$1 / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {a}^{\left(t + -1\right)}\\
t_2 := x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -1.72 \cdot 10^{+62}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{-174}:\\
\;\;\;\;x \cdot \frac{t\_1}{y \cdot e^{b}}\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{-103}:\\
\;\;\;\;\frac{x \cdot t\_1}{y}\\
\mathbf{elif}\;y \leq 165:\\
\;\;\;\;\frac{x \cdot \frac{t\_1}{e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -1.7200000000000001e62 or 165 < y Initial program 100.0%
Taylor expanded in t around 0 92.6%
+-commutative92.6%
mul-1-neg92.6%
unsub-neg92.6%
Simplified92.6%
Taylor expanded in b around 0 85.9%
associate-/l*85.9%
div-exp85.9%
*-commutative85.9%
exp-to-pow85.9%
rem-exp-log85.9%
Simplified85.9%
if -1.7200000000000001e62 < y < 1.2500000000000001e-174Initial program 96.5%
associate-/l*96.8%
associate--l+96.8%
exp-sum89.1%
associate-/l*89.1%
*-commutative89.1%
exp-to-pow89.1%
exp-diff84.2%
*-commutative84.2%
exp-to-pow85.4%
sub-neg85.4%
metadata-eval85.4%
Simplified85.4%
Taylor expanded in y around 0 86.1%
exp-to-pow87.1%
sub-neg87.1%
metadata-eval87.1%
associate-*r/89.5%
Simplified89.5%
if 1.2500000000000001e-174 < y < 7.5e-103Initial program 97.5%
Taylor expanded in y around 0 97.5%
Taylor expanded in b around 0 97.5%
exp-to-pow100.0%
sub-neg100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
if 7.5e-103 < y < 165Initial program 99.3%
Taylor expanded in y around 0 99.3%
div-exp99.3%
exp-to-pow100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Final simplification89.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (+ t -1.0))) (t_2 (/ (* x t_1) y)))
(if (<= t -125.0)
t_2
(if (<= t -1.05e-104)
(* x (/ (/ (pow z y) a) y))
(if (<= t -5.2e-138)
(/ (* x (/ t_1 (exp b))) y)
(if (<= t 1.82e+95) (/ (* x (pow z y)) (* a (* y (exp b)))) t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = pow(a, (t + -1.0));
double t_2 = (x * t_1) / y;
double tmp;
if (t <= -125.0) {
tmp = t_2;
} else if (t <= -1.05e-104) {
tmp = x * ((pow(z, y) / a) / y);
} else if (t <= -5.2e-138) {
tmp = (x * (t_1 / exp(b))) / y;
} else if (t <= 1.82e+95) {
tmp = (x * pow(z, y)) / (a * (y * exp(b)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a ** (t + (-1.0d0))
t_2 = (x * t_1) / y
if (t <= (-125.0d0)) then
tmp = t_2
else if (t <= (-1.05d-104)) then
tmp = x * (((z ** y) / a) / y)
else if (t <= (-5.2d-138)) then
tmp = (x * (t_1 / exp(b))) / y
else if (t <= 1.82d+95) then
tmp = (x * (z ** y)) / (a * (y * exp(b)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = Math.pow(a, (t + -1.0));
double t_2 = (x * t_1) / y;
double tmp;
if (t <= -125.0) {
tmp = t_2;
} else if (t <= -1.05e-104) {
tmp = x * ((Math.pow(z, y) / a) / y);
} else if (t <= -5.2e-138) {
tmp = (x * (t_1 / Math.exp(b))) / y;
} else if (t <= 1.82e+95) {
tmp = (x * Math.pow(z, y)) / (a * (y * Math.exp(b)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, (t + -1.0)) t_2 = (x * t_1) / y tmp = 0 if t <= -125.0: tmp = t_2 elif t <= -1.05e-104: tmp = x * ((math.pow(z, y) / a) / y) elif t <= -5.2e-138: tmp = (x * (t_1 / math.exp(b))) / y elif t <= 1.82e+95: tmp = (x * math.pow(z, y)) / (a * (y * math.exp(b))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = a ^ Float64(t + -1.0) t_2 = Float64(Float64(x * t_1) / y) tmp = 0.0 if (t <= -125.0) tmp = t_2; elseif (t <= -1.05e-104) tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); elseif (t <= -5.2e-138) tmp = Float64(Float64(x * Float64(t_1 / exp(b))) / y); elseif (t <= 1.82e+95) tmp = Float64(Float64(x * (z ^ y)) / Float64(a * Float64(y * exp(b)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a ^ (t + -1.0); t_2 = (x * t_1) / y; tmp = 0.0; if (t <= -125.0) tmp = t_2; elseif (t <= -1.05e-104) tmp = x * (((z ^ y) / a) / y); elseif (t <= -5.2e-138) tmp = (x * (t_1 / exp(b))) / y; elseif (t <= 1.82e+95) tmp = (x * (z ^ y)) / (a * (y * exp(b))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * t$95$1), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t, -125.0], t$95$2, If[LessEqual[t, -1.05e-104], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.2e-138], N[(N[(x * N[(t$95$1 / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t, 1.82e+95], N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / N[(a * N[(y * N[Exp[b], $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 t\_1}{y}\\
\mathbf{if}\;t \leq -125:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{-104}:\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{elif}\;t \leq -5.2 \cdot 10^{-138}:\\
\;\;\;\;\frac{x \cdot \frac{t\_1}{e^{b}}}{y}\\
\mathbf{elif}\;t \leq 1.82 \cdot 10^{+95}:\\
\;\;\;\;\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -125 or 1.82000000000000008e95 < t Initial program 100.0%
Taylor expanded in y around 0 88.3%
Taylor expanded in b around 0 91.0%
exp-to-pow91.0%
sub-neg91.0%
metadata-eval91.0%
+-commutative91.0%
Simplified91.0%
if -125 < t < -1.04999999999999999e-104Initial program 99.3%
Taylor expanded in t around 0 99.3%
+-commutative99.3%
mul-1-neg99.3%
unsub-neg99.3%
Simplified99.3%
Taylor expanded in b around 0 86.9%
associate-/l*90.9%
div-exp90.8%
*-commutative90.8%
exp-to-pow90.8%
rem-exp-log91.6%
Simplified91.6%
if -1.04999999999999999e-104 < t < -5.2e-138Initial program 97.7%
Taylor expanded in y around 0 90.3%
div-exp90.3%
exp-to-pow92.5%
sub-neg92.5%
metadata-eval92.5%
Simplified92.5%
if -5.2e-138 < t < 1.82000000000000008e95Initial program 96.7%
associate-/l*96.3%
associate--l+96.3%
exp-sum82.8%
associate-/l*82.8%
*-commutative82.8%
exp-to-pow82.8%
exp-diff81.0%
*-commutative81.0%
exp-to-pow82.0%
sub-neg82.0%
metadata-eval82.0%
Simplified82.0%
Taylor expanded in t around 0 87.5%
Final simplification89.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (+ t -1.0))) (t_2 (/ (* x t_1) y)))
(if (<= t -15.5)
t_2
(if (<= t -6.8e-103)
(* x (/ (/ (pow z y) a) y))
(if (<= t -8.2e-266)
(/ (* x (/ t_1 (exp b))) y)
(if (<= t 1.35e+95) (/ (/ (pow z y) (* a (exp b))) (/ y x)) 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;
double tmp;
if (t <= -15.5) {
tmp = t_2;
} else if (t <= -6.8e-103) {
tmp = x * ((pow(z, y) / a) / y);
} else if (t <= -8.2e-266) {
tmp = (x * (t_1 / exp(b))) / y;
} else if (t <= 1.35e+95) {
tmp = (pow(z, y) / (a * exp(b))) / (y / x);
} 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
if (t <= (-15.5d0)) then
tmp = t_2
else if (t <= (-6.8d-103)) then
tmp = x * (((z ** y) / a) / y)
else if (t <= (-8.2d-266)) then
tmp = (x * (t_1 / exp(b))) / y
else if (t <= 1.35d+95) then
tmp = ((z ** y) / (a * exp(b))) / (y / x)
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;
double tmp;
if (t <= -15.5) {
tmp = t_2;
} else if (t <= -6.8e-103) {
tmp = x * ((Math.pow(z, y) / a) / y);
} else if (t <= -8.2e-266) {
tmp = (x * (t_1 / Math.exp(b))) / y;
} else if (t <= 1.35e+95) {
tmp = (Math.pow(z, y) / (a * Math.exp(b))) / (y / x);
} 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 tmp = 0 if t <= -15.5: tmp = t_2 elif t <= -6.8e-103: tmp = x * ((math.pow(z, y) / a) / y) elif t <= -8.2e-266: tmp = (x * (t_1 / math.exp(b))) / y elif t <= 1.35e+95: tmp = (math.pow(z, y) / (a * math.exp(b))) / (y / x) 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 * t_1) / y) tmp = 0.0 if (t <= -15.5) tmp = t_2; elseif (t <= -6.8e-103) tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); elseif (t <= -8.2e-266) tmp = Float64(Float64(x * Float64(t_1 / exp(b))) / y); elseif (t <= 1.35e+95) tmp = Float64(Float64((z ^ y) / Float64(a * exp(b))) / Float64(y / x)); 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; tmp = 0.0; if (t <= -15.5) tmp = t_2; elseif (t <= -6.8e-103) tmp = x * (((z ^ y) / a) / y); elseif (t <= -8.2e-266) tmp = (x * (t_1 / exp(b))) / y; elseif (t <= 1.35e+95) tmp = ((z ^ y) / (a * exp(b))) / (y / x); 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 * t$95$1), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t, -15.5], t$95$2, If[LessEqual[t, -6.8e-103], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8.2e-266], N[(N[(x * N[(t$95$1 / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t, 1.35e+95], N[(N[(N[Power[z, y], $MachinePrecision] / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y / x), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {a}^{\left(t + -1\right)}\\
t_2 := \frac{x \cdot t\_1}{y}\\
\mathbf{if}\;t \leq -15.5:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -6.8 \cdot 10^{-103}:\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{elif}\;t \leq -8.2 \cdot 10^{-266}:\\
\;\;\;\;\frac{x \cdot \frac{t\_1}{e^{b}}}{y}\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{+95}:\\
\;\;\;\;\frac{\frac{{z}^{y}}{a \cdot e^{b}}}{\frac{y}{x}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -15.5 or 1.35e95 < t Initial program 100.0%
Taylor expanded in y around 0 88.3%
Taylor expanded in b around 0 91.0%
exp-to-pow91.0%
sub-neg91.0%
metadata-eval91.0%
+-commutative91.0%
Simplified91.0%
if -15.5 < t < -6.80000000000000006e-103Initial program 99.3%
Taylor expanded in t around 0 99.3%
+-commutative99.3%
mul-1-neg99.3%
unsub-neg99.3%
Simplified99.3%
Taylor expanded in b around 0 86.9%
associate-/l*90.9%
div-exp90.8%
*-commutative90.8%
exp-to-pow90.8%
rem-exp-log91.6%
Simplified91.6%
if -6.80000000000000006e-103 < t < -8.2000000000000006e-266Initial program 98.3%
Taylor expanded in y around 0 81.2%
div-exp81.2%
exp-to-pow82.8%
sub-neg82.8%
metadata-eval82.8%
Simplified82.8%
if -8.2000000000000006e-266 < t < 1.35e95Initial program 96.1%
associate-/l*96.5%
associate--l+96.5%
exp-sum82.3%
associate-/l*82.3%
*-commutative82.3%
exp-to-pow82.3%
exp-diff79.9%
*-commutative79.9%
exp-to-pow81.0%
sub-neg81.0%
metadata-eval81.0%
Simplified81.0%
Applied egg-rr82.1%
distribute-frac-neg282.1%
distribute-neg-frac82.1%
metadata-eval82.1%
associate-/r/82.1%
associate-*l/82.1%
*-lft-identity82.1%
associate-*r/82.1%
associate-*l/82.1%
Simplified82.1%
Taylor expanded in t around 0 91.6%
Final simplification90.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (+ t -1.0))) (t_2 (/ (* x t_1) y)))
(if (<= t -6.2e+16)
t_2
(if (<= t -1.5e-102)
(* x (* t_1 (/ (pow z y) y)))
(if (<= t -9e-269)
(/ (* x (/ t_1 (exp b))) y)
(if (<= t 2e+95) (/ (/ (pow z y) (* a (exp b))) (/ y x)) 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;
double tmp;
if (t <= -6.2e+16) {
tmp = t_2;
} else if (t <= -1.5e-102) {
tmp = x * (t_1 * (pow(z, y) / y));
} else if (t <= -9e-269) {
tmp = (x * (t_1 / exp(b))) / y;
} else if (t <= 2e+95) {
tmp = (pow(z, y) / (a * exp(b))) / (y / x);
} 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
if (t <= (-6.2d+16)) then
tmp = t_2
else if (t <= (-1.5d-102)) then
tmp = x * (t_1 * ((z ** y) / y))
else if (t <= (-9d-269)) then
tmp = (x * (t_1 / exp(b))) / y
else if (t <= 2d+95) then
tmp = ((z ** y) / (a * exp(b))) / (y / x)
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;
double tmp;
if (t <= -6.2e+16) {
tmp = t_2;
} else if (t <= -1.5e-102) {
tmp = x * (t_1 * (Math.pow(z, y) / y));
} else if (t <= -9e-269) {
tmp = (x * (t_1 / Math.exp(b))) / y;
} else if (t <= 2e+95) {
tmp = (Math.pow(z, y) / (a * Math.exp(b))) / (y / x);
} 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 tmp = 0 if t <= -6.2e+16: tmp = t_2 elif t <= -1.5e-102: tmp = x * (t_1 * (math.pow(z, y) / y)) elif t <= -9e-269: tmp = (x * (t_1 / math.exp(b))) / y elif t <= 2e+95: tmp = (math.pow(z, y) / (a * math.exp(b))) / (y / x) 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 * t_1) / y) tmp = 0.0 if (t <= -6.2e+16) tmp = t_2; elseif (t <= -1.5e-102) tmp = Float64(x * Float64(t_1 * Float64((z ^ y) / y))); elseif (t <= -9e-269) tmp = Float64(Float64(x * Float64(t_1 / exp(b))) / y); elseif (t <= 2e+95) tmp = Float64(Float64((z ^ y) / Float64(a * exp(b))) / Float64(y / x)); 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; tmp = 0.0; if (t <= -6.2e+16) tmp = t_2; elseif (t <= -1.5e-102) tmp = x * (t_1 * ((z ^ y) / y)); elseif (t <= -9e-269) tmp = (x * (t_1 / exp(b))) / y; elseif (t <= 2e+95) tmp = ((z ^ y) / (a * exp(b))) / (y / x); 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 * t$95$1), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t, -6.2e+16], t$95$2, If[LessEqual[t, -1.5e-102], N[(x * N[(t$95$1 * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -9e-269], N[(N[(x * N[(t$95$1 / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t, 2e+95], N[(N[(N[Power[z, y], $MachinePrecision] / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y / x), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {a}^{\left(t + -1\right)}\\
t_2 := \frac{x \cdot t\_1}{y}\\
\mathbf{if}\;t \leq -6.2 \cdot 10^{+16}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.5 \cdot 10^{-102}:\\
\;\;\;\;x \cdot \left(t\_1 \cdot \frac{{z}^{y}}{y}\right)\\
\mathbf{elif}\;t \leq -9 \cdot 10^{-269}:\\
\;\;\;\;\frac{x \cdot \frac{t\_1}{e^{b}}}{y}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+95}:\\
\;\;\;\;\frac{\frac{{z}^{y}}{a \cdot e^{b}}}{\frac{y}{x}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -6.2e16 or 2.00000000000000004e95 < t Initial program 100.0%
Taylor expanded in y around 0 88.0%
Taylor expanded in b around 0 90.8%
exp-to-pow90.8%
sub-neg90.8%
metadata-eval90.8%
+-commutative90.8%
Simplified90.8%
if -6.2e16 < t < -1.5e-102Initial program 99.3%
associate-/l*99.3%
associate--l+99.3%
exp-sum91.3%
associate-/l*87.3%
*-commutative87.3%
exp-to-pow87.3%
exp-diff87.3%
*-commutative87.3%
exp-to-pow87.9%
sub-neg87.9%
metadata-eval87.9%
Simplified87.9%
Taylor expanded in b around 0 91.6%
associate-/l*91.6%
associate-/l*91.6%
exp-to-pow92.2%
sub-neg92.2%
metadata-eval92.2%
Simplified92.2%
if -1.5e-102 < t < -9.0000000000000003e-269Initial program 98.3%
Taylor expanded in y around 0 81.2%
div-exp81.2%
exp-to-pow82.8%
sub-neg82.8%
metadata-eval82.8%
Simplified82.8%
if -9.0000000000000003e-269 < t < 2.00000000000000004e95Initial program 96.1%
associate-/l*96.5%
associate--l+96.5%
exp-sum82.3%
associate-/l*82.3%
*-commutative82.3%
exp-to-pow82.3%
exp-diff79.9%
*-commutative79.9%
exp-to-pow81.0%
sub-neg81.0%
metadata-eval81.0%
Simplified81.0%
Applied egg-rr82.1%
distribute-frac-neg282.1%
distribute-neg-frac82.1%
metadata-eval82.1%
associate-/r/82.1%
associate-*l/82.1%
*-lft-identity82.1%
associate-*r/82.1%
associate-*l/82.1%
Simplified82.1%
Taylor expanded in t around 0 91.6%
Final simplification90.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.75e+71) (not (<= y 4.4e+105))) (* x (/ (/ (pow z y) a) y)) (/ (* x (exp (- (* (log a) (+ t -1.0)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.75e+71) || !(y <= 4.4e+105)) {
tmp = x * ((pow(z, y) / a) / y);
} else {
tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-1.75d+71)) .or. (.not. (y <= 4.4d+105))) then
tmp = x * (((z ** y) / a) / y)
else
tmp = (x * exp(((log(a) * (t + (-1.0d0))) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.75e+71) || !(y <= 4.4e+105)) {
tmp = x * ((Math.pow(z, y) / a) / y);
} else {
tmp = (x * Math.exp(((Math.log(a) * (t + -1.0)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.75e+71) or not (y <= 4.4e+105): tmp = x * ((math.pow(z, y) / a) / y) else: tmp = (x * math.exp(((math.log(a) * (t + -1.0)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.75e+71) || !(y <= 4.4e+105)) tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); else tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * Float64(t + -1.0)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.75e+71) || ~((y <= 4.4e+105))) tmp = x * (((z ^ y) / a) / y); else tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.75e+71], N[Not[LessEqual[y, 4.4e+105]], $MachinePrecision]], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.75 \cdot 10^{+71} \lor \neg \left(y \leq 4.4 \cdot 10^{+105}\right):\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t + -1\right) - b}}{y}\\
\end{array}
\end{array}
if y < -1.75e71 or 4.40000000000000014e105 < y Initial program 100.0%
Taylor expanded in t around 0 95.9%
+-commutative95.9%
mul-1-neg95.9%
unsub-neg95.9%
Simplified95.9%
Taylor expanded in b around 0 88.8%
associate-/l*88.8%
div-exp88.8%
*-commutative88.8%
exp-to-pow88.8%
rem-exp-log88.8%
Simplified88.8%
if -1.75e71 < y < 4.40000000000000014e105Initial program 97.4%
Taylor expanded in y around 0 93.3%
Final simplification91.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (/ (pow z y) a) y)))
(t_2 (/ (* x (pow a (+ t -1.0))) y))
(t_3 (/ x (* a (* y (exp b))))))
(if (<= t -1900000000.0)
t_2
(if (<= t -6.2e-105)
t_1
(if (<= t -3.9e-180)
t_3
(if (<= t 7.5e-308) t_1 (if (<= t 8.2e+58) t_3 t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * ((pow(z, y) / a) / y);
double t_2 = (x * pow(a, (t + -1.0))) / y;
double t_3 = x / (a * (y * exp(b)));
double tmp;
if (t <= -1900000000.0) {
tmp = t_2;
} else if (t <= -6.2e-105) {
tmp = t_1;
} else if (t <= -3.9e-180) {
tmp = t_3;
} else if (t <= 7.5e-308) {
tmp = t_1;
} else if (t <= 8.2e+58) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * (((z ** y) / a) / y)
t_2 = (x * (a ** (t + (-1.0d0)))) / y
t_3 = x / (a * (y * exp(b)))
if (t <= (-1900000000.0d0)) then
tmp = t_2
else if (t <= (-6.2d-105)) then
tmp = t_1
else if (t <= (-3.9d-180)) then
tmp = t_3
else if (t <= 7.5d-308) then
tmp = t_1
else if (t <= 8.2d+58) then
tmp = t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * ((Math.pow(z, y) / a) / y);
double t_2 = (x * Math.pow(a, (t + -1.0))) / y;
double t_3 = x / (a * (y * Math.exp(b)));
double tmp;
if (t <= -1900000000.0) {
tmp = t_2;
} else if (t <= -6.2e-105) {
tmp = t_1;
} else if (t <= -3.9e-180) {
tmp = t_3;
} else if (t <= 7.5e-308) {
tmp = t_1;
} else if (t <= 8.2e+58) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * ((math.pow(z, y) / a) / y) t_2 = (x * math.pow(a, (t + -1.0))) / y t_3 = x / (a * (y * math.exp(b))) tmp = 0 if t <= -1900000000.0: tmp = t_2 elif t <= -6.2e-105: tmp = t_1 elif t <= -3.9e-180: tmp = t_3 elif t <= 7.5e-308: tmp = t_1 elif t <= 8.2e+58: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(Float64((z ^ y) / a) / y)) t_2 = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y) t_3 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (t <= -1900000000.0) tmp = t_2; elseif (t <= -6.2e-105) tmp = t_1; elseif (t <= -3.9e-180) tmp = t_3; elseif (t <= 7.5e-308) tmp = t_1; elseif (t <= 8.2e+58) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (((z ^ y) / a) / y); t_2 = (x * (a ^ (t + -1.0))) / y; t_3 = x / (a * (y * exp(b))); tmp = 0.0; if (t <= -1900000000.0) tmp = t_2; elseif (t <= -6.2e-105) tmp = t_1; elseif (t <= -3.9e-180) tmp = t_3; elseif (t <= 7.5e-308) tmp = t_1; elseif (t <= 8.2e+58) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$3 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1900000000.0], t$95$2, If[LessEqual[t, -6.2e-105], t$95$1, If[LessEqual[t, -3.9e-180], t$95$3, If[LessEqual[t, 7.5e-308], t$95$1, If[LessEqual[t, 8.2e+58], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
t_2 := \frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
t_3 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;t \leq -1900000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -6.2 \cdot 10^{-105}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -3.9 \cdot 10^{-180}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-308}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{+58}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.9e9 or 8.2e58 < t Initial program 100.0%
Taylor expanded in y around 0 87.5%
Taylor expanded in b around 0 89.2%
exp-to-pow89.2%
sub-neg89.2%
metadata-eval89.2%
+-commutative89.2%
Simplified89.2%
if -1.9e9 < t < -6.20000000000000029e-105 or -3.9000000000000003e-180 < t < 7.4999999999999998e-308Initial program 97.1%
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 83.5%
associate-/l*85.1%
div-exp85.1%
*-commutative85.1%
exp-to-pow85.1%
rem-exp-log85.8%
Simplified85.8%
if -6.20000000000000029e-105 < t < -3.9000000000000003e-180 or 7.4999999999999998e-308 < t < 8.2e58Initial program 97.0%
associate-/l*95.6%
associate--l+95.6%
exp-sum78.5%
associate-/l*78.5%
*-commutative78.5%
exp-to-pow78.5%
exp-diff77.4%
*-commutative77.4%
exp-to-pow78.5%
sub-neg78.5%
metadata-eval78.5%
Simplified78.5%
Taylor expanded in y around 0 68.9%
exp-to-pow70.1%
sub-neg70.1%
metadata-eval70.1%
associate-*r/75.2%
Simplified75.2%
Taylor expanded in t around 0 80.8%
Final simplification85.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.05e+57) (not (<= y 0.05))) (* x (/ (/ (pow z y) a) y)) (/ x (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.05e+57) || !(y <= 0.05)) {
tmp = x * ((pow(z, y) / a) / 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 ((y <= (-1.05d+57)) .or. (.not. (y <= 0.05d0))) then
tmp = x * (((z ** y) / a) / 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 ((y <= -1.05e+57) || !(y <= 0.05)) {
tmp = x * ((Math.pow(z, y) / a) / y);
} else {
tmp = x / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.05e+57) or not (y <= 0.05): tmp = x * ((math.pow(z, y) / a) / y) else: tmp = x / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.05e+57) || !(y <= 0.05)) tmp = Float64(x * Float64(Float64((z ^ y) / a) / 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 ((y <= -1.05e+57) || ~((y <= 0.05))) tmp = x * (((z ^ y) / a) / y); else tmp = x / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.05e+57], N[Not[LessEqual[y, 0.05]], $MachinePrecision]], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.05 \cdot 10^{+57} \lor \neg \left(y \leq 0.05\right):\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if y < -1.04999999999999995e57 or 0.050000000000000003 < y Initial program 100.0%
Taylor expanded in t around 0 91.2%
+-commutative91.2%
mul-1-neg91.2%
unsub-neg91.2%
Simplified91.2%
Taylor expanded in b around 0 84.8%
associate-/l*84.8%
div-exp84.8%
*-commutative84.8%
exp-to-pow84.8%
rem-exp-log84.8%
Simplified84.8%
if -1.04999999999999995e57 < y < 0.050000000000000003Initial program 96.9%
associate-/l*95.9%
associate--l+95.9%
exp-sum90.7%
associate-/l*90.7%
*-commutative90.7%
exp-to-pow90.7%
exp-diff83.9%
*-commutative83.9%
exp-to-pow85.0%
sub-neg85.0%
metadata-eval85.0%
Simplified85.0%
Taylor expanded in y around 0 85.1%
exp-to-pow86.2%
sub-neg86.2%
metadata-eval86.2%
associate-*r/88.1%
Simplified88.1%
Taylor expanded in t around 0 72.9%
Final simplification78.6%
(FPCore (x y z t a b) :precision binary64 (/ x (* a (* y (exp b)))))
double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y * exp(b)));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / (a * (y * exp(b)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y * Math.exp(b)));
}
def code(x, y, z, t, a, b): return x / (a * (y * math.exp(b)))
function code(x, y, z, t, a, b) return Float64(x / Float64(a * Float64(y * exp(b)))) end
function tmp = code(x, y, z, t, a, b) tmp = x / (a * (y * exp(b))); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{a \cdot \left(y \cdot e^{b}\right)}
\end{array}
Initial program 98.4%
associate-/l*97.9%
associate--l+97.9%
exp-sum78.0%
associate-/l*77.6%
*-commutative77.6%
exp-to-pow77.6%
exp-diff71.7%
*-commutative71.7%
exp-to-pow72.3%
sub-neg72.3%
metadata-eval72.3%
Simplified72.3%
Taylor expanded in y around 0 68.9%
exp-to-pow69.4%
sub-neg69.4%
metadata-eval69.4%
associate-*r/71.6%
Simplified71.6%
Taylor expanded in t around 0 59.4%
Final simplification59.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))) (t_2 (* t_1 0.5)))
(if (<= b -3.9e+99)
(-
t_1
(*
b
(+
t_1
(*
b
(+
(- t_2 t_1)
(*
b
(+ (- t_1 t_2) (+ (* t_1 -0.5) (* t_1 0.16666666666666666)))))))))
(if (<= b 1.2e-223)
(/ (- (/ x y) (/ (* x b) y)) a)
(/
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 t_2 = t_1 * 0.5;
double tmp;
if (b <= -3.9e+99) {
tmp = t_1 - (b * (t_1 + (b * ((t_2 - t_1) + (b * ((t_1 - t_2) + ((t_1 * -0.5) + (t_1 * 0.16666666666666666))))))));
} else if (b <= 1.2e-223) {
tmp = ((x / y) - ((x * b) / y)) / a;
} 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) :: t_2
real(8) :: tmp
t_1 = x / (y * a)
t_2 = t_1 * 0.5d0
if (b <= (-3.9d+99)) then
tmp = t_1 - (b * (t_1 + (b * ((t_2 - t_1) + (b * ((t_1 - t_2) + ((t_1 * (-0.5d0)) + (t_1 * 0.16666666666666666d0))))))))
else if (b <= 1.2d-223) then
tmp = ((x / y) - ((x * b) / y)) / a
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 t_2 = t_1 * 0.5;
double tmp;
if (b <= -3.9e+99) {
tmp = t_1 - (b * (t_1 + (b * ((t_2 - t_1) + (b * ((t_1 - t_2) + ((t_1 * -0.5) + (t_1 * 0.16666666666666666))))))));
} else if (b <= 1.2e-223) {
tmp = ((x / y) - ((x * b) / y)) / a;
} 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) t_2 = t_1 * 0.5 tmp = 0 if b <= -3.9e+99: tmp = t_1 - (b * (t_1 + (b * ((t_2 - t_1) + (b * ((t_1 - t_2) + ((t_1 * -0.5) + (t_1 * 0.16666666666666666)))))))) elif b <= 1.2e-223: tmp = ((x / y) - ((x * b) / y)) / a 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)) t_2 = Float64(t_1 * 0.5) tmp = 0.0 if (b <= -3.9e+99) tmp = Float64(t_1 - Float64(b * Float64(t_1 + Float64(b * Float64(Float64(t_2 - t_1) + Float64(b * Float64(Float64(t_1 - t_2) + Float64(Float64(t_1 * -0.5) + Float64(t_1 * 0.16666666666666666))))))))); elseif (b <= 1.2e-223) tmp = Float64(Float64(Float64(x / y) - Float64(Float64(x * b) / y)) / a); 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); t_2 = t_1 * 0.5; tmp = 0.0; if (b <= -3.9e+99) tmp = t_1 - (b * (t_1 + (b * ((t_2 - t_1) + (b * ((t_1 - t_2) + ((t_1 * -0.5) + (t_1 * 0.16666666666666666)))))))); elseif (b <= 1.2e-223) tmp = ((x / y) - ((x * b) / y)) / a; 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]}, Block[{t$95$2 = N[(t$95$1 * 0.5), $MachinePrecision]}, If[LessEqual[b, -3.9e+99], N[(t$95$1 - N[(b * N[(t$95$1 + N[(b * N[(N[(t$95$2 - t$95$1), $MachinePrecision] + N[(b * N[(N[(t$95$1 - t$95$2), $MachinePrecision] + N[(N[(t$95$1 * -0.5), $MachinePrecision] + N[(t$95$1 * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.2e-223], N[(N[(N[(x / y), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $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}\\
t_2 := t\_1 \cdot 0.5\\
\mathbf{if}\;b \leq -3.9 \cdot 10^{+99}:\\
\;\;\;\;t\_1 - b \cdot \left(t\_1 + b \cdot \left(\left(t\_2 - t\_1\right) + b \cdot \left(\left(t\_1 - t\_2\right) + \left(t\_1 \cdot -0.5 + t\_1 \cdot 0.16666666666666666\right)\right)\right)\right)\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{-223}:\\
\;\;\;\;\frac{\frac{x}{y} - \frac{x \cdot b}{y}}{a}\\
\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.89999999999999995e99Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum68.2%
associate-/l*68.2%
*-commutative68.2%
exp-to-pow68.2%
exp-diff54.5%
*-commutative54.5%
exp-to-pow54.5%
sub-neg54.5%
metadata-eval54.5%
Simplified54.5%
Taylor expanded in y around 0 61.5%
exp-to-pow61.5%
sub-neg61.5%
metadata-eval61.5%
associate-*r/66.0%
Simplified66.0%
Taylor expanded in t around 0 70.9%
Taylor expanded in b around 0 48.5%
if -3.89999999999999995e99 < b < 1.19999999999999993e-223Initial program 97.5%
associate-/l*94.9%
associate--l+94.9%
exp-sum80.4%
associate-/l*79.3%
*-commutative79.3%
exp-to-pow79.3%
exp-diff77.2%
*-commutative77.2%
exp-to-pow78.3%
sub-neg78.3%
metadata-eval78.3%
Simplified78.3%
Taylor expanded in y around 0 69.2%
exp-to-pow70.4%
sub-neg70.4%
metadata-eval70.4%
associate-*r/69.7%
Simplified69.7%
Taylor expanded in t around 0 47.7%
Taylor expanded in b around 0 33.4%
+-commutative33.4%
mul-1-neg33.4%
unsub-neg33.4%
*-commutative33.4%
times-frac35.6%
associate-*r/37.7%
Simplified37.7%
Taylor expanded in a around 0 43.5%
if 1.19999999999999993e-223 < b Initial program 98.5%
associate-/l*99.5%
associate--l+99.5%
exp-sum79.7%
associate-/l*79.7%
*-commutative79.7%
exp-to-pow79.7%
exp-diff73.7%
*-commutative73.7%
exp-to-pow74.1%
sub-neg74.1%
metadata-eval74.1%
Simplified74.1%
Taylor expanded in y around 0 71.4%
exp-to-pow71.7%
sub-neg71.7%
metadata-eval71.7%
associate-*r/75.4%
Simplified75.4%
Taylor expanded in t around 0 64.6%
Taylor expanded in b around 0 52.6%
Taylor expanded in a around 0 55.1%
Final simplification49.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= b 1.3e-221)
(/ (- (/ x a) (/ (* x b) a)) y)
(/
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 tmp;
if (b <= 1.3e-221) {
tmp = ((x / a) - ((x * b) / a)) / y;
} 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) :: tmp
if (b <= 1.3d-221) then
tmp = ((x / a) - ((x * b) / a)) / y
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 tmp;
if (b <= 1.3e-221) {
tmp = ((x / a) - ((x * b) / a)) / y;
} 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): tmp = 0 if b <= 1.3e-221: tmp = ((x / a) - ((x * b) / a)) / y 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) tmp = 0.0 if (b <= 1.3e-221) tmp = Float64(Float64(Float64(x / a) - Float64(Float64(x * b) / a)) / y); 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) tmp = 0.0; if (b <= 1.3e-221) tmp = ((x / a) - ((x * b) / a)) / y; 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_] := If[LessEqual[b, 1.3e-221], N[(N[(N[(x / a), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $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}
\mathbf{if}\;b \leq 1.3 \cdot 10^{-221}:\\
\;\;\;\;\frac{\frac{x}{a} - \frac{x \cdot b}{a}}{y}\\
\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.3000000000000001e-221Initial program 98.3%
associate-/l*96.5%
associate--l+96.5%
exp-sum76.5%
associate-/l*75.8%
*-commutative75.8%
exp-to-pow75.8%
exp-diff70.1%
*-commutative70.1%
exp-to-pow70.8%
sub-neg70.8%
metadata-eval70.8%
Simplified70.8%
Taylor expanded in y around 0 66.7%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
associate-*r/68.5%
Simplified68.5%
Taylor expanded in t around 0 55.0%
Taylor expanded in b around 0 33.5%
+-commutative33.5%
mul-1-neg33.5%
unsub-neg33.5%
*-commutative33.5%
times-frac33.1%
associate-*r/37.3%
Simplified37.3%
Taylor expanded in y around 0 41.3%
if 1.3000000000000001e-221 < b Initial program 98.5%
associate-/l*99.5%
associate--l+99.5%
exp-sum79.7%
associate-/l*79.7%
*-commutative79.7%
exp-to-pow79.7%
exp-diff73.7%
*-commutative73.7%
exp-to-pow74.1%
sub-neg74.1%
metadata-eval74.1%
Simplified74.1%
Taylor expanded in y around 0 71.4%
exp-to-pow71.7%
sub-neg71.7%
metadata-eval71.7%
associate-*r/75.4%
Simplified75.4%
Taylor expanded in t around 0 64.6%
Taylor expanded in b around 0 52.6%
Taylor expanded in a around 0 55.1%
Final simplification47.5%
(FPCore (x y z t a b) :precision binary64 (if (<= b 8e-212) (/ (- (/ x a) (/ (* x b) a)) y) (/ x (+ (* y a) (* b (+ (* y a) (* b (* y (* a 0.5)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 8e-212) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else {
tmp = x / ((y * a) + (b * ((y * a) + (b * (y * (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) :: tmp
if (b <= 8d-212) then
tmp = ((x / a) - ((x * b) / a)) / y
else
tmp = x / ((y * a) + (b * ((y * a) + (b * (y * (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 tmp;
if (b <= 8e-212) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else {
tmp = x / ((y * a) + (b * ((y * a) + (b * (y * (a * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 8e-212: tmp = ((x / a) - ((x * b) / a)) / y else: tmp = x / ((y * a) + (b * ((y * a) + (b * (y * (a * 0.5)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 8e-212) tmp = Float64(Float64(Float64(x / a) - Float64(Float64(x * b) / a)) / y); else tmp = Float64(x / Float64(Float64(y * a) + Float64(b * Float64(Float64(y * a) + Float64(b * Float64(y * Float64(a * 0.5))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 8e-212) tmp = ((x / a) - ((x * b) / a)) / y; else tmp = x / ((y * a) + (b * ((y * a) + (b * (y * (a * 0.5)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 8e-212], N[(N[(N[(x / a), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(N[(y * a), $MachinePrecision] + N[(b * N[(N[(y * a), $MachinePrecision] + N[(b * N[(y * N[(a * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 8 \cdot 10^{-212}:\\
\;\;\;\;\frac{\frac{x}{a} - \frac{x \cdot b}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a + b \cdot \left(y \cdot a + b \cdot \left(y \cdot \left(a \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < 7.99999999999999963e-212Initial program 98.3%
associate-/l*96.5%
associate--l+96.5%
exp-sum76.5%
associate-/l*75.8%
*-commutative75.8%
exp-to-pow75.8%
exp-diff70.1%
*-commutative70.1%
exp-to-pow70.8%
sub-neg70.8%
metadata-eval70.8%
Simplified70.8%
Taylor expanded in y around 0 66.7%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
associate-*r/68.5%
Simplified68.5%
Taylor expanded in t around 0 55.0%
Taylor expanded in b around 0 33.5%
+-commutative33.5%
mul-1-neg33.5%
unsub-neg33.5%
*-commutative33.5%
times-frac33.1%
associate-*r/37.3%
Simplified37.3%
Taylor expanded in y around 0 41.3%
if 7.99999999999999963e-212 < b Initial program 98.5%
associate-/l*99.5%
associate--l+99.5%
exp-sum79.7%
associate-/l*79.7%
*-commutative79.7%
exp-to-pow79.7%
exp-diff73.7%
*-commutative73.7%
exp-to-pow74.1%
sub-neg74.1%
metadata-eval74.1%
Simplified74.1%
Taylor expanded in y around 0 71.4%
exp-to-pow71.7%
sub-neg71.7%
metadata-eval71.7%
associate-*r/75.4%
Simplified75.4%
Taylor expanded in t around 0 64.6%
Taylor expanded in b around 0 52.6%
Taylor expanded in b around 0 46.7%
associate-*r*46.7%
*-commutative46.7%
associate-*l*47.4%
*-commutative47.4%
*-commutative47.4%
*-commutative47.4%
Simplified47.4%
Final simplification44.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b 1.4e-216) (/ (- (/ x a) (/ (* x b) a)) y) (/ x (+ (* y a) (* b (* y (+ a (* b (* a 0.5)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.4e-216) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else {
tmp = x / ((y * a) + (b * (y * (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) :: tmp
if (b <= 1.4d-216) then
tmp = ((x / a) - ((x * b) / a)) / y
else
tmp = x / ((y * a) + (b * (y * (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 tmp;
if (b <= 1.4e-216) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else {
tmp = x / ((y * a) + (b * (y * (a + (b * (a * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 1.4e-216: tmp = ((x / a) - ((x * b) / a)) / y else: tmp = x / ((y * a) + (b * (y * (a + (b * (a * 0.5)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 1.4e-216) tmp = Float64(Float64(Float64(x / a) - Float64(Float64(x * b) / a)) / y); else tmp = Float64(x / Float64(Float64(y * a) + Float64(b * Float64(y * Float64(a + Float64(b * Float64(a * 0.5))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 1.4e-216) tmp = ((x / a) - ((x * b) / a)) / y; else tmp = x / ((y * a) + (b * (y * (a + (b * (a * 0.5)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.4e-216], N[(N[(N[(x / a), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(N[(y * a), $MachinePrecision] + N[(b * N[(y * N[(a + N[(b * N[(a * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.4 \cdot 10^{-216}:\\
\;\;\;\;\frac{\frac{x}{a} - \frac{x \cdot b}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a + b \cdot \left(y \cdot \left(a + b \cdot \left(a \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < 1.4e-216Initial program 98.3%
associate-/l*96.5%
associate--l+96.5%
exp-sum76.5%
associate-/l*75.8%
*-commutative75.8%
exp-to-pow75.8%
exp-diff70.1%
*-commutative70.1%
exp-to-pow70.8%
sub-neg70.8%
metadata-eval70.8%
Simplified70.8%
Taylor expanded in y around 0 66.7%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
associate-*r/68.5%
Simplified68.5%
Taylor expanded in t around 0 55.0%
Taylor expanded in b around 0 33.5%
+-commutative33.5%
mul-1-neg33.5%
unsub-neg33.5%
*-commutative33.5%
times-frac33.1%
associate-*r/37.3%
Simplified37.3%
Taylor expanded in y around 0 41.3%
if 1.4e-216 < b Initial program 98.5%
associate-/l*99.5%
associate--l+99.5%
exp-sum79.7%
associate-/l*79.7%
*-commutative79.7%
exp-to-pow79.7%
exp-diff73.7%
*-commutative73.7%
exp-to-pow74.1%
sub-neg74.1%
metadata-eval74.1%
Simplified74.1%
Taylor expanded in y around 0 71.4%
exp-to-pow71.7%
sub-neg71.7%
metadata-eval71.7%
associate-*r/75.4%
Simplified75.4%
Taylor expanded in t around 0 64.6%
Taylor expanded in b around 0 52.6%
Taylor expanded in b around 0 46.7%
+-commutative46.7%
associate-*r*46.7%
*-commutative46.7%
associate-*l*47.4%
*-commutative47.4%
associate-*r*46.7%
distribute-rgt-out46.7%
*-commutative46.7%
Simplified46.7%
Final simplification43.8%
(FPCore (x y z t a b) :precision binary64 (if (<= b -9e+20) (* (/ (/ b a) y) (- x)) (if (<= b 2e-209) (/ 1.0 (* a (/ y x))) (/ x (+ (* y a) (* y (* a b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -9e+20) {
tmp = ((b / a) / y) * -x;
} else if (b <= 2e-209) {
tmp = 1.0 / (a * (y / x));
} else {
tmp = x / ((y * a) + (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 <= (-9d+20)) then
tmp = ((b / a) / y) * -x
else if (b <= 2d-209) then
tmp = 1.0d0 / (a * (y / x))
else
tmp = x / ((y * a) + (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 <= -9e+20) {
tmp = ((b / a) / y) * -x;
} else if (b <= 2e-209) {
tmp = 1.0 / (a * (y / x));
} else {
tmp = x / ((y * a) + (y * (a * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -9e+20: tmp = ((b / a) / y) * -x elif b <= 2e-209: tmp = 1.0 / (a * (y / x)) else: tmp = x / ((y * a) + (y * (a * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -9e+20) tmp = Float64(Float64(Float64(b / a) / y) * Float64(-x)); elseif (b <= 2e-209) tmp = Float64(1.0 / Float64(a * Float64(y / x))); else tmp = Float64(x / Float64(Float64(y * a) + Float64(y * Float64(a * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -9e+20) tmp = ((b / a) / y) * -x; elseif (b <= 2e-209) tmp = 1.0 / (a * (y / x)); else tmp = x / ((y * a) + (y * (a * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -9e+20], N[(N[(N[(b / a), $MachinePrecision] / y), $MachinePrecision] * (-x)), $MachinePrecision], If[LessEqual[b, 2e-209], N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(N[(y * a), $MachinePrecision] + N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -9 \cdot 10^{+20}:\\
\;\;\;\;\frac{\frac{b}{a}}{y} \cdot \left(-x\right)\\
\mathbf{elif}\;b \leq 2 \cdot 10^{-209}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a + y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -9e20Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.6%
associate-/l*72.6%
*-commutative72.6%
exp-to-pow72.6%
exp-diff61.3%
*-commutative61.3%
exp-to-pow61.3%
sub-neg61.3%
metadata-eval61.3%
Simplified61.3%
Taylor expanded in y around 0 64.6%
exp-to-pow64.6%
sub-neg64.6%
metadata-eval64.6%
associate-*r/72.7%
Simplified72.7%
Taylor expanded in t around 0 77.8%
Taylor expanded in b around 0 39.0%
+-commutative39.0%
mul-1-neg39.0%
unsub-neg39.0%
*-commutative39.0%
times-frac34.5%
associate-*r/40.8%
Simplified40.8%
Taylor expanded in b around inf 39.0%
times-frac34.5%
neg-mul-134.5%
*-commutative34.5%
associate-*l/42.3%
associate-*r/42.2%
associate-/r*45.1%
distribute-rgt-neg-in45.1%
associate-/r*42.2%
distribute-neg-frac42.2%
distribute-neg-frac242.2%
Simplified42.2%
if -9e20 < b < 2.0000000000000001e-209Initial program 96.9%
Taylor expanded in t around 0 70.7%
+-commutative70.7%
mul-1-neg70.7%
unsub-neg70.7%
Simplified70.7%
Taylor expanded in b around 0 69.0%
associate-/l*68.3%
div-exp68.3%
*-commutative68.3%
exp-to-pow68.3%
rem-exp-log69.5%
Simplified69.5%
Taylor expanded in y around 0 32.8%
associate-/r*32.8%
Simplified32.8%
associate-/l/32.8%
div-inv32.8%
clear-num32.9%
associate-*l/40.0%
Applied egg-rr40.0%
if 2.0000000000000001e-209 < b Initial program 98.5%
associate-/l*99.5%
associate--l+99.5%
exp-sum79.7%
associate-/l*79.7%
*-commutative79.7%
exp-to-pow79.7%
exp-diff73.7%
*-commutative73.7%
exp-to-pow74.1%
sub-neg74.1%
metadata-eval74.1%
Simplified74.1%
Taylor expanded in y around 0 71.4%
exp-to-pow71.7%
sub-neg71.7%
metadata-eval71.7%
associate-*r/75.4%
Simplified75.4%
Taylor expanded in t around 0 64.6%
Taylor expanded in b around 0 52.6%
Taylor expanded in b around 0 41.7%
*-commutative41.7%
associate-*r*40.8%
*-commutative40.8%
associate-*l*43.3%
Simplified43.3%
Final simplification42.0%
(FPCore (x y z t a b) :precision binary64 (if (<= b -9.2e+17) (* (/ (/ b a) y) (- x)) (if (<= b 1e-223) (/ 1.0 (* a (/ y x))) (/ x (* a (+ y (* y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -9.2e+17) {
tmp = ((b / a) / y) * -x;
} else if (b <= 1e-223) {
tmp = 1.0 / (a * (y / x));
} else {
tmp = x / (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 <= (-9.2d+17)) then
tmp = ((b / a) / y) * -x
else if (b <= 1d-223) then
tmp = 1.0d0 / (a * (y / x))
else
tmp = x / (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 <= -9.2e+17) {
tmp = ((b / a) / y) * -x;
} else if (b <= 1e-223) {
tmp = 1.0 / (a * (y / x));
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -9.2e+17: tmp = ((b / a) / y) * -x elif b <= 1e-223: tmp = 1.0 / (a * (y / x)) else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -9.2e+17) tmp = Float64(Float64(Float64(b / a) / y) * Float64(-x)); elseif (b <= 1e-223) tmp = Float64(1.0 / Float64(a * Float64(y / x))); else tmp = Float64(x / 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 <= -9.2e+17) tmp = ((b / a) / y) * -x; elseif (b <= 1e-223) tmp = 1.0 / (a * (y / x)); else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -9.2e+17], N[(N[(N[(b / a), $MachinePrecision] / y), $MachinePrecision] * (-x)), $MachinePrecision], If[LessEqual[b, 1e-223], N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -9.2 \cdot 10^{+17}:\\
\;\;\;\;\frac{\frac{b}{a}}{y} \cdot \left(-x\right)\\
\mathbf{elif}\;b \leq 10^{-223}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -9.2e17Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.6%
associate-/l*72.6%
*-commutative72.6%
exp-to-pow72.6%
exp-diff61.3%
*-commutative61.3%
exp-to-pow61.3%
sub-neg61.3%
metadata-eval61.3%
Simplified61.3%
Taylor expanded in y around 0 64.6%
exp-to-pow64.6%
sub-neg64.6%
metadata-eval64.6%
associate-*r/72.7%
Simplified72.7%
Taylor expanded in t around 0 77.8%
Taylor expanded in b around 0 39.0%
+-commutative39.0%
mul-1-neg39.0%
unsub-neg39.0%
*-commutative39.0%
times-frac34.5%
associate-*r/40.8%
Simplified40.8%
Taylor expanded in b around inf 39.0%
times-frac34.5%
neg-mul-134.5%
*-commutative34.5%
associate-*l/42.3%
associate-*r/42.2%
associate-/r*45.1%
distribute-rgt-neg-in45.1%
associate-/r*42.2%
distribute-neg-frac42.2%
distribute-neg-frac242.2%
Simplified42.2%
if -9.2e17 < b < 9.9999999999999997e-224Initial program 96.9%
Taylor expanded in t around 0 70.7%
+-commutative70.7%
mul-1-neg70.7%
unsub-neg70.7%
Simplified70.7%
Taylor expanded in b around 0 69.0%
associate-/l*68.3%
div-exp68.3%
*-commutative68.3%
exp-to-pow68.3%
rem-exp-log69.5%
Simplified69.5%
Taylor expanded in y around 0 32.8%
associate-/r*32.8%
Simplified32.8%
associate-/l/32.8%
div-inv32.8%
clear-num32.9%
associate-*l/40.0%
Applied egg-rr40.0%
if 9.9999999999999997e-224 < b Initial program 98.5%
associate-/l*99.5%
associate--l+99.5%
exp-sum79.7%
associate-/l*79.7%
*-commutative79.7%
exp-to-pow79.7%
exp-diff73.7%
*-commutative73.7%
exp-to-pow74.1%
sub-neg74.1%
metadata-eval74.1%
Simplified74.1%
Taylor expanded in y around 0 71.4%
exp-to-pow71.7%
sub-neg71.7%
metadata-eval71.7%
associate-*r/75.4%
Simplified75.4%
Taylor expanded in t around 0 64.6%
Taylor expanded in b around 0 41.7%
distribute-lft-out41.7%
Simplified41.7%
Final simplification41.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b 5e-227) (/ (- (/ x a) (/ (* x b) a)) y) (/ x (+ (* y a) (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 5e-227) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else {
tmp = x / ((y * a) + (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 <= 5d-227) then
tmp = ((x / a) - ((x * b) / a)) / y
else
tmp = x / ((y * a) + (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 <= 5e-227) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else {
tmp = x / ((y * a) + (y * (a * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 5e-227: tmp = ((x / a) - ((x * b) / a)) / y else: tmp = x / ((y * a) + (y * (a * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 5e-227) tmp = Float64(Float64(Float64(x / a) - Float64(Float64(x * b) / a)) / y); else tmp = Float64(x / Float64(Float64(y * a) + Float64(y * Float64(a * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 5e-227) tmp = ((x / a) - ((x * b) / a)) / y; else tmp = x / ((y * a) + (y * (a * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 5e-227], N[(N[(N[(x / a), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(N[(y * a), $MachinePrecision] + N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 5 \cdot 10^{-227}:\\
\;\;\;\;\frac{\frac{x}{a} - \frac{x \cdot b}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a + y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < 4.99999999999999961e-227Initial program 98.3%
associate-/l*96.5%
associate--l+96.5%
exp-sum76.5%
associate-/l*75.8%
*-commutative75.8%
exp-to-pow75.8%
exp-diff70.1%
*-commutative70.1%
exp-to-pow70.8%
sub-neg70.8%
metadata-eval70.8%
Simplified70.8%
Taylor expanded in y around 0 66.7%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
associate-*r/68.5%
Simplified68.5%
Taylor expanded in t around 0 55.0%
Taylor expanded in b around 0 33.5%
+-commutative33.5%
mul-1-neg33.5%
unsub-neg33.5%
*-commutative33.5%
times-frac33.1%
associate-*r/37.3%
Simplified37.3%
Taylor expanded in y around 0 41.3%
if 4.99999999999999961e-227 < b Initial program 98.5%
associate-/l*99.5%
associate--l+99.5%
exp-sum79.7%
associate-/l*79.7%
*-commutative79.7%
exp-to-pow79.7%
exp-diff73.7%
*-commutative73.7%
exp-to-pow74.1%
sub-neg74.1%
metadata-eval74.1%
Simplified74.1%
Taylor expanded in y around 0 71.4%
exp-to-pow71.7%
sub-neg71.7%
metadata-eval71.7%
associate-*r/75.4%
Simplified75.4%
Taylor expanded in t around 0 64.6%
Taylor expanded in b around 0 52.6%
Taylor expanded in b around 0 41.7%
*-commutative41.7%
associate-*r*40.8%
*-commutative40.8%
associate-*l*43.3%
Simplified43.3%
Final simplification42.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b -3.3e+18) (* (/ (/ b a) y) (- x)) (/ 1.0 (* a (/ y x)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.3e+18) {
tmp = ((b / a) / y) * -x;
} else {
tmp = 1.0 / (a * (y / x));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-3.3d+18)) then
tmp = ((b / a) / y) * -x
else
tmp = 1.0d0 / (a * (y / x))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.3e+18) {
tmp = ((b / a) / y) * -x;
} else {
tmp = 1.0 / (a * (y / x));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3.3e+18: tmp = ((b / a) / y) * -x else: tmp = 1.0 / (a * (y / x)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3.3e+18) tmp = Float64(Float64(Float64(b / a) / y) * Float64(-x)); else tmp = Float64(1.0 / Float64(a * Float64(y / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -3.3e+18) tmp = ((b / a) / y) * -x; else tmp = 1.0 / (a * (y / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.3e+18], N[(N[(N[(b / a), $MachinePrecision] / y), $MachinePrecision] * (-x)), $MachinePrecision], N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.3 \cdot 10^{+18}:\\
\;\;\;\;\frac{\frac{b}{a}}{y} \cdot \left(-x\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\
\end{array}
\end{array}
if b < -3.3e18Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.6%
associate-/l*72.6%
*-commutative72.6%
exp-to-pow72.6%
exp-diff61.3%
*-commutative61.3%
exp-to-pow61.3%
sub-neg61.3%
metadata-eval61.3%
Simplified61.3%
Taylor expanded in y around 0 64.6%
exp-to-pow64.6%
sub-neg64.6%
metadata-eval64.6%
associate-*r/72.7%
Simplified72.7%
Taylor expanded in t around 0 77.8%
Taylor expanded in b around 0 39.0%
+-commutative39.0%
mul-1-neg39.0%
unsub-neg39.0%
*-commutative39.0%
times-frac34.5%
associate-*r/40.8%
Simplified40.8%
Taylor expanded in b around inf 39.0%
times-frac34.5%
neg-mul-134.5%
*-commutative34.5%
associate-*l/42.3%
associate-*r/42.2%
associate-/r*45.1%
distribute-rgt-neg-in45.1%
associate-/r*42.2%
distribute-neg-frac42.2%
distribute-neg-frac242.2%
Simplified42.2%
if -3.3e18 < b Initial program 97.9%
Taylor expanded in t around 0 77.8%
+-commutative77.8%
mul-1-neg77.8%
unsub-neg77.8%
Simplified77.8%
Taylor expanded in b around 0 60.4%
associate-/l*60.4%
div-exp60.4%
*-commutative60.4%
exp-to-pow60.4%
rem-exp-log61.0%
Simplified61.0%
Taylor expanded in y around 0 33.2%
associate-/r*33.2%
Simplified33.2%
associate-/l/33.2%
div-inv33.2%
clear-num33.5%
associate-*l/34.9%
Applied egg-rr34.9%
Final simplification36.7%
(FPCore (x y z t a b) :precision binary64 (if (<= t -1.46e-251) (/ (/ x a) y) (/ 1.0 (* a (/ y x)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1.46e-251) {
tmp = (x / a) / y;
} else {
tmp = 1.0 / (a * (y / x));
}
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.46d-251)) then
tmp = (x / a) / y
else
tmp = 1.0d0 / (a * (y / x))
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.46e-251) {
tmp = (x / a) / y;
} else {
tmp = 1.0 / (a * (y / x));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -1.46e-251: tmp = (x / a) / y else: tmp = 1.0 / (a * (y / x)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -1.46e-251) tmp = Float64(Float64(x / a) / y); else tmp = Float64(1.0 / Float64(a * Float64(y / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -1.46e-251) tmp = (x / a) / y; else tmp = 1.0 / (a * (y / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1.46e-251], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.46 \cdot 10^{-251}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\
\end{array}
\end{array}
if t < -1.45999999999999997e-251Initial program 99.4%
associate-/l*98.7%
associate--l+98.7%
exp-sum79.5%
associate-/l*78.7%
*-commutative78.7%
exp-to-pow78.7%
exp-diff73.7%
*-commutative73.7%
exp-to-pow74.1%
sub-neg74.1%
metadata-eval74.1%
Simplified74.1%
Taylor expanded in y around 0 76.0%
exp-to-pow76.5%
sub-neg76.5%
metadata-eval76.5%
associate-*r/77.5%
Simplified77.5%
Taylor expanded in t around 0 62.3%
Taylor expanded in b around 0 37.9%
associate-/r*38.7%
Simplified38.7%
if -1.45999999999999997e-251 < t Initial program 97.5%
Taylor expanded in t around 0 81.7%
+-commutative81.7%
mul-1-neg81.7%
unsub-neg81.7%
Simplified81.7%
Taylor expanded in b around 0 62.6%
associate-/l*62.0%
div-exp62.0%
*-commutative62.0%
exp-to-pow62.0%
rem-exp-log62.5%
Simplified62.5%
Taylor expanded in y around 0 28.1%
associate-/r*28.1%
Simplified28.1%
associate-/l/28.1%
div-inv28.1%
clear-num28.1%
associate-*l/32.3%
Applied egg-rr32.3%
Final simplification35.3%
(FPCore (x y z t a b) :precision binary64 (if (<= t -1e-250) (/ (/ x a) y) (/ (/ x y) a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1e-250) {
tmp = (x / a) / y;
} else {
tmp = (x / y) / a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= (-1d-250)) then
tmp = (x / a) / y
else
tmp = (x / y) / a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1e-250) {
tmp = (x / a) / y;
} else {
tmp = (x / y) / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -1e-250: tmp = (x / a) / y else: tmp = (x / y) / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -1e-250) tmp = Float64(Float64(x / a) / y); else tmp = Float64(Float64(x / y) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -1e-250) tmp = (x / a) / y; else tmp = (x / y) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1e-250], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{-250}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\end{array}
\end{array}
if t < -1.0000000000000001e-250Initial program 99.4%
associate-/l*98.7%
associate--l+98.7%
exp-sum79.5%
associate-/l*78.7%
*-commutative78.7%
exp-to-pow78.7%
exp-diff73.7%
*-commutative73.7%
exp-to-pow74.1%
sub-neg74.1%
metadata-eval74.1%
Simplified74.1%
Taylor expanded in y around 0 76.0%
exp-to-pow76.5%
sub-neg76.5%
metadata-eval76.5%
associate-*r/77.5%
Simplified77.5%
Taylor expanded in t around 0 62.3%
Taylor expanded in b around 0 37.9%
associate-/r*38.7%
Simplified38.7%
if -1.0000000000000001e-250 < t Initial program 97.5%
Taylor expanded in t around 0 81.7%
+-commutative81.7%
mul-1-neg81.7%
unsub-neg81.7%
Simplified81.7%
Taylor expanded in b around 0 62.6%
associate-/l*62.0%
div-exp62.0%
*-commutative62.0%
exp-to-pow62.0%
rem-exp-log62.5%
Simplified62.5%
Taylor expanded in y around 0 28.1%
associate-/r*28.1%
Simplified28.1%
associate-/l/28.1%
div-inv28.1%
associate-/r*32.3%
Applied egg-rr32.3%
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.4%
associate-/l*97.9%
associate--l+97.9%
exp-sum78.0%
associate-/l*77.6%
*-commutative77.6%
exp-to-pow77.6%
exp-diff71.7%
*-commutative71.7%
exp-to-pow72.3%
sub-neg72.3%
metadata-eval72.3%
Simplified72.3%
Taylor expanded in y around 0 68.9%
exp-to-pow69.4%
sub-neg69.4%
metadata-eval69.4%
associate-*r/71.6%
Simplified71.6%
Taylor expanded in t around 0 59.4%
Taylor expanded in b around 0 32.7%
*-commutative32.7%
Simplified32.7%
Final simplification32.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 2024130
(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))