
(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 98.7%
Final simplification98.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (+ t -1.0) -5e+140) (not (<= (+ t -1.0) 5e+19))) (/ (* 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) <= -5e+140) || !((t + -1.0) <= 5e+19)) {
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)) <= (-5d+140)) .or. (.not. ((t + (-1.0d0)) <= 5d+19))) 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) <= -5e+140) || !((t + -1.0) <= 5e+19)) {
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) <= -5e+140) or not ((t + -1.0) <= 5e+19): 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) <= -5e+140) || !(Float64(t + -1.0) <= 5e+19)) 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) <= -5e+140) || ~(((t + -1.0) <= 5e+19))) 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], -5e+140], N[Not[LessEqual[N[(t + -1.0), $MachinePrecision], 5e+19]], $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 -5 \cdot 10^{+140} \lor \neg \left(t + -1 \leq 5 \cdot 10^{+19}\right):\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\end{array}
\end{array}
if (-.f64 t #s(literal 1 binary64)) < -5.00000000000000008e140 or 5e19 < (-.f64 t #s(literal 1 binary64)) Initial program 100.0%
Taylor expanded in y around 0 91.9%
if -5.00000000000000008e140 < (-.f64 t #s(literal 1 binary64)) < 5e19Initial program 97.7%
Taylor expanded in t around 0 96.0%
+-commutative96.0%
mul-1-neg96.0%
unsub-neg96.0%
Simplified96.0%
Final simplification94.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (+ t -1.0) -2e+40) (not (<= (+ t -1.0) 5e+19))) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) 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 + -1.0) <= -2e+40) || !((t + -1.0) <= 5e+19)) {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / 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 + (-1.0d0)) <= (-2d+40)) .or. (.not. ((t + (-1.0d0)) <= 5d+19))) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / 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 + -1.0) <= -2e+40) || !((t + -1.0) <= 5e+19)) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / 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 + -1.0) <= -2e+40) or not ((t + -1.0) <= 5e+19): tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / 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 ((Float64(t + -1.0) <= -2e+40) || !(Float64(t + -1.0) <= 5e+19)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / 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 + -1.0) <= -2e+40) || ~(((t + -1.0) <= 5e+19))) tmp = (x * exp((((t + -1.0) * log(a)) - b))) / 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[N[(t + -1.0), $MachinePrecision], -2e+40], N[Not[LessEqual[N[(t + -1.0), $MachinePrecision], 5e+19]], $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[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^{+40} \lor \neg \left(t + -1 \leq 5 \cdot 10^{+19}\right):\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if (-.f64 t #s(literal 1 binary64)) < -2.00000000000000006e40 or 5e19 < (-.f64 t #s(literal 1 binary64)) Initial program 100.0%
Taylor expanded in y around 0 91.0%
if -2.00000000000000006e40 < (-.f64 t #s(literal 1 binary64)) < 5e19Initial program 97.5%
associate-/l*97.3%
associate--l+97.3%
exp-sum91.5%
associate-/l*90.0%
*-commutative90.0%
exp-to-pow90.0%
exp-diff89.4%
*-commutative89.4%
exp-to-pow90.4%
sub-neg90.4%
metadata-eval90.4%
Simplified90.4%
Taylor expanded in t around 0 90.8%
Final simplification90.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -2.5e+91) (not (<= y 7e+94))) (/ (* x (/ (pow z y) a)) y) (* x (/ (/ (pow a t) a) (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.5e+91) || !(y <= 7e+94)) {
tmp = (x * (pow(z, y) / a)) / y;
} else {
tmp = x * ((pow(a, t) / a) / (y * exp(b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-2.5d+91)) .or. (.not. (y <= 7d+94))) then
tmp = (x * ((z ** y) / a)) / y
else
tmp = x * (((a ** t) / a) / (y * exp(b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.5e+91) || !(y <= 7e+94)) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else {
tmp = x * ((Math.pow(a, t) / a) / (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -2.5e+91) or not (y <= 7e+94): tmp = (x * (math.pow(z, y) / a)) / y else: tmp = x * ((math.pow(a, t) / a) / (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -2.5e+91) || !(y <= 7e+94)) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = Float64(x * Float64(Float64((a ^ t) / a) / Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -2.5e+91) || ~((y <= 7e+94))) tmp = (x * ((z ^ y) / a)) / y; else tmp = x * (((a ^ t) / a) / (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -2.5e+91], N[Not[LessEqual[y, 7e+94]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.5 \cdot 10^{+91} \lor \neg \left(y \leq 7 \cdot 10^{+94}\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{\frac{{a}^{t}}{a}}{y \cdot e^{b}}\\
\end{array}
\end{array}
if y < -2.5000000000000001e91 or 6.9999999999999994e94 < y Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum67.9%
associate-/l*65.5%
*-commutative65.5%
exp-to-pow65.5%
exp-diff53.6%
*-commutative53.6%
exp-to-pow53.6%
sub-neg53.6%
metadata-eval53.6%
Simplified53.6%
Taylor expanded in b around 0 66.7%
Simplified66.7%
Taylor expanded in t around 0 84.8%
associate-/l*84.8%
Simplified84.8%
if -2.5000000000000001e91 < y < 6.9999999999999994e94Initial program 98.0%
associate-/l*97.9%
associate--l+97.9%
exp-sum85.7%
associate-/l*85.7%
*-commutative85.7%
exp-to-pow85.7%
exp-diff77.6%
*-commutative77.6%
exp-to-pow78.4%
sub-neg78.4%
metadata-eval78.4%
Simplified78.4%
Taylor expanded in y around 0 75.6%
exp-to-pow76.4%
sub-neg76.4%
metadata-eval76.4%
associate-*r/82.6%
Simplified82.6%
unpow-prod-up82.6%
unpow-182.6%
Applied egg-rr82.6%
associate-*r/82.6%
*-rgt-identity82.6%
Simplified82.6%
Final simplification83.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -2.6e+40)
(* x (/ (/ (pow a t) a) y))
(if (<= t 5.8e+24)
(/ (* x (pow z y)) (* a (* y (exp b))))
(/ (* x (pow a (+ t -1.0))) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -2.6e+40) {
tmp = x * ((pow(a, t) / a) / y);
} else if (t <= 5.8e+24) {
tmp = (x * pow(z, y)) / (a * (y * exp(b)));
} else {
tmp = (x * pow(a, (t + -1.0))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= (-2.6d+40)) then
tmp = x * (((a ** t) / a) / y)
else if (t <= 5.8d+24) then
tmp = (x * (z ** y)) / (a * (y * exp(b)))
else
tmp = (x * (a ** (t + (-1.0d0)))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -2.6e+40) {
tmp = x * ((Math.pow(a, t) / a) / y);
} else if (t <= 5.8e+24) {
tmp = (x * Math.pow(z, y)) / (a * (y * Math.exp(b)));
} else {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -2.6e+40: tmp = x * ((math.pow(a, t) / a) / y) elif t <= 5.8e+24: tmp = (x * math.pow(z, y)) / (a * (y * math.exp(b))) else: tmp = (x * math.pow(a, (t + -1.0))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -2.6e+40) tmp = Float64(x * Float64(Float64((a ^ t) / a) / y)); elseif (t <= 5.8e+24) tmp = Float64(Float64(x * (z ^ y)) / Float64(a * Float64(y * exp(b)))); else tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -2.6e+40) tmp = x * (((a ^ t) / a) / y); elseif (t <= 5.8e+24) tmp = (x * (z ^ y)) / (a * (y * exp(b))); else tmp = (x * (a ^ (t + -1.0))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -2.6e+40], N[(x * N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.8e+24], N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.6 \cdot 10^{+40}:\\
\;\;\;\;x \cdot \frac{\frac{{a}^{t}}{a}}{y}\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{+24}:\\
\;\;\;\;\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\end{array}
\end{array}
if t < -2.6000000000000001e40Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum54.3%
associate-/l*54.3%
*-commutative54.3%
exp-to-pow54.3%
exp-diff41.3%
*-commutative41.3%
exp-to-pow41.3%
sub-neg41.3%
metadata-eval41.3%
Simplified41.3%
Taylor expanded in y around 0 69.7%
exp-to-pow69.7%
sub-neg69.7%
metadata-eval69.7%
associate-*r/69.7%
Simplified69.7%
unpow-prod-up69.7%
unpow-169.7%
Applied egg-rr69.7%
associate-*r/69.7%
*-rgt-identity69.7%
Simplified69.7%
Taylor expanded in b around 0 82.9%
if -2.6000000000000001e40 < t < 5.79999999999999958e24Initial program 97.6%
associate-/l*97.4%
associate--l+97.4%
exp-sum91.5%
associate-/l*90.1%
*-commutative90.1%
exp-to-pow90.1%
exp-diff88.7%
*-commutative88.7%
exp-to-pow89.7%
sub-neg89.7%
metadata-eval89.7%
Simplified89.7%
Taylor expanded in t around 0 90.8%
if 5.79999999999999958e24 < t Initial program 100.0%
Taylor expanded in y around 0 91.9%
Taylor expanded in b around 0 78.4%
exp-to-pow78.4%
sub-neg78.4%
metadata-eval78.4%
+-commutative78.4%
Simplified78.4%
Final simplification85.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* a (* y (exp b))))))
(if (<= b -4500000.0)
t_1
(if (<= b -2e-176)
(/ (* x (/ (pow z y) a)) y)
(if (<= b 1.5e-41)
(/ (* x (pow a (+ t -1.0))) y)
(if (<= b 6.8e-5)
(/ (* x (pow z y)) (* a (+ y (* y b))))
(if (<= b 9000000000000.0) (* x (/ (/ (pow a t) a) y)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y * exp(b)));
double tmp;
if (b <= -4500000.0) {
tmp = t_1;
} else if (b <= -2e-176) {
tmp = (x * (pow(z, y) / a)) / y;
} else if (b <= 1.5e-41) {
tmp = (x * pow(a, (t + -1.0))) / y;
} else if (b <= 6.8e-5) {
tmp = (x * pow(z, y)) / (a * (y + (y * b)));
} else if (b <= 9000000000000.0) {
tmp = x * ((pow(a, t) / a) / y);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (a * (y * exp(b)))
if (b <= (-4500000.0d0)) then
tmp = t_1
else if (b <= (-2d-176)) then
tmp = (x * ((z ** y) / a)) / y
else if (b <= 1.5d-41) then
tmp = (x * (a ** (t + (-1.0d0)))) / y
else if (b <= 6.8d-5) then
tmp = (x * (z ** y)) / (a * (y + (y * b)))
else if (b <= 9000000000000.0d0) then
tmp = x * (((a ** t) / a) / y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y * Math.exp(b)));
double tmp;
if (b <= -4500000.0) {
tmp = t_1;
} else if (b <= -2e-176) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else if (b <= 1.5e-41) {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
} else if (b <= 6.8e-5) {
tmp = (x * Math.pow(z, y)) / (a * (y + (y * b)));
} else if (b <= 9000000000000.0) {
tmp = x * ((Math.pow(a, t) / a) / y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a * (y * math.exp(b))) tmp = 0 if b <= -4500000.0: tmp = t_1 elif b <= -2e-176: tmp = (x * (math.pow(z, y) / a)) / y elif b <= 1.5e-41: tmp = (x * math.pow(a, (t + -1.0))) / y elif b <= 6.8e-5: tmp = (x * math.pow(z, y)) / (a * (y + (y * b))) elif b <= 9000000000000.0: tmp = x * ((math.pow(a, t) / a) / y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (b <= -4500000.0) tmp = t_1; elseif (b <= -2e-176) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); elseif (b <= 1.5e-41) tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); elseif (b <= 6.8e-5) tmp = Float64(Float64(x * (z ^ y)) / Float64(a * Float64(y + Float64(y * b)))); elseif (b <= 9000000000000.0) tmp = Float64(x * Float64(Float64((a ^ t) / a) / y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a * (y * exp(b))); tmp = 0.0; if (b <= -4500000.0) tmp = t_1; elseif (b <= -2e-176) tmp = (x * ((z ^ y) / a)) / y; elseif (b <= 1.5e-41) tmp = (x * (a ^ (t + -1.0))) / y; elseif (b <= 6.8e-5) tmp = (x * (z ^ y)) / (a * (y + (y * b))); elseif (b <= 9000000000000.0) tmp = x * (((a ^ t) / a) / y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4500000.0], t$95$1, If[LessEqual[b, -2e-176], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 1.5e-41], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 6.8e-5], N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9000000000000.0], N[(x * N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -4500000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2 \cdot 10^{-176}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{-41}:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{-5}:\\
\;\;\;\;\frac{x \cdot {z}^{y}}{a \cdot \left(y + y \cdot b\right)}\\
\mathbf{elif}\;b \leq 9000000000000:\\
\;\;\;\;x \cdot \frac{\frac{{a}^{t}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -4.5e6 or 9e12 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum78.9%
associate-/l*78.9%
*-commutative78.9%
exp-to-pow78.9%
exp-diff60.9%
*-commutative60.9%
exp-to-pow60.9%
sub-neg60.9%
metadata-eval60.9%
Simplified60.9%
Taylor expanded in y around 0 63.3%
exp-to-pow63.3%
sub-neg63.3%
metadata-eval63.3%
associate-*r/71.9%
Simplified71.9%
Taylor expanded in t around 0 87.7%
if -4.5e6 < b < -2e-176Initial program 99.1%
associate-/l*99.1%
associate--l+99.1%
exp-sum83.5%
associate-/l*80.4%
*-commutative80.4%
exp-to-pow80.4%
exp-diff77.3%
*-commutative77.3%
exp-to-pow78.0%
sub-neg78.0%
metadata-eval78.0%
Simplified78.0%
Taylor expanded in b around 0 83.5%
Simplified84.3%
Taylor expanded in t around 0 78.5%
associate-/l*78.5%
Simplified78.5%
if -2e-176 < b < 1.49999999999999994e-41Initial program 97.8%
Taylor expanded in y around 0 83.3%
Taylor expanded in b around 0 83.3%
exp-to-pow84.6%
sub-neg84.6%
metadata-eval84.6%
+-commutative84.6%
Simplified84.6%
if 1.49999999999999994e-41 < b < 6.7999999999999999e-5Initial program 88.4%
associate-/l*95.9%
associate--l+95.9%
exp-sum86.8%
associate-/l*86.8%
*-commutative86.8%
exp-to-pow86.7%
exp-diff88.1%
*-commutative88.1%
exp-to-pow90.5%
sub-neg90.5%
metadata-eval90.5%
Simplified90.5%
Taylor expanded in t around 0 82.5%
Taylor expanded in b around 0 81.5%
distribute-lft-out81.5%
Simplified81.5%
if 6.7999999999999999e-5 < b < 9e12Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum25.0%
associate-/l*25.0%
*-commutative25.0%
exp-to-pow25.0%
exp-diff25.0%
*-commutative25.0%
exp-to-pow25.0%
sub-neg25.0%
metadata-eval25.0%
Simplified25.0%
Taylor expanded in y around 0 50.0%
exp-to-pow50.0%
sub-neg50.0%
metadata-eval50.0%
associate-*r/50.0%
Simplified50.0%
unpow-prod-up50.0%
unpow-150.0%
Applied egg-rr50.0%
associate-*r/50.0%
*-rgt-identity50.0%
Simplified50.0%
Taylor expanded in b around 0 100.0%
Final simplification85.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* a (* y (exp b))))))
(if (<= b -7500000000.0)
t_1
(if (<= b -1e-173)
(/ (* x (/ (pow z y) a)) y)
(if (<= b 98000000000000.0) (/ (* x (pow a (+ t -1.0))) y) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y * exp(b)));
double tmp;
if (b <= -7500000000.0) {
tmp = t_1;
} else if (b <= -1e-173) {
tmp = (x * (pow(z, y) / a)) / y;
} else if (b <= 98000000000000.0) {
tmp = (x * pow(a, (t + -1.0))) / y;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (a * (y * exp(b)))
if (b <= (-7500000000.0d0)) then
tmp = t_1
else if (b <= (-1d-173)) then
tmp = (x * ((z ** y) / a)) / y
else if (b <= 98000000000000.0d0) then
tmp = (x * (a ** (t + (-1.0d0)))) / y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y * Math.exp(b)));
double tmp;
if (b <= -7500000000.0) {
tmp = t_1;
} else if (b <= -1e-173) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else if (b <= 98000000000000.0) {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a * (y * math.exp(b))) tmp = 0 if b <= -7500000000.0: tmp = t_1 elif b <= -1e-173: tmp = (x * (math.pow(z, y) / a)) / y elif b <= 98000000000000.0: tmp = (x * math.pow(a, (t + -1.0))) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (b <= -7500000000.0) tmp = t_1; elseif (b <= -1e-173) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); elseif (b <= 98000000000000.0) tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a * (y * exp(b))); tmp = 0.0; if (b <= -7500000000.0) tmp = t_1; elseif (b <= -1e-173) tmp = (x * ((z ^ y) / a)) / y; elseif (b <= 98000000000000.0) tmp = (x * (a ^ (t + -1.0))) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7500000000.0], t$95$1, If[LessEqual[b, -1e-173], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 98000000000000.0], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -7500000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1 \cdot 10^{-173}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{elif}\;b \leq 98000000000000:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -7.5e9 or 9.8e13 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum78.9%
associate-/l*78.9%
*-commutative78.9%
exp-to-pow78.9%
exp-diff60.9%
*-commutative60.9%
exp-to-pow60.9%
sub-neg60.9%
metadata-eval60.9%
Simplified60.9%
Taylor expanded in y around 0 63.3%
exp-to-pow63.3%
sub-neg63.3%
metadata-eval63.3%
associate-*r/71.9%
Simplified71.9%
Taylor expanded in t around 0 87.7%
if -7.5e9 < b < -1e-173Initial program 99.1%
associate-/l*99.1%
associate--l+99.1%
exp-sum83.5%
associate-/l*80.4%
*-commutative80.4%
exp-to-pow80.4%
exp-diff77.3%
*-commutative77.3%
exp-to-pow78.0%
sub-neg78.0%
metadata-eval78.0%
Simplified78.0%
Taylor expanded in b around 0 83.5%
Simplified84.3%
Taylor expanded in t around 0 78.5%
associate-/l*78.5%
Simplified78.5%
if -1e-173 < b < 9.8e13Initial program 96.8%
Taylor expanded in y around 0 79.7%
Taylor expanded in b around 0 79.3%
exp-to-pow80.5%
sub-neg80.5%
metadata-eval80.5%
+-commutative80.5%
Simplified80.5%
Final simplification83.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.28e-30) (not (<= b 2.7e+14))) (/ x (* a (* y (exp b)))) (* x (/ (/ (pow a t) a) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.28e-30) || !(b <= 2.7e+14)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = x * ((pow(a, t) / a) / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-1.28d-30)) .or. (.not. (b <= 2.7d+14))) then
tmp = x / (a * (y * exp(b)))
else
tmp = x * (((a ** t) / a) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.28e-30) || !(b <= 2.7e+14)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = x * ((Math.pow(a, t) / a) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.28e-30) or not (b <= 2.7e+14): tmp = x / (a * (y * math.exp(b))) else: tmp = x * ((math.pow(a, t) / a) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.28e-30) || !(b <= 2.7e+14)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(x * Float64(Float64((a ^ t) / a) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -1.28e-30) || ~((b <= 2.7e+14))) tmp = x / (a * (y * exp(b))); else tmp = x * (((a ^ t) / a) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.28e-30], N[Not[LessEqual[b, 2.7e+14]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.28 \cdot 10^{-30} \lor \neg \left(b \leq 2.7 \cdot 10^{+14}\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{\frac{{a}^{t}}{a}}{y}\\
\end{array}
\end{array}
if b < -1.28000000000000007e-30 or 2.7e14 < b Initial program 99.9%
associate-/l*99.9%
associate--l+99.9%
exp-sum78.9%
associate-/l*78.9%
*-commutative78.9%
exp-to-pow78.9%
exp-diff60.8%
*-commutative60.8%
exp-to-pow60.9%
sub-neg60.9%
metadata-eval60.9%
Simplified60.9%
Taylor expanded in y around 0 62.4%
exp-to-pow62.5%
sub-neg62.5%
metadata-eval62.5%
associate-*r/70.8%
Simplified70.8%
Taylor expanded in t around 0 86.7%
if -1.28000000000000007e-30 < b < 2.7e14Initial program 97.3%
associate-/l*97.1%
associate--l+97.1%
exp-sum80.9%
associate-/l*79.2%
*-commutative79.2%
exp-to-pow79.2%
exp-diff79.3%
*-commutative79.3%
exp-to-pow80.4%
sub-neg80.4%
metadata-eval80.4%
Simplified80.4%
Taylor expanded in y around 0 74.3%
exp-to-pow75.4%
sub-neg75.4%
metadata-eval75.4%
associate-*r/75.2%
Simplified75.2%
unpow-prod-up75.2%
unpow-175.2%
Applied egg-rr75.2%
associate-*r/75.2%
*-rgt-identity75.2%
Simplified75.2%
Taylor expanded in b around 0 76.5%
Final simplification81.8%
(FPCore (x y z t a b) :precision binary64 (/ x (* a (* y (exp b)))))
double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y * exp(b)));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / (a * (y * exp(b)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y * Math.exp(b)));
}
def code(x, y, z, t, a, b): return x / (a * (y * math.exp(b)))
function code(x, y, z, t, a, b) return Float64(x / Float64(a * Float64(y * exp(b)))) end
function tmp = code(x, y, z, t, a, b) tmp = x / (a * (y * exp(b))); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{a \cdot \left(y \cdot e^{b}\right)}
\end{array}
Initial program 98.7%
associate-/l*98.6%
associate--l+98.6%
exp-sum79.8%
associate-/l*79.1%
*-commutative79.1%
exp-to-pow79.1%
exp-diff69.7%
*-commutative69.7%
exp-to-pow70.3%
sub-neg70.3%
metadata-eval70.3%
Simplified70.3%
Taylor expanded in y around 0 68.1%
exp-to-pow68.7%
sub-neg68.7%
metadata-eval68.7%
associate-*r/72.9%
Simplified72.9%
Taylor expanded in t around 0 64.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -2e-36)
(+ t_1 (* b (- (* b (- t_1 (/ (* x b) (* y a)))) t_1)))
(if (<= b 2.8e-216)
(/ x (* b (* a (+ y (/ y b)))))
(if (<= b 2.75e-101)
(/ (+ t_1 (/ (- (/ x (* y (* a b))) t_1) b)) b)
(/
x
(*
a
(+
y
(*
b
(+ y (* b (+ (* (* y b) 0.16666666666666666) (* y 0.5)))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -2e-36) {
tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1));
} else if (b <= 2.8e-216) {
tmp = x / (b * (a * (y + (y / b))));
} else if (b <= 2.75e-101) {
tmp = (t_1 + (((x / (y * (a * b))) - t_1) / b)) / b;
} else {
tmp = x / (a * (y + (b * (y + (b * (((y * b) * 0.16666666666666666) + (y * 0.5)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (y * a)
if (b <= (-2d-36)) then
tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1))
else if (b <= 2.8d-216) then
tmp = x / (b * (a * (y + (y / b))))
else if (b <= 2.75d-101) then
tmp = (t_1 + (((x / (y * (a * b))) - t_1) / b)) / b
else
tmp = x / (a * (y + (b * (y + (b * (((y * b) * 0.16666666666666666d0) + (y * 0.5d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -2e-36) {
tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1));
} else if (b <= 2.8e-216) {
tmp = x / (b * (a * (y + (y / b))));
} else if (b <= 2.75e-101) {
tmp = (t_1 + (((x / (y * (a * b))) - t_1) / b)) / b;
} else {
tmp = x / (a * (y + (b * (y + (b * (((y * b) * 0.16666666666666666) + (y * 0.5)))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -2e-36: tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1)) elif b <= 2.8e-216: tmp = x / (b * (a * (y + (y / b)))) elif b <= 2.75e-101: tmp = (t_1 + (((x / (y * (a * b))) - t_1) / b)) / b else: tmp = x / (a * (y + (b * (y + (b * (((y * b) * 0.16666666666666666) + (y * 0.5))))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -2e-36) tmp = Float64(t_1 + Float64(b * Float64(Float64(b * Float64(t_1 - Float64(Float64(x * b) / Float64(y * a)))) - t_1))); elseif (b <= 2.8e-216) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); elseif (b <= 2.75e-101) tmp = Float64(Float64(t_1 + Float64(Float64(Float64(x / Float64(y * Float64(a * b))) - t_1) / b)) / b); else tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(y + Float64(b * Float64(Float64(Float64(y * b) * 0.16666666666666666) + Float64(y * 0.5)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -2e-36) tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1)); elseif (b <= 2.8e-216) tmp = x / (b * (a * (y + (y / b)))); elseif (b <= 2.75e-101) tmp = (t_1 + (((x / (y * (a * b))) - t_1) / b)) / b; else tmp = x / (a * (y + (b * (y + (b * (((y * b) * 0.16666666666666666) + (y * 0.5))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2e-36], N[(t$95$1 + N[(b * N[(N[(b * N[(t$95$1 - N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.8e-216], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.75e-101], N[(N[(t$95$1 + N[(N[(N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], N[(x / N[(a * N[(y + N[(b * N[(y + N[(b * N[(N[(N[(y * b), $MachinePrecision] * 0.16666666666666666), $MachinePrecision] + N[(y * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot a}\\
\mathbf{if}\;b \leq -2 \cdot 10^{-36}:\\
\;\;\;\;t\_1 + b \cdot \left(b \cdot \left(t\_1 - \frac{x \cdot b}{y \cdot a}\right) - t\_1\right)\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{-216}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{elif}\;b \leq 2.75 \cdot 10^{-101}:\\
\;\;\;\;\frac{t\_1 + \frac{\frac{x}{y \cdot \left(a \cdot b\right)} - t\_1}{b}}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(y + b \cdot \left(\left(y \cdot b\right) \cdot 0.16666666666666666 + y \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -1.9999999999999999e-36Initial program 99.9%
associate-/l*99.9%
associate--l+99.9%
exp-sum82.0%
associate-/l*82.0%
*-commutative82.0%
exp-to-pow82.0%
exp-diff71.3%
*-commutative71.3%
exp-to-pow71.4%
sub-neg71.4%
metadata-eval71.4%
Simplified71.4%
Taylor expanded in y around 0 71.5%
exp-to-pow71.6%
sub-neg71.6%
metadata-eval71.6%
associate-*r/78.7%
Simplified78.7%
Taylor expanded in t around 0 87.8%
Taylor expanded in b around 0 6.5%
distribute-rgt1-in6.5%
Simplified6.5%
Taylor expanded in b around 0 60.2%
if -1.9999999999999999e-36 < b < 2.8e-216Initial program 98.0%
associate-/l*97.6%
associate--l+97.6%
exp-sum81.6%
associate-/l*78.7%
*-commutative78.7%
exp-to-pow78.7%
exp-diff78.7%
*-commutative78.7%
exp-to-pow79.7%
sub-neg79.7%
metadata-eval79.7%
Simplified79.7%
Taylor expanded in y around 0 74.2%
exp-to-pow75.2%
sub-neg75.2%
metadata-eval75.2%
associate-*r/77.5%
Simplified77.5%
Taylor expanded in t around 0 43.1%
Taylor expanded in b around 0 43.1%
distribute-rgt1-in43.1%
Simplified43.1%
Taylor expanded in b around inf 35.4%
associate-/l*39.7%
distribute-lft-out51.4%
Simplified51.4%
if 2.8e-216 < b < 2.74999999999999986e-101Initial program 98.3%
associate-/l*95.3%
associate--l+95.3%
exp-sum80.5%
associate-/l*80.5%
*-commutative80.5%
exp-to-pow80.5%
exp-diff80.5%
*-commutative80.5%
exp-to-pow81.4%
sub-neg81.4%
metadata-eval81.4%
Simplified81.4%
Taylor expanded in y around 0 80.2%
exp-to-pow81.5%
sub-neg81.5%
metadata-eval81.5%
associate-*r/71.3%
Simplified71.3%
Taylor expanded in t around 0 29.9%
Taylor expanded in b around 0 29.9%
distribute-rgt1-in29.9%
Simplified29.9%
Taylor expanded in b around -inf 52.9%
mul-1-neg52.9%
mul-1-neg52.9%
+-commutative52.9%
sub-neg52.9%
distribute-neg-frac252.9%
Simplified52.9%
if 2.74999999999999986e-101 < b Initial program 98.6%
associate-/l*99.4%
associate--l+99.4%
exp-sum77.3%
associate-/l*77.3%
*-commutative77.3%
exp-to-pow77.3%
exp-diff60.1%
*-commutative60.1%
exp-to-pow60.5%
sub-neg60.5%
metadata-eval60.5%
Simplified60.5%
Taylor expanded in y around 0 59.2%
exp-to-pow59.5%
sub-neg59.5%
metadata-eval59.5%
associate-*r/67.1%
Simplified67.1%
Taylor expanded in t around 0 76.1%
Taylor expanded in b around 0 64.1%
Final simplification58.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -2e-37)
(- t_1 (* b (- t_1 (/ (* x b) (* y a)))))
(if (<= b 2.5e-216)
(/ x (* b (* a (+ y (/ y b)))))
(if (<= b 9.2e-102)
(/ (+ t_1 (/ (- (/ x (* y (* a b))) t_1) b)) b)
(/
x
(*
a
(+
y
(*
b
(+ y (* b (+ (* (* y b) 0.16666666666666666) (* y 0.5)))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -2e-37) {
tmp = t_1 - (b * (t_1 - ((x * b) / (y * a))));
} else if (b <= 2.5e-216) {
tmp = x / (b * (a * (y + (y / b))));
} else if (b <= 9.2e-102) {
tmp = (t_1 + (((x / (y * (a * b))) - t_1) / b)) / b;
} else {
tmp = x / (a * (y + (b * (y + (b * (((y * b) * 0.16666666666666666) + (y * 0.5)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (y * a)
if (b <= (-2d-37)) then
tmp = t_1 - (b * (t_1 - ((x * b) / (y * a))))
else if (b <= 2.5d-216) then
tmp = x / (b * (a * (y + (y / b))))
else if (b <= 9.2d-102) then
tmp = (t_1 + (((x / (y * (a * b))) - t_1) / b)) / b
else
tmp = x / (a * (y + (b * (y + (b * (((y * b) * 0.16666666666666666d0) + (y * 0.5d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -2e-37) {
tmp = t_1 - (b * (t_1 - ((x * b) / (y * a))));
} else if (b <= 2.5e-216) {
tmp = x / (b * (a * (y + (y / b))));
} else if (b <= 9.2e-102) {
tmp = (t_1 + (((x / (y * (a * b))) - t_1) / b)) / b;
} else {
tmp = x / (a * (y + (b * (y + (b * (((y * b) * 0.16666666666666666) + (y * 0.5)))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -2e-37: tmp = t_1 - (b * (t_1 - ((x * b) / (y * a)))) elif b <= 2.5e-216: tmp = x / (b * (a * (y + (y / b)))) elif b <= 9.2e-102: tmp = (t_1 + (((x / (y * (a * b))) - t_1) / b)) / b else: tmp = x / (a * (y + (b * (y + (b * (((y * b) * 0.16666666666666666) + (y * 0.5))))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -2e-37) tmp = Float64(t_1 - Float64(b * Float64(t_1 - Float64(Float64(x * b) / Float64(y * a))))); elseif (b <= 2.5e-216) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); elseif (b <= 9.2e-102) tmp = Float64(Float64(t_1 + Float64(Float64(Float64(x / Float64(y * Float64(a * b))) - t_1) / b)) / b); else tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(y + Float64(b * Float64(Float64(Float64(y * b) * 0.16666666666666666) + Float64(y * 0.5)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -2e-37) tmp = t_1 - (b * (t_1 - ((x * b) / (y * a)))); elseif (b <= 2.5e-216) tmp = x / (b * (a * (y + (y / b)))); elseif (b <= 9.2e-102) tmp = (t_1 + (((x / (y * (a * b))) - t_1) / b)) / b; else tmp = x / (a * (y + (b * (y + (b * (((y * b) * 0.16666666666666666) + (y * 0.5))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2e-37], N[(t$95$1 - N[(b * N[(t$95$1 - N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.5e-216], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.2e-102], N[(N[(t$95$1 + N[(N[(N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], N[(x / N[(a * N[(y + N[(b * N[(y + N[(b * N[(N[(N[(y * b), $MachinePrecision] * 0.16666666666666666), $MachinePrecision] + N[(y * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot a}\\
\mathbf{if}\;b \leq -2 \cdot 10^{-37}:\\
\;\;\;\;t\_1 - b \cdot \left(t\_1 - \frac{x \cdot b}{y \cdot a}\right)\\
\mathbf{elif}\;b \leq 2.5 \cdot 10^{-216}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{-102}:\\
\;\;\;\;\frac{t\_1 + \frac{\frac{x}{y \cdot \left(a \cdot b\right)} - t\_1}{b}}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(y + b \cdot \left(\left(y \cdot b\right) \cdot 0.16666666666666666 + y \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -2.00000000000000013e-37Initial program 99.9%
associate-/l*99.9%
associate--l+99.9%
exp-sum82.0%
associate-/l*82.0%
*-commutative82.0%
exp-to-pow82.0%
exp-diff71.3%
*-commutative71.3%
exp-to-pow71.4%
sub-neg71.4%
metadata-eval71.4%
Simplified71.4%
Taylor expanded in y around 0 71.5%
exp-to-pow71.6%
sub-neg71.6%
metadata-eval71.6%
associate-*r/78.7%
Simplified78.7%
Taylor expanded in t around 0 87.8%
Taylor expanded in b around 0 6.5%
distribute-rgt1-in6.5%
Simplified6.5%
Taylor expanded in b around 0 50.3%
if -2.00000000000000013e-37 < b < 2.5000000000000001e-216Initial program 98.0%
associate-/l*97.6%
associate--l+97.6%
exp-sum81.6%
associate-/l*78.7%
*-commutative78.7%
exp-to-pow78.7%
exp-diff78.7%
*-commutative78.7%
exp-to-pow79.7%
sub-neg79.7%
metadata-eval79.7%
Simplified79.7%
Taylor expanded in y around 0 74.2%
exp-to-pow75.2%
sub-neg75.2%
metadata-eval75.2%
associate-*r/77.5%
Simplified77.5%
Taylor expanded in t around 0 43.1%
Taylor expanded in b around 0 43.1%
distribute-rgt1-in43.1%
Simplified43.1%
Taylor expanded in b around inf 35.4%
associate-/l*39.7%
distribute-lft-out51.4%
Simplified51.4%
if 2.5000000000000001e-216 < b < 9.19999999999999946e-102Initial program 98.3%
associate-/l*95.3%
associate--l+95.3%
exp-sum80.5%
associate-/l*80.5%
*-commutative80.5%
exp-to-pow80.5%
exp-diff80.5%
*-commutative80.5%
exp-to-pow81.4%
sub-neg81.4%
metadata-eval81.4%
Simplified81.4%
Taylor expanded in y around 0 80.2%
exp-to-pow81.5%
sub-neg81.5%
metadata-eval81.5%
associate-*r/71.3%
Simplified71.3%
Taylor expanded in t around 0 29.9%
Taylor expanded in b around 0 29.9%
distribute-rgt1-in29.9%
Simplified29.9%
Taylor expanded in b around -inf 52.9%
mul-1-neg52.9%
mul-1-neg52.9%
+-commutative52.9%
sub-neg52.9%
distribute-neg-frac252.9%
Simplified52.9%
if 9.19999999999999946e-102 < b Initial program 98.6%
associate-/l*99.4%
associate--l+99.4%
exp-sum77.3%
associate-/l*77.3%
*-commutative77.3%
exp-to-pow77.3%
exp-diff60.1%
*-commutative60.1%
exp-to-pow60.5%
sub-neg60.5%
metadata-eval60.5%
Simplified60.5%
Taylor expanded in y around 0 59.2%
exp-to-pow59.5%
sub-neg59.5%
metadata-eval59.5%
associate-*r/67.1%
Simplified67.1%
Taylor expanded in t around 0 76.1%
Taylor expanded in b around 0 64.1%
Final simplification56.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -1e-37)
(- t_1 (* b (- t_1 (/ (* x b) (* y a)))))
(if (<= b 1.5e-34)
(/ x (* b (* a (+ y (/ y b)))))
(/
x
(*
a
(+
y
(*
b
(+ y (* b (+ (* (* y b) 0.16666666666666666) (* y 0.5))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -1e-37) {
tmp = t_1 - (b * (t_1 - ((x * b) / (y * a))));
} else if (b <= 1.5e-34) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y + (b * (y + (b * (((y * b) * 0.16666666666666666) + (y * 0.5)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (y * a)
if (b <= (-1d-37)) then
tmp = t_1 - (b * (t_1 - ((x * b) / (y * a))))
else if (b <= 1.5d-34) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y + (b * (y + (b * (((y * b) * 0.16666666666666666d0) + (y * 0.5d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -1e-37) {
tmp = t_1 - (b * (t_1 - ((x * b) / (y * a))));
} else if (b <= 1.5e-34) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y + (b * (y + (b * (((y * b) * 0.16666666666666666) + (y * 0.5)))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -1e-37: tmp = t_1 - (b * (t_1 - ((x * b) / (y * a)))) elif b <= 1.5e-34: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y + (b * (y + (b * (((y * b) * 0.16666666666666666) + (y * 0.5))))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -1e-37) tmp = Float64(t_1 - Float64(b * Float64(t_1 - Float64(Float64(x * b) / Float64(y * a))))); elseif (b <= 1.5e-34) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(y + Float64(b * Float64(Float64(Float64(y * b) * 0.16666666666666666) + Float64(y * 0.5)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -1e-37) tmp = t_1 - (b * (t_1 - ((x * b) / (y * a)))); elseif (b <= 1.5e-34) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y + (b * (y + (b * (((y * b) * 0.16666666666666666) + (y * 0.5))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1e-37], N[(t$95$1 - N[(b * N[(t$95$1 - N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e-34], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y + N[(b * N[(y + N[(b * N[(N[(N[(y * b), $MachinePrecision] * 0.16666666666666666), $MachinePrecision] + N[(y * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot a}\\
\mathbf{if}\;b \leq -1 \cdot 10^{-37}:\\
\;\;\;\;t\_1 - b \cdot \left(t\_1 - \frac{x \cdot b}{y \cdot a}\right)\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{-34}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(y + b \cdot \left(\left(y \cdot b\right) \cdot 0.16666666666666666 + y \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -1.00000000000000007e-37Initial program 99.9%
associate-/l*99.9%
associate--l+99.9%
exp-sum82.0%
associate-/l*82.0%
*-commutative82.0%
exp-to-pow82.0%
exp-diff71.3%
*-commutative71.3%
exp-to-pow71.4%
sub-neg71.4%
metadata-eval71.4%
Simplified71.4%
Taylor expanded in y around 0 71.5%
exp-to-pow71.6%
sub-neg71.6%
metadata-eval71.6%
associate-*r/78.7%
Simplified78.7%
Taylor expanded in t around 0 87.8%
Taylor expanded in b around 0 6.5%
distribute-rgt1-in6.5%
Simplified6.5%
Taylor expanded in b around 0 50.3%
if -1.00000000000000007e-37 < b < 1.5e-34Initial program 98.2%
associate-/l*97.2%
associate--l+97.2%
exp-sum81.6%
associate-/l*79.7%
*-commutative79.7%
exp-to-pow79.7%
exp-diff79.7%
*-commutative79.7%
exp-to-pow80.7%
sub-neg80.7%
metadata-eval80.7%
Simplified80.7%
Taylor expanded in y around 0 76.5%
exp-to-pow77.5%
sub-neg77.5%
metadata-eval77.5%
associate-*r/76.5%
Simplified76.5%
Taylor expanded in t around 0 42.7%
Taylor expanded in b around 0 42.7%
distribute-rgt1-in42.7%
Simplified42.7%
Taylor expanded in b around inf 39.0%
associate-/l*41.6%
distribute-lft-out49.0%
Simplified49.0%
if 1.5e-34 < b Initial program 98.6%
associate-/l*99.5%
associate--l+99.5%
exp-sum76.4%
associate-/l*76.4%
*-commutative76.4%
exp-to-pow76.4%
exp-diff56.8%
*-commutative56.8%
exp-to-pow57.1%
sub-neg57.1%
metadata-eval57.1%
Simplified57.1%
Taylor expanded in y around 0 56.1%
exp-to-pow56.3%
sub-neg56.3%
metadata-eval56.3%
associate-*r/65.0%
Simplified65.0%
Taylor expanded in t around 0 77.5%
Taylor expanded in b around 0 63.7%
Final simplification54.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -2e-36)
(- t_1 (* b (- t_1 (/ (* x b) (* y a)))))
(if (<= b 5e-38)
(/ x (* b (* a (+ 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 t_1 = x / (y * a);
double tmp;
if (b <= -2e-36) {
tmp = t_1 - (b * (t_1 - ((x * b) / (y * a))));
} else if (b <= 5e-38) {
tmp = x / (b * (a * (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) :: t_1
real(8) :: tmp
t_1 = x / (y * a)
if (b <= (-2d-36)) then
tmp = t_1 - (b * (t_1 - ((x * b) / (y * a))))
else if (b <= 5d-38) then
tmp = x / (b * (a * (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 t_1 = x / (y * a);
double tmp;
if (b <= -2e-36) {
tmp = t_1 - (b * (t_1 - ((x * b) / (y * a))));
} else if (b <= 5e-38) {
tmp = x / (b * (a * (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): t_1 = x / (y * a) tmp = 0 if b <= -2e-36: tmp = t_1 - (b * (t_1 - ((x * b) / (y * a)))) elif b <= 5e-38: tmp = x / (b * (a * (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) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -2e-36) tmp = Float64(t_1 - Float64(b * Float64(t_1 - Float64(Float64(x * b) / Float64(y * a))))); elseif (b <= 5e-38) tmp = Float64(x / Float64(b * Float64(a * 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) t_1 = x / (y * a); tmp = 0.0; if (b <= -2e-36) tmp = t_1 - (b * (t_1 - ((x * b) / (y * a)))); elseif (b <= 5e-38) tmp = x / (b * (a * (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_] := Block[{t$95$1 = N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2e-36], N[(t$95$1 - N[(b * N[(t$95$1 - N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5e-38], N[(x / N[(b * N[(a * 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}
t_1 := \frac{x}{y \cdot a}\\
\mathbf{if}\;b \leq -2 \cdot 10^{-36}:\\
\;\;\;\;t\_1 - b \cdot \left(t\_1 - \frac{x \cdot b}{y \cdot a}\right)\\
\mathbf{elif}\;b \leq 5 \cdot 10^{-38}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \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 < -1.9999999999999999e-36Initial program 99.9%
associate-/l*99.9%
associate--l+99.9%
exp-sum82.0%
associate-/l*82.0%
*-commutative82.0%
exp-to-pow82.0%
exp-diff71.3%
*-commutative71.3%
exp-to-pow71.4%
sub-neg71.4%
metadata-eval71.4%
Simplified71.4%
Taylor expanded in y around 0 71.5%
exp-to-pow71.6%
sub-neg71.6%
metadata-eval71.6%
associate-*r/78.7%
Simplified78.7%
Taylor expanded in t around 0 87.8%
Taylor expanded in b around 0 6.5%
distribute-rgt1-in6.5%
Simplified6.5%
Taylor expanded in b around 0 50.3%
if -1.9999999999999999e-36 < b < 5.00000000000000033e-38Initial program 98.2%
associate-/l*97.2%
associate--l+97.2%
exp-sum81.6%
associate-/l*79.7%
*-commutative79.7%
exp-to-pow79.7%
exp-diff79.7%
*-commutative79.7%
exp-to-pow80.7%
sub-neg80.7%
metadata-eval80.7%
Simplified80.7%
Taylor expanded in y around 0 76.5%
exp-to-pow77.5%
sub-neg77.5%
metadata-eval77.5%
associate-*r/76.5%
Simplified76.5%
Taylor expanded in t around 0 42.7%
Taylor expanded in b around 0 42.7%
distribute-rgt1-in42.7%
Simplified42.7%
Taylor expanded in b around inf 39.0%
associate-/l*41.6%
distribute-lft-out49.0%
Simplified49.0%
if 5.00000000000000033e-38 < b Initial program 98.6%
associate-/l*99.5%
associate--l+99.5%
exp-sum76.4%
associate-/l*76.4%
*-commutative76.4%
exp-to-pow76.4%
exp-diff56.8%
*-commutative56.8%
exp-to-pow57.1%
sub-neg57.1%
metadata-eval57.1%
Simplified57.1%
Taylor expanded in y around 0 56.1%
exp-to-pow56.3%
sub-neg56.3%
metadata-eval56.3%
associate-*r/65.0%
Simplified65.0%
Taylor expanded in t around 0 77.5%
Taylor expanded in b around 0 52.4%
associate-*r*52.4%
Simplified52.4%
Taylor expanded in y around 0 56.5%
Final simplification51.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -2e-36)
(- (/ x (* y a)) (/ (* x b) (* y a)))
(if (<= b 5e-35)
(/ x (* b (* a (+ 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 <= -2e-36) {
tmp = (x / (y * a)) - ((x * b) / (y * a));
} else if (b <= 5e-35) {
tmp = x / (b * (a * (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 <= (-2d-36)) then
tmp = (x / (y * a)) - ((x * b) / (y * a))
else if (b <= 5d-35) then
tmp = x / (b * (a * (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 <= -2e-36) {
tmp = (x / (y * a)) - ((x * b) / (y * a));
} else if (b <= 5e-35) {
tmp = x / (b * (a * (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 <= -2e-36: tmp = (x / (y * a)) - ((x * b) / (y * a)) elif b <= 5e-35: tmp = x / (b * (a * (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 <= -2e-36) tmp = Float64(Float64(x / Float64(y * a)) - Float64(Float64(x * b) / Float64(y * a))); elseif (b <= 5e-35) tmp = Float64(x / Float64(b * Float64(a * 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 <= -2e-36) tmp = (x / (y * a)) - ((x * b) / (y * a)); elseif (b <= 5e-35) tmp = x / (b * (a * (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, -2e-36], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5e-35], N[(x / N[(b * N[(a * 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 -2 \cdot 10^{-36}:\\
\;\;\;\;\frac{x}{y \cdot a} - \frac{x \cdot b}{y \cdot a}\\
\mathbf{elif}\;b \leq 5 \cdot 10^{-35}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \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 < -1.9999999999999999e-36Initial program 99.9%
associate-/l*99.9%
associate--l+99.9%
exp-sum82.0%
associate-/l*82.0%
*-commutative82.0%
exp-to-pow82.0%
exp-diff71.3%
*-commutative71.3%
exp-to-pow71.4%
sub-neg71.4%
metadata-eval71.4%
Simplified71.4%
Taylor expanded in y around 0 71.5%
exp-to-pow71.6%
sub-neg71.6%
metadata-eval71.6%
associate-*r/78.7%
Simplified78.7%
Taylor expanded in t around 0 87.8%
Taylor expanded in b around 0 41.4%
if -1.9999999999999999e-36 < b < 4.99999999999999964e-35Initial program 98.2%
associate-/l*97.2%
associate--l+97.2%
exp-sum81.6%
associate-/l*79.7%
*-commutative79.7%
exp-to-pow79.7%
exp-diff79.7%
*-commutative79.7%
exp-to-pow80.7%
sub-neg80.7%
metadata-eval80.7%
Simplified80.7%
Taylor expanded in y around 0 76.5%
exp-to-pow77.5%
sub-neg77.5%
metadata-eval77.5%
associate-*r/76.5%
Simplified76.5%
Taylor expanded in t around 0 42.7%
Taylor expanded in b around 0 42.7%
distribute-rgt1-in42.7%
Simplified42.7%
Taylor expanded in b around inf 39.0%
associate-/l*41.6%
distribute-lft-out49.0%
Simplified49.0%
if 4.99999999999999964e-35 < b Initial program 98.6%
associate-/l*99.5%
associate--l+99.5%
exp-sum76.4%
associate-/l*76.4%
*-commutative76.4%
exp-to-pow76.4%
exp-diff56.8%
*-commutative56.8%
exp-to-pow57.1%
sub-neg57.1%
metadata-eval57.1%
Simplified57.1%
Taylor expanded in y around 0 56.1%
exp-to-pow56.3%
sub-neg56.3%
metadata-eval56.3%
associate-*r/65.0%
Simplified65.0%
Taylor expanded in t around 0 77.5%
Taylor expanded in b around 0 52.4%
associate-*r*52.4%
Simplified52.4%
Taylor expanded in y around 0 56.5%
Final simplification50.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.1e-37)
(- (/ x (* y a)) (/ (* x b) (* y a)))
(if (<= b -3.6e-294)
(/ x (* b (* a (+ y (/ y b)))))
(/ 1.0 (* a (/ (* y (+ 1.0 b)) x))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.1e-37) {
tmp = (x / (y * a)) - ((x * b) / (y * a));
} else if (b <= -3.6e-294) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = 1.0 / (a * ((y * (1.0 + b)) / x));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.1d-37)) then
tmp = (x / (y * a)) - ((x * b) / (y * a))
else if (b <= (-3.6d-294)) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = 1.0d0 / (a * ((y * (1.0d0 + b)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.1e-37) {
tmp = (x / (y * a)) - ((x * b) / (y * a));
} else if (b <= -3.6e-294) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = 1.0 / (a * ((y * (1.0 + b)) / x));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.1e-37: tmp = (x / (y * a)) - ((x * b) / (y * a)) elif b <= -3.6e-294: tmp = x / (b * (a * (y + (y / b)))) else: tmp = 1.0 / (a * ((y * (1.0 + b)) / x)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.1e-37) tmp = Float64(Float64(x / Float64(y * a)) - Float64(Float64(x * b) / Float64(y * a))); elseif (b <= -3.6e-294) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(1.0 / Float64(a * Float64(Float64(y * Float64(1.0 + b)) / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.1e-37) tmp = (x / (y * a)) - ((x * b) / (y * a)); elseif (b <= -3.6e-294) tmp = x / (b * (a * (y + (y / b)))); else tmp = 1.0 / (a * ((y * (1.0 + b)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.1e-37], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.6e-294], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(a * N[(N[(y * N[(1.0 + b), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.1 \cdot 10^{-37}:\\
\;\;\;\;\frac{x}{y \cdot a} - \frac{x \cdot b}{y \cdot a}\\
\mathbf{elif}\;b \leq -3.6 \cdot 10^{-294}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y \cdot \left(1 + b\right)}{x}}\\
\end{array}
\end{array}
if b < -1.10000000000000001e-37Initial program 99.9%
associate-/l*99.9%
associate--l+99.9%
exp-sum82.0%
associate-/l*82.0%
*-commutative82.0%
exp-to-pow82.0%
exp-diff71.3%
*-commutative71.3%
exp-to-pow71.4%
sub-neg71.4%
metadata-eval71.4%
Simplified71.4%
Taylor expanded in y around 0 71.5%
exp-to-pow71.6%
sub-neg71.6%
metadata-eval71.6%
associate-*r/78.7%
Simplified78.7%
Taylor expanded in t around 0 87.8%
Taylor expanded in b around 0 41.4%
if -1.10000000000000001e-37 < b < -3.6000000000000001e-294Initial program 98.7%
associate-/l*97.0%
associate--l+97.0%
exp-sum75.5%
associate-/l*73.5%
*-commutative73.5%
exp-to-pow73.5%
exp-diff73.5%
*-commutative73.5%
exp-to-pow74.6%
sub-neg74.6%
metadata-eval74.6%
Simplified74.6%
Taylor expanded in y around 0 75.3%
exp-to-pow76.4%
sub-neg76.4%
metadata-eval76.4%
associate-*r/78.3%
Simplified78.3%
Taylor expanded in t around 0 43.2%
Taylor expanded in b around 0 43.2%
distribute-rgt1-in43.2%
Simplified43.2%
Taylor expanded in b around inf 32.8%
associate-/l*37.6%
distribute-lft-out53.4%
Simplified53.4%
if -3.6000000000000001e-294 < b Initial program 98.3%
associate-/l*98.6%
associate--l+98.6%
exp-sum80.5%
associate-/l*79.8%
*-commutative79.8%
exp-to-pow79.8%
exp-diff67.9%
*-commutative67.9%
exp-to-pow68.4%
sub-neg68.4%
metadata-eval68.4%
Simplified68.4%
Taylor expanded in y around 0 64.4%
exp-to-pow64.9%
sub-neg64.9%
metadata-eval64.9%
associate-*r/68.8%
Simplified68.8%
Taylor expanded in t around 0 63.7%
Taylor expanded in b around 0 35.4%
distribute-rgt1-in35.4%
Simplified35.4%
clear-num36.0%
inv-pow36.0%
*-commutative36.0%
Applied egg-rr36.0%
unpow-136.0%
associate-/l*39.2%
+-commutative39.2%
Simplified39.2%
Final simplification42.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.3e-36)
(* (+ b -1.0) (/ x (* y (- a))))
(if (<= b -2.35e-301)
(/ x (* b (* a (+ y (/ y b)))))
(/ 1.0 (* a (/ (* y (+ 1.0 b)) x))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.3e-36) {
tmp = (b + -1.0) * (x / (y * -a));
} else if (b <= -2.35e-301) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = 1.0 / (a * ((y * (1.0 + b)) / x));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.3d-36)) then
tmp = (b + (-1.0d0)) * (x / (y * -a))
else if (b <= (-2.35d-301)) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = 1.0d0 / (a * ((y * (1.0d0 + b)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.3e-36) {
tmp = (b + -1.0) * (x / (y * -a));
} else if (b <= -2.35e-301) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = 1.0 / (a * ((y * (1.0 + b)) / x));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.3e-36: tmp = (b + -1.0) * (x / (y * -a)) elif b <= -2.35e-301: tmp = x / (b * (a * (y + (y / b)))) else: tmp = 1.0 / (a * ((y * (1.0 + b)) / x)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.3e-36) tmp = Float64(Float64(b + -1.0) * Float64(x / Float64(y * Float64(-a)))); elseif (b <= -2.35e-301) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(1.0 / Float64(a * Float64(Float64(y * Float64(1.0 + b)) / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.3e-36) tmp = (b + -1.0) * (x / (y * -a)); elseif (b <= -2.35e-301) tmp = x / (b * (a * (y + (y / b)))); else tmp = 1.0 / (a * ((y * (1.0 + b)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.3e-36], N[(N[(b + -1.0), $MachinePrecision] * N[(x / N[(y * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.35e-301], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(a * N[(N[(y * N[(1.0 + b), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.3 \cdot 10^{-36}:\\
\;\;\;\;\left(b + -1\right) \cdot \frac{x}{y \cdot \left(-a\right)}\\
\mathbf{elif}\;b \leq -2.35 \cdot 10^{-301}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y \cdot \left(1 + b\right)}{x}}\\
\end{array}
\end{array}
if b < -1.3e-36Initial program 99.9%
associate-/l*99.9%
associate--l+99.9%
exp-sum82.0%
associate-/l*82.0%
*-commutative82.0%
exp-to-pow82.0%
exp-diff71.3%
*-commutative71.3%
exp-to-pow71.4%
sub-neg71.4%
metadata-eval71.4%
Simplified71.4%
Taylor expanded in y around 0 71.5%
exp-to-pow71.6%
sub-neg71.6%
metadata-eval71.6%
associate-*r/78.7%
Simplified78.7%
Taylor expanded in t around 0 87.8%
Taylor expanded in b around 0 6.5%
distribute-rgt1-in6.5%
Simplified6.5%
Taylor expanded in b around 0 41.4%
mul-1-neg41.4%
remove-double-neg41.4%
distribute-neg-out41.4%
associate-/l*34.7%
mul-1-neg34.7%
distribute-rgt-out34.7%
Simplified34.7%
if -1.3e-36 < b < -2.3499999999999998e-301Initial program 98.8%
associate-/l*97.3%
associate--l+97.3%
exp-sum78.1%
associate-/l*76.3%
*-commutative76.3%
exp-to-pow76.3%
exp-diff76.3%
*-commutative76.3%
exp-to-pow77.2%
sub-neg77.2%
metadata-eval77.2%
Simplified77.2%
Taylor expanded in y around 0 76.2%
exp-to-pow77.2%
sub-neg77.2%
metadata-eval77.2%
associate-*r/78.9%
Simplified78.9%
Taylor expanded in t around 0 44.1%
Taylor expanded in b around 0 44.1%
distribute-rgt1-in44.1%
Simplified44.1%
Taylor expanded in b around inf 34.7%
associate-/l*39.0%
distribute-lft-out53.2%
Simplified53.2%
if -2.3499999999999998e-301 < b Initial program 98.2%
associate-/l*98.6%
associate--l+98.6%
exp-sum79.7%
associate-/l*79.0%
*-commutative79.0%
exp-to-pow79.0%
exp-diff66.5%
*-commutative66.5%
exp-to-pow67.1%
sub-neg67.1%
metadata-eval67.1%
Simplified67.1%
Taylor expanded in y around 0 63.6%
exp-to-pow64.1%
sub-neg64.1%
metadata-eval64.1%
associate-*r/68.2%
Simplified68.2%
Taylor expanded in t around 0 64.3%
Taylor expanded in b around 0 34.7%
distribute-rgt1-in34.7%
Simplified34.7%
clear-num35.4%
inv-pow35.4%
*-commutative35.4%
Applied egg-rr35.4%
unpow-135.4%
associate-/l*38.7%
+-commutative38.7%
Simplified38.7%
Final simplification41.0%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.75e-225) (* (+ b -1.0) (/ x (* y (- a)))) (/ 1.0 (* a (/ (* y (+ 1.0 b)) x)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.75e-225) {
tmp = (b + -1.0) * (x / (y * -a));
} else {
tmp = 1.0 / (a * ((y * (1.0 + b)) / x));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.75d-225)) then
tmp = (b + (-1.0d0)) * (x / (y * -a))
else
tmp = 1.0d0 / (a * ((y * (1.0d0 + b)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.75e-225) {
tmp = (b + -1.0) * (x / (y * -a));
} else {
tmp = 1.0 / (a * ((y * (1.0 + b)) / x));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.75e-225: tmp = (b + -1.0) * (x / (y * -a)) else: tmp = 1.0 / (a * ((y * (1.0 + b)) / x)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.75e-225) tmp = Float64(Float64(b + -1.0) * Float64(x / Float64(y * Float64(-a)))); else tmp = Float64(1.0 / Float64(a * Float64(Float64(y * Float64(1.0 + b)) / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.75e-225) tmp = (b + -1.0) * (x / (y * -a)); else tmp = 1.0 / (a * ((y * (1.0 + b)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.75e-225], N[(N[(b + -1.0), $MachinePrecision] * N[(x / N[(y * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(a * N[(N[(y * N[(1.0 + b), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.75 \cdot 10^{-225}:\\
\;\;\;\;\left(b + -1\right) \cdot \frac{x}{y \cdot \left(-a\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y \cdot \left(1 + b\right)}{x}}\\
\end{array}
\end{array}
if b < -1.7499999999999999e-225Initial program 99.3%
associate-/l*98.4%
associate--l+98.4%
exp-sum80.3%
associate-/l*79.3%
*-commutative79.3%
exp-to-pow79.3%
exp-diff72.9%
*-commutative72.9%
exp-to-pow73.4%
sub-neg73.4%
metadata-eval73.4%
Simplified73.4%
Taylor expanded in y around 0 71.8%
exp-to-pow72.4%
sub-neg72.4%
metadata-eval72.4%
associate-*r/77.6%
Simplified77.6%
Taylor expanded in t around 0 71.2%
Taylor expanded in b around 0 22.8%
distribute-rgt1-in22.8%
Simplified22.8%
Taylor expanded in b around 0 43.5%
mul-1-neg43.5%
remove-double-neg43.5%
distribute-neg-out43.5%
associate-/l*39.5%
mul-1-neg39.5%
distribute-rgt-out39.5%
Simplified39.5%
if -1.7499999999999999e-225 < b Initial program 98.3%
associate-/l*98.7%
associate--l+98.7%
exp-sum79.5%
associate-/l*78.9%
*-commutative78.9%
exp-to-pow78.9%
exp-diff67.9%
*-commutative67.9%
exp-to-pow68.5%
sub-neg68.5%
metadata-eval68.5%
Simplified68.5%
Taylor expanded in y around 0 66.0%
exp-to-pow66.5%
sub-neg66.5%
metadata-eval66.5%
associate-*r/70.1%
Simplified70.1%
Taylor expanded in t around 0 61.3%
Taylor expanded in b around 0 35.2%
distribute-rgt1-in35.2%
Simplified35.2%
clear-num35.8%
inv-pow35.8%
*-commutative35.8%
Applied egg-rr35.8%
unpow-135.8%
associate-/l*39.3%
+-commutative39.3%
Simplified39.3%
Final simplification39.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b 0.84) (* (+ b -1.0) (/ x (* y (- a)))) (/ x (* y (* a b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 0.84) {
tmp = (b + -1.0) * (x / (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 <= 0.84d0) then
tmp = (b + (-1.0d0)) * (x / (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 <= 0.84) {
tmp = (b + -1.0) * (x / (y * -a));
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 0.84: tmp = (b + -1.0) * (x / (y * -a)) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 0.84) tmp = Float64(Float64(b + -1.0) * Float64(x / Float64(y * Float64(-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 <= 0.84) tmp = (b + -1.0) * (x / (y * -a)); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 0.84], N[(N[(b + -1.0), $MachinePrecision] * N[(x / 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 0.84:\\
\;\;\;\;\left(b + -1\right) \cdot \frac{x}{y \cdot \left(-a\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < 0.839999999999999969Initial program 98.1%
associate-/l*97.9%
associate--l+97.9%
exp-sum82.0%
associate-/l*80.9%
*-commutative80.9%
exp-to-pow80.9%
exp-diff77.6%
*-commutative77.6%
exp-to-pow78.4%
sub-neg78.4%
metadata-eval78.4%
Simplified78.4%
Taylor expanded in y around 0 74.1%
exp-to-pow74.9%
sub-neg74.9%
metadata-eval74.9%
associate-*r/77.0%
Simplified77.0%
Taylor expanded in t around 0 56.8%
Taylor expanded in b around 0 30.9%
distribute-rgt1-in30.9%
Simplified30.9%
Taylor expanded in b around 0 38.4%
mul-1-neg38.4%
remove-double-neg38.4%
distribute-neg-out38.4%
associate-/l*35.8%
mul-1-neg35.8%
distribute-rgt-out39.8%
Simplified39.8%
if 0.839999999999999969 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum75.0%
associate-/l*75.0%
*-commutative75.0%
exp-to-pow75.0%
exp-diff52.5%
*-commutative52.5%
exp-to-pow52.5%
sub-neg52.5%
metadata-eval52.5%
Simplified52.5%
Taylor expanded in y around 0 55.0%
exp-to-pow55.0%
sub-neg55.0%
metadata-eval55.0%
associate-*r/63.8%
Simplified63.8%
Taylor expanded in t around 0 82.8%
Taylor expanded in b around 0 30.1%
distribute-rgt1-in30.1%
Simplified30.1%
Taylor expanded in b around inf 30.1%
*-commutative30.1%
*-commutative30.1%
associate-*l*33.6%
*-commutative33.6%
Simplified33.6%
Final simplification37.9%
(FPCore (x y z t a b) :precision binary64 (if (<= b 34000000.0) (/ x (* y a)) (/ x (* y (* a b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 34000000.0) {
tmp = x / (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 <= 34000000.0d0) then
tmp = x / (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 <= 34000000.0) {
tmp = x / (y * a);
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 34000000.0: tmp = x / (y * a) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 34000000.0) tmp = Float64(x / 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 <= 34000000.0) tmp = x / (y * a); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 34000000.0], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 34000000:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < 3.4e7Initial program 98.1%
associate-/l*97.9%
associate--l+97.9%
exp-sum81.6%
associate-/l*80.4%
*-commutative80.4%
exp-to-pow80.4%
exp-diff77.1%
*-commutative77.1%
exp-to-pow77.9%
sub-neg77.9%
metadata-eval77.9%
Simplified77.9%
Taylor expanded in y around 0 73.7%
exp-to-pow74.5%
sub-neg74.5%
metadata-eval74.5%
associate-*r/76.6%
Simplified76.6%
Taylor expanded in t around 0 56.5%
Taylor expanded in b around 0 37.1%
if 3.4e7 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum75.9%
associate-/l*75.9%
*-commutative75.9%
exp-to-pow75.9%
exp-diff53.2%
*-commutative53.2%
exp-to-pow53.2%
sub-neg53.2%
metadata-eval53.2%
Simplified53.2%
Taylor expanded in y around 0 55.7%
exp-to-pow55.7%
sub-neg55.7%
metadata-eval55.7%
associate-*r/64.6%
Simplified64.6%
Taylor expanded in t around 0 83.8%
Taylor expanded in b around 0 30.4%
distribute-rgt1-in30.4%
Simplified30.4%
Taylor expanded in b around inf 30.4%
*-commutative30.4%
*-commutative30.4%
associate-*l*34.0%
*-commutative34.0%
Simplified34.0%
Final simplification36.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b 2.4e+15) (/ x (* y a)) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 2.4e+15) {
tmp = x / (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 <= 2.4d+15) then
tmp = x / (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 <= 2.4e+15) {
tmp = x / (y * a);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 2.4e+15: tmp = x / (y * a) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 2.4e+15) tmp = Float64(x / 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 <= 2.4e+15) tmp = x / (y * a); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 2.4e+15], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2.4 \cdot 10^{+15}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 2.4e15Initial program 98.1%
associate-/l*98.0%
associate--l+98.0%
exp-sum81.1%
associate-/l*80.0%
*-commutative80.0%
exp-to-pow80.0%
exp-diff76.7%
*-commutative76.7%
exp-to-pow77.5%
sub-neg77.5%
metadata-eval77.5%
Simplified77.5%
Taylor expanded in y around 0 73.3%
exp-to-pow74.0%
sub-neg74.0%
metadata-eval74.0%
associate-*r/76.1%
Simplified76.1%
Taylor expanded in t around 0 56.2%
Taylor expanded in b around 0 36.9%
if 2.4e15 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum76.9%
associate-/l*76.9%
*-commutative76.9%
exp-to-pow76.9%
exp-diff53.8%
*-commutative53.8%
exp-to-pow53.8%
sub-neg53.8%
metadata-eval53.8%
Simplified53.8%
Taylor expanded in y around 0 56.5%
exp-to-pow56.5%
sub-neg56.5%
metadata-eval56.5%
associate-*r/65.4%
Simplified65.4%
Taylor expanded in t around 0 84.9%
Taylor expanded in b around 0 30.7%
distribute-rgt1-in30.7%
Simplified30.7%
Taylor expanded in b around inf 30.7%
*-commutative30.7%
Simplified30.7%
Final simplification35.1%
(FPCore (x y z t a b) :precision binary64 (if (<= a 4.8e-137) (/ (/ x a) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 4.8e-137) {
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 (a <= 4.8d-137) 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 (a <= 4.8e-137) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 4.8e-137: tmp = (x / a) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 4.8e-137) 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 (a <= 4.8e-137) tmp = (x / a) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 4.8e-137], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 4.8 \cdot 10^{-137}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if a < 4.8000000000000001e-137Initial program 99.7%
associate-/l*97.3%
associate--l+97.3%
exp-sum73.7%
associate-/l*73.7%
*-commutative73.7%
exp-to-pow73.7%
exp-diff66.4%
*-commutative66.4%
exp-to-pow66.4%
sub-neg66.4%
metadata-eval66.4%
Simplified66.4%
Taylor expanded in b around 0 69.1%
Simplified69.4%
Taylor expanded in t around 0 62.8%
associate-/l*61.4%
Simplified61.4%
Taylor expanded in y around 0 37.0%
if 4.8000000000000001e-137 < a Initial program 98.3%
associate-/l*99.1%
associate--l+99.1%
exp-sum82.0%
associate-/l*81.0%
*-commutative81.0%
exp-to-pow81.0%
exp-diff71.0%
*-commutative71.0%
exp-to-pow71.7%
sub-neg71.7%
metadata-eval71.7%
Simplified71.7%
Taylor expanded in y around 0 68.2%
exp-to-pow68.8%
sub-neg68.8%
metadata-eval68.8%
associate-*r/72.8%
Simplified72.8%
Taylor expanded in t around 0 65.1%
Taylor expanded in b around 0 32.3%
Final simplification33.6%
(FPCore (x y z t a b) :precision binary64 (/ x (* y a)))
double code(double x, double y, double z, double t, double a, double b) {
return x / (y * a);
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / (y * a)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (y * a);
}
def code(x, y, z, t, a, b): return x / (y * a)
function code(x, y, z, t, a, b) return Float64(x / Float64(y * a)) end
function tmp = code(x, y, z, t, a, b) tmp = x / (y * a); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y \cdot a}
\end{array}
Initial program 98.7%
associate-/l*98.6%
associate--l+98.6%
exp-sum79.8%
associate-/l*79.1%
*-commutative79.1%
exp-to-pow79.1%
exp-diff69.7%
*-commutative69.7%
exp-to-pow70.3%
sub-neg70.3%
metadata-eval70.3%
Simplified70.3%
Taylor expanded in y around 0 68.1%
exp-to-pow68.7%
sub-neg68.7%
metadata-eval68.7%
associate-*r/72.9%
Simplified72.9%
Taylor expanded in t around 0 64.9%
Taylor expanded in b around 0 31.4%
Final simplification31.4%
(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 2024091
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:alt
(if (< t -0.8845848504127471) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z)))) (if (< t 852031.2288374073) (/ (* (/ x y) (pow a (- t 1.0))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))