
(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 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (+ t -1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t + (-1.0d0)) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t + -1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t + -1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t + -1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t + -1\right) \cdot \log a\right) - b}}{y}
\end{array}
Initial program 97.8%
Final simplification97.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -3.7e+129) (not (<= y 4.8e+45))) (/ (* x (exp (- (- (* y (log z)) (log a)) b))) y) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -3.7e+129) || !(y <= 4.8e+45)) {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
} else {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-3.7d+129)) .or. (.not. (y <= 4.8d+45))) then
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y
else
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -3.7e+129) || !(y <= 4.8e+45)) {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
} else {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -3.7e+129) or not (y <= 4.8e+45): tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y else: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -3.7e+129) || !(y <= 4.8e+45)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -3.7e+129) || ~((y <= 4.8e+45))) tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; else tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -3.7e+129], N[Not[LessEqual[y, 4.8e+45]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.7 \cdot 10^{+129} \lor \neg \left(y \leq 4.8 \cdot 10^{+45}\right):\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -3.69999999999999978e129 or 4.79999999999999979e45 < y Initial program 100.0%
Taylor expanded in t around 0 96.6%
+-commutative96.6%
mul-1-neg96.6%
unsub-neg96.6%
Simplified96.6%
if -3.69999999999999978e129 < y < 4.79999999999999979e45Initial program 96.7%
Taylor expanded in y around 0 95.0%
Final simplification95.5%
(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.5e+110)
t_2
(if (<= y -2.6e-106)
(* x (/ t_1 y))
(if (<= y 4.3e+110) (* x (/ t_1 (* y (exp b)))) t_2)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = pow(a, (t + -1.0));
double t_2 = ((x * pow(z, y)) / a) / y;
double tmp;
if (y <= -1.5e+110) {
tmp = t_2;
} else if (y <= -2.6e-106) {
tmp = x * (t_1 / y);
} else if (y <= 4.3e+110) {
tmp = x * (t_1 / (y * exp(b)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a ** (t + (-1.0d0))
t_2 = ((x * (z ** y)) / a) / y
if (y <= (-1.5d+110)) then
tmp = t_2
else if (y <= (-2.6d-106)) then
tmp = x * (t_1 / y)
else if (y <= 4.3d+110) then
tmp = x * (t_1 / (y * exp(b)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = Math.pow(a, (t + -1.0));
double t_2 = ((x * Math.pow(z, y)) / a) / y;
double tmp;
if (y <= -1.5e+110) {
tmp = t_2;
} else if (y <= -2.6e-106) {
tmp = x * (t_1 / y);
} else if (y <= 4.3e+110) {
tmp = x * (t_1 / (y * Math.exp(b)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, (t + -1.0)) t_2 = ((x * math.pow(z, y)) / a) / y tmp = 0 if y <= -1.5e+110: tmp = t_2 elif y <= -2.6e-106: tmp = x * (t_1 / y) elif y <= 4.3e+110: tmp = x * (t_1 / (y * math.exp(b))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = a ^ Float64(t + -1.0) t_2 = Float64(Float64(Float64(x * (z ^ y)) / a) / y) tmp = 0.0 if (y <= -1.5e+110) tmp = t_2; elseif (y <= -2.6e-106) tmp = Float64(x * Float64(t_1 / y)); elseif (y <= 4.3e+110) tmp = Float64(x * Float64(t_1 / 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 * (z ^ y)) / a) / y; tmp = 0.0; if (y <= -1.5e+110) tmp = t_2; elseif (y <= -2.6e-106) tmp = x * (t_1 / y); elseif (y <= 4.3e+110) tmp = x * (t_1 / (y * exp(b))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -1.5e+110], t$95$2, If[LessEqual[y, -2.6e-106], N[(x * N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.3e+110], N[(x * N[(t$95$1 / 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{\frac{x \cdot {z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -1.5 \cdot 10^{+110}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -2.6 \cdot 10^{-106}:\\
\;\;\;\;x \cdot \frac{t\_1}{y}\\
\mathbf{elif}\;y \leq 4.3 \cdot 10^{+110}:\\
\;\;\;\;x \cdot \frac{t\_1}{y \cdot e^{b}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -1.50000000000000004e110 or 4.30000000000000007e110 < y Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum66.2%
associate-/l*62.3%
*-commutative62.3%
exp-to-pow62.3%
exp-diff54.5%
*-commutative54.5%
exp-to-pow54.5%
sub-neg54.5%
metadata-eval54.5%
Simplified54.5%
Taylor expanded in b around 0 68.9%
*-commutative68.9%
exp-to-pow68.9%
sub-neg68.9%
metadata-eval68.9%
associate-*l*68.9%
Simplified68.9%
Taylor expanded in t around 0 89.8%
if -1.50000000000000004e110 < y < -2.6000000000000001e-106Initial program 99.0%
associate-/l*99.0%
associate--l+99.0%
exp-sum81.1%
associate-/l*81.1%
*-commutative81.1%
exp-to-pow81.1%
exp-diff55.5%
*-commutative55.5%
exp-to-pow56.3%
sub-neg56.3%
metadata-eval56.3%
Simplified56.3%
Taylor expanded in y around 0 58.8%
exp-to-pow59.3%
sub-neg59.3%
metadata-eval59.3%
associate-*r/59.3%
Simplified59.3%
Taylor expanded in b around 0 70.2%
if -2.6000000000000001e-106 < y < 4.30000000000000007e110Initial program 96.3%
associate-/l*96.9%
associate--l+96.9%
exp-sum90.5%
associate-/l*90.5%
*-commutative90.5%
exp-to-pow90.5%
exp-diff75.5%
*-commutative75.5%
exp-to-pow76.4%
sub-neg76.4%
metadata-eval76.4%
Simplified76.4%
Taylor expanded in y around 0 78.3%
exp-to-pow79.1%
sub-neg79.1%
metadata-eval79.1%
associate-*r/80.5%
Simplified80.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -7.6e+129)
(* (/ x a) (/ (pow z y) y))
(if (<= y 2.4e+109)
(/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)
(/ (/ (* x (pow z y)) a) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -7.6e+129) {
tmp = (x / a) * (pow(z, y) / y);
} else if (y <= 2.4e+109) {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
} else {
tmp = ((x * pow(z, y)) / 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 (y <= (-7.6d+129)) then
tmp = (x / a) * ((z ** y) / y)
else if (y <= 2.4d+109) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
else
tmp = ((x * (z ** y)) / 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 (y <= -7.6e+129) {
tmp = (x / a) * (Math.pow(z, y) / y);
} else if (y <= 2.4e+109) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
} else {
tmp = ((x * Math.pow(z, y)) / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -7.6e+129: tmp = (x / a) * (math.pow(z, y) / y) elif y <= 2.4e+109: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y else: tmp = ((x * math.pow(z, y)) / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -7.6e+129) tmp = Float64(Float64(x / a) * Float64((z ^ y) / y)); elseif (y <= 2.4e+109) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); else tmp = Float64(Float64(Float64(x * (z ^ y)) / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -7.6e+129) tmp = (x / a) * ((z ^ y) / y); elseif (y <= 2.4e+109) tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; else tmp = ((x * (z ^ y)) / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -7.6e+129], N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.4e+109], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.6 \cdot 10^{+129}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y}\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{+109}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
\end{array}
\end{array}
if y < -7.60000000000000011e129Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.7%
associate-/l*72.7%
*-commutative72.7%
exp-to-pow72.7%
exp-diff60.6%
*-commutative60.6%
exp-to-pow60.6%
sub-neg60.6%
metadata-eval60.6%
Simplified60.6%
Taylor expanded in b around 0 72.8%
*-commutative72.8%
exp-to-pow72.8%
sub-neg72.8%
metadata-eval72.8%
associate-*l*72.8%
Simplified72.8%
Taylor expanded in t around 0 82.0%
times-frac88.1%
Simplified88.1%
if -7.60000000000000011e129 < y < 2.39999999999999987e109Initial program 97.0%
Taylor expanded in y around 0 94.8%
if 2.39999999999999987e109 < y Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum61.0%
associate-/l*53.7%
*-commutative53.7%
exp-to-pow53.7%
exp-diff48.8%
*-commutative48.8%
exp-to-pow48.8%
sub-neg48.8%
metadata-eval48.8%
Simplified48.8%
Taylor expanded in b around 0 65.9%
*-commutative65.9%
exp-to-pow65.9%
sub-neg65.9%
metadata-eval65.9%
associate-*l*65.9%
Simplified65.9%
Taylor expanded in t around 0 92.8%
Final simplification93.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -3.7e+36) (not (<= t 1e+50))) (* x (/ (pow a t) y)) (/ (* x (pow z y)) (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -3.7e+36) || !(t <= 1e+50)) {
tmp = x * (pow(a, t) / y);
} else {
tmp = (x * pow(z, y)) / (a * (y * exp(b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-3.7d+36)) .or. (.not. (t <= 1d+50))) then
tmp = x * ((a ** t) / y)
else
tmp = (x * (z ** y)) / (a * (y * exp(b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -3.7e+36) || !(t <= 1e+50)) {
tmp = x * (Math.pow(a, t) / y);
} else {
tmp = (x * Math.pow(z, y)) / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -3.7e+36) or not (t <= 1e+50): tmp = x * (math.pow(a, t) / y) else: tmp = (x * math.pow(z, y)) / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -3.7e+36) || !(t <= 1e+50)) tmp = Float64(x * Float64((a ^ t) / y)); else tmp = Float64(Float64(x * (z ^ y)) / Float64(a * Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -3.7e+36) || ~((t <= 1e+50))) tmp = x * ((a ^ t) / y); else tmp = (x * (z ^ y)) / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -3.7e+36], N[Not[LessEqual[t, 1e+50]], $MachinePrecision]], N[(x * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.7 \cdot 10^{+36} \lor \neg \left(t \leq 10^{+50}\right):\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if t < -3.70000000000000029e36 or 1.0000000000000001e50 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum76.1%
associate-/l*76.1%
*-commutative76.1%
exp-to-pow76.1%
exp-diff48.6%
*-commutative48.6%
exp-to-pow48.6%
sub-neg48.6%
metadata-eval48.6%
Simplified48.6%
Taylor expanded in y around 0 57.9%
exp-to-pow57.9%
sub-neg57.9%
metadata-eval57.9%
associate-*r/57.9%
Simplified57.9%
Taylor expanded in b around 0 81.9%
Taylor expanded in t around inf 81.9%
if -3.70000000000000029e36 < t < 1.0000000000000001e50Initial program 96.2%
associate-/l*96.8%
associate--l+96.8%
exp-sum86.0%
associate-/l*83.9%
*-commutative83.9%
exp-to-pow83.9%
exp-diff79.2%
*-commutative79.2%
exp-to-pow80.2%
sub-neg80.2%
metadata-eval80.2%
Simplified80.2%
Taylor expanded in t around 0 86.1%
Final simplification84.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -5.1e+38) (not (<= t 5.1e+54))) (* x (/ (pow a t) y)) (* x (/ (pow z y) (* a (* y (exp b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -5.1e+38) || !(t <= 5.1e+54)) {
tmp = x * (pow(a, t) / y);
} else {
tmp = x * (pow(z, y) / (a * (y * exp(b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-5.1d+38)) .or. (.not. (t <= 5.1d+54))) then
tmp = x * ((a ** t) / y)
else
tmp = x * ((z ** y) / (a * (y * exp(b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -5.1e+38) || !(t <= 5.1e+54)) {
tmp = x * (Math.pow(a, t) / y);
} else {
tmp = x * (Math.pow(z, y) / (a * (y * Math.exp(b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -5.1e+38) or not (t <= 5.1e+54): tmp = x * (math.pow(a, t) / y) else: tmp = x * (math.pow(z, y) / (a * (y * math.exp(b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -5.1e+38) || !(t <= 5.1e+54)) tmp = Float64(x * Float64((a ^ t) / y)); else tmp = Float64(x * Float64((z ^ y) / Float64(a * Float64(y * exp(b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -5.1e+38) || ~((t <= 5.1e+54))) tmp = x * ((a ^ t) / y); else tmp = x * ((z ^ y) / (a * (y * exp(b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -5.1e+38], N[Not[LessEqual[t, 5.1e+54]], $MachinePrecision]], N[(x * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Power[z, y], $MachinePrecision] / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.1 \cdot 10^{+38} \lor \neg \left(t \leq 5.1 \cdot 10^{+54}\right):\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if t < -5.1000000000000001e38 or 5.10000000000000009e54 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum76.1%
associate-/l*76.1%
*-commutative76.1%
exp-to-pow76.1%
exp-diff48.6%
*-commutative48.6%
exp-to-pow48.6%
sub-neg48.6%
metadata-eval48.6%
Simplified48.6%
Taylor expanded in y around 0 57.9%
exp-to-pow57.9%
sub-neg57.9%
metadata-eval57.9%
associate-*r/57.9%
Simplified57.9%
Taylor expanded in b around 0 81.9%
Taylor expanded in t around inf 81.9%
if -5.1000000000000001e38 < t < 5.10000000000000009e54Initial program 96.2%
associate-/l*96.8%
associate--l+96.8%
exp-sum86.0%
associate-/l*83.9%
*-commutative83.9%
exp-to-pow83.9%
exp-diff79.2%
*-commutative79.2%
exp-to-pow80.2%
sub-neg80.2%
metadata-eval80.2%
Simplified80.2%
Taylor expanded in t around 0 85.7%
Final simplification84.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (pow a t) y))))
(if (<= t -1.4e+20)
t_1
(if (<= t 2.5e-284)
(/
x
(*
a
(* y (- 1.0 (* b (- -1.0 (* b (+ 0.5 (* b 0.16666666666666666)))))))))
(if (<= t 1.85)
(- (/ x (* y a)) (* b (* b (* -0.5 (/ (/ x a) y)))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (pow(a, t) / y);
double tmp;
if (t <= -1.4e+20) {
tmp = t_1;
} else if (t <= 2.5e-284) {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
} else if (t <= 1.85) {
tmp = (x / (y * a)) - (b * (b * (-0.5 * ((x / a) / y))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((a ** t) / y)
if (t <= (-1.4d+20)) then
tmp = t_1
else if (t <= 2.5d-284) then
tmp = x / (a * (y * (1.0d0 - (b * ((-1.0d0) - (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
else if (t <= 1.85d0) then
tmp = (x / (y * a)) - (b * (b * ((-0.5d0) * ((x / a) / y))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (Math.pow(a, t) / y);
double tmp;
if (t <= -1.4e+20) {
tmp = t_1;
} else if (t <= 2.5e-284) {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
} else if (t <= 1.85) {
tmp = (x / (y * a)) - (b * (b * (-0.5 * ((x / a) / y))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * (math.pow(a, t) / y) tmp = 0 if t <= -1.4e+20: tmp = t_1 elif t <= 2.5e-284: tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) elif t <= 1.85: tmp = (x / (y * a)) - (b * (b * (-0.5 * ((x / a) / y)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64((a ^ t) / y)) tmp = 0.0 if (t <= -1.4e+20) tmp = t_1; elseif (t <= 2.5e-284) tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); elseif (t <= 1.85) tmp = Float64(Float64(x / Float64(y * a)) - Float64(b * Float64(b * Float64(-0.5 * Float64(Float64(x / a) / y))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * ((a ^ t) / y); tmp = 0.0; if (t <= -1.4e+20) tmp = t_1; elseif (t <= 2.5e-284) tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))); elseif (t <= 1.85) tmp = (x / (y * a)) - (b * (b * (-0.5 * ((x / a) / y)))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.4e+20], t$95$1, If[LessEqual[t, 2.5e-284], N[(x / N[(a * N[(y * N[(1.0 - N[(b * N[(-1.0 - N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.85], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(b * N[(b * N[(-0.5 * N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{{a}^{t}}{y}\\
\mathbf{if}\;t \leq -1.4 \cdot 10^{+20}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-284}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 - b \cdot \left(-1 - b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\mathbf{elif}\;t \leq 1.85:\\
\;\;\;\;\frac{x}{y \cdot a} - b \cdot \left(b \cdot \left(-0.5 \cdot \frac{\frac{x}{a}}{y}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.4e20 or 1.8500000000000001 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum75.2%
associate-/l*75.2%
*-commutative75.2%
exp-to-pow75.2%
exp-diff47.1%
*-commutative47.1%
exp-to-pow47.1%
sub-neg47.1%
metadata-eval47.1%
Simplified47.1%
Taylor expanded in y around 0 55.5%
exp-to-pow55.5%
sub-neg55.5%
metadata-eval55.5%
associate-*r/55.5%
Simplified55.5%
Taylor expanded in b around 0 77.2%
Taylor expanded in t around inf 77.2%
if -1.4e20 < t < 2.49999999999999987e-284Initial program 94.9%
associate-/l*96.0%
associate--l+96.0%
exp-sum86.3%
associate-/l*82.6%
*-commutative82.6%
exp-to-pow82.6%
exp-diff79.0%
*-commutative79.0%
exp-to-pow80.4%
sub-neg80.4%
metadata-eval80.4%
Simplified80.4%
Taylor expanded in y around 0 71.9%
exp-to-pow73.2%
sub-neg73.2%
metadata-eval73.2%
associate-*r/77.8%
Simplified77.8%
Taylor expanded in t around 0 82.3%
Taylor expanded in b around 0 60.4%
*-commutative60.4%
Simplified60.4%
if 2.49999999999999987e-284 < t < 1.8500000000000001Initial program 97.4%
associate-/l*97.3%
associate--l+97.3%
exp-sum89.8%
associate-/l*89.8%
*-commutative89.8%
exp-to-pow89.8%
exp-diff89.8%
*-commutative89.8%
exp-to-pow90.6%
sub-neg90.6%
metadata-eval90.6%
Simplified90.6%
Taylor expanded in y around 0 77.9%
exp-to-pow78.4%
sub-neg78.4%
metadata-eval78.4%
associate-*r/76.7%
Simplified76.7%
Taylor expanded in t around 0 76.7%
Taylor expanded in b around 0 32.0%
Taylor expanded in b around inf 32.0%
associate-*r*32.0%
distribute-rgt-out54.7%
metadata-eval54.7%
*-commutative54.7%
associate-/r*58.3%
associate-*r/58.3%
mul-1-neg58.3%
*-commutative58.3%
metadata-eval58.3%
distribute-rgt-out45.1%
distribute-lft-neg-in45.1%
distribute-rgt-neg-in45.1%
distribute-rgt-out58.3%
metadata-eval58.3%
*-commutative58.3%
associate-*r/58.3%
Simplified58.3%
Final simplification67.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1.05e+36) (not (<= t 4.8e+42))) (* x (/ (pow a t) y)) (/ x (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.05e+36) || !(t <= 4.8e+42)) {
tmp = x * (pow(a, t) / y);
} else {
tmp = x / (a * (y * exp(b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-1.05d+36)) .or. (.not. (t <= 4.8d+42))) then
tmp = x * ((a ** t) / y)
else
tmp = x / (a * (y * exp(b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.05e+36) || !(t <= 4.8e+42)) {
tmp = x * (Math.pow(a, t) / y);
} else {
tmp = x / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.05e+36) or not (t <= 4.8e+42): tmp = x * (math.pow(a, t) / y) else: tmp = x / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.05e+36) || !(t <= 4.8e+42)) tmp = Float64(x * Float64((a ^ t) / y)); else tmp = Float64(x / Float64(a * Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.05e+36) || ~((t <= 4.8e+42))) tmp = x * ((a ^ t) / y); else tmp = x / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.05e+36], N[Not[LessEqual[t, 4.8e+42]], $MachinePrecision]], N[(x * N[(N[Power[a, t], $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}\;t \leq -1.05 \cdot 10^{+36} \lor \neg \left(t \leq 4.8 \cdot 10^{+42}\right):\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if t < -1.05000000000000002e36 or 4.7999999999999997e42 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum76.1%
associate-/l*76.1%
*-commutative76.1%
exp-to-pow76.1%
exp-diff48.6%
*-commutative48.6%
exp-to-pow48.6%
sub-neg48.6%
metadata-eval48.6%
Simplified48.6%
Taylor expanded in y around 0 57.9%
exp-to-pow57.9%
sub-neg57.9%
metadata-eval57.9%
associate-*r/57.9%
Simplified57.9%
Taylor expanded in b around 0 81.9%
Taylor expanded in t around inf 81.9%
if -1.05000000000000002e36 < t < 4.7999999999999997e42Initial program 96.2%
associate-/l*96.8%
associate--l+96.8%
exp-sum86.0%
associate-/l*83.9%
*-commutative83.9%
exp-to-pow83.9%
exp-diff79.2%
*-commutative79.2%
exp-to-pow80.2%
sub-neg80.2%
metadata-eval80.2%
Simplified80.2%
Taylor expanded in y around 0 71.0%
exp-to-pow71.9%
sub-neg71.9%
metadata-eval71.9%
associate-*r/73.8%
Simplified73.8%
Taylor expanded in t around 0 77.7%
Final simplification79.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -0.0001)
(- t_1 (* b (+ t_1 (* b (- (/ (* x b) (* y a)) t_1)))))
(if (<= b 2.05e+30)
(/ x (* a (* b (+ y (/ y b)))))
(/
(/
x
(* a (- 1.0 (* b (- -1.0 (* b (+ 0.5 (* b 0.16666666666666666))))))))
y)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -0.0001) {
tmp = t_1 - (b * (t_1 + (b * (((x * b) / (y * a)) - t_1))));
} else if (b <= 2.05e+30) {
tmp = x / (a * (b * (y + (y / b))));
} else {
tmp = (x / (a * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) / 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) :: tmp
t_1 = x / (y * a)
if (b <= (-0.0001d0)) then
tmp = t_1 - (b * (t_1 + (b * (((x * b) / (y * a)) - t_1))))
else if (b <= 2.05d+30) then
tmp = x / (a * (b * (y + (y / b))))
else
tmp = (x / (a * (1.0d0 - (b * ((-1.0d0) - (b * (0.5d0 + (b * 0.16666666666666666d0)))))))) / 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 = x / (y * a);
double tmp;
if (b <= -0.0001) {
tmp = t_1 - (b * (t_1 + (b * (((x * b) / (y * a)) - t_1))));
} else if (b <= 2.05e+30) {
tmp = x / (a * (b * (y + (y / b))));
} else {
tmp = (x / (a * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -0.0001: tmp = t_1 - (b * (t_1 + (b * (((x * b) / (y * a)) - t_1)))) elif b <= 2.05e+30: tmp = x / (a * (b * (y + (y / b)))) else: tmp = (x / (a * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) / y return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -0.0001) tmp = Float64(t_1 - Float64(b * Float64(t_1 + Float64(b * Float64(Float64(Float64(x * b) / Float64(y * a)) - t_1))))); elseif (b <= 2.05e+30) tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); else tmp = Float64(Float64(x / Float64(a * Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666)))))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -0.0001) tmp = t_1 - (b * (t_1 + (b * (((x * b) / (y * a)) - t_1)))); elseif (b <= 2.05e+30) tmp = x / (a * (b * (y + (y / b)))); else tmp = (x / (a * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -0.0001], N[(t$95$1 - N[(b * N[(t$95$1 + N[(b * N[(N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.05e+30], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a * N[(1.0 - N[(b * N[(-1.0 - N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot a}\\
\mathbf{if}\;b \leq -0.0001:\\
\;\;\;\;t\_1 - b \cdot \left(t\_1 + b \cdot \left(\frac{x \cdot b}{y \cdot a} - t\_1\right)\right)\\
\mathbf{elif}\;b \leq 2.05 \cdot 10^{+30}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a \cdot \left(1 - b \cdot \left(-1 - b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)}}{y}\\
\end{array}
\end{array}
if b < -1.00000000000000005e-4Initial program 99.9%
associate-/l*99.9%
associate--l+99.9%
exp-sum85.1%
associate-/l*85.1%
*-commutative85.1%
exp-to-pow85.1%
exp-diff60.2%
*-commutative60.2%
exp-to-pow60.3%
sub-neg60.3%
metadata-eval60.3%
Simplified60.3%
Taylor expanded in y around 0 66.1%
exp-to-pow66.2%
sub-neg66.2%
metadata-eval66.2%
associate-*r/67.7%
Simplified67.7%
Taylor expanded in t around 0 78.3%
Taylor expanded in b around 0 7.7%
distribute-lft-out10.7%
*-commutative10.7%
Simplified10.7%
Taylor expanded in b around 0 52.2%
if -1.00000000000000005e-4 < b < 2.05000000000000003e30Initial program 95.3%
associate-/l*96.0%
associate--l+96.0%
exp-sum84.8%
associate-/l*82.2%
*-commutative82.2%
exp-to-pow82.2%
exp-diff81.3%
*-commutative81.3%
exp-to-pow82.6%
sub-neg82.6%
metadata-eval82.6%
Simplified82.6%
Taylor expanded in y around 0 69.1%
exp-to-pow70.2%
sub-neg70.2%
metadata-eval70.2%
associate-*r/71.8%
Simplified71.8%
Taylor expanded in t around 0 41.2%
Taylor expanded in b around 0 39.3%
distribute-lft-out42.0%
*-commutative42.0%
Simplified42.0%
Taylor expanded in b around inf 50.2%
if 2.05000000000000003e30 < b Initial program 100.0%
Taylor expanded in y around 0 91.9%
div-exp59.0%
exp-to-pow59.0%
sub-neg59.0%
metadata-eval59.0%
Simplified59.0%
Taylor expanded in t around 0 75.7%
Taylor expanded in b around 0 69.2%
*-commutative66.4%
Simplified69.2%
Final simplification56.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -0.33)
(- t_1 (* b (- t_1 (* 1.5 (* x (/ (/ b a) y))))))
(if (<= b 3.7e+26)
(/ x (* a (* b (+ y (/ y b)))))
(/
(/
x
(* a (- 1.0 (* b (- -1.0 (* b (+ 0.5 (* b 0.16666666666666666))))))))
y)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -0.33) {
tmp = t_1 - (b * (t_1 - (1.5 * (x * ((b / a) / y)))));
} else if (b <= 3.7e+26) {
tmp = x / (a * (b * (y + (y / b))));
} else {
tmp = (x / (a * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) / 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) :: tmp
t_1 = x / (y * a)
if (b <= (-0.33d0)) then
tmp = t_1 - (b * (t_1 - (1.5d0 * (x * ((b / a) / y)))))
else if (b <= 3.7d+26) then
tmp = x / (a * (b * (y + (y / b))))
else
tmp = (x / (a * (1.0d0 - (b * ((-1.0d0) - (b * (0.5d0 + (b * 0.16666666666666666d0)))))))) / 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 = x / (y * a);
double tmp;
if (b <= -0.33) {
tmp = t_1 - (b * (t_1 - (1.5 * (x * ((b / a) / y)))));
} else if (b <= 3.7e+26) {
tmp = x / (a * (b * (y + (y / b))));
} else {
tmp = (x / (a * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -0.33: tmp = t_1 - (b * (t_1 - (1.5 * (x * ((b / a) / y))))) elif b <= 3.7e+26: tmp = x / (a * (b * (y + (y / b)))) else: tmp = (x / (a * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) / y return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -0.33) tmp = Float64(t_1 - Float64(b * Float64(t_1 - Float64(1.5 * Float64(x * Float64(Float64(b / a) / y)))))); elseif (b <= 3.7e+26) tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); else tmp = Float64(Float64(x / Float64(a * Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666)))))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -0.33) tmp = t_1 - (b * (t_1 - (1.5 * (x * ((b / a) / y))))); elseif (b <= 3.7e+26) tmp = x / (a * (b * (y + (y / b)))); else tmp = (x / (a * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -0.33], N[(t$95$1 - N[(b * N[(t$95$1 - N[(1.5 * N[(x * N[(N[(b / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.7e+26], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a * N[(1.0 - N[(b * N[(-1.0 - N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot a}\\
\mathbf{if}\;b \leq -0.33:\\
\;\;\;\;t\_1 - b \cdot \left(t\_1 - 1.5 \cdot \left(x \cdot \frac{\frac{b}{a}}{y}\right)\right)\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{+26}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a \cdot \left(1 - b \cdot \left(-1 - b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)}}{y}\\
\end{array}
\end{array}
if b < -0.330000000000000016Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum85.1%
associate-/l*85.1%
*-commutative85.1%
exp-to-pow85.1%
exp-diff59.7%
*-commutative59.7%
exp-to-pow59.7%
sub-neg59.7%
metadata-eval59.7%
Simplified59.7%
Taylor expanded in y around 0 65.7%
exp-to-pow65.7%
sub-neg65.7%
metadata-eval65.7%
associate-*r/67.2%
Simplified67.2%
Taylor expanded in t around 0 78.0%
Taylor expanded in b around 0 28.8%
add-sqr-sqrt11.4%
sqrt-unprod13.1%
mul-1-neg13.1%
mul-1-neg13.1%
sqr-neg13.1%
sqrt-unprod3.5%
add-sqr-sqrt3.6%
distribute-lft-in3.6%
Applied egg-rr42.3%
*-commutative42.3%
associate-/l*42.3%
associate-*r*42.3%
*-commutative42.3%
associate-/l*42.3%
*-commutative42.3%
distribute-rgt1-in42.3%
metadata-eval42.3%
*-commutative42.3%
*-commutative42.3%
associate-/l*46.6%
associate-/l/46.7%
Simplified46.7%
if -0.330000000000000016 < b < 3.69999999999999988e26Initial program 95.2%
associate-/l*96.0%
associate--l+96.0%
exp-sum84.8%
associate-/l*82.2%
*-commutative82.2%
exp-to-pow82.2%
exp-diff81.4%
*-commutative81.4%
exp-to-pow82.7%
sub-neg82.7%
metadata-eval82.7%
Simplified82.7%
Taylor expanded in y around 0 69.3%
exp-to-pow70.4%
sub-neg70.4%
metadata-eval70.4%
associate-*r/72.0%
Simplified72.0%
Taylor expanded in t around 0 41.7%
Taylor expanded in b around 0 39.4%
distribute-lft-out42.0%
*-commutative42.0%
Simplified42.0%
Taylor expanded in b around inf 50.2%
if 3.69999999999999988e26 < b Initial program 100.0%
Taylor expanded in y around 0 91.9%
div-exp59.0%
exp-to-pow59.0%
sub-neg59.0%
metadata-eval59.0%
Simplified59.0%
Taylor expanded in t around 0 75.7%
Taylor expanded in b around 0 69.2%
*-commutative66.4%
Simplified69.2%
Final simplification54.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -0.68)
(+ (/ x (* y a)) (* b (* 0.5 (* x (/ (/ b a) y)))))
(if (<= b 4e+26)
(/ x (* a (* b (+ y (/ y b)))))
(/
(/
x
(* a (- 1.0 (* b (- -1.0 (* b (+ 0.5 (* b 0.16666666666666666))))))))
y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.68) {
tmp = (x / (y * a)) + (b * (0.5 * (x * ((b / a) / y))));
} else if (b <= 4e+26) {
tmp = x / (a * (b * (y + (y / b))));
} else {
tmp = (x / (a * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-0.68d0)) then
tmp = (x / (y * a)) + (b * (0.5d0 * (x * ((b / a) / y))))
else if (b <= 4d+26) then
tmp = x / (a * (b * (y + (y / b))))
else
tmp = (x / (a * (1.0d0 - (b * ((-1.0d0) - (b * (0.5d0 + (b * 0.16666666666666666d0)))))))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.68) {
tmp = (x / (y * a)) + (b * (0.5 * (x * ((b / a) / y))));
} else if (b <= 4e+26) {
tmp = x / (a * (b * (y + (y / b))));
} else {
tmp = (x / (a * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -0.68: tmp = (x / (y * a)) + (b * (0.5 * (x * ((b / a) / y)))) elif b <= 4e+26: tmp = x / (a * (b * (y + (y / b)))) else: tmp = (x / (a * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -0.68) tmp = Float64(Float64(x / Float64(y * a)) + Float64(b * Float64(0.5 * Float64(x * Float64(Float64(b / a) / y))))); elseif (b <= 4e+26) tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); else tmp = Float64(Float64(x / Float64(a * Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666)))))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -0.68) tmp = (x / (y * a)) + (b * (0.5 * (x * ((b / a) / y)))); elseif (b <= 4e+26) tmp = x / (a * (b * (y + (y / b)))); else tmp = (x / (a * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -0.68], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] + N[(b * N[(0.5 * N[(x * N[(N[(b / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4e+26], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a * N[(1.0 - N[(b * N[(-1.0 - N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.68:\\
\;\;\;\;\frac{x}{y \cdot a} + b \cdot \left(0.5 \cdot \left(x \cdot \frac{\frac{b}{a}}{y}\right)\right)\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+26}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a \cdot \left(1 - b \cdot \left(-1 - b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)}}{y}\\
\end{array}
\end{array}
if b < -0.680000000000000049Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum85.1%
associate-/l*85.1%
*-commutative85.1%
exp-to-pow85.1%
exp-diff59.7%
*-commutative59.7%
exp-to-pow59.7%
sub-neg59.7%
metadata-eval59.7%
Simplified59.7%
Taylor expanded in y around 0 65.7%
exp-to-pow65.7%
sub-neg65.7%
metadata-eval65.7%
associate-*r/67.2%
Simplified67.2%
Taylor expanded in t around 0 78.0%
Taylor expanded in b around 0 28.8%
Taylor expanded in b around inf 28.8%
mul-1-neg28.8%
distribute-rgt-out42.3%
*-commutative42.3%
metadata-eval42.3%
associate-*r*42.3%
*-commutative42.3%
associate-/l*42.3%
*-commutative42.3%
distribute-lft-neg-in42.3%
metadata-eval42.3%
*-commutative42.3%
*-commutative42.3%
associate-/l*46.6%
associate-/l/46.7%
Simplified46.7%
if -0.680000000000000049 < b < 4.00000000000000019e26Initial program 95.2%
associate-/l*96.0%
associate--l+96.0%
exp-sum84.8%
associate-/l*82.2%
*-commutative82.2%
exp-to-pow82.2%
exp-diff81.4%
*-commutative81.4%
exp-to-pow82.7%
sub-neg82.7%
metadata-eval82.7%
Simplified82.7%
Taylor expanded in y around 0 69.3%
exp-to-pow70.4%
sub-neg70.4%
metadata-eval70.4%
associate-*r/72.0%
Simplified72.0%
Taylor expanded in t around 0 41.7%
Taylor expanded in b around 0 39.4%
distribute-lft-out42.0%
*-commutative42.0%
Simplified42.0%
Taylor expanded in b around inf 50.2%
if 4.00000000000000019e26 < b Initial program 100.0%
Taylor expanded in y around 0 91.9%
div-exp59.0%
exp-to-pow59.0%
sub-neg59.0%
metadata-eval59.0%
Simplified59.0%
Taylor expanded in t around 0 75.7%
Taylor expanded in b around 0 69.2%
*-commutative66.4%
Simplified69.2%
Final simplification54.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -0.75)
(+ (/ x (* y a)) (* b (* 0.5 (* x (/ (/ b a) y)))))
(if (<= b 1.4e-135)
(/ x (* a (* b (+ y (/ y b)))))
(/
x
(*
a
(*
y
(- 1.0 (* b (- -1.0 (* b (+ 0.5 (* b 0.16666666666666666))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.75) {
tmp = (x / (y * a)) + (b * (0.5 * (x * ((b / a) / y))));
} else if (b <= 1.4e-135) {
tmp = x / (a * (b * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-0.75d0)) then
tmp = (x / (y * a)) + (b * (0.5d0 * (x * ((b / a) / y))))
else if (b <= 1.4d-135) then
tmp = x / (a * (b * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 - (b * ((-1.0d0) - (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.75) {
tmp = (x / (y * a)) + (b * (0.5 * (x * ((b / a) / y))));
} else if (b <= 1.4e-135) {
tmp = x / (a * (b * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -0.75: tmp = (x / (y * a)) + (b * (0.5 * (x * ((b / a) / y)))) elif b <= 1.4e-135: tmp = x / (a * (b * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -0.75) tmp = Float64(Float64(x / Float64(y * a)) + Float64(b * Float64(0.5 * Float64(x * Float64(Float64(b / a) / y))))); elseif (b <= 1.4e-135) tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -0.75) tmp = (x / (y * a)) + (b * (0.5 * (x * ((b / a) / y)))); elseif (b <= 1.4e-135) tmp = x / (a * (b * (y + (y / b)))); else tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -0.75], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] + N[(b * N[(0.5 * N[(x * N[(N[(b / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.4e-135], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 - N[(b * N[(-1.0 - N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.75:\\
\;\;\;\;\frac{x}{y \cdot a} + b \cdot \left(0.5 \cdot \left(x \cdot \frac{\frac{b}{a}}{y}\right)\right)\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{-135}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 - b \cdot \left(-1 - b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -0.75Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum85.1%
associate-/l*85.1%
*-commutative85.1%
exp-to-pow85.1%
exp-diff59.7%
*-commutative59.7%
exp-to-pow59.7%
sub-neg59.7%
metadata-eval59.7%
Simplified59.7%
Taylor expanded in y around 0 65.7%
exp-to-pow65.7%
sub-neg65.7%
metadata-eval65.7%
associate-*r/67.2%
Simplified67.2%
Taylor expanded in t around 0 78.0%
Taylor expanded in b around 0 28.8%
Taylor expanded in b around inf 28.8%
mul-1-neg28.8%
distribute-rgt-out42.3%
*-commutative42.3%
metadata-eval42.3%
associate-*r*42.3%
*-commutative42.3%
associate-/l*42.3%
*-commutative42.3%
distribute-lft-neg-in42.3%
metadata-eval42.3%
*-commutative42.3%
*-commutative42.3%
associate-/l*46.6%
associate-/l/46.7%
Simplified46.7%
if -0.75 < b < 1.40000000000000012e-135Initial program 94.1%
associate-/l*95.0%
associate--l+95.0%
exp-sum84.1%
associate-/l*80.8%
*-commutative80.8%
exp-to-pow80.8%
exp-diff80.8%
*-commutative80.8%
exp-to-pow82.4%
sub-neg82.4%
metadata-eval82.4%
Simplified82.4%
Taylor expanded in y around 0 68.4%
exp-to-pow69.7%
sub-neg69.7%
metadata-eval69.7%
associate-*r/70.8%
Simplified70.8%
Taylor expanded in t around 0 40.7%
Taylor expanded in b around 0 36.7%
distribute-lft-out40.1%
*-commutative40.1%
Simplified40.1%
Taylor expanded in b around inf 50.4%
if 1.40000000000000012e-135 < b Initial program 99.9%
associate-/l*99.9%
associate--l+99.9%
exp-sum77.4%
associate-/l*77.4%
*-commutative77.4%
exp-to-pow77.4%
exp-diff57.0%
*-commutative57.0%
exp-to-pow57.1%
sub-neg57.1%
metadata-eval57.1%
Simplified57.1%
Taylor expanded in y around 0 62.4%
exp-to-pow62.5%
sub-neg62.5%
metadata-eval62.5%
associate-*r/63.5%
Simplified63.5%
Taylor expanded in t around 0 68.0%
Taylor expanded in b around 0 62.1%
*-commutative62.1%
Simplified62.1%
Final simplification53.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -0.64)
(+ (/ x (* y a)) (* b (* 0.5 (* x (/ (/ b a) y)))))
(if (<= b 8.5e+149)
(/ x (* a (* b (+ y (/ y b)))))
(/ x (* a (* y (- 1.0 (* b (- -1.0 (* b 0.5))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.64) {
tmp = (x / (y * a)) + (b * (0.5 * (x * ((b / a) / y))));
} else if (b <= 8.5e+149) {
tmp = x / (a * (b * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-0.64d0)) then
tmp = (x / (y * a)) + (b * (0.5d0 * (x * ((b / a) / y))))
else if (b <= 8.5d+149) then
tmp = x / (a * (b * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 - (b * ((-1.0d0) - (b * 0.5d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.64) {
tmp = (x / (y * a)) + (b * (0.5 * (x * ((b / a) / y))));
} else if (b <= 8.5e+149) {
tmp = x / (a * (b * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -0.64: tmp = (x / (y * a)) + (b * (0.5 * (x * ((b / a) / y)))) elif b <= 8.5e+149: tmp = x / (a * (b * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -0.64) tmp = Float64(Float64(x / Float64(y * a)) + Float64(b * Float64(0.5 * Float64(x * Float64(Float64(b / a) / y))))); elseif (b <= 8.5e+149) tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * 0.5))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -0.64) tmp = (x / (y * a)) + (b * (0.5 * (x * ((b / a) / y)))); elseif (b <= 8.5e+149) tmp = x / (a * (b * (y + (y / b)))); else tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -0.64], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] + N[(b * N[(0.5 * N[(x * N[(N[(b / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.5e+149], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 - N[(b * N[(-1.0 - N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.64:\\
\;\;\;\;\frac{x}{y \cdot a} + b \cdot \left(0.5 \cdot \left(x \cdot \frac{\frac{b}{a}}{y}\right)\right)\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{+149}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 - b \cdot \left(-1 - b \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -0.640000000000000013Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum85.1%
associate-/l*85.1%
*-commutative85.1%
exp-to-pow85.1%
exp-diff59.7%
*-commutative59.7%
exp-to-pow59.7%
sub-neg59.7%
metadata-eval59.7%
Simplified59.7%
Taylor expanded in y around 0 65.7%
exp-to-pow65.7%
sub-neg65.7%
metadata-eval65.7%
associate-*r/67.2%
Simplified67.2%
Taylor expanded in t around 0 78.0%
Taylor expanded in b around 0 28.8%
Taylor expanded in b around inf 28.8%
mul-1-neg28.8%
distribute-rgt-out42.3%
*-commutative42.3%
metadata-eval42.3%
associate-*r*42.3%
*-commutative42.3%
associate-/l*42.3%
*-commutative42.3%
distribute-lft-neg-in42.3%
metadata-eval42.3%
*-commutative42.3%
*-commutative42.3%
associate-/l*46.6%
associate-/l/46.7%
Simplified46.7%
if -0.640000000000000013 < b < 8.49999999999999956e149Initial program 96.4%
associate-/l*96.9%
associate--l+96.9%
exp-sum83.1%
associate-/l*81.2%
*-commutative81.2%
exp-to-pow81.2%
exp-diff73.3%
*-commutative73.3%
exp-to-pow74.3%
sub-neg74.3%
metadata-eval74.3%
Simplified74.3%
Taylor expanded in y around 0 64.7%
exp-to-pow65.6%
sub-neg65.6%
metadata-eval65.6%
associate-*r/66.8%
Simplified66.8%
Taylor expanded in t around 0 46.4%
Taylor expanded in b around 0 37.1%
distribute-lft-out39.1%
*-commutative39.1%
Simplified39.1%
Taylor expanded in b around inf 45.3%
if 8.49999999999999956e149 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum70.3%
associate-/l*70.3%
*-commutative70.3%
exp-to-pow70.3%
exp-diff48.6%
*-commutative48.6%
exp-to-pow48.6%
sub-neg48.6%
metadata-eval48.6%
Simplified48.6%
Taylor expanded in y around 0 67.6%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
associate-*r/67.6%
Simplified67.6%
Taylor expanded in t around 0 89.4%
Taylor expanded in b around 0 89.4%
*-commutative89.4%
Simplified89.4%
Final simplification52.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -4.75e-73)
(/ (- (/ x a) (/ (* x b) a)) y)
(if (<= b 8.5e+149)
(/ x (* a (* b (+ y (/ y b)))))
(/ x (* a (* y (- 1.0 (* b (- -1.0 (* b 0.5))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.75e-73) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else if (b <= 8.5e+149) {
tmp = x / (a * (b * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-4.75d-73)) then
tmp = ((x / a) - ((x * b) / a)) / y
else if (b <= 8.5d+149) then
tmp = x / (a * (b * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 - (b * ((-1.0d0) - (b * 0.5d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.75e-73) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else if (b <= 8.5e+149) {
tmp = x / (a * (b * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -4.75e-73: tmp = ((x / a) - ((x * b) / a)) / y elif b <= 8.5e+149: tmp = x / (a * (b * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -4.75e-73) tmp = Float64(Float64(Float64(x / a) - Float64(Float64(x * b) / a)) / y); elseif (b <= 8.5e+149) tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * 0.5))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -4.75e-73) tmp = ((x / a) - ((x * b) / a)) / y; elseif (b <= 8.5e+149) tmp = x / (a * (b * (y + (y / b)))); else tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * 0.5)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -4.75e-73], N[(N[(N[(x / a), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 8.5e+149], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 - N[(b * N[(-1.0 - N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.75 \cdot 10^{-73}:\\
\;\;\;\;\frac{\frac{x}{a} - \frac{x \cdot b}{a}}{y}\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{+149}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 - b \cdot \left(-1 - b \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -4.75000000000000002e-73Initial program 99.3%
Taylor expanded in y around 0 92.7%
div-exp69.0%
exp-to-pow69.5%
sub-neg69.5%
metadata-eval69.5%
Simplified69.5%
Taylor expanded in t around 0 73.7%
Taylor expanded in b around 0 38.2%
+-commutative38.2%
mul-1-neg38.2%
unsub-neg38.2%
*-commutative38.2%
Simplified38.2%
if -4.75000000000000002e-73 < b < 8.49999999999999956e149Initial program 96.4%
associate-/l*98.9%
associate--l+98.9%
exp-sum84.6%
associate-/l*82.4%
*-commutative82.4%
exp-to-pow82.4%
exp-diff73.8%
*-commutative73.8%
exp-to-pow74.7%
sub-neg74.7%
metadata-eval74.7%
Simplified74.7%
Taylor expanded in y around 0 63.5%
exp-to-pow64.2%
sub-neg64.2%
metadata-eval64.2%
associate-*r/67.6%
Simplified67.6%
Taylor expanded in t around 0 47.6%
Taylor expanded in b around 0 37.9%
distribute-lft-out40.0%
*-commutative40.0%
Simplified40.0%
Taylor expanded in b around inf 46.8%
if 8.49999999999999956e149 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum70.3%
associate-/l*70.3%
*-commutative70.3%
exp-to-pow70.3%
exp-diff48.6%
*-commutative48.6%
exp-to-pow48.6%
sub-neg48.6%
metadata-eval48.6%
Simplified48.6%
Taylor expanded in y around 0 67.6%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
associate-*r/67.6%
Simplified67.6%
Taylor expanded in t around 0 89.4%
Taylor expanded in b around 0 89.4%
*-commutative89.4%
Simplified89.4%
Final simplification50.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.15e-73) (/ (- (/ x a) (/ (* x b) a)) y) (/ x (* a (* b (+ y (/ y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.15e-73) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-2.15d-73)) then
tmp = ((x / a) - ((x * b) / a)) / y
else
tmp = x / (a * (b * (y + (y / b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.15e-73) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.15e-73: tmp = ((x / a) - ((x * b) / a)) / y else: tmp = x / (a * (b * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.15e-73) tmp = Float64(Float64(Float64(x / a) - Float64(Float64(x * b) / a)) / y); else tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.15e-73) tmp = ((x / a) - ((x * b) / a)) / y; else tmp = x / (a * (b * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.15e-73], N[(N[(N[(x / a), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.15 \cdot 10^{-73}:\\
\;\;\;\;\frac{\frac{x}{a} - \frac{x \cdot b}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < -2.1499999999999999e-73Initial program 99.3%
Taylor expanded in y around 0 92.7%
div-exp69.0%
exp-to-pow69.5%
sub-neg69.5%
metadata-eval69.5%
Simplified69.5%
Taylor expanded in t around 0 73.7%
Taylor expanded in b around 0 38.2%
+-commutative38.2%
mul-1-neg38.2%
unsub-neg38.2%
*-commutative38.2%
Simplified38.2%
if -2.1499999999999999e-73 < b Initial program 97.2%
associate-/l*99.2%
associate--l+99.2%
exp-sum81.6%
associate-/l*79.8%
*-commutative79.8%
exp-to-pow79.8%
exp-diff68.5%
*-commutative68.5%
exp-to-pow69.2%
sub-neg69.2%
metadata-eval69.2%
Simplified69.2%
Taylor expanded in y around 0 64.4%
exp-to-pow64.9%
sub-neg64.9%
metadata-eval64.9%
associate-*r/67.6%
Simplified67.6%
Taylor expanded in t around 0 56.4%
Taylor expanded in b around 0 43.7%
distribute-lft-out45.4%
*-commutative45.4%
Simplified45.4%
Taylor expanded in b around inf 50.8%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.75e-7) (* (/ x (* a (- y))) (+ b -1.0)) (/ x (* a (* b (+ y (/ y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.75e-7) {
tmp = (x / (a * -y)) * (b + -1.0);
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.75d-7)) then
tmp = (x / (a * -y)) * (b + (-1.0d0))
else
tmp = x / (a * (b * (y + (y / b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.75e-7) {
tmp = (x / (a * -y)) * (b + -1.0);
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.75e-7: tmp = (x / (a * -y)) * (b + -1.0) else: tmp = x / (a * (b * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.75e-7) tmp = Float64(Float64(x / Float64(a * Float64(-y))) * Float64(b + -1.0)); else tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.75e-7) tmp = (x / (a * -y)) * (b + -1.0); else tmp = x / (a * (b * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.75e-7], N[(N[(x / N[(a * (-y)), $MachinePrecision]), $MachinePrecision] * N[(b + -1.0), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.75 \cdot 10^{-7}:\\
\;\;\;\;\frac{x}{a \cdot \left(-y\right)} \cdot \left(b + -1\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < -1.74999999999999992e-7Initial program 99.9%
associate-/l*99.9%
associate--l+99.9%
exp-sum85.1%
associate-/l*85.1%
*-commutative85.1%
exp-to-pow85.1%
exp-diff60.2%
*-commutative60.2%
exp-to-pow60.3%
sub-neg60.3%
metadata-eval60.3%
Simplified60.3%
Taylor expanded in y around 0 66.1%
exp-to-pow66.2%
sub-neg66.2%
metadata-eval66.2%
associate-*r/67.7%
Simplified67.7%
Taylor expanded in t around 0 78.3%
Taylor expanded in b around 0 7.7%
distribute-lft-out10.7%
*-commutative10.7%
Simplified10.7%
Taylor expanded in b around 0 36.4%
*-commutative36.4%
*-lft-identity36.4%
metadata-eval36.4%
*-commutative36.4%
cancel-sign-sub-inv36.4%
distribute-lft-out--36.4%
mul-1-neg36.4%
*-commutative36.4%
sub-neg36.4%
*-commutative36.4%
*-commutative36.4%
associate-*l/33.7%
neg-mul-133.7%
*-commutative33.7%
distribute-lft-out33.7%
Simplified33.7%
if -1.74999999999999992e-7 < b Initial program 97.1%
associate-/l*97.6%
associate--l+97.6%
exp-sum80.6%
associate-/l*79.0%
*-commutative79.0%
exp-to-pow79.0%
exp-diff68.3%
*-commutative68.3%
exp-to-pow69.1%
sub-neg69.1%
metadata-eval69.1%
Simplified69.1%
Taylor expanded in y around 0 65.2%
exp-to-pow65.8%
sub-neg65.8%
metadata-eval65.8%
associate-*r/66.8%
Simplified66.8%
Taylor expanded in t around 0 54.6%
Taylor expanded in b around 0 42.7%
distribute-lft-out44.3%
*-commutative44.3%
Simplified44.3%
Taylor expanded in b around inf 49.3%
Final simplification45.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b 2.2e-60) (* (/ x (* a (- y))) (+ b -1.0)) (/ x (* y (* a b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 2.2e-60) {
tmp = (x / (a * -y)) * (b + -1.0);
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 2.2d-60) then
tmp = (x / (a * -y)) * (b + (-1.0d0))
else
tmp = x / (y * (a * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 2.2e-60) {
tmp = (x / (a * -y)) * (b + -1.0);
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 2.2e-60: tmp = (x / (a * -y)) * (b + -1.0) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 2.2e-60) tmp = Float64(Float64(x / Float64(a * Float64(-y))) * Float64(b + -1.0)); else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 2.2e-60) tmp = (x / (a * -y)) * (b + -1.0); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 2.2e-60], N[(N[(x / N[(a * (-y)), $MachinePrecision]), $MachinePrecision] * N[(b + -1.0), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2.2 \cdot 10^{-60}:\\
\;\;\;\;\frac{x}{a \cdot \left(-y\right)} \cdot \left(b + -1\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < 2.1999999999999999e-60Initial program 96.8%
associate-/l*97.3%
associate--l+97.3%
exp-sum84.6%
associate-/l*82.9%
*-commutative82.9%
exp-to-pow82.9%
exp-diff73.1%
*-commutative73.1%
exp-to-pow74.0%
sub-neg74.0%
metadata-eval74.0%
Simplified74.0%
Taylor expanded in y around 0 67.8%
exp-to-pow68.6%
sub-neg68.6%
metadata-eval68.6%
associate-*r/70.2%
Simplified70.2%
Taylor expanded in t around 0 55.7%
Taylor expanded in b around 0 26.2%
distribute-lft-out29.1%
*-commutative29.1%
Simplified29.1%
Taylor expanded in b around 0 37.5%
*-commutative37.5%
*-lft-identity37.5%
metadata-eval37.5%
*-commutative37.5%
cancel-sign-sub-inv37.5%
distribute-lft-out--37.5%
mul-1-neg37.5%
*-commutative37.5%
sub-neg37.5%
*-commutative37.5%
*-commutative37.5%
associate-*l/35.3%
neg-mul-135.3%
*-commutative35.3%
distribute-lft-out38.2%
Simplified38.2%
if 2.1999999999999999e-60 < b Initial program 99.9%
associate-/l*99.9%
associate--l+99.9%
exp-sum75.8%
associate-/l*75.8%
*-commutative75.8%
exp-to-pow75.8%
exp-diff51.7%
*-commutative51.7%
exp-to-pow51.8%
sub-neg51.8%
metadata-eval51.8%
Simplified51.8%
Taylor expanded in y around 0 60.4%
exp-to-pow60.4%
sub-neg60.4%
metadata-eval60.4%
associate-*r/60.5%
Simplified60.5%
Taylor expanded in t around 0 71.6%
Taylor expanded in b around 0 48.3%
distribute-lft-out48.3%
*-commutative48.3%
Simplified48.3%
Taylor expanded in b around inf 48.3%
*-commutative48.3%
*-commutative48.3%
associate-*l*51.8%
Simplified51.8%
Final simplification42.6%
(FPCore (x y z t a b) :precision binary64 (if (<= b -4e-172) (* (/ x a) (/ 1.0 y)) (/ x (* a (+ y (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4e-172) {
tmp = (x / a) * (1.0 / y);
} 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 <= (-4d-172)) then
tmp = (x / a) * (1.0d0 / y)
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 <= -4e-172) {
tmp = (x / a) * (1.0 / y);
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -4e-172: tmp = (x / a) * (1.0 / y) else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -4e-172) tmp = Float64(Float64(x / a) * Float64(1.0 / y)); 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 <= -4e-172) tmp = (x / a) * (1.0 / y); else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -4e-172], N[(N[(x / a), $MachinePrecision] * N[(1.0 / y), $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 -4 \cdot 10^{-172}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -4.0000000000000002e-172Initial program 99.1%
associate-/l*96.6%
associate--l+96.6%
exp-sum84.0%
associate-/l*82.1%
*-commutative82.1%
exp-to-pow82.1%
exp-diff65.6%
*-commutative65.6%
exp-to-pow66.1%
sub-neg66.1%
metadata-eval66.1%
Simplified66.1%
Taylor expanded in b around 0 66.3%
*-commutative66.3%
exp-to-pow67.0%
sub-neg67.0%
metadata-eval67.0%
associate-*l*67.0%
Simplified67.0%
Taylor expanded in t around 0 49.9%
times-frac52.1%
Simplified52.1%
Taylor expanded in y around 0 30.0%
if -4.0000000000000002e-172 < b Initial program 97.0%
associate-/l*99.2%
associate--l+99.2%
exp-sum80.3%
associate-/l*79.6%
*-commutative79.6%
exp-to-pow79.6%
exp-diff66.6%
*-commutative66.6%
exp-to-pow67.2%
sub-neg67.2%
metadata-eval67.2%
Simplified67.2%
Taylor expanded in y around 0 63.6%
exp-to-pow64.1%
sub-neg64.1%
metadata-eval64.1%
associate-*r/67.8%
Simplified67.8%
Taylor expanded in t around 0 58.7%
Taylor expanded in b around 0 45.4%
distribute-lft-out46.1%
*-commutative46.1%
Simplified46.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b 2.2e-60) (* x (/ 1.0 (* y a))) (/ x (* y (* a b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 2.2e-60) {
tmp = x * (1.0 / (y * a));
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 2.2d-60) then
tmp = x * (1.0d0 / (y * a))
else
tmp = x / (y * (a * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 2.2e-60) {
tmp = x * (1.0 / (y * a));
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 2.2e-60: tmp = x * (1.0 / (y * a)) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 2.2e-60) tmp = Float64(x * Float64(1.0 / Float64(y * a))); else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 2.2e-60) tmp = x * (1.0 / (y * a)); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 2.2e-60], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2.2 \cdot 10^{-60}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < 2.1999999999999999e-60Initial program 96.8%
associate-/l*97.3%
associate--l+97.3%
exp-sum84.6%
associate-/l*82.9%
*-commutative82.9%
exp-to-pow82.9%
exp-diff73.1%
*-commutative73.1%
exp-to-pow74.0%
sub-neg74.0%
metadata-eval74.0%
Simplified74.0%
Taylor expanded in y around 0 67.8%
exp-to-pow68.6%
sub-neg68.6%
metadata-eval68.6%
associate-*r/70.2%
Simplified70.2%
Taylor expanded in b around 0 63.4%
Taylor expanded in t around 0 33.2%
if 2.1999999999999999e-60 < b Initial program 99.9%
associate-/l*99.9%
associate--l+99.9%
exp-sum75.8%
associate-/l*75.8%
*-commutative75.8%
exp-to-pow75.8%
exp-diff51.7%
*-commutative51.7%
exp-to-pow51.8%
sub-neg51.8%
metadata-eval51.8%
Simplified51.8%
Taylor expanded in y around 0 60.4%
exp-to-pow60.4%
sub-neg60.4%
metadata-eval60.4%
associate-*r/60.5%
Simplified60.5%
Taylor expanded in t around 0 71.6%
Taylor expanded in b around 0 48.3%
distribute-lft-out48.3%
*-commutative48.3%
Simplified48.3%
Taylor expanded in b around inf 48.3%
*-commutative48.3%
*-commutative48.3%
associate-*l*51.8%
Simplified51.8%
Final simplification39.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b 3.1e+106) (* x (/ 1.0 (* y a))) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 3.1e+106) {
tmp = x * (1.0 / (y * a));
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 3.1d+106) then
tmp = x * (1.0d0 / (y * a))
else
tmp = x / (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 3.1e+106) {
tmp = x * (1.0 / (y * a));
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 3.1e+106: tmp = x * (1.0 / (y * a)) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 3.1e+106) tmp = Float64(x * Float64(1.0 / Float64(y * a))); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 3.1e+106) tmp = x * (1.0 / (y * a)); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 3.1e+106], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 3.1 \cdot 10^{+106}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 3.0999999999999999e106Initial program 97.3%
associate-/l*97.8%
associate--l+97.8%
exp-sum83.9%
associate-/l*82.5%
*-commutative82.5%
exp-to-pow82.5%
exp-diff70.0%
*-commutative70.0%
exp-to-pow70.8%
sub-neg70.8%
metadata-eval70.8%
Simplified70.8%
Taylor expanded in y around 0 65.3%
exp-to-pow65.9%
sub-neg65.9%
metadata-eval65.9%
associate-*r/67.3%
Simplified67.3%
Taylor expanded in b around 0 64.2%
Taylor expanded in t around 0 31.8%
if 3.0999999999999999e106 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.3%
associate-/l*72.3%
*-commutative72.3%
exp-to-pow72.3%
exp-diff48.9%
*-commutative48.9%
exp-to-pow48.9%
sub-neg48.9%
metadata-eval48.9%
Simplified48.9%
Taylor expanded in y around 0 66.0%
exp-to-pow66.0%
sub-neg66.0%
metadata-eval66.0%
associate-*r/66.0%
Simplified66.0%
Taylor expanded in t around 0 89.5%
Taylor expanded in b around 0 66.6%
distribute-lft-out66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in b around inf 66.6%
Final simplification38.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.9e-175) (/ (/ x a) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.9e-175) {
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 (b <= (-2.9d-175)) 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 (b <= -2.9e-175) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.9e-175: tmp = (x / a) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.9e-175) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(y * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.9e-175) tmp = (x / a) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.9e-175], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.9 \cdot 10^{-175}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if b < -2.89999999999999999e-175Initial program 99.2%
Taylor expanded in y around 0 87.6%
div-exp69.3%
exp-to-pow69.9%
sub-neg69.9%
metadata-eval69.9%
Simplified69.9%
Taylor expanded in t around 0 67.6%
Taylor expanded in b around 0 29.8%
if -2.89999999999999999e-175 < b Initial program 96.9%
associate-/l*99.2%
associate--l+99.2%
exp-sum80.1%
associate-/l*79.5%
*-commutative79.5%
exp-to-pow79.5%
exp-diff66.3%
*-commutative66.3%
exp-to-pow67.0%
sub-neg67.0%
metadata-eval67.0%
Simplified67.0%
Taylor expanded in y around 0 63.4%
exp-to-pow63.9%
sub-neg63.9%
metadata-eval63.9%
associate-*r/67.6%
Simplified67.6%
Taylor expanded in t around 0 59.1%
Taylor expanded in b around 0 36.4%
Final simplification33.7%
(FPCore (x y z t a b) :precision binary64 (* x (/ 1.0 (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
return x * (1.0 / (y * a));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x * (1.0d0 / (y * a))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x * (1.0 / (y * a));
}
def code(x, y, z, t, a, b): return x * (1.0 / (y * a))
function code(x, y, z, t, a, b) return Float64(x * Float64(1.0 / Float64(y * a))) end
function tmp = code(x, y, z, t, a, b) tmp = x * (1.0 / (y * a)); end
code[x_, y_, z_, t_, a_, b_] := N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \frac{1}{y \cdot a}
\end{array}
Initial program 97.8%
associate-/l*98.2%
associate--l+98.2%
exp-sum81.8%
associate-/l*80.6%
*-commutative80.6%
exp-to-pow80.6%
exp-diff66.2%
*-commutative66.2%
exp-to-pow66.8%
sub-neg66.8%
metadata-eval66.8%
Simplified66.8%
Taylor expanded in y around 0 65.4%
exp-to-pow65.9%
sub-neg65.9%
metadata-eval65.9%
associate-*r/67.1%
Simplified67.1%
Taylor expanded in b around 0 60.1%
Taylor expanded in t around 0 32.2%
Final simplification32.2%
(FPCore (x y z t a b) :precision binary64 (/ x (* y a)))
double code(double x, double y, double z, double t, double a, double b) {
return x / (y * a);
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / (y * a)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (y * a);
}
def code(x, y, z, t, a, b): return x / (y * a)
function code(x, y, z, t, a, b) return Float64(x / Float64(y * a)) end
function tmp = code(x, y, z, t, a, b) tmp = x / (y * a); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y \cdot a}
\end{array}
Initial program 97.8%
associate-/l*98.2%
associate--l+98.2%
exp-sum81.8%
associate-/l*80.6%
*-commutative80.6%
exp-to-pow80.6%
exp-diff66.2%
*-commutative66.2%
exp-to-pow66.8%
sub-neg66.8%
metadata-eval66.8%
Simplified66.8%
Taylor expanded in y around 0 65.4%
exp-to-pow65.9%
sub-neg65.9%
metadata-eval65.9%
associate-*r/67.1%
Simplified67.1%
Taylor expanded in t around 0 60.9%
Taylor expanded in b around 0 32.1%
Final simplification32.1%
(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 2024139
(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))