
(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 16 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 (/ (* (exp (- (+ (* (log a) (- t 1.0)) (* (log z) y)) b)) x) y))
double code(double x, double y, double z, double t, double a, double b) {
return (exp((((log(a) * (t - 1.0)) + (log(z) * y)) - b)) * 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 = (exp((((log(a) * (t - 1.0d0)) + (log(z) * y)) - b)) * x) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (Math.exp((((Math.log(a) * (t - 1.0)) + (Math.log(z) * y)) - b)) * x) / y;
}
def code(x, y, z, t, a, b): return (math.exp((((math.log(a) * (t - 1.0)) + (math.log(z) * y)) - b)) * x) / y
function code(x, y, z, t, a, b) return Float64(Float64(exp(Float64(Float64(Float64(log(a) * Float64(t - 1.0)) + Float64(log(z) * y)) - b)) * x) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (exp((((log(a) * (t - 1.0)) + (log(z) * y)) - b)) * x) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[Exp[N[(N[(N[(N[Log[a], $MachinePrecision] * N[(t - 1.0), $MachinePrecision]), $MachinePrecision] + N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{e^{\left(\log a \cdot \left(t - 1\right) + \log z \cdot y\right) - b} \cdot x}{y}
\end{array}
Initial program 98.7%
Final simplification98.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* (exp (- (+ (* (log a) (- t 1.0)) (* (log z) y)) b)) x) y))
(t_2 (- x (* b x))))
(if (<= t_1 -2e+25)
(/ 1.0 (* (/ a t_2) y))
(if (<= t_1 0.0) (* (/ x (* a y)) (- b)) (/ (/ t_2 a) y)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (exp((((log(a) * (t - 1.0)) + (log(z) * y)) - b)) * x) / y;
double t_2 = x - (b * x);
double tmp;
if (t_1 <= -2e+25) {
tmp = 1.0 / ((a / t_2) * y);
} else if (t_1 <= 0.0) {
tmp = (x / (a * y)) * -b;
} else {
tmp = (t_2 / 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (exp((((log(a) * (t - 1.0d0)) + (log(z) * y)) - b)) * x) / y
t_2 = x - (b * x)
if (t_1 <= (-2d+25)) then
tmp = 1.0d0 / ((a / t_2) * y)
else if (t_1 <= 0.0d0) then
tmp = (x / (a * y)) * -b
else
tmp = (t_2 / 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 t_1 = (Math.exp((((Math.log(a) * (t - 1.0)) + (Math.log(z) * y)) - b)) * x) / y;
double t_2 = x - (b * x);
double tmp;
if (t_1 <= -2e+25) {
tmp = 1.0 / ((a / t_2) * y);
} else if (t_1 <= 0.0) {
tmp = (x / (a * y)) * -b;
} else {
tmp = (t_2 / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (math.exp((((math.log(a) * (t - 1.0)) + (math.log(z) * y)) - b)) * x) / y t_2 = x - (b * x) tmp = 0 if t_1 <= -2e+25: tmp = 1.0 / ((a / t_2) * y) elif t_1 <= 0.0: tmp = (x / (a * y)) * -b else: tmp = (t_2 / a) / y return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(exp(Float64(Float64(Float64(log(a) * Float64(t - 1.0)) + Float64(log(z) * y)) - b)) * x) / y) t_2 = Float64(x - Float64(b * x)) tmp = 0.0 if (t_1 <= -2e+25) tmp = Float64(1.0 / Float64(Float64(a / t_2) * y)); elseif (t_1 <= 0.0) tmp = Float64(Float64(x / Float64(a * y)) * Float64(-b)); else tmp = Float64(Float64(t_2 / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (exp((((log(a) * (t - 1.0)) + (log(z) * y)) - b)) * x) / y; t_2 = x - (b * x); tmp = 0.0; if (t_1 <= -2e+25) tmp = 1.0 / ((a / t_2) * y); elseif (t_1 <= 0.0) tmp = (x / (a * y)) * -b; else tmp = (t_2 / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[Exp[N[(N[(N[(N[Log[a], $MachinePrecision] * N[(t - 1.0), $MachinePrecision]), $MachinePrecision] + N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(b * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+25], N[(1.0 / N[(N[(a / t$95$2), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(N[(x / N[(a * y), $MachinePrecision]), $MachinePrecision] * (-b)), $MachinePrecision], N[(N[(t$95$2 / a), $MachinePrecision] / y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{e^{\left(\log a \cdot \left(t - 1\right) + \log z \cdot y\right) - b} \cdot x}{y}\\
t_2 := x - b \cdot x\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+25}:\\
\;\;\;\;\frac{1}{\frac{a}{t\_2} \cdot y}\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{x}{a \cdot y} \cdot \left(-b\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{t\_2}{a}}{y}\\
\end{array}
\end{array}
if (/.f64 (*.f64 x (exp.f64 (-.f64 (+.f64 (*.f64 y (log.f64 z)) (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a))) b))) y) < -2.00000000000000018e25Initial program 99.2%
Taylor expanded in b around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-/l*N/A
associate-*r*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
Applied rewrites75.7%
Taylor expanded in t around 0
Applied rewrites66.6%
Taylor expanded in y around 0
Applied rewrites49.6%
Applied rewrites49.6%
if -2.00000000000000018e25 < (/.f64 (*.f64 x (exp.f64 (-.f64 (+.f64 (*.f64 y (log.f64 z)) (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a))) b))) y) < -0.0Initial program 98.2%
Taylor expanded in b around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-/l*N/A
associate-*r*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
Applied rewrites55.4%
Taylor expanded in t around 0
Applied rewrites43.1%
Taylor expanded in y around 0
Applied rewrites19.6%
Taylor expanded in b around inf
Applied rewrites27.8%
if -0.0 < (/.f64 (*.f64 x (exp.f64 (-.f64 (+.f64 (*.f64 y (log.f64 z)) (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a))) b))) y) Initial program 99.0%
Taylor expanded in b around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-/l*N/A
associate-*r*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
Applied rewrites64.0%
Taylor expanded in t around 0
Applied rewrites56.5%
Taylor expanded in y around 0
Applied rewrites40.4%
Final simplification37.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* (exp (- (+ (* (log a) (- t 1.0)) (* (log z) y)) b)) x) y))
(t_2 (/ (/ (- x (* b x)) a) y)))
(if (<= t_1 -2e+25) t_2 (if (<= t_1 0.0) (* (/ x (* a y)) (- b)) t_2))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (exp((((log(a) * (t - 1.0)) + (log(z) * y)) - b)) * x) / y;
double t_2 = ((x - (b * x)) / a) / y;
double tmp;
if (t_1 <= -2e+25) {
tmp = t_2;
} else if (t_1 <= 0.0) {
tmp = (x / (a * y)) * -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 = (exp((((log(a) * (t - 1.0d0)) + (log(z) * y)) - b)) * x) / y
t_2 = ((x - (b * x)) / a) / y
if (t_1 <= (-2d+25)) then
tmp = t_2
else if (t_1 <= 0.0d0) then
tmp = (x / (a * y)) * -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.exp((((Math.log(a) * (t - 1.0)) + (Math.log(z) * y)) - b)) * x) / y;
double t_2 = ((x - (b * x)) / a) / y;
double tmp;
if (t_1 <= -2e+25) {
tmp = t_2;
} else if (t_1 <= 0.0) {
tmp = (x / (a * y)) * -b;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (math.exp((((math.log(a) * (t - 1.0)) + (math.log(z) * y)) - b)) * x) / y t_2 = ((x - (b * x)) / a) / y tmp = 0 if t_1 <= -2e+25: tmp = t_2 elif t_1 <= 0.0: tmp = (x / (a * y)) * -b else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(exp(Float64(Float64(Float64(log(a) * Float64(t - 1.0)) + Float64(log(z) * y)) - b)) * x) / y) t_2 = Float64(Float64(Float64(x - Float64(b * x)) / a) / y) tmp = 0.0 if (t_1 <= -2e+25) tmp = t_2; elseif (t_1 <= 0.0) tmp = Float64(Float64(x / Float64(a * y)) * Float64(-b)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (exp((((log(a) * (t - 1.0)) + (log(z) * y)) - b)) * x) / y; t_2 = ((x - (b * x)) / a) / y; tmp = 0.0; if (t_1 <= -2e+25) tmp = t_2; elseif (t_1 <= 0.0) tmp = (x / (a * y)) * -b; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[Exp[N[(N[(N[(N[Log[a], $MachinePrecision] * N[(t - 1.0), $MachinePrecision]), $MachinePrecision] + N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x - N[(b * x), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+25], t$95$2, If[LessEqual[t$95$1, 0.0], N[(N[(x / N[(a * y), $MachinePrecision]), $MachinePrecision] * (-b)), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{e^{\left(\log a \cdot \left(t - 1\right) + \log z \cdot y\right) - b} \cdot x}{y}\\
t_2 := \frac{\frac{x - b \cdot x}{a}}{y}\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+25}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{x}{a \cdot y} \cdot \left(-b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (/.f64 (*.f64 x (exp.f64 (-.f64 (+.f64 (*.f64 y (log.f64 z)) (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a))) b))) y) < -2.00000000000000018e25 or -0.0 < (/.f64 (*.f64 x (exp.f64 (-.f64 (+.f64 (*.f64 y (log.f64 z)) (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a))) b))) y) Initial program 99.1%
Taylor expanded in b around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-/l*N/A
associate-*r*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
Applied rewrites70.2%
Taylor expanded in t around 0
Applied rewrites61.8%
Taylor expanded in y around 0
Applied rewrites45.2%
if -2.00000000000000018e25 < (/.f64 (*.f64 x (exp.f64 (-.f64 (+.f64 (*.f64 y (log.f64 z)) (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a))) b))) y) < -0.0Initial program 98.2%
Taylor expanded in b around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-/l*N/A
associate-*r*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
Applied rewrites55.4%
Taylor expanded in t around 0
Applied rewrites43.1%
Taylor expanded in y around 0
Applied rewrites19.6%
Taylor expanded in b around inf
Applied rewrites27.8%
Final simplification37.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* (exp (* (log z) y)) x) y)))
(if (<= y -1.5e+155)
t_1
(if (<= y 5.8e+104)
(* (/ (exp (- (fma (log a) (- 1.0 t) b))) y) x)
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (exp((log(z) * y)) * x) / y;
double tmp;
if (y <= -1.5e+155) {
tmp = t_1;
} else if (y <= 5.8e+104) {
tmp = (exp(-fma(log(a), (1.0 - t), b)) / y) * x;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(exp(Float64(log(z) * y)) * x) / y) tmp = 0.0 if (y <= -1.5e+155) tmp = t_1; elseif (y <= 5.8e+104) tmp = Float64(Float64(exp(Float64(-fma(log(a), Float64(1.0 - t), b))) / y) * x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[Exp[N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -1.5e+155], t$95$1, If[LessEqual[y, 5.8e+104], N[(N[(N[Exp[(-N[(N[Log[a], $MachinePrecision] * N[(1.0 - t), $MachinePrecision] + b), $MachinePrecision])], $MachinePrecision] / y), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{e^{\log z \cdot y} \cdot x}{y}\\
\mathbf{if}\;y \leq -1.5 \cdot 10^{+155}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 5.8 \cdot 10^{+104}:\\
\;\;\;\;\frac{e^{-\mathsf{fma}\left(\log a, 1 - t, b\right)}}{y} \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.5000000000000001e155 or 5.7999999999999997e104 < y Initial program 100.0%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower-log.f6491.9
Applied rewrites91.9%
if -1.5000000000000001e155 < y < 5.7999999999999997e104Initial program 98.2%
Taylor expanded in y around 0
sub-negN/A
remove-double-negN/A
distribute-lft-neg-outN/A
log-recN/A
mul-1-negN/A
mul-1-negN/A
distribute-neg-outN/A
lower-neg.f64N/A
log-recN/A
distribute-lft-neg-outN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites94.5%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites94.5%
Final simplification93.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* (exp (* (log z) y)) x) y)))
(if (<= y -4.6e+137)
t_1
(if (<= y 5.6e+104) (* (/ (pow a (- t 1.0)) (* (exp b) y)) x) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (exp((log(z) * y)) * x) / y;
double tmp;
if (y <= -4.6e+137) {
tmp = t_1;
} else if (y <= 5.6e+104) {
tmp = (pow(a, (t - 1.0)) / (exp(b) * y)) * x;
} 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 = (exp((log(z) * y)) * x) / y
if (y <= (-4.6d+137)) then
tmp = t_1
else if (y <= 5.6d+104) then
tmp = ((a ** (t - 1.0d0)) / (exp(b) * y)) * x
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 = (Math.exp((Math.log(z) * y)) * x) / y;
double tmp;
if (y <= -4.6e+137) {
tmp = t_1;
} else if (y <= 5.6e+104) {
tmp = (Math.pow(a, (t - 1.0)) / (Math.exp(b) * y)) * x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (math.exp((math.log(z) * y)) * x) / y tmp = 0 if y <= -4.6e+137: tmp = t_1 elif y <= 5.6e+104: tmp = (math.pow(a, (t - 1.0)) / (math.exp(b) * y)) * x else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(exp(Float64(log(z) * y)) * x) / y) tmp = 0.0 if (y <= -4.6e+137) tmp = t_1; elseif (y <= 5.6e+104) tmp = Float64(Float64((a ^ Float64(t - 1.0)) / Float64(exp(b) * y)) * x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (exp((log(z) * y)) * x) / y; tmp = 0.0; if (y <= -4.6e+137) tmp = t_1; elseif (y <= 5.6e+104) tmp = ((a ^ (t - 1.0)) / (exp(b) * y)) * x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[Exp[N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -4.6e+137], t$95$1, If[LessEqual[y, 5.6e+104], N[(N[(N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision] / N[(N[Exp[b], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{e^{\log z \cdot y} \cdot x}{y}\\
\mathbf{if}\;y \leq -4.6 \cdot 10^{+137}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 5.6 \cdot 10^{+104}:\\
\;\;\;\;\frac{{a}^{\left(t - 1\right)}}{e^{b} \cdot y} \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.59999999999999999e137 or 5.6e104 < y Initial program 100.0%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower-log.f6490.9
Applied rewrites90.9%
if -4.59999999999999999e137 < y < 5.6e104Initial program 98.1%
Taylor expanded in y around 0
sub-negN/A
remove-double-negN/A
distribute-lft-neg-outN/A
log-recN/A
mul-1-negN/A
mul-1-negN/A
distribute-neg-outN/A
lower-neg.f64N/A
log-recN/A
distribute-lft-neg-outN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites94.9%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites95.0%
Taylor expanded in y around 0
exp-diffN/A
associate-/l/N/A
lower-/.f64N/A
exp-to-powN/A
lower-pow.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-exp.f6488.9
Applied rewrites88.9%
Final simplification89.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* (exp (* (log z) y)) x) y)))
(if (<= y -6.5e+155)
t_1
(if (<= y 280000.0) (/ (* (exp (- (* (log a) t) b)) x) y) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (exp((log(z) * y)) * x) / y;
double tmp;
if (y <= -6.5e+155) {
tmp = t_1;
} else if (y <= 280000.0) {
tmp = (exp(((log(a) * t) - b)) * x) / 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 = (exp((log(z) * y)) * x) / y
if (y <= (-6.5d+155)) then
tmp = t_1
else if (y <= 280000.0d0) then
tmp = (exp(((log(a) * t) - b)) * x) / 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 = (Math.exp((Math.log(z) * y)) * x) / y;
double tmp;
if (y <= -6.5e+155) {
tmp = t_1;
} else if (y <= 280000.0) {
tmp = (Math.exp(((Math.log(a) * t) - b)) * x) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (math.exp((math.log(z) * y)) * x) / y tmp = 0 if y <= -6.5e+155: tmp = t_1 elif y <= 280000.0: tmp = (math.exp(((math.log(a) * t) - b)) * x) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(exp(Float64(log(z) * y)) * x) / y) tmp = 0.0 if (y <= -6.5e+155) tmp = t_1; elseif (y <= 280000.0) tmp = Float64(Float64(exp(Float64(Float64(log(a) * t) - b)) * x) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (exp((log(z) * y)) * x) / y; tmp = 0.0; if (y <= -6.5e+155) tmp = t_1; elseif (y <= 280000.0) tmp = (exp(((log(a) * t) - b)) * x) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[Exp[N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -6.5e+155], t$95$1, If[LessEqual[y, 280000.0], N[(N[(N[Exp[N[(N[(N[Log[a], $MachinePrecision] * t), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{e^{\log z \cdot y} \cdot x}{y}\\
\mathbf{if}\;y \leq -6.5 \cdot 10^{+155}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 280000:\\
\;\;\;\;\frac{e^{\log a \cdot t - b} \cdot x}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -6.50000000000000046e155 or 2.8e5 < y Initial program 100.0%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower-log.f6490.7
Applied rewrites90.7%
if -6.50000000000000046e155 < y < 2.8e5Initial program 97.9%
Taylor expanded in t around inf
lower-*.f64N/A
rem-exp-logN/A
lower-log.f64N/A
rem-exp-log82.5
Applied rewrites82.5%
Final simplification85.5%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (- x (* b x)))) (if (<= (log a) -245.0) (/ (/ t_1 a) y) (/ 1.0 (/ (* a y) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x - (b * x);
double tmp;
if (log(a) <= -245.0) {
tmp = (t_1 / a) / y;
} else {
tmp = 1.0 / ((a * y) / 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 - (b * x)
if (log(a) <= (-245.0d0)) then
tmp = (t_1 / a) / y
else
tmp = 1.0d0 / ((a * y) / 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 - (b * x);
double tmp;
if (Math.log(a) <= -245.0) {
tmp = (t_1 / a) / y;
} else {
tmp = 1.0 / ((a * y) / t_1);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x - (b * x) tmp = 0 if math.log(a) <= -245.0: tmp = (t_1 / a) / y else: tmp = 1.0 / ((a * y) / t_1) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x - Float64(b * x)) tmp = 0.0 if (log(a) <= -245.0) tmp = Float64(Float64(t_1 / a) / y); else tmp = Float64(1.0 / Float64(Float64(a * y) / t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x - (b * x); tmp = 0.0; if (log(a) <= -245.0) tmp = (t_1 / a) / y; else tmp = 1.0 / ((a * y) / t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x - N[(b * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[Log[a], $MachinePrecision], -245.0], N[(N[(t$95$1 / a), $MachinePrecision] / y), $MachinePrecision], N[(1.0 / N[(N[(a * y), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - b \cdot x\\
\mathbf{if}\;\log a \leq -245:\\
\;\;\;\;\frac{\frac{t\_1}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{a \cdot y}{t\_1}}\\
\end{array}
\end{array}
if (log.f64 a) < -245Initial program 99.6%
Taylor expanded in b around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-/l*N/A
associate-*r*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
Applied rewrites66.0%
Taylor expanded in t around 0
Applied rewrites59.8%
Taylor expanded in y around 0
Applied rewrites40.2%
if -245 < (log.f64 a) Initial program 98.2%
Taylor expanded in b around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-/l*N/A
associate-*r*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
Applied rewrites61.9%
Taylor expanded in t around 0
Applied rewrites49.4%
Taylor expanded in y around 0
Applied rewrites29.5%
Applied rewrites34.4%
Final simplification36.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (/ (exp (- b)) y) x)))
(if (<= b -2.55e+20)
t_1
(if (<= b 420.0) (* (- x (* b x)) (/ (pow a (- t 1.0)) y)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (exp(-b) / y) * x;
double tmp;
if (b <= -2.55e+20) {
tmp = t_1;
} else if (b <= 420.0) {
tmp = (x - (b * x)) * (pow(a, (t - 1.0)) / 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 = (exp(-b) / y) * x
if (b <= (-2.55d+20)) then
tmp = t_1
else if (b <= 420.0d0) then
tmp = (x - (b * x)) * ((a ** (t - 1.0d0)) / 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 = (Math.exp(-b) / y) * x;
double tmp;
if (b <= -2.55e+20) {
tmp = t_1;
} else if (b <= 420.0) {
tmp = (x - (b * x)) * (Math.pow(a, (t - 1.0)) / y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (math.exp(-b) / y) * x tmp = 0 if b <= -2.55e+20: tmp = t_1 elif b <= 420.0: tmp = (x - (b * x)) * (math.pow(a, (t - 1.0)) / y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(exp(Float64(-b)) / y) * x) tmp = 0.0 if (b <= -2.55e+20) tmp = t_1; elseif (b <= 420.0) tmp = Float64(Float64(x - Float64(b * x)) * Float64((a ^ Float64(t - 1.0)) / y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (exp(-b) / y) * x; tmp = 0.0; if (b <= -2.55e+20) tmp = t_1; elseif (b <= 420.0) tmp = (x - (b * x)) * ((a ^ (t - 1.0)) / y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[Exp[(-b)], $MachinePrecision] / y), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[b, -2.55e+20], t$95$1, If[LessEqual[b, 420.0], N[(N[(x - N[(b * x), $MachinePrecision]), $MachinePrecision] * N[(N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{e^{-b}}{y} \cdot x\\
\mathbf{if}\;b \leq -2.55 \cdot 10^{+20}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 420:\\
\;\;\;\;\left(x - b \cdot x\right) \cdot \frac{{a}^{\left(t - 1\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.55e20 or 420 < b Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
lower-neg.f6486.5
Applied rewrites86.5%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6486.5
Applied rewrites86.5%
if -2.55e20 < b < 420Initial program 97.5%
Taylor expanded in b around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-/l*N/A
associate-*r*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
Applied rewrites82.0%
Taylor expanded in y around 0
Applied rewrites75.8%
Final simplification81.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (/ (exp (- b)) y) x)))
(if (<= b -6.6e+22)
t_1
(if (<= b 65000000000.0) (* (/ (pow a (- t 1.0)) y) x) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (exp(-b) / y) * x;
double tmp;
if (b <= -6.6e+22) {
tmp = t_1;
} else if (b <= 65000000000.0) {
tmp = (pow(a, (t - 1.0)) / y) * x;
} 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 = (exp(-b) / y) * x
if (b <= (-6.6d+22)) then
tmp = t_1
else if (b <= 65000000000.0d0) then
tmp = ((a ** (t - 1.0d0)) / y) * x
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 = (Math.exp(-b) / y) * x;
double tmp;
if (b <= -6.6e+22) {
tmp = t_1;
} else if (b <= 65000000000.0) {
tmp = (Math.pow(a, (t - 1.0)) / y) * x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (math.exp(-b) / y) * x tmp = 0 if b <= -6.6e+22: tmp = t_1 elif b <= 65000000000.0: tmp = (math.pow(a, (t - 1.0)) / y) * x else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(exp(Float64(-b)) / y) * x) tmp = 0.0 if (b <= -6.6e+22) tmp = t_1; elseif (b <= 65000000000.0) tmp = Float64(Float64((a ^ Float64(t - 1.0)) / y) * x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (exp(-b) / y) * x; tmp = 0.0; if (b <= -6.6e+22) tmp = t_1; elseif (b <= 65000000000.0) tmp = ((a ^ (t - 1.0)) / y) * x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[Exp[(-b)], $MachinePrecision] / y), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[b, -6.6e+22], t$95$1, If[LessEqual[b, 65000000000.0], N[(N[(N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{e^{-b}}{y} \cdot x\\
\mathbf{if}\;b \leq -6.6 \cdot 10^{+22}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 65000000000:\\
\;\;\;\;\frac{{a}^{\left(t - 1\right)}}{y} \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -6.5999999999999996e22 or 6.5e10 < b Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
lower-neg.f6487.0
Applied rewrites87.0%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6487.0
Applied rewrites87.0%
if -6.5999999999999996e22 < b < 6.5e10Initial program 97.5%
Taylor expanded in y around 0
sub-negN/A
remove-double-negN/A
distribute-lft-neg-outN/A
log-recN/A
mul-1-negN/A
mul-1-negN/A
distribute-neg-outN/A
lower-neg.f64N/A
log-recN/A
distribute-lft-neg-outN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites73.9%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites75.2%
Taylor expanded in y around 0
exp-diffN/A
associate-/l/N/A
lower-/.f64N/A
exp-to-powN/A
lower-pow.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-exp.f6474.5
Applied rewrites74.5%
Taylor expanded in b around 0
Applied rewrites75.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (/ (exp (- b)) y) x)))
(if (<= b -6800000000.0)
t_1
(if (<= b 1.05e-85) (/ 1.0 (/ (* a y) (- x (* b x)))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (exp(-b) / y) * x;
double tmp;
if (b <= -6800000000.0) {
tmp = t_1;
} else if (b <= 1.05e-85) {
tmp = 1.0 / ((a * y) / (x - (b * x)));
} 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 = (exp(-b) / y) * x
if (b <= (-6800000000.0d0)) then
tmp = t_1
else if (b <= 1.05d-85) then
tmp = 1.0d0 / ((a * y) / (x - (b * x)))
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 = (Math.exp(-b) / y) * x;
double tmp;
if (b <= -6800000000.0) {
tmp = t_1;
} else if (b <= 1.05e-85) {
tmp = 1.0 / ((a * y) / (x - (b * x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (math.exp(-b) / y) * x tmp = 0 if b <= -6800000000.0: tmp = t_1 elif b <= 1.05e-85: tmp = 1.0 / ((a * y) / (x - (b * x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(exp(Float64(-b)) / y) * x) tmp = 0.0 if (b <= -6800000000.0) tmp = t_1; elseif (b <= 1.05e-85) tmp = Float64(1.0 / Float64(Float64(a * y) / Float64(x - Float64(b * x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (exp(-b) / y) * x; tmp = 0.0; if (b <= -6800000000.0) tmp = t_1; elseif (b <= 1.05e-85) tmp = 1.0 / ((a * y) / (x - (b * x))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[Exp[(-b)], $MachinePrecision] / y), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[b, -6800000000.0], t$95$1, If[LessEqual[b, 1.05e-85], N[(1.0 / N[(N[(a * y), $MachinePrecision] / N[(x - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{e^{-b}}{y} \cdot x\\
\mathbf{if}\;b \leq -6800000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-85}:\\
\;\;\;\;\frac{1}{\frac{a \cdot y}{x - b \cdot x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -6.8e9 or 1.05e-85 < b Initial program 99.9%
Taylor expanded in b around inf
mul-1-negN/A
lower-neg.f6480.5
Applied rewrites80.5%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6480.5
Applied rewrites80.5%
if -6.8e9 < b < 1.05e-85Initial program 97.3%
Taylor expanded in b around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-/l*N/A
associate-*r*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
Applied rewrites83.3%
Taylor expanded in t around 0
Applied rewrites68.0%
Taylor expanded in y around 0
Applied rewrites42.3%
Applied rewrites45.5%
Final simplification64.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (/ x y) (exp (- b)))))
(if (<= b -2e+20)
t_1
(if (<= b 1.05e-85) (/ 1.0 (/ (* a y) (- x (* b x)))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / y) * exp(-b);
double tmp;
if (b <= -2e+20) {
tmp = t_1;
} else if (b <= 1.05e-85) {
tmp = 1.0 / ((a * y) / (x - (b * x)));
} 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 / y) * exp(-b)
if (b <= (-2d+20)) then
tmp = t_1
else if (b <= 1.05d-85) then
tmp = 1.0d0 / ((a * y) / (x - (b * x)))
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 / y) * Math.exp(-b);
double tmp;
if (b <= -2e+20) {
tmp = t_1;
} else if (b <= 1.05e-85) {
tmp = 1.0 / ((a * y) / (x - (b * x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / y) * math.exp(-b) tmp = 0 if b <= -2e+20: tmp = t_1 elif b <= 1.05e-85: tmp = 1.0 / ((a * y) / (x - (b * x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / y) * exp(Float64(-b))) tmp = 0.0 if (b <= -2e+20) tmp = t_1; elseif (b <= 1.05e-85) tmp = Float64(1.0 / Float64(Float64(a * y) / Float64(x - Float64(b * x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / y) * exp(-b); tmp = 0.0; if (b <= -2e+20) tmp = t_1; elseif (b <= 1.05e-85) tmp = 1.0 / ((a * y) / (x - (b * x))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / y), $MachinePrecision] * N[Exp[(-b)], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2e+20], t$95$1, If[LessEqual[b, 1.05e-85], N[(1.0 / N[(N[(a * y), $MachinePrecision] / N[(x - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y} \cdot e^{-b}\\
\mathbf{if}\;b \leq -2 \cdot 10^{+20}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-85}:\\
\;\;\;\;\frac{1}{\frac{a \cdot y}{x - b \cdot x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2e20 or 1.05e-85 < b Initial program 99.9%
Taylor expanded in b around inf
mul-1-negN/A
lower-neg.f6481.6
Applied rewrites81.6%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f6473.3
Applied rewrites73.3%
if -2e20 < b < 1.05e-85Initial program 97.4%
Taylor expanded in b around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-/l*N/A
associate-*r*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
Applied rewrites82.9%
Taylor expanded in t around 0
Applied rewrites67.2%
Taylor expanded in y around 0
Applied rewrites41.4%
Applied rewrites44.4%
Final simplification59.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= x 5.4e-14)
(* (/ (- 1.0 b) a) (/ x y))
(if (<= x 1.45e+116)
(/ (- (* (/ x a) y) (* (* (/ x a) b) y)) (* y y))
(/ (/ (- x (* b x)) a) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= 5.4e-14) {
tmp = ((1.0 - b) / a) * (x / y);
} else if (x <= 1.45e+116) {
tmp = (((x / a) * y) - (((x / a) * b) * y)) / (y * y);
} else {
tmp = ((x - (b * 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 (x <= 5.4d-14) then
tmp = ((1.0d0 - b) / a) * (x / y)
else if (x <= 1.45d+116) then
tmp = (((x / a) * y) - (((x / a) * b) * y)) / (y * y)
else
tmp = ((x - (b * 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 (x <= 5.4e-14) {
tmp = ((1.0 - b) / a) * (x / y);
} else if (x <= 1.45e+116) {
tmp = (((x / a) * y) - (((x / a) * b) * y)) / (y * y);
} else {
tmp = ((x - (b * x)) / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= 5.4e-14: tmp = ((1.0 - b) / a) * (x / y) elif x <= 1.45e+116: tmp = (((x / a) * y) - (((x / a) * b) * y)) / (y * y) else: tmp = ((x - (b * x)) / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= 5.4e-14) tmp = Float64(Float64(Float64(1.0 - b) / a) * Float64(x / y)); elseif (x <= 1.45e+116) tmp = Float64(Float64(Float64(Float64(x / a) * y) - Float64(Float64(Float64(x / a) * b) * y)) / Float64(y * y)); else tmp = Float64(Float64(Float64(x - Float64(b * x)) / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= 5.4e-14) tmp = ((1.0 - b) / a) * (x / y); elseif (x <= 1.45e+116) tmp = (((x / a) * y) - (((x / a) * b) * y)) / (y * y); else tmp = ((x - (b * x)) / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, 5.4e-14], N[(N[(N[(1.0 - b), $MachinePrecision] / a), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.45e+116], N[(N[(N[(N[(x / a), $MachinePrecision] * y), $MachinePrecision] - N[(N[(N[(x / a), $MachinePrecision] * b), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] / N[(y * y), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - N[(b * x), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 5.4 \cdot 10^{-14}:\\
\;\;\;\;\frac{1 - b}{a} \cdot \frac{x}{y}\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{+116}:\\
\;\;\;\;\frac{\frac{x}{a} \cdot y - \left(\frac{x}{a} \cdot b\right) \cdot y}{y \cdot y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x - b \cdot x}{a}}{y}\\
\end{array}
\end{array}
if x < 5.3999999999999997e-14Initial program 98.4%
Taylor expanded in b around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-/l*N/A
associate-*r*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
Applied rewrites64.3%
Taylor expanded in t around 0
Applied rewrites52.4%
Taylor expanded in y around 0
Applied rewrites33.0%
Taylor expanded in y around 0
Applied rewrites34.2%
if 5.3999999999999997e-14 < x < 1.4500000000000001e116Initial program 99.3%
Taylor expanded in b around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-/l*N/A
associate-*r*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
Applied rewrites68.3%
Taylor expanded in t around 0
Applied rewrites60.8%
Taylor expanded in y around 0
Applied rewrites44.5%
Applied rewrites56.9%
if 1.4500000000000001e116 < x Initial program 100.0%
Taylor expanded in b around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-/l*N/A
associate-*r*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
Applied rewrites54.6%
Taylor expanded in t around 0
Applied rewrites52.1%
Taylor expanded in y around 0
Applied rewrites27.9%
Final simplification35.6%
(FPCore (x y z t a b) :precision binary64 (if (<= x 1.6e-14) (* (/ (- 1.0 b) a) (/ x y)) (/ (- x (* b x)) (* a y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= 1.6e-14) {
tmp = ((1.0 - b) / a) * (x / y);
} else {
tmp = (x - (b * 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 (x <= 1.6d-14) then
tmp = ((1.0d0 - b) / a) * (x / y)
else
tmp = (x - (b * 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 (x <= 1.6e-14) {
tmp = ((1.0 - b) / a) * (x / y);
} else {
tmp = (x - (b * x)) / (a * y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= 1.6e-14: tmp = ((1.0 - b) / a) * (x / y) else: tmp = (x - (b * x)) / (a * y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= 1.6e-14) tmp = Float64(Float64(Float64(1.0 - b) / a) * Float64(x / y)); else tmp = Float64(Float64(x - Float64(b * x)) / Float64(a * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= 1.6e-14) tmp = ((1.0 - b) / a) * (x / y); else tmp = (x - (b * x)) / (a * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, 1.6e-14], N[(N[(N[(1.0 - b), $MachinePrecision] / a), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(N[(x - N[(b * x), $MachinePrecision]), $MachinePrecision] / N[(a * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.6 \cdot 10^{-14}:\\
\;\;\;\;\frac{1 - b}{a} \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x - b \cdot x}{a \cdot y}\\
\end{array}
\end{array}
if x < 1.6000000000000001e-14Initial program 98.4%
Taylor expanded in b around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-/l*N/A
associate-*r*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
Applied rewrites64.5%
Taylor expanded in t around 0
Applied rewrites52.5%
Taylor expanded in y around 0
Applied rewrites33.0%
Taylor expanded in y around 0
Applied rewrites34.3%
if 1.6000000000000001e-14 < x Initial program 99.5%
Taylor expanded in b around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-/l*N/A
associate-*r*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
Applied rewrites59.8%
Taylor expanded in t around 0
Applied rewrites55.3%
Taylor expanded in y around 0
Applied rewrites34.8%
Applied rewrites35.3%
Final simplification34.5%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ x (* a y)))) (if (<= b -1.18e+21) (* t_1 (- b)) t_1)))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * y);
double tmp;
if (b <= -1.18e+21) {
tmp = t_1 * -b;
} 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 / (a * y)
if (b <= (-1.18d+21)) then
tmp = t_1 * -b
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 / (a * y);
double tmp;
if (b <= -1.18e+21) {
tmp = t_1 * -b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a * y) tmp = 0 if b <= -1.18e+21: tmp = t_1 * -b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a * y)) tmp = 0.0 if (b <= -1.18e+21) tmp = Float64(t_1 * Float64(-b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a * y); tmp = 0.0; if (b <= -1.18e+21) tmp = t_1 * -b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.18e+21], N[(t$95$1 * (-b)), $MachinePrecision], t$95$1]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a \cdot y}\\
\mathbf{if}\;b \leq -1.18 \cdot 10^{+21}:\\
\;\;\;\;t\_1 \cdot \left(-b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.18e21Initial program 100.0%
Taylor expanded in b around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-/l*N/A
associate-*r*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
Applied rewrites54.2%
Taylor expanded in t around 0
Applied rewrites57.6%
Taylor expanded in y around 0
Applied rewrites42.3%
Taylor expanded in b around inf
Applied rewrites33.1%
if -1.18e21 < b Initial program 98.3%
Taylor expanded in b around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-/l*N/A
associate-*r*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
Applied rewrites66.3%
Taylor expanded in t around 0
Applied rewrites51.8%
Taylor expanded in y around 0
Applied rewrites30.6%
Taylor expanded in b around 0
Applied rewrites33.7%
Final simplification33.5%
(FPCore (x y z t a b) :precision binary64 (/ (- x (* b x)) (* a y)))
double code(double x, double y, double z, double t, double a, double b) {
return (x - (b * x)) / (a * 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 - (b * x)) / (a * y)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x - (b * x)) / (a * y);
}
def code(x, y, z, t, a, b): return (x - (b * x)) / (a * y)
function code(x, y, z, t, a, b) return Float64(Float64(x - Float64(b * x)) / Float64(a * y)) end
function tmp = code(x, y, z, t, a, b) tmp = (x - (b * x)) / (a * y); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x - N[(b * x), $MachinePrecision]), $MachinePrecision] / N[(a * y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x - b \cdot x}{a \cdot y}
\end{array}
Initial program 98.7%
Taylor expanded in b around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-/l*N/A
associate-*r*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
Applied rewrites63.4%
Taylor expanded in t around 0
Applied rewrites53.2%
Taylor expanded in y around 0
Applied rewrites33.4%
Applied rewrites33.6%
Final simplification33.6%
(FPCore (x y z t a b) :precision binary64 (/ x (* a y)))
double code(double x, double y, double z, double t, double a, double b) {
return x / (a * 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 / (a * y)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (a * y);
}
def code(x, y, z, t, a, b): return x / (a * y)
function code(x, y, z, t, a, b) return Float64(x / Float64(a * y)) end
function tmp = code(x, y, z, t, a, b) tmp = x / (a * y); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(a * y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{a \cdot y}
\end{array}
Initial program 98.7%
Taylor expanded in b around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-/l*N/A
associate-*r*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
Applied rewrites63.4%
Taylor expanded in t around 0
Applied rewrites53.2%
Taylor expanded in y around 0
Applied rewrites33.4%
Taylor expanded in b around 0
Applied rewrites30.0%
(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 2024243
(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))