
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (+ t -1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t + (-1.0d0)) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t + -1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t + -1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t + -1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t + -1\right) \cdot \log a\right) - b}}{y}
\end{array}
Initial program 97.4%
Final simplification97.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (+ t -1.0) -2e+42) (not (<= (+ t -1.0) -1.0))) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y) (/ (* x (exp (- (- (* y (log z)) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((t + -1.0) <= -2e+42) || !((t + -1.0) <= -1.0)) {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
} else {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (((t + (-1.0d0)) <= (-2d+42)) .or. (.not. ((t + (-1.0d0)) <= (-1.0d0)))) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
else
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((t + -1.0) <= -2e+42) || !((t + -1.0) <= -1.0)) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
} else {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((t + -1.0) <= -2e+42) or not ((t + -1.0) <= -1.0): tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y else: tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(t + -1.0) <= -2e+42) || !(Float64(t + -1.0) <= -1.0)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (((t + -1.0) <= -2e+42) || ~(((t + -1.0) <= -1.0))) tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; else tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(t + -1.0), $MachinePrecision], -2e+42], N[Not[LessEqual[N[(t + -1.0), $MachinePrecision], -1.0]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t + -1 \leq -2 \cdot 10^{+42} \lor \neg \left(t + -1 \leq -1\right):\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\end{array}
\end{array}
if (-.f64 t 1) < -2.00000000000000009e42 or -1 < (-.f64 t 1) Initial program 100.0%
Taylor expanded in y around 0 94.3%
if -2.00000000000000009e42 < (-.f64 t 1) < -1Initial program 95.2%
Taylor expanded in t around 0 94.4%
+-commutative94.4%
mul-1-neg94.4%
unsub-neg94.4%
Simplified94.4%
Final simplification94.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (/ (pow a (+ t -1.0)) (exp b)) (/ x y)))
(t_2 (/ x (/ a (/ (pow z y) y)))))
(if (<= y -160000000.0)
t_2
(if (<= y -4.4e-157)
t_1
(if (<= y 4.2e-137)
(/ x (* a (* y (exp b))))
(if (<= y 1e+41) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (pow(a, (t + -1.0)) / exp(b)) * (x / y);
double t_2 = x / (a / (pow(z, y) / y));
double tmp;
if (y <= -160000000.0) {
tmp = t_2;
} else if (y <= -4.4e-157) {
tmp = t_1;
} else if (y <= 4.2e-137) {
tmp = x / (a * (y * exp(b)));
} else if (y <= 1e+41) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((a ** (t + (-1.0d0))) / exp(b)) * (x / y)
t_2 = x / (a / ((z ** y) / y))
if (y <= (-160000000.0d0)) then
tmp = t_2
else if (y <= (-4.4d-157)) then
tmp = t_1
else if (y <= 4.2d-137) then
tmp = x / (a * (y * exp(b)))
else if (y <= 1d+41) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (Math.pow(a, (t + -1.0)) / Math.exp(b)) * (x / y);
double t_2 = x / (a / (Math.pow(z, y) / y));
double tmp;
if (y <= -160000000.0) {
tmp = t_2;
} else if (y <= -4.4e-157) {
tmp = t_1;
} else if (y <= 4.2e-137) {
tmp = x / (a * (y * Math.exp(b)));
} else if (y <= 1e+41) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (math.pow(a, (t + -1.0)) / math.exp(b)) * (x / y) t_2 = x / (a / (math.pow(z, y) / y)) tmp = 0 if y <= -160000000.0: tmp = t_2 elif y <= -4.4e-157: tmp = t_1 elif y <= 4.2e-137: tmp = x / (a * (y * math.exp(b))) elif y <= 1e+41: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64((a ^ Float64(t + -1.0)) / exp(b)) * Float64(x / y)) t_2 = Float64(x / Float64(a / Float64((z ^ y) / y))) tmp = 0.0 if (y <= -160000000.0) tmp = t_2; elseif (y <= -4.4e-157) tmp = t_1; elseif (y <= 4.2e-137) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); elseif (y <= 1e+41) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((a ^ (t + -1.0)) / exp(b)) * (x / y); t_2 = x / (a / ((z ^ y) / y)); tmp = 0.0; if (y <= -160000000.0) tmp = t_2; elseif (y <= -4.4e-157) tmp = t_1; elseif (y <= 4.2e-137) tmp = x / (a * (y * exp(b))); elseif (y <= 1e+41) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a / N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -160000000.0], t$95$2, If[LessEqual[y, -4.4e-157], t$95$1, If[LessEqual[y, 4.2e-137], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1e+41], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{{a}^{\left(t + -1\right)}}{e^{b}} \cdot \frac{x}{y}\\
t_2 := \frac{x}{\frac{a}{\frac{{z}^{y}}{y}}}\\
\mathbf{if}\;y \leq -160000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -4.4 \cdot 10^{-157}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-137}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{elif}\;y \leq 10^{+41}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -1.6e8 or 1.00000000000000001e41 < y Initial program 100.0%
associate-*l/83.3%
*-commutative83.3%
+-commutative83.3%
associate--l+83.3%
exp-sum69.2%
*-commutative69.2%
exp-to-pow69.2%
sub-neg69.2%
metadata-eval69.2%
exp-diff53.3%
*-commutative53.3%
exp-to-pow53.3%
Simplified53.3%
Taylor expanded in b around 0 70.9%
associate-/l*70.9%
*-commutative70.9%
exp-to-pow70.9%
*-commutative70.9%
exp-sum91.8%
exp-sum70.9%
*-commutative70.9%
exp-to-pow70.9%
*-commutative70.9%
exp-to-pow70.9%
sub-neg70.9%
metadata-eval70.9%
Simplified70.9%
Taylor expanded in t around 0 66.9%
associate-/l*82.0%
Simplified82.0%
if -1.6e8 < y < -4.4000000000000002e-157 or 4.19999999999999983e-137 < y < 1.00000000000000001e41Initial program 97.2%
associate-*l/95.8%
*-commutative95.8%
+-commutative95.8%
associate--l+95.8%
exp-sum86.6%
*-commutative86.6%
exp-to-pow87.5%
sub-neg87.5%
metadata-eval87.5%
exp-diff81.4%
*-commutative81.4%
exp-to-pow81.4%
Simplified81.4%
Taylor expanded in y around 0 84.9%
*-commutative84.9%
*-commutative84.9%
times-frac86.6%
exp-to-pow87.6%
sub-neg87.6%
metadata-eval87.6%
Simplified87.6%
if -4.4000000000000002e-157 < y < 4.19999999999999983e-137Initial program 93.3%
associate-*l/81.6%
*-commutative81.6%
+-commutative81.6%
associate--l+81.6%
exp-sum64.7%
*-commutative64.7%
exp-to-pow66.4%
sub-neg66.4%
metadata-eval66.4%
exp-diff66.4%
*-commutative66.4%
exp-to-pow66.4%
Simplified66.4%
Taylor expanded in y around 0 67.9%
*-commutative67.9%
*-commutative67.9%
times-frac64.7%
exp-to-pow66.4%
sub-neg66.4%
metadata-eval66.4%
Simplified66.4%
Taylor expanded in t around 0 78.0%
Final simplification82.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (+ t -1.0) -2e+42) (not (<= (+ t -1.0) 3e+112))) (/ x (/ y (pow a (+ t -1.0)))) (/ (* 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 + -1.0) <= -2e+42) || !((t + -1.0) <= 3e+112)) {
tmp = x / (y / pow(a, (t + -1.0)));
} 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 + (-1.0d0)) <= (-2d+42)) .or. (.not. ((t + (-1.0d0)) <= 3d+112))) then
tmp = x / (y / (a ** (t + (-1.0d0))))
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 + -1.0) <= -2e+42) || !((t + -1.0) <= 3e+112)) {
tmp = x / (y / Math.pow(a, (t + -1.0)));
} 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 + -1.0) <= -2e+42) or not ((t + -1.0) <= 3e+112): tmp = x / (y / math.pow(a, (t + -1.0))) 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 ((Float64(t + -1.0) <= -2e+42) || !(Float64(t + -1.0) <= 3e+112)) tmp = Float64(x / Float64(y / (a ^ Float64(t + -1.0)))); 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 + -1.0) <= -2e+42) || ~(((t + -1.0) <= 3e+112))) tmp = x / (y / (a ^ (t + -1.0))); else tmp = (x * (z ^ y)) / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(t + -1.0), $MachinePrecision], -2e+42], N[Not[LessEqual[N[(t + -1.0), $MachinePrecision], 3e+112]], $MachinePrecision]], N[(x / N[(y / N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $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 + -1 \leq -2 \cdot 10^{+42} \lor \neg \left(t + -1 \leq 3 \cdot 10^{+112}\right):\\
\;\;\;\;\frac{x}{\frac{y}{{a}^{\left(t + -1\right)}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if (-.f64 t 1) < -2.00000000000000009e42 or 2.99999999999999979e112 < (-.f64 t 1) Initial program 100.0%
associate-*l/84.2%
*-commutative84.2%
+-commutative84.2%
associate--l+84.2%
exp-sum57.9%
*-commutative57.9%
exp-to-pow57.9%
sub-neg57.9%
metadata-eval57.9%
exp-diff51.6%
*-commutative51.6%
exp-to-pow51.6%
Simplified51.6%
Taylor expanded in b around 0 71.6%
associate-/l*71.6%
*-commutative71.6%
exp-to-pow71.6%
*-commutative71.6%
exp-sum94.8%
exp-sum71.6%
*-commutative71.6%
exp-to-pow71.6%
*-commutative71.6%
exp-to-pow71.6%
sub-neg71.6%
metadata-eval71.6%
Simplified71.6%
Taylor expanded in y around 0 89.6%
exp-to-pow89.6%
Simplified89.6%
if -2.00000000000000009e42 < (-.f64 t 1) < 2.99999999999999979e112Initial program 95.9%
associate-*l/87.1%
*-commutative87.1%
+-commutative87.1%
associate--l+87.1%
exp-sum80.9%
*-commutative80.9%
exp-to-pow82.0%
sub-neg82.0%
metadata-eval82.0%
exp-diff71.5%
*-commutative71.5%
exp-to-pow71.5%
Simplified71.5%
Taylor expanded in t around 0 77.2%
Final simplification81.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -3.3e+50) (not (<= b 6e+115))) (/ x (* a (* y (exp b)))) (/ x (/ y (* (pow a (+ t -1.0)) (pow z y))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -3.3e+50) || !(b <= 6e+115)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = x / (y / (pow(a, (t + -1.0)) * pow(z, 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 <= (-3.3d+50)) .or. (.not. (b <= 6d+115))) then
tmp = x / (a * (y * exp(b)))
else
tmp = x / (y / ((a ** (t + (-1.0d0))) * (z ** 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 <= -3.3e+50) || !(b <= 6e+115)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = x / (y / (Math.pow(a, (t + -1.0)) * Math.pow(z, y)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -3.3e+50) or not (b <= 6e+115): tmp = x / (a * (y * math.exp(b))) else: tmp = x / (y / (math.pow(a, (t + -1.0)) * math.pow(z, y))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -3.3e+50) || !(b <= 6e+115)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(x / Float64(y / Float64((a ^ Float64(t + -1.0)) * (z ^ y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -3.3e+50) || ~((b <= 6e+115))) tmp = x / (a * (y * exp(b))); else tmp = x / (y / ((a ^ (t + -1.0)) * (z ^ y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -3.3e+50], N[Not[LessEqual[b, 6e+115]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y / N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] * N[Power[z, y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.3 \cdot 10^{+50} \lor \neg \left(b \leq 6 \cdot 10^{+115}\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{y}{{a}^{\left(t + -1\right)} \cdot {z}^{y}}}\\
\end{array}
\end{array}
if b < -3.3e50 or 6.0000000000000001e115 < b Initial program 100.0%
associate-*l/82.9%
*-commutative82.9%
+-commutative82.9%
associate--l+82.9%
exp-sum62.9%
*-commutative62.9%
exp-to-pow62.9%
sub-neg62.9%
metadata-eval62.9%
exp-diff45.7%
*-commutative45.7%
exp-to-pow45.7%
Simplified45.7%
Taylor expanded in y around 0 62.0%
*-commutative62.0%
*-commutative62.0%
times-frac58.2%
exp-to-pow58.2%
sub-neg58.2%
metadata-eval58.2%
Simplified58.2%
Taylor expanded in t around 0 82.2%
if -3.3e50 < b < 6.0000000000000001e115Initial program 95.6%
associate-*l/88.2%
*-commutative88.2%
+-commutative88.2%
associate--l+88.2%
exp-sum79.0%
*-commutative79.0%
exp-to-pow80.2%
sub-neg80.2%
metadata-eval80.2%
exp-diff76.9%
*-commutative76.9%
exp-to-pow76.9%
Simplified76.9%
Taylor expanded in b around 0 83.1%
associate-/l*84.2%
*-commutative84.2%
exp-to-pow84.2%
*-commutative84.2%
exp-sum94.8%
exp-sum84.2%
*-commutative84.2%
exp-to-pow84.2%
*-commutative84.2%
exp-to-pow85.3%
sub-neg85.3%
metadata-eval85.3%
Simplified85.3%
Final simplification84.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.9e+45) (not (<= b 2.5e-15))) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y) (/ x (/ y (* (pow a (+ t -1.0)) (pow z y))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.9e+45) || !(b <= 2.5e-15)) {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
} else {
tmp = x / (y / (pow(a, (t + -1.0)) * pow(z, y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-1.9d+45)) .or. (.not. (b <= 2.5d-15))) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
else
tmp = x / (y / ((a ** (t + (-1.0d0))) * (z ** y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.9e+45) || !(b <= 2.5e-15)) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
} else {
tmp = x / (y / (Math.pow(a, (t + -1.0)) * Math.pow(z, y)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.9e+45) or not (b <= 2.5e-15): tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y else: tmp = x / (y / (math.pow(a, (t + -1.0)) * math.pow(z, y))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.9e+45) || !(b <= 2.5e-15)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); else tmp = Float64(x / Float64(y / Float64((a ^ Float64(t + -1.0)) * (z ^ y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -1.9e+45) || ~((b <= 2.5e-15))) tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; else tmp = x / (y / ((a ^ (t + -1.0)) * (z ^ y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.9e+45], N[Not[LessEqual[b, 2.5e-15]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y / N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] * N[Power[z, y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.9 \cdot 10^{+45} \lor \neg \left(b \leq 2.5 \cdot 10^{-15}\right):\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{y}{{a}^{\left(t + -1\right)} \cdot {z}^{y}}}\\
\end{array}
\end{array}
if b < -1.9000000000000001e45 or 2.5e-15 < b Initial program 100.0%
Taylor expanded in y around 0 92.8%
if -1.9000000000000001e45 < b < 2.5e-15Initial program 95.0%
associate-*l/88.9%
*-commutative88.9%
+-commutative88.9%
associate--l+88.9%
exp-sum81.4%
*-commutative81.4%
exp-to-pow82.8%
sub-neg82.8%
metadata-eval82.8%
exp-diff80.5%
*-commutative80.5%
exp-to-pow80.5%
Simplified80.5%
Taylor expanded in b around 0 83.8%
associate-/l*85.1%
*-commutative85.1%
exp-to-pow85.1%
*-commutative85.1%
exp-sum95.6%
exp-sum85.1%
*-commutative85.1%
exp-to-pow85.1%
*-commutative85.1%
exp-to-pow86.3%
sub-neg86.3%
metadata-eval86.3%
Simplified86.3%
Final simplification89.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (+ t -1.0) -1.68e+38) (not (<= (+ t -1.0) 7e+80))) (/ x (/ y (pow a (+ t -1.0)))) (/ x (/ a (/ (pow z y) y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((t + -1.0) <= -1.68e+38) || !((t + -1.0) <= 7e+80)) {
tmp = x / (y / pow(a, (t + -1.0)));
} else {
tmp = x / (a / (pow(z, y) / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (((t + (-1.0d0)) <= (-1.68d+38)) .or. (.not. ((t + (-1.0d0)) <= 7d+80))) then
tmp = x / (y / (a ** (t + (-1.0d0))))
else
tmp = x / (a / ((z ** y) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((t + -1.0) <= -1.68e+38) || !((t + -1.0) <= 7e+80)) {
tmp = x / (y / Math.pow(a, (t + -1.0)));
} else {
tmp = x / (a / (Math.pow(z, y) / y));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((t + -1.0) <= -1.68e+38) or not ((t + -1.0) <= 7e+80): tmp = x / (y / math.pow(a, (t + -1.0))) else: tmp = x / (a / (math.pow(z, y) / y)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(t + -1.0) <= -1.68e+38) || !(Float64(t + -1.0) <= 7e+80)) tmp = Float64(x / Float64(y / (a ^ Float64(t + -1.0)))); else tmp = Float64(x / Float64(a / Float64((z ^ y) / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (((t + -1.0) <= -1.68e+38) || ~(((t + -1.0) <= 7e+80))) tmp = x / (y / (a ^ (t + -1.0))); else tmp = x / (a / ((z ^ y) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(t + -1.0), $MachinePrecision], -1.68e+38], N[Not[LessEqual[N[(t + -1.0), $MachinePrecision], 7e+80]], $MachinePrecision]], N[(x / N[(y / N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a / N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t + -1 \leq -1.68 \cdot 10^{+38} \lor \neg \left(t + -1 \leq 7 \cdot 10^{+80}\right):\\
\;\;\;\;\frac{x}{\frac{y}{{a}^{\left(t + -1\right)}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{a}{\frac{{z}^{y}}{y}}}\\
\end{array}
\end{array}
if (-.f64 t 1) < -1.6800000000000001e38 or 6.99999999999999987e80 < (-.f64 t 1) Initial program 100.0%
associate-*l/83.3%
*-commutative83.3%
+-commutative83.3%
associate--l+83.3%
exp-sum57.4%
*-commutative57.4%
exp-to-pow57.4%
sub-neg57.4%
metadata-eval57.4%
exp-diff51.9%
*-commutative51.9%
exp-to-pow51.9%
Simplified51.9%
Taylor expanded in b around 0 69.6%
associate-/l*69.6%
*-commutative69.6%
exp-to-pow69.6%
*-commutative69.6%
exp-sum91.8%
exp-sum69.6%
*-commutative69.6%
exp-to-pow69.6%
*-commutative69.6%
exp-to-pow69.6%
sub-neg69.6%
metadata-eval69.6%
Simplified69.6%
Taylor expanded in y around 0 85.4%
exp-to-pow85.4%
Simplified85.4%
if -1.6800000000000001e38 < (-.f64 t 1) < 6.99999999999999987e80Initial program 95.6%
associate-*l/88.0%
*-commutative88.0%
+-commutative88.0%
associate--l+88.0%
exp-sum83.3%
*-commutative83.3%
exp-to-pow84.5%
sub-neg84.5%
metadata-eval84.5%
exp-diff73.0%
*-commutative73.0%
exp-to-pow73.0%
Simplified73.0%
Taylor expanded in b around 0 69.7%
associate-/l*70.2%
*-commutative70.2%
exp-to-pow70.2%
*-commutative70.2%
exp-sum72.9%
exp-sum70.2%
*-commutative70.2%
exp-to-pow70.2%
*-commutative70.2%
exp-to-pow71.3%
sub-neg71.3%
metadata-eval71.3%
Simplified71.3%
Taylor expanded in t around 0 65.4%
associate-/l*73.4%
Simplified73.4%
Final simplification78.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -3.8e-9) (not (<= b 9.5e+113))) (/ x (* a (* y (exp b)))) (* (/ x y) (/ (pow z y) a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -3.8e-9) || !(b <= 9.5e+113)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = (x / y) * (pow(z, 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 <= (-3.8d-9)) .or. (.not. (b <= 9.5d+113))) then
tmp = x / (a * (y * exp(b)))
else
tmp = (x / y) * ((z ** 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 <= -3.8e-9) || !(b <= 9.5e+113)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = (x / y) * (Math.pow(z, y) / a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -3.8e-9) or not (b <= 9.5e+113): tmp = x / (a * (y * math.exp(b))) else: tmp = (x / y) * (math.pow(z, y) / a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -3.8e-9) || !(b <= 9.5e+113)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(Float64(x / y) * Float64((z ^ y) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -3.8e-9) || ~((b <= 9.5e+113))) tmp = x / (a * (y * exp(b))); else tmp = (x / y) * ((z ^ y) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -3.8e-9], N[Not[LessEqual[b, 9.5e+113]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / y), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.8 \cdot 10^{-9} \lor \neg \left(b \leq 9.5 \cdot 10^{+113}\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{{z}^{y}}{a}\\
\end{array}
\end{array}
if b < -3.80000000000000011e-9 or 9.5000000000000001e113 < b Initial program 99.2%
associate-*l/84.9%
*-commutative84.9%
+-commutative84.9%
associate--l+84.9%
exp-sum67.4%
*-commutative67.4%
exp-to-pow67.5%
sub-neg67.5%
metadata-eval67.5%
exp-diff50.0%
*-commutative50.0%
exp-to-pow50.0%
Simplified50.0%
Taylor expanded in y around 0 63.5%
*-commutative63.5%
*-commutative63.5%
times-frac60.9%
exp-to-pow60.9%
sub-neg60.9%
metadata-eval60.9%
Simplified60.9%
Taylor expanded in t around 0 79.5%
if -3.80000000000000011e-9 < b < 9.5000000000000001e113Initial program 95.8%
Taylor expanded in t around 0 75.0%
+-commutative75.0%
mul-1-neg75.0%
unsub-neg75.0%
Simplified75.0%
Taylor expanded in b around 0 73.6%
*-commutative73.6%
exp-diff73.6%
*-commutative73.6%
exp-to-pow73.6%
rem-exp-log74.7%
associate-*l/74.7%
*-commutative74.7%
associate-/r*67.5%
*-commutative67.5%
times-frac71.9%
Simplified71.9%
Final simplification75.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.25e+42) (not (<= b 9.5e+113))) (/ x (* a (* y (exp b)))) (/ x (/ a (/ (pow z y) y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.25e+42) || !(b <= 9.5e+113)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = x / (a / (pow(z, y) / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-1.25d+42)) .or. (.not. (b <= 9.5d+113))) then
tmp = x / (a * (y * exp(b)))
else
tmp = x / (a / ((z ** y) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.25e+42) || !(b <= 9.5e+113)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = x / (a / (Math.pow(z, y) / y));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.25e+42) or not (b <= 9.5e+113): tmp = x / (a * (y * math.exp(b))) else: tmp = x / (a / (math.pow(z, y) / y)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.25e+42) || !(b <= 9.5e+113)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(x / Float64(a / Float64((z ^ y) / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -1.25e+42) || ~((b <= 9.5e+113))) tmp = x / (a * (y * exp(b))); else tmp = x / (a / ((z ^ y) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.25e+42], N[Not[LessEqual[b, 9.5e+113]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a / N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.25 \cdot 10^{+42} \lor \neg \left(b \leq 9.5 \cdot 10^{+113}\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{a}{\frac{{z}^{y}}{y}}}\\
\end{array}
\end{array}
if b < -1.25000000000000002e42 or 9.5000000000000001e113 < b Initial program 100.0%
associate-*l/82.9%
*-commutative82.9%
+-commutative82.9%
associate--l+82.9%
exp-sum62.9%
*-commutative62.9%
exp-to-pow62.9%
sub-neg62.9%
metadata-eval62.9%
exp-diff45.7%
*-commutative45.7%
exp-to-pow45.7%
Simplified45.7%
Taylor expanded in y around 0 62.0%
*-commutative62.0%
*-commutative62.0%
times-frac58.2%
exp-to-pow58.2%
sub-neg58.2%
metadata-eval58.2%
Simplified58.2%
Taylor expanded in t around 0 82.2%
if -1.25000000000000002e42 < b < 9.5000000000000001e113Initial program 95.6%
associate-*l/88.2%
*-commutative88.2%
+-commutative88.2%
associate--l+88.2%
exp-sum79.0%
*-commutative79.0%
exp-to-pow80.2%
sub-neg80.2%
metadata-eval80.2%
exp-diff76.9%
*-commutative76.9%
exp-to-pow76.9%
Simplified76.9%
Taylor expanded in b around 0 83.1%
associate-/l*84.2%
*-commutative84.2%
exp-to-pow84.2%
*-commutative84.2%
exp-sum94.8%
exp-sum84.2%
*-commutative84.2%
exp-to-pow84.2%
*-commutative84.2%
exp-to-pow85.3%
sub-neg85.3%
metadata-eval85.3%
Simplified85.3%
Taylor expanded in t around 0 67.2%
associate-/l*75.8%
Simplified75.8%
Final simplification78.4%
(FPCore (x y z t a b) :precision binary64 (/ x (* a (* y (exp b)))))
double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y * exp(b)));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / (a * (y * exp(b)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y * Math.exp(b)));
}
def code(x, y, z, t, a, b): return x / (a * (y * math.exp(b)))
function code(x, y, z, t, a, b) return Float64(x / Float64(a * Float64(y * exp(b)))) end
function tmp = code(x, y, z, t, a, b) tmp = x / (a * (y * exp(b))); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{a \cdot \left(y \cdot e^{b}\right)}
\end{array}
Initial program 97.4%
associate-*l/86.0%
*-commutative86.0%
+-commutative86.0%
associate--l+86.0%
exp-sum72.4%
*-commutative72.4%
exp-to-pow73.1%
sub-neg73.1%
metadata-eval73.1%
exp-diff64.1%
*-commutative64.1%
exp-to-pow64.1%
Simplified64.1%
Taylor expanded in y around 0 64.3%
*-commutative64.3%
*-commutative64.3%
times-frac61.4%
exp-to-pow62.1%
sub-neg62.1%
metadata-eval62.1%
Simplified62.1%
Taylor expanded in t around 0 58.0%
Final simplification58.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -6.2e-31)
(+ (- t_1 (* (/ x y) (/ b a))) (* (* 0.5 (* b b)) t_1))
(* (/ 1.0 a) (/ x (* y (+ 1.0 b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -6.2e-31) {
tmp = (t_1 - ((x / y) * (b / a))) + ((0.5 * (b * b)) * t_1);
} else {
tmp = (1.0 / a) * (x / (y * (1.0 + b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (y * a)
if (b <= (-6.2d-31)) then
tmp = (t_1 - ((x / y) * (b / a))) + ((0.5d0 * (b * b)) * t_1)
else
tmp = (1.0d0 / a) * (x / (y * (1.0d0 + b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -6.2e-31) {
tmp = (t_1 - ((x / y) * (b / a))) + ((0.5 * (b * b)) * t_1);
} else {
tmp = (1.0 / a) * (x / (y * (1.0 + b)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -6.2e-31: tmp = (t_1 - ((x / y) * (b / a))) + ((0.5 * (b * b)) * t_1) else: tmp = (1.0 / a) * (x / (y * (1.0 + b))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -6.2e-31) tmp = Float64(Float64(t_1 - Float64(Float64(x / y) * Float64(b / a))) + Float64(Float64(0.5 * Float64(b * b)) * t_1)); else tmp = Float64(Float64(1.0 / a) * Float64(x / Float64(y * Float64(1.0 + b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -6.2e-31) tmp = (t_1 - ((x / y) * (b / a))) + ((0.5 * (b * b)) * t_1); else tmp = (1.0 / a) * (x / (y * (1.0 + b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.2e-31], N[(N[(t$95$1 - N[(N[(x / y), $MachinePrecision] * N[(b / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(0.5 * N[(b * b), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / a), $MachinePrecision] * N[(x / N[(y * N[(1.0 + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot a}\\
\mathbf{if}\;b \leq -6.2 \cdot 10^{-31}:\\
\;\;\;\;\left(t_1 - \frac{x}{y} \cdot \frac{b}{a}\right) + \left(0.5 \cdot \left(b \cdot b\right)\right) \cdot t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{a} \cdot \frac{x}{y \cdot \left(1 + b\right)}\\
\end{array}
\end{array}
if b < -6.19999999999999999e-31Initial program 97.5%
Taylor expanded in t around 0 81.1%
+-commutative81.1%
mul-1-neg81.1%
unsub-neg81.1%
Simplified81.1%
Taylor expanded in y around 0 68.6%
exp-neg68.6%
associate-*r/68.6%
*-rgt-identity68.6%
+-commutative68.6%
exp-sum68.6%
rem-exp-log68.7%
Simplified68.7%
Taylor expanded in x around 0 72.3%
associate-/r*58.4%
associate-/r*53.2%
Simplified53.2%
Taylor expanded in b around 0 35.8%
+-commutative35.8%
+-commutative35.8%
mul-1-neg35.8%
unsub-neg35.8%
times-frac33.1%
*-commutative33.1%
associate-*r*33.1%
distribute-rgt-out44.7%
metadata-eval44.7%
*-commutative44.7%
associate-*r*44.7%
metadata-eval44.7%
Simplified44.7%
if -6.19999999999999999e-31 < b Initial program 97.4%
associate-*l/86.2%
*-commutative86.2%
+-commutative86.2%
associate--l+86.2%
exp-sum72.8%
*-commutative72.8%
exp-to-pow73.7%
sub-neg73.7%
metadata-eval73.7%
exp-diff68.0%
*-commutative68.0%
exp-to-pow68.0%
Simplified68.0%
Taylor expanded in y around 0 64.9%
*-commutative64.9%
*-commutative64.9%
times-frac62.0%
exp-to-pow62.9%
sub-neg62.9%
metadata-eval62.9%
Simplified62.9%
Taylor expanded in t around 0 51.7%
Taylor expanded in b around 0 36.0%
*-un-lft-identity36.0%
distribute-lft-out37.2%
times-frac39.5%
distribute-rgt1-in39.5%
Applied egg-rr39.5%
Final simplification41.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x a) y)))
(if (<= b -3.2e+24)
(+ (- t_1 (* (/ x a) (/ b y))) (* t_1 (* 0.5 (* b b))))
(* (/ 1.0 a) (/ x (* y (+ 1.0 b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / a) / y;
double tmp;
if (b <= -3.2e+24) {
tmp = (t_1 - ((x / a) * (b / y))) + (t_1 * (0.5 * (b * b)));
} else {
tmp = (1.0 / a) * (x / (y * (1.0 + b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x / a) / y
if (b <= (-3.2d+24)) then
tmp = (t_1 - ((x / a) * (b / y))) + (t_1 * (0.5d0 * (b * b)))
else
tmp = (1.0d0 / a) * (x / (y * (1.0d0 + b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / a) / y;
double tmp;
if (b <= -3.2e+24) {
tmp = (t_1 - ((x / a) * (b / y))) + (t_1 * (0.5 * (b * b)));
} else {
tmp = (1.0 / a) * (x / (y * (1.0 + b)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / a) / y tmp = 0 if b <= -3.2e+24: tmp = (t_1 - ((x / a) * (b / y))) + (t_1 * (0.5 * (b * b))) else: tmp = (1.0 / a) * (x / (y * (1.0 + b))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / a) / y) tmp = 0.0 if (b <= -3.2e+24) tmp = Float64(Float64(t_1 - Float64(Float64(x / a) * Float64(b / y))) + Float64(t_1 * Float64(0.5 * Float64(b * b)))); else tmp = Float64(Float64(1.0 / a) * Float64(x / Float64(y * Float64(1.0 + b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / a) / y; tmp = 0.0; if (b <= -3.2e+24) tmp = (t_1 - ((x / a) * (b / y))) + (t_1 * (0.5 * (b * b))); else tmp = (1.0 / a) * (x / (y * (1.0 + b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -3.2e+24], N[(N[(t$95$1 - N[(N[(x / a), $MachinePrecision] * N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * N[(0.5 * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / a), $MachinePrecision] * N[(x / N[(y * N[(1.0 + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{a}}{y}\\
\mathbf{if}\;b \leq -3.2 \cdot 10^{+24}:\\
\;\;\;\;\left(t_1 - \frac{x}{a} \cdot \frac{b}{y}\right) + t_1 \cdot \left(0.5 \cdot \left(b \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{a} \cdot \frac{x}{y \cdot \left(1 + b\right)}\\
\end{array}
\end{array}
if b < -3.1999999999999997e24Initial program 100.0%
associate-*l/83.6%
*-commutative83.6%
+-commutative83.6%
associate--l+83.6%
exp-sum65.6%
*-commutative65.6%
exp-to-pow65.6%
sub-neg65.6%
metadata-eval65.6%
exp-diff47.5%
*-commutative47.5%
exp-to-pow47.5%
Simplified47.5%
Taylor expanded in y around 0 60.7%
*-commutative60.7%
*-commutative60.7%
times-frac55.8%
exp-to-pow55.8%
sub-neg55.8%
metadata-eval55.8%
Simplified55.8%
Taylor expanded in t around 0 79.0%
Taylor expanded in b around 0 37.3%
+-commutative37.3%
+-commutative37.3%
mul-1-neg37.3%
unsub-neg37.3%
associate-/r*37.3%
*-commutative37.3%
times-frac35.6%
mul-1-neg35.6%
*-commutative35.6%
distribute-lft-neg-in35.6%
Simplified48.7%
if -3.1999999999999997e24 < b Initial program 96.6%
associate-*l/86.8%
*-commutative86.8%
+-commutative86.8%
associate--l+86.8%
exp-sum74.5%
*-commutative74.5%
exp-to-pow75.4%
sub-neg75.4%
metadata-eval75.4%
exp-diff69.3%
*-commutative69.3%
exp-to-pow69.3%
Simplified69.3%
Taylor expanded in y around 0 65.4%
*-commutative65.4%
*-commutative65.4%
times-frac63.1%
exp-to-pow64.1%
sub-neg64.1%
metadata-eval64.1%
Simplified64.1%
Taylor expanded in t around 0 51.4%
Taylor expanded in b around 0 35.5%
*-un-lft-identity35.5%
distribute-lft-out37.1%
times-frac39.2%
distribute-rgt1-in39.2%
Applied egg-rr39.2%
Final simplification41.5%
(FPCore (x y z t a b) :precision binary64 (if (<= b -6.8e-29) (- (/ x (* y a)) (* (/ x y) (/ b a))) (* (/ 1.0 a) (/ x (* y (+ 1.0 b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6.8e-29) {
tmp = (x / (y * a)) - ((x / y) * (b / a));
} else {
tmp = (1.0 / a) * (x / (y * (1.0 + b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-6.8d-29)) then
tmp = (x / (y * a)) - ((x / y) * (b / a))
else
tmp = (1.0d0 / a) * (x / (y * (1.0d0 + b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6.8e-29) {
tmp = (x / (y * a)) - ((x / y) * (b / a));
} else {
tmp = (1.0 / a) * (x / (y * (1.0 + b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -6.8e-29: tmp = (x / (y * a)) - ((x / y) * (b / a)) else: tmp = (1.0 / a) * (x / (y * (1.0 + b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -6.8e-29) tmp = Float64(Float64(x / Float64(y * a)) - Float64(Float64(x / y) * Float64(b / a))); else tmp = Float64(Float64(1.0 / a) * Float64(x / Float64(y * Float64(1.0 + b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -6.8e-29) tmp = (x / (y * a)) - ((x / y) * (b / a)); else tmp = (1.0 / a) * (x / (y * (1.0 + b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -6.8e-29], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(x / y), $MachinePrecision] * N[(b / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / a), $MachinePrecision] * N[(x / N[(y * N[(1.0 + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.8 \cdot 10^{-29}:\\
\;\;\;\;\frac{x}{y \cdot a} - \frac{x}{y} \cdot \frac{b}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{a} \cdot \frac{x}{y \cdot \left(1 + b\right)}\\
\end{array}
\end{array}
if b < -6.79999999999999945e-29Initial program 97.5%
Taylor expanded in t around 0 81.1%
+-commutative81.1%
mul-1-neg81.1%
unsub-neg81.1%
Simplified81.1%
Taylor expanded in y around 0 68.6%
exp-neg68.6%
associate-*r/68.6%
*-rgt-identity68.6%
+-commutative68.6%
exp-sum68.6%
rem-exp-log68.7%
Simplified68.7%
Taylor expanded in x around 0 72.3%
associate-/r*58.4%
associate-/r*53.2%
Simplified53.2%
Taylor expanded in b around 0 40.2%
+-commutative40.2%
mul-1-neg40.2%
unsub-neg40.2%
times-frac35.2%
Simplified35.2%
if -6.79999999999999945e-29 < b Initial program 97.4%
associate-*l/86.2%
*-commutative86.2%
+-commutative86.2%
associate--l+86.2%
exp-sum72.8%
*-commutative72.8%
exp-to-pow73.7%
sub-neg73.7%
metadata-eval73.7%
exp-diff68.0%
*-commutative68.0%
exp-to-pow68.0%
Simplified68.0%
Taylor expanded in y around 0 64.9%
*-commutative64.9%
*-commutative64.9%
times-frac62.0%
exp-to-pow62.9%
sub-neg62.9%
metadata-eval62.9%
Simplified62.9%
Taylor expanded in t around 0 51.7%
Taylor expanded in b around 0 36.0%
*-un-lft-identity36.0%
distribute-lft-out37.2%
times-frac39.5%
distribute-rgt1-in39.5%
Applied egg-rr39.5%
Final simplification38.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b -3.2e+24) (- (/ (/ x a) y) (* (/ x a) (/ b y))) (* (/ 1.0 a) (/ x (* y (+ 1.0 b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.2e+24) {
tmp = ((x / a) / y) - ((x / a) * (b / y));
} else {
tmp = (1.0 / a) * (x / (y * (1.0 + b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-3.2d+24)) then
tmp = ((x / a) / y) - ((x / a) * (b / y))
else
tmp = (1.0d0 / a) * (x / (y * (1.0d0 + b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.2e+24) {
tmp = ((x / a) / y) - ((x / a) * (b / y));
} else {
tmp = (1.0 / a) * (x / (y * (1.0 + b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3.2e+24: tmp = ((x / a) / y) - ((x / a) * (b / y)) else: tmp = (1.0 / a) * (x / (y * (1.0 + b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3.2e+24) tmp = Float64(Float64(Float64(x / a) / y) - Float64(Float64(x / a) * Float64(b / y))); else tmp = Float64(Float64(1.0 / a) * Float64(x / Float64(y * Float64(1.0 + b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -3.2e+24) tmp = ((x / a) / y) - ((x / a) * (b / y)); else tmp = (1.0 / a) * (x / (y * (1.0 + b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.2e+24], N[(N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision] - N[(N[(x / a), $MachinePrecision] * N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / a), $MachinePrecision] * N[(x / N[(y * N[(1.0 + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.2 \cdot 10^{+24}:\\
\;\;\;\;\frac{\frac{x}{a}}{y} - \frac{x}{a} \cdot \frac{b}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{a} \cdot \frac{x}{y \cdot \left(1 + b\right)}\\
\end{array}
\end{array}
if b < -3.1999999999999997e24Initial program 100.0%
associate-*l/83.6%
*-commutative83.6%
+-commutative83.6%
associate--l+83.6%
exp-sum65.6%
*-commutative65.6%
exp-to-pow65.6%
sub-neg65.6%
metadata-eval65.6%
exp-diff47.5%
*-commutative47.5%
exp-to-pow47.5%
Simplified47.5%
Taylor expanded in y around 0 60.7%
*-commutative60.7%
*-commutative60.7%
times-frac55.8%
exp-to-pow55.8%
sub-neg55.8%
metadata-eval55.8%
Simplified55.8%
Taylor expanded in t around 0 79.0%
Taylor expanded in b around 0 41.2%
+-commutative41.2%
mul-1-neg41.2%
unsub-neg41.2%
associate-/r*41.2%
*-commutative41.2%
times-frac39.7%
Simplified39.7%
if -3.1999999999999997e24 < b Initial program 96.6%
associate-*l/86.8%
*-commutative86.8%
+-commutative86.8%
associate--l+86.8%
exp-sum74.5%
*-commutative74.5%
exp-to-pow75.4%
sub-neg75.4%
metadata-eval75.4%
exp-diff69.3%
*-commutative69.3%
exp-to-pow69.3%
Simplified69.3%
Taylor expanded in y around 0 65.4%
*-commutative65.4%
*-commutative65.4%
times-frac63.1%
exp-to-pow64.1%
sub-neg64.1%
metadata-eval64.1%
Simplified64.1%
Taylor expanded in t around 0 51.4%
Taylor expanded in b around 0 35.5%
*-un-lft-identity35.5%
distribute-lft-out37.1%
times-frac39.2%
distribute-rgt1-in39.2%
Applied egg-rr39.2%
Final simplification39.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b -8.5e-29) (- (/ x (* y a)) (/ (* x b) (* y a))) (* (/ 1.0 a) (/ x (* y (+ 1.0 b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -8.5e-29) {
tmp = (x / (y * a)) - ((x * b) / (y * a));
} else {
tmp = (1.0 / a) * (x / (y * (1.0 + b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-8.5d-29)) then
tmp = (x / (y * a)) - ((x * b) / (y * a))
else
tmp = (1.0d0 / a) * (x / (y * (1.0d0 + b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -8.5e-29) {
tmp = (x / (y * a)) - ((x * b) / (y * a));
} else {
tmp = (1.0 / a) * (x / (y * (1.0 + b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -8.5e-29: tmp = (x / (y * a)) - ((x * b) / (y * a)) else: tmp = (1.0 / a) * (x / (y * (1.0 + b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -8.5e-29) tmp = Float64(Float64(x / Float64(y * a)) - Float64(Float64(x * b) / Float64(y * a))); else tmp = Float64(Float64(1.0 / a) * Float64(x / Float64(y * Float64(1.0 + b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -8.5e-29) tmp = (x / (y * a)) - ((x * b) / (y * a)); else tmp = (1.0 / a) * (x / (y * (1.0 + b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -8.5e-29], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / a), $MachinePrecision] * N[(x / N[(y * N[(1.0 + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.5 \cdot 10^{-29}:\\
\;\;\;\;\frac{x}{y \cdot a} - \frac{x \cdot b}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{a} \cdot \frac{x}{y \cdot \left(1 + b\right)}\\
\end{array}
\end{array}
if b < -8.5000000000000001e-29Initial program 97.5%
associate-*l/85.5%
*-commutative85.5%
+-commutative85.5%
associate--l+85.5%
exp-sum71.4%
*-commutative71.4%
exp-to-pow71.7%
sub-neg71.7%
metadata-eval71.7%
exp-diff55.1%
*-commutative55.1%
exp-to-pow55.1%
Simplified55.1%
Taylor expanded in y around 0 63.0%
*-commutative63.0%
*-commutative63.0%
times-frac60.0%
exp-to-pow60.4%
sub-neg60.4%
metadata-eval60.4%
Simplified60.4%
Taylor expanded in t around 0 72.3%
Taylor expanded in b around 0 40.2%
if -8.5000000000000001e-29 < b Initial program 97.4%
associate-*l/86.2%
*-commutative86.2%
+-commutative86.2%
associate--l+86.2%
exp-sum72.8%
*-commutative72.8%
exp-to-pow73.7%
sub-neg73.7%
metadata-eval73.7%
exp-diff68.0%
*-commutative68.0%
exp-to-pow68.0%
Simplified68.0%
Taylor expanded in y around 0 64.9%
*-commutative64.9%
*-commutative64.9%
times-frac62.0%
exp-to-pow62.9%
sub-neg62.9%
metadata-eval62.9%
Simplified62.9%
Taylor expanded in t around 0 51.7%
Taylor expanded in b around 0 36.0%
*-un-lft-identity36.0%
distribute-lft-out37.2%
times-frac39.5%
distribute-rgt1-in39.5%
Applied egg-rr39.5%
Final simplification39.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -3.2e+24) (/ (/ x y) a) (* (/ 1.0 a) (/ x (* y (+ 1.0 b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.2e+24) {
tmp = (x / y) / a;
} else {
tmp = (1.0 / a) * (x / (y * (1.0 + b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-3.2d+24)) then
tmp = (x / y) / a
else
tmp = (1.0d0 / a) * (x / (y * (1.0d0 + b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.2e+24) {
tmp = (x / y) / a;
} else {
tmp = (1.0 / a) * (x / (y * (1.0 + b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3.2e+24: tmp = (x / y) / a else: tmp = (1.0 / a) * (x / (y * (1.0 + b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3.2e+24) tmp = Float64(Float64(x / y) / a); else tmp = Float64(Float64(1.0 / a) * Float64(x / Float64(y * Float64(1.0 + b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -3.2e+24) tmp = (x / y) / a; else tmp = (1.0 / a) * (x / (y * (1.0 + b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.2e+24], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision], N[(N[(1.0 / a), $MachinePrecision] * N[(x / N[(y * N[(1.0 + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.2 \cdot 10^{+24}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{a} \cdot \frac{x}{y \cdot \left(1 + b\right)}\\
\end{array}
\end{array}
if b < -3.1999999999999997e24Initial program 100.0%
Taylor expanded in t around 0 88.7%
+-commutative88.7%
mul-1-neg88.7%
unsub-neg88.7%
Simplified88.7%
Taylor expanded in b around 0 44.2%
*-commutative44.2%
exp-diff44.2%
*-commutative44.2%
exp-to-pow44.2%
rem-exp-log44.2%
associate-*l/44.2%
*-commutative44.2%
associate-/r*39.3%
*-commutative39.3%
times-frac42.1%
Simplified42.1%
Taylor expanded in y around 0 29.8%
associate-*l/29.8%
*-un-lft-identity29.8%
Applied egg-rr29.8%
if -3.1999999999999997e24 < b Initial program 96.6%
associate-*l/86.8%
*-commutative86.8%
+-commutative86.8%
associate--l+86.8%
exp-sum74.5%
*-commutative74.5%
exp-to-pow75.4%
sub-neg75.4%
metadata-eval75.4%
exp-diff69.3%
*-commutative69.3%
exp-to-pow69.3%
Simplified69.3%
Taylor expanded in y around 0 65.4%
*-commutative65.4%
*-commutative65.4%
times-frac63.1%
exp-to-pow64.1%
sub-neg64.1%
metadata-eval64.1%
Simplified64.1%
Taylor expanded in t around 0 51.4%
Taylor expanded in b around 0 35.5%
*-un-lft-identity35.5%
distribute-lft-out37.1%
times-frac39.2%
distribute-rgt1-in39.2%
Applied egg-rr39.2%
Final simplification37.0%
(FPCore (x y z t a b) :precision binary64 (if (<= b 1.8e+54) (/ (/ 1.0 a) (/ y x)) (/ x (* y (+ a (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.8e+54) {
tmp = (1.0 / a) / (y / x);
} else {
tmp = x / (y * (a + (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 <= 1.8d+54) then
tmp = (1.0d0 / a) / (y / x)
else
tmp = x / (y * (a + (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 <= 1.8e+54) {
tmp = (1.0 / a) / (y / x);
} else {
tmp = x / (y * (a + (a * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 1.8e+54: tmp = (1.0 / a) / (y / x) else: tmp = x / (y * (a + (a * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 1.8e+54) tmp = Float64(Float64(1.0 / a) / Float64(y / x)); else tmp = Float64(x / Float64(y * Float64(a + Float64(a * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 1.8e+54) tmp = (1.0 / a) / (y / x); else tmp = x / (y * (a + (a * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.8e+54], N[(N[(1.0 / a), $MachinePrecision] / N[(y / x), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.8 \cdot 10^{+54}:\\
\;\;\;\;\frac{\frac{1}{a}}{\frac{y}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a + a \cdot b\right)}\\
\end{array}
\end{array}
if b < 1.8000000000000001e54Initial program 96.7%
Taylor expanded in t around 0 78.4%
+-commutative78.4%
mul-1-neg78.4%
unsub-neg78.4%
Simplified78.4%
Taylor expanded in b around 0 63.2%
*-commutative63.2%
exp-diff63.2%
*-commutative63.2%
exp-to-pow63.2%
rem-exp-log63.9%
associate-*l/64.0%
*-commutative64.0%
associate-/r*57.8%
*-commutative57.8%
times-frac61.7%
Simplified61.7%
Taylor expanded in y around 0 35.0%
clear-num35.5%
un-div-inv35.5%
Applied egg-rr35.5%
if 1.8000000000000001e54 < b Initial program 100.0%
associate-*l/86.2%
*-commutative86.2%
+-commutative86.2%
associate--l+86.2%
exp-sum63.8%
*-commutative63.8%
exp-to-pow63.8%
sub-neg63.8%
metadata-eval63.8%
exp-diff48.3%
*-commutative48.3%
exp-to-pow48.3%
Simplified48.3%
Taylor expanded in y around 0 63.9%
*-commutative63.9%
*-commutative63.9%
times-frac62.1%
exp-to-pow62.1%
sub-neg62.1%
metadata-eval62.1%
Simplified62.1%
Taylor expanded in t around 0 81.3%
Taylor expanded in b around 0 40.1%
+-commutative40.1%
associate-*r*41.8%
distribute-rgt-out41.8%
Applied egg-rr41.8%
Final simplification36.9%
(FPCore (x y z t a b) :precision binary64 (if (<= t -5.6e+91) (/ x (* y a)) (/ 1.0 (* a (/ y x)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -5.6e+91) {
tmp = x / (y * a);
} else {
tmp = 1.0 / (a * (y / x));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= (-5.6d+91)) then
tmp = x / (y * a)
else
tmp = 1.0d0 / (a * (y / x))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -5.6e+91) {
tmp = x / (y * a);
} else {
tmp = 1.0 / (a * (y / x));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -5.6e+91: tmp = x / (y * a) else: tmp = 1.0 / (a * (y / x)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -5.6e+91) tmp = Float64(x / Float64(y * a)); else tmp = Float64(1.0 / Float64(a * Float64(y / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -5.6e+91) tmp = x / (y * a); else tmp = 1.0 / (a * (y / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -5.6e+91], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.6 \cdot 10^{+91}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\
\end{array}
\end{array}
if t < -5.5999999999999997e91Initial program 100.0%
associate-*l/73.2%
*-commutative73.2%
+-commutative73.2%
associate--l+73.2%
exp-sum46.3%
*-commutative46.3%
exp-to-pow46.3%
sub-neg46.3%
metadata-eval46.3%
exp-diff36.6%
*-commutative36.6%
exp-to-pow36.6%
Simplified36.6%
Taylor expanded in b around 0 63.5%
associate-/l*63.5%
*-commutative63.5%
exp-to-pow63.5%
*-commutative63.5%
exp-sum90.4%
exp-sum63.5%
*-commutative63.5%
exp-to-pow63.5%
*-commutative63.5%
exp-to-pow63.5%
sub-neg63.5%
metadata-eval63.5%
Simplified63.5%
Taylor expanded in t around 0 47.4%
associate-/l*52.4%
Simplified52.4%
Taylor expanded in y around 0 29.1%
*-commutative29.1%
Simplified29.1%
if -5.5999999999999997e91 < t Initial program 96.9%
Taylor expanded in t around 0 83.3%
+-commutative83.3%
mul-1-neg83.3%
unsub-neg83.3%
Simplified83.3%
Taylor expanded in b around 0 60.1%
*-commutative60.1%
exp-diff60.1%
*-commutative60.1%
exp-to-pow60.1%
rem-exp-log60.8%
associate-*l/60.9%
*-commutative60.9%
associate-/r*53.9%
*-commutative53.9%
times-frac58.7%
Simplified58.7%
Taylor expanded in y around 0 32.9%
clear-num33.8%
frac-times33.7%
metadata-eval33.7%
Applied egg-rr33.7%
Final simplification32.9%
(FPCore (x y z t a b) :precision binary64 (if (<= b 4.2e+62) (/ 1.0 (* a (/ y x))) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 4.2e+62) {
tmp = 1.0 / (a * (y / x));
} 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 <= 4.2d+62) then
tmp = 1.0d0 / (a * (y / x))
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 <= 4.2e+62) {
tmp = 1.0 / (a * (y / x));
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 4.2e+62: tmp = 1.0 / (a * (y / x)) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 4.2e+62) tmp = Float64(1.0 / Float64(a * Float64(y / x))); 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 <= 4.2e+62) tmp = 1.0 / (a * (y / x)); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 4.2e+62], N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 4.2 \cdot 10^{+62}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 4.2e62Initial program 96.7%
Taylor expanded in t around 0 78.4%
+-commutative78.4%
mul-1-neg78.4%
unsub-neg78.4%
Simplified78.4%
Taylor expanded in b around 0 63.2%
*-commutative63.2%
exp-diff63.2%
*-commutative63.2%
exp-to-pow63.2%
rem-exp-log63.9%
associate-*l/64.0%
*-commutative64.0%
associate-/r*57.8%
*-commutative57.8%
times-frac61.7%
Simplified61.7%
Taylor expanded in y around 0 35.0%
clear-num35.5%
frac-times35.4%
metadata-eval35.4%
Applied egg-rr35.4%
if 4.2e62 < b Initial program 100.0%
associate-*l/86.2%
*-commutative86.2%
+-commutative86.2%
associate--l+86.2%
exp-sum63.8%
*-commutative63.8%
exp-to-pow63.8%
sub-neg63.8%
metadata-eval63.8%
exp-diff48.3%
*-commutative48.3%
exp-to-pow48.3%
Simplified48.3%
Taylor expanded in y around 0 63.9%
*-commutative63.9%
*-commutative63.9%
times-frac62.1%
exp-to-pow62.1%
sub-neg62.1%
metadata-eval62.1%
Simplified62.1%
Taylor expanded in t around 0 81.3%
Taylor expanded in b around 0 40.1%
Taylor expanded in b around inf 40.1%
*-commutative40.1%
Simplified40.1%
Final simplification36.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b 5.75e+51) (/ (/ 1.0 a) (/ y x)) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 5.75e+51) {
tmp = (1.0 / a) / (y / x);
} 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 <= 5.75d+51) then
tmp = (1.0d0 / a) / (y / x)
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 <= 5.75e+51) {
tmp = (1.0 / a) / (y / x);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 5.75e+51: tmp = (1.0 / a) / (y / x) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 5.75e+51) tmp = Float64(Float64(1.0 / a) / Float64(y / x)); 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 <= 5.75e+51) tmp = (1.0 / a) / (y / x); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 5.75e+51], N[(N[(1.0 / a), $MachinePrecision] / N[(y / x), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 5.75 \cdot 10^{+51}:\\
\;\;\;\;\frac{\frac{1}{a}}{\frac{y}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 5.75e51Initial program 96.7%
Taylor expanded in t around 0 78.4%
+-commutative78.4%
mul-1-neg78.4%
unsub-neg78.4%
Simplified78.4%
Taylor expanded in b around 0 63.2%
*-commutative63.2%
exp-diff63.2%
*-commutative63.2%
exp-to-pow63.2%
rem-exp-log63.9%
associate-*l/64.0%
*-commutative64.0%
associate-/r*57.8%
*-commutative57.8%
times-frac61.7%
Simplified61.7%
Taylor expanded in y around 0 35.0%
clear-num35.5%
un-div-inv35.5%
Applied egg-rr35.5%
if 5.75e51 < b Initial program 100.0%
associate-*l/86.2%
*-commutative86.2%
+-commutative86.2%
associate--l+86.2%
exp-sum63.8%
*-commutative63.8%
exp-to-pow63.8%
sub-neg63.8%
metadata-eval63.8%
exp-diff48.3%
*-commutative48.3%
exp-to-pow48.3%
Simplified48.3%
Taylor expanded in y around 0 63.9%
*-commutative63.9%
*-commutative63.9%
times-frac62.1%
exp-to-pow62.1%
sub-neg62.1%
metadata-eval62.1%
Simplified62.1%
Taylor expanded in t around 0 81.3%
Taylor expanded in b around 0 40.1%
Taylor expanded in b around inf 40.1%
*-commutative40.1%
Simplified40.1%
Final simplification36.5%
(FPCore (x y z t a b) :precision binary64 (if (<= t -1.7e+92) (/ x (* y a)) (/ (/ x y) a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1.7e+92) {
tmp = x / (y * a);
} else {
tmp = (x / y) / a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= (-1.7d+92)) then
tmp = x / (y * a)
else
tmp = (x / y) / a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1.7e+92) {
tmp = x / (y * a);
} else {
tmp = (x / y) / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -1.7e+92: tmp = x / (y * a) else: tmp = (x / y) / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -1.7e+92) tmp = Float64(x / Float64(y * a)); else tmp = Float64(Float64(x / y) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -1.7e+92) tmp = x / (y * a); else tmp = (x / y) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1.7e+92], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.7 \cdot 10^{+92}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\end{array}
\end{array}
if t < -1.6999999999999999e92Initial program 100.0%
associate-*l/73.2%
*-commutative73.2%
+-commutative73.2%
associate--l+73.2%
exp-sum46.3%
*-commutative46.3%
exp-to-pow46.3%
sub-neg46.3%
metadata-eval46.3%
exp-diff36.6%
*-commutative36.6%
exp-to-pow36.6%
Simplified36.6%
Taylor expanded in b around 0 63.5%
associate-/l*63.5%
*-commutative63.5%
exp-to-pow63.5%
*-commutative63.5%
exp-sum90.4%
exp-sum63.5%
*-commutative63.5%
exp-to-pow63.5%
*-commutative63.5%
exp-to-pow63.5%
sub-neg63.5%
metadata-eval63.5%
Simplified63.5%
Taylor expanded in t around 0 47.4%
associate-/l*52.4%
Simplified52.4%
Taylor expanded in y around 0 29.1%
*-commutative29.1%
Simplified29.1%
if -1.6999999999999999e92 < t Initial program 96.9%
Taylor expanded in t around 0 83.3%
+-commutative83.3%
mul-1-neg83.3%
unsub-neg83.3%
Simplified83.3%
Taylor expanded in b around 0 60.1%
*-commutative60.1%
exp-diff60.1%
*-commutative60.1%
exp-to-pow60.1%
rem-exp-log60.8%
associate-*l/60.9%
*-commutative60.9%
associate-/r*53.9%
*-commutative53.9%
times-frac58.7%
Simplified58.7%
Taylor expanded in y around 0 32.9%
associate-*l/32.9%
*-un-lft-identity32.9%
Applied egg-rr32.9%
Final simplification32.3%
(FPCore (x y z t a b) :precision binary64 (/ x (* y a)))
double code(double x, double y, double z, double t, double a, double b) {
return x / (y * a);
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / (y * a)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (y * a);
}
def code(x, y, z, t, a, b): return x / (y * a)
function code(x, y, z, t, a, b) return Float64(x / Float64(y * a)) end
function tmp = code(x, y, z, t, a, b) tmp = x / (y * a); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y \cdot a}
\end{array}
Initial program 97.4%
associate-*l/86.0%
*-commutative86.0%
+-commutative86.0%
associate--l+86.0%
exp-sum72.4%
*-commutative72.4%
exp-to-pow73.1%
sub-neg73.1%
metadata-eval73.1%
exp-diff64.1%
*-commutative64.1%
exp-to-pow64.1%
Simplified64.1%
Taylor expanded in b around 0 69.6%
associate-/l*69.9%
*-commutative69.9%
exp-to-pow69.9%
*-commutative69.9%
exp-sum80.9%
exp-sum69.9%
*-commutative69.9%
exp-to-pow69.9%
*-commutative69.9%
exp-to-pow70.6%
sub-neg70.6%
metadata-eval70.6%
Simplified70.6%
Taylor expanded in t around 0 52.8%
associate-/l*59.8%
Simplified59.8%
Taylor expanded in y around 0 27.7%
*-commutative27.7%
Simplified27.7%
Final simplification27.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (- t 1.0)))
(t_2 (/ (* x (/ t_1 y)) (- (+ b 1.0) (* y (log z))))))
(if (< t -0.8845848504127471)
t_2
(if (< t 852031.2288374073)
(/ (* (/ x y) t_1) (exp (- b (* (log z) y))))
t_2))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a ** (t - 1.0d0)
t_2 = (x * (t_1 / y)) / ((b + 1.0d0) - (y * log(z)))
if (t < (-0.8845848504127471d0)) then
tmp = t_2
else if (t < 852031.2288374073d0) then
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = Math.pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * Math.log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / Math.exp((b - (Math.log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, (t - 1.0)) t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * math.log(z))) tmp = 0 if t < -0.8845848504127471: tmp = t_2 elif t < 852031.2288374073: tmp = ((x / y) * t_1) / math.exp((b - (math.log(z) * y))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = a ^ Float64(t - 1.0) t_2 = Float64(Float64(x * Float64(t_1 / y)) / Float64(Float64(b + 1.0) - Float64(y * log(z)))) tmp = 0.0 if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = Float64(Float64(Float64(x / y) * t_1) / exp(Float64(b - Float64(log(z) * y)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a ^ (t - 1.0); t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z))); tmp = 0.0; if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = ((x / y) * t_1) / exp((b - (log(z) * y))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision] / N[(N[(b + 1.0), $MachinePrecision] - N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -0.8845848504127471], t$95$2, If[Less[t, 852031.2288374073], N[(N[(N[(x / y), $MachinePrecision] * t$95$1), $MachinePrecision] / N[Exp[N[(b - N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {a}^{\left(t - 1\right)}\\
t_2 := \frac{x \cdot \frac{t_1}{y}}{\left(b + 1\right) - y \cdot \log z}\\
\mathbf{if}\;t < -0.8845848504127471:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < 852031.2288374073:\\
\;\;\;\;\frac{\frac{x}{y} \cdot t_1}{e^{b - \log z \cdot y}}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023293
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:herbie-target
(if (< t -0.8845848504127471) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z)))) (if (< t 852031.2288374073) (/ (* (/ x y) (pow a (- t 1.0))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))