
(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 24 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 (<= y -2.2e+44) (not (<= y 12.6))) (/ (* x (exp (- (- (* y (log z)) (log a)) b))) y) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.2e+44) || !(y <= 12.6)) {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
} else {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-2.2d+44)) .or. (.not. (y <= 12.6d0))) then
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y
else
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.2e+44) || !(y <= 12.6)) {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
} else {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -2.2e+44) or not (y <= 12.6): tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y else: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -2.2e+44) || !(y <= 12.6)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -2.2e+44) || ~((y <= 12.6))) tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; else tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -2.2e+44], N[Not[LessEqual[y, 12.6]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.2 \cdot 10^{+44} \lor \neg \left(y \leq 12.6\right):\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -2.19999999999999996e44 or 12.5999999999999996 < y Initial program 100.0%
Taylor expanded in t around 0 94.0%
mul-1-neg94.0%
Simplified94.0%
if -2.19999999999999996e44 < y < 12.5999999999999996Initial program 97.7%
Taylor expanded in y around 0 95.6%
Final simplification94.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (pow z y) (* y (* a (exp b))))))
(t_2 (/ (* x (pow a (+ t -1.0))) y)))
(if (<= t -4.6e+180)
t_2
(if (<= t -1.2e+38)
t_1
(if (<= t -4.4e-38)
(/ (/ (* x (pow a t)) a) y)
(if (or (<= t 82000.0) (and (not (<= t 8.8e+111)) (<= t 1.4e+163)))
t_1
t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (pow(z, y) / (y * (a * exp(b))));
double t_2 = (x * pow(a, (t + -1.0))) / y;
double tmp;
if (t <= -4.6e+180) {
tmp = t_2;
} else if (t <= -1.2e+38) {
tmp = t_1;
} else if (t <= -4.4e-38) {
tmp = ((x * pow(a, t)) / a) / y;
} else if ((t <= 82000.0) || (!(t <= 8.8e+111) && (t <= 1.4e+163))) {
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 = x * ((z ** y) / (y * (a * exp(b))))
t_2 = (x * (a ** (t + (-1.0d0)))) / y
if (t <= (-4.6d+180)) then
tmp = t_2
else if (t <= (-1.2d+38)) then
tmp = t_1
else if (t <= (-4.4d-38)) then
tmp = ((x * (a ** t)) / a) / y
else if ((t <= 82000.0d0) .or. (.not. (t <= 8.8d+111)) .and. (t <= 1.4d+163)) 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 = x * (Math.pow(z, y) / (y * (a * Math.exp(b))));
double t_2 = (x * Math.pow(a, (t + -1.0))) / y;
double tmp;
if (t <= -4.6e+180) {
tmp = t_2;
} else if (t <= -1.2e+38) {
tmp = t_1;
} else if (t <= -4.4e-38) {
tmp = ((x * Math.pow(a, t)) / a) / y;
} else if ((t <= 82000.0) || (!(t <= 8.8e+111) && (t <= 1.4e+163))) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * (math.pow(z, y) / (y * (a * math.exp(b)))) t_2 = (x * math.pow(a, (t + -1.0))) / y tmp = 0 if t <= -4.6e+180: tmp = t_2 elif t <= -1.2e+38: tmp = t_1 elif t <= -4.4e-38: tmp = ((x * math.pow(a, t)) / a) / y elif (t <= 82000.0) or (not (t <= 8.8e+111) and (t <= 1.4e+163)): tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64((z ^ y) / Float64(y * Float64(a * exp(b))))) t_2 = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y) tmp = 0.0 if (t <= -4.6e+180) tmp = t_2; elseif (t <= -1.2e+38) tmp = t_1; elseif (t <= -4.4e-38) tmp = Float64(Float64(Float64(x * (a ^ t)) / a) / y); elseif ((t <= 82000.0) || (!(t <= 8.8e+111) && (t <= 1.4e+163))) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * ((z ^ y) / (y * (a * exp(b)))); t_2 = (x * (a ^ (t + -1.0))) / y; tmp = 0.0; if (t <= -4.6e+180) tmp = t_2; elseif (t <= -1.2e+38) tmp = t_1; elseif (t <= -4.4e-38) tmp = ((x * (a ^ t)) / a) / y; elseif ((t <= 82000.0) || (~((t <= 8.8e+111)) && (t <= 1.4e+163))) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[Power[z, y], $MachinePrecision] / N[(y * N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t, -4.6e+180], t$95$2, If[LessEqual[t, -1.2e+38], t$95$1, If[LessEqual[t, -4.4e-38], N[(N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], If[Or[LessEqual[t, 82000.0], And[N[Not[LessEqual[t, 8.8e+111]], $MachinePrecision], LessEqual[t, 1.4e+163]]], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{{z}^{y}}{y \cdot \left(a \cdot e^{b}\right)}\\
t_2 := \frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{if}\;t \leq -4.6 \cdot 10^{+180}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.2 \cdot 10^{+38}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -4.4 \cdot 10^{-38}:\\
\;\;\;\;\frac{\frac{x \cdot {a}^{t}}{a}}{y}\\
\mathbf{elif}\;t \leq 82000 \lor \neg \left(t \leq 8.8 \cdot 10^{+111}\right) \land t \leq 1.4 \cdot 10^{+163}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -4.5999999999999998e180 or 82000 < t < 8.79999999999999994e111 or 1.40000000000000007e163 < t Initial program 100.0%
associate-*l/89.5%
*-commutative89.5%
Simplified43.4%
Taylor expanded in y around 0 69.8%
associate-/l*65.8%
sub-neg65.8%
metadata-eval65.8%
associate-/l*65.8%
Simplified65.8%
Taylor expanded in b around 0 88.3%
if -4.5999999999999998e180 < t < -1.20000000000000009e38 or -4.40000000000000015e-38 < t < 82000 or 8.79999999999999994e111 < t < 1.40000000000000007e163Initial program 98.2%
associate-*r/97.4%
sub-neg97.4%
exp-sum82.1%
associate-/l*82.1%
associate-/r/80.3%
exp-neg80.3%
associate-*r/80.3%
Simplified74.4%
Taylor expanded in t around 0 84.9%
associate-*r*80.0%
*-commutative80.0%
associate-*r*84.9%
Simplified84.9%
if -1.20000000000000009e38 < t < -4.40000000000000015e-38Initial program 98.5%
associate-*l/92.3%
*-commutative92.3%
Simplified68.0%
Taylor expanded in b around 0 68.1%
expm1-log1p-u61.8%
expm1-udef50.3%
*-commutative50.3%
pow-sub50.3%
pow150.3%
Applied egg-rr50.3%
expm1-def62.5%
expm1-log1p68.8%
Simplified68.8%
Taylor expanded in y around 0 87.7%
Final simplification86.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -2.35e+119) (not (<= y 6.2e+74))) (* x (/ (/ (pow z y) a) y)) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.35e+119) || !(y <= 6.2e+74)) {
tmp = x * ((pow(z, y) / a) / y);
} else {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-2.35d+119)) .or. (.not. (y <= 6.2d+74))) then
tmp = x * (((z ** y) / a) / y)
else
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.35e+119) || !(y <= 6.2e+74)) {
tmp = x * ((Math.pow(z, y) / a) / y);
} else {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -2.35e+119) or not (y <= 6.2e+74): tmp = x * ((math.pow(z, y) / a) / y) else: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -2.35e+119) || !(y <= 6.2e+74)) tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -2.35e+119) || ~((y <= 6.2e+74))) tmp = x * (((z ^ y) / a) / y); else tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -2.35e+119], N[Not[LessEqual[y, 6.2e+74]], $MachinePrecision]], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.35 \cdot 10^{+119} \lor \neg \left(y \leq 6.2 \cdot 10^{+74}\right):\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -2.35000000000000004e119 or 6.20000000000000043e74 < y Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
exp-sum78.9%
associate-/l*78.9%
associate-/r/78.9%
exp-neg78.9%
associate-*r/78.9%
Simplified58.9%
Taylor expanded in t around 0 71.2%
associate-*r*66.8%
*-commutative66.8%
associate-*r*71.2%
Simplified71.2%
Taylor expanded in b around 0 76.9%
*-commutative76.9%
associate-/r*88.0%
Simplified88.0%
if -2.35000000000000004e119 < y < 6.20000000000000043e74Initial program 98.1%
Taylor expanded in y around 0 93.3%
Final simplification91.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -7.5e+115) (not (<= y 2.8e+18))) (* x (/ (/ (pow z y) a) y)) (* (/ (pow a t) a) (/ x (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -7.5e+115) || !(y <= 2.8e+18)) {
tmp = x * ((pow(z, y) / a) / y);
} else {
tmp = (pow(a, t) / a) * (x / (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 <= (-7.5d+115)) .or. (.not. (y <= 2.8d+18))) then
tmp = x * (((z ** y) / a) / y)
else
tmp = ((a ** t) / a) * (x / (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 <= -7.5e+115) || !(y <= 2.8e+18)) {
tmp = x * ((Math.pow(z, y) / a) / y);
} else {
tmp = (Math.pow(a, t) / a) * (x / (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -7.5e+115) or not (y <= 2.8e+18): tmp = x * ((math.pow(z, y) / a) / y) else: tmp = (math.pow(a, t) / a) * (x / (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -7.5e+115) || !(y <= 2.8e+18)) tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); else tmp = Float64(Float64((a ^ t) / a) * Float64(x / Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -7.5e+115) || ~((y <= 2.8e+18))) tmp = x * (((z ^ y) / a) / y); else tmp = ((a ^ t) / a) * (x / (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -7.5e+115], N[Not[LessEqual[y, 2.8e+18]], $MachinePrecision]], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] * N[(x / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.5 \cdot 10^{+115} \lor \neg \left(y \leq 2.8 \cdot 10^{+18}\right):\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{{a}^{t}}{a} \cdot \frac{x}{y \cdot e^{b}}\\
\end{array}
\end{array}
if y < -7.4999999999999997e115 or 2.8e18 < y Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
exp-sum75.2%
associate-/l*75.2%
associate-/r/75.2%
exp-neg75.2%
associate-*r/75.2%
Simplified58.1%
Taylor expanded in t around 0 70.6%
associate-*r*66.8%
*-commutative66.8%
associate-*r*70.6%
Simplified70.6%
Taylor expanded in b around 0 76.4%
*-commutative76.4%
associate-/r*85.9%
Simplified85.9%
if -7.4999999999999997e115 < y < 2.8e18Initial program 97.9%
associate-*l/90.3%
exp-diff75.1%
times-frac78.7%
associate-*l/79.1%
*-commutative79.1%
Simplified74.8%
Taylor expanded in y around 0 80.7%
Final simplification82.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -8.5e+121) (not (<= y 5.5e+14))) (* x (/ (/ (pow z y) a) y)) (/ (/ (pow a t) a) (/ y (/ x (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -8.5e+121) || !(y <= 5.5e+14)) {
tmp = x * ((pow(z, y) / a) / y);
} else {
tmp = (pow(a, t) / a) / (y / (x / 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 <= (-8.5d+121)) .or. (.not. (y <= 5.5d+14))) then
tmp = x * (((z ** y) / a) / y)
else
tmp = ((a ** t) / a) / (y / (x / 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 <= -8.5e+121) || !(y <= 5.5e+14)) {
tmp = x * ((Math.pow(z, y) / a) / y);
} else {
tmp = (Math.pow(a, t) / a) / (y / (x / Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -8.5e+121) or not (y <= 5.5e+14): tmp = x * ((math.pow(z, y) / a) / y) else: tmp = (math.pow(a, t) / a) / (y / (x / math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -8.5e+121) || !(y <= 5.5e+14)) tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); else tmp = Float64(Float64((a ^ t) / a) / Float64(y / Float64(x / exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -8.5e+121) || ~((y <= 5.5e+14))) tmp = x * (((z ^ y) / a) / y); else tmp = ((a ^ t) / a) / (y / (x / exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -8.5e+121], N[Not[LessEqual[y, 5.5e+14]], $MachinePrecision]], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] / N[(y / N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.5 \cdot 10^{+121} \lor \neg \left(y \leq 5.5 \cdot 10^{+14}\right):\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{{a}^{t}}{a}}{\frac{y}{\frac{x}{e^{b}}}}\\
\end{array}
\end{array}
if y < -8.5e121 or 5.5e14 < y Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
exp-sum75.2%
associate-/l*75.2%
associate-/r/75.2%
exp-neg75.2%
associate-*r/75.2%
Simplified58.1%
Taylor expanded in t around 0 70.6%
associate-*r*66.8%
*-commutative66.8%
associate-*r*70.6%
Simplified70.6%
Taylor expanded in b around 0 76.4%
*-commutative76.4%
associate-/r*85.9%
Simplified85.9%
if -8.5e121 < y < 5.5e14Initial program 97.9%
associate-*l/90.3%
*-commutative90.3%
Simplified70.8%
Taylor expanded in y around 0 80.3%
associate-/l*80.7%
sub-neg80.7%
metadata-eval80.7%
associate-/l*80.7%
Simplified80.7%
expm1-log1p-u80.4%
expm1-udef70.4%
metadata-eval70.4%
sub-neg70.4%
pow-sub70.4%
pow170.4%
Applied egg-rr70.4%
expm1-def80.4%
expm1-log1p80.7%
Simplified80.7%
Final simplification82.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (pow a (+ t -1.0))) y))
(t_2 (* x (/ (/ (pow z y) a) y)))
(t_3 (/ x (* a (* y (exp b))))))
(if (<= y -1.8e+119)
t_2
(if (<= y -3.35e-59)
t_1
(if (<= y 4.2e-220)
t_3
(if (<= y 3.6e-131) t_1 (if (<= y 8.8e+24) t_3 t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * pow(a, (t + -1.0))) / y;
double t_2 = x * ((pow(z, y) / a) / y);
double t_3 = x / (a * (y * exp(b)));
double tmp;
if (y <= -1.8e+119) {
tmp = t_2;
} else if (y <= -3.35e-59) {
tmp = t_1;
} else if (y <= 4.2e-220) {
tmp = t_3;
} else if (y <= 3.6e-131) {
tmp = t_1;
} else if (y <= 8.8e+24) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (x * (a ** (t + (-1.0d0)))) / y
t_2 = x * (((z ** y) / a) / y)
t_3 = x / (a * (y * exp(b)))
if (y <= (-1.8d+119)) then
tmp = t_2
else if (y <= (-3.35d-59)) then
tmp = t_1
else if (y <= 4.2d-220) then
tmp = t_3
else if (y <= 3.6d-131) then
tmp = t_1
else if (y <= 8.8d+24) then
tmp = t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * Math.pow(a, (t + -1.0))) / y;
double t_2 = x * ((Math.pow(z, y) / a) / y);
double t_3 = x / (a * (y * Math.exp(b)));
double tmp;
if (y <= -1.8e+119) {
tmp = t_2;
} else if (y <= -3.35e-59) {
tmp = t_1;
} else if (y <= 4.2e-220) {
tmp = t_3;
} else if (y <= 3.6e-131) {
tmp = t_1;
} else if (y <= 8.8e+24) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * math.pow(a, (t + -1.0))) / y t_2 = x * ((math.pow(z, y) / a) / y) t_3 = x / (a * (y * math.exp(b))) tmp = 0 if y <= -1.8e+119: tmp = t_2 elif y <= -3.35e-59: tmp = t_1 elif y <= 4.2e-220: tmp = t_3 elif y <= 3.6e-131: tmp = t_1 elif y <= 8.8e+24: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y) t_2 = Float64(x * Float64(Float64((z ^ y) / a) / y)) t_3 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (y <= -1.8e+119) tmp = t_2; elseif (y <= -3.35e-59) tmp = t_1; elseif (y <= 4.2e-220) tmp = t_3; elseif (y <= 3.6e-131) tmp = t_1; elseif (y <= 8.8e+24) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * (a ^ (t + -1.0))) / y; t_2 = x * (((z ^ y) / a) / y); t_3 = x / (a * (y * exp(b))); tmp = 0.0; if (y <= -1.8e+119) tmp = t_2; elseif (y <= -3.35e-59) tmp = t_1; elseif (y <= 4.2e-220) tmp = t_3; elseif (y <= 3.6e-131) tmp = t_1; elseif (y <= 8.8e+24) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.8e+119], t$95$2, If[LessEqual[y, -3.35e-59], t$95$1, If[LessEqual[y, 4.2e-220], t$95$3, If[LessEqual[y, 3.6e-131], t$95$1, If[LessEqual[y, 8.8e+24], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
t_2 := x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
t_3 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;y \leq -1.8 \cdot 10^{+119}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -3.35 \cdot 10^{-59}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-220}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{-131}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 8.8 \cdot 10^{+24}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -1.80000000000000001e119 or 8.80000000000000007e24 < y Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
exp-sum75.7%
associate-/l*75.7%
associate-/r/75.7%
exp-neg75.7%
associate-*r/75.7%
Simplified58.3%
Taylor expanded in t around 0 71.0%
associate-*r*67.1%
*-commutative67.1%
associate-*r*71.0%
Simplified71.0%
Taylor expanded in b around 0 76.9%
*-commutative76.9%
associate-/r*86.6%
Simplified86.6%
if -1.80000000000000001e119 < y < -3.35e-59 or 4.19999999999999985e-220 < y < 3.5999999999999999e-131Initial program 98.8%
associate-*l/97.2%
*-commutative97.2%
Simplified71.8%
Taylor expanded in y around 0 82.6%
associate-/l*82.6%
sub-neg82.6%
metadata-eval82.6%
associate-/l*82.6%
Simplified82.6%
Taylor expanded in b around 0 84.5%
if -3.35e-59 < y < 4.19999999999999985e-220 or 3.5999999999999999e-131 < y < 8.80000000000000007e24Initial program 97.3%
associate-*l/85.6%
*-commutative85.6%
Simplified69.6%
Taylor expanded in y around 0 76.8%
associate-/l*77.5%
sub-neg77.5%
metadata-eval77.5%
associate-/l*77.5%
Simplified77.5%
Taylor expanded in t around 0 81.4%
Final simplification84.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (/ (pow z y) a) y))) (t_2 (/ x (* a (* y (exp b))))))
(if (<= y -7.2e+115)
t_1
(if (<= y -1.35e-58)
(/ (/ (* x (pow a t)) a) y)
(if (<= y 1.15e-219)
t_2
(if (<= y 1.1e-131)
(/ (* x (pow a (+ t -1.0))) y)
(if (<= y 8.8e+24) t_2 t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * ((pow(z, y) / a) / y);
double t_2 = x / (a * (y * exp(b)));
double tmp;
if (y <= -7.2e+115) {
tmp = t_1;
} else if (y <= -1.35e-58) {
tmp = ((x * pow(a, t)) / a) / y;
} else if (y <= 1.15e-219) {
tmp = t_2;
} else if (y <= 1.1e-131) {
tmp = (x * pow(a, (t + -1.0))) / y;
} else if (y <= 8.8e+24) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = x * (((z ** y) / a) / y)
t_2 = x / (a * (y * exp(b)))
if (y <= (-7.2d+115)) then
tmp = t_1
else if (y <= (-1.35d-58)) then
tmp = ((x * (a ** t)) / a) / y
else if (y <= 1.15d-219) then
tmp = t_2
else if (y <= 1.1d-131) then
tmp = (x * (a ** (t + (-1.0d0)))) / y
else if (y <= 8.8d+24) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * ((Math.pow(z, y) / a) / y);
double t_2 = x / (a * (y * Math.exp(b)));
double tmp;
if (y <= -7.2e+115) {
tmp = t_1;
} else if (y <= -1.35e-58) {
tmp = ((x * Math.pow(a, t)) / a) / y;
} else if (y <= 1.15e-219) {
tmp = t_2;
} else if (y <= 1.1e-131) {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
} else if (y <= 8.8e+24) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * ((math.pow(z, y) / a) / y) t_2 = x / (a * (y * math.exp(b))) tmp = 0 if y <= -7.2e+115: tmp = t_1 elif y <= -1.35e-58: tmp = ((x * math.pow(a, t)) / a) / y elif y <= 1.15e-219: tmp = t_2 elif y <= 1.1e-131: tmp = (x * math.pow(a, (t + -1.0))) / y elif y <= 8.8e+24: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(Float64((z ^ y) / a) / y)) t_2 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (y <= -7.2e+115) tmp = t_1; elseif (y <= -1.35e-58) tmp = Float64(Float64(Float64(x * (a ^ t)) / a) / y); elseif (y <= 1.15e-219) tmp = t_2; elseif (y <= 1.1e-131) tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); elseif (y <= 8.8e+24) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (((z ^ y) / a) / y); t_2 = x / (a * (y * exp(b))); tmp = 0.0; if (y <= -7.2e+115) tmp = t_1; elseif (y <= -1.35e-58) tmp = ((x * (a ^ t)) / a) / y; elseif (y <= 1.15e-219) tmp = t_2; elseif (y <= 1.1e-131) tmp = (x * (a ^ (t + -1.0))) / y; elseif (y <= 8.8e+24) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.2e+115], t$95$1, If[LessEqual[y, -1.35e-58], N[(N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 1.15e-219], t$95$2, If[LessEqual[y, 1.1e-131], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 8.8e+24], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
t_2 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;y \leq -7.2 \cdot 10^{+115}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.35 \cdot 10^{-58}:\\
\;\;\;\;\frac{\frac{x \cdot {a}^{t}}{a}}{y}\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{-219}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-131}:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{elif}\;y \leq 8.8 \cdot 10^{+24}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -7.2000000000000001e115 or 8.80000000000000007e24 < y Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
exp-sum75.7%
associate-/l*75.7%
associate-/r/75.7%
exp-neg75.7%
associate-*r/75.7%
Simplified58.3%
Taylor expanded in t around 0 71.0%
associate-*r*67.1%
*-commutative67.1%
associate-*r*71.0%
Simplified71.0%
Taylor expanded in b around 0 76.9%
*-commutative76.9%
associate-/r*86.6%
Simplified86.6%
if -7.2000000000000001e115 < y < -1.3499999999999999e-58Initial program 99.5%
associate-*l/99.5%
*-commutative99.5%
Simplified66.6%
Taylor expanded in b around 0 66.8%
expm1-log1p-u51.4%
expm1-udef51.5%
*-commutative51.5%
pow-sub51.5%
pow151.5%
Applied egg-rr51.5%
expm1-def51.4%
expm1-log1p66.8%
Simplified66.8%
Taylor expanded in y around 0 79.6%
if -1.3499999999999999e-58 < y < 1.14999999999999994e-219 or 1.1e-131 < y < 8.80000000000000007e24Initial program 97.3%
associate-*l/85.6%
*-commutative85.6%
Simplified69.6%
Taylor expanded in y around 0 76.8%
associate-/l*77.5%
sub-neg77.5%
metadata-eval77.5%
associate-/l*77.5%
Simplified77.5%
Taylor expanded in t around 0 81.4%
if 1.14999999999999994e-219 < y < 1.1e-131Initial program 97.6%
associate-*l/93.7%
*-commutative93.7%
Simplified79.9%
Taylor expanded in y around 0 83.9%
associate-/l*79.8%
sub-neg79.8%
metadata-eval79.8%
associate-/l*79.8%
Simplified79.8%
Taylor expanded in b around 0 92.2%
Final simplification84.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -2.8e+83) (not (<= b 2.95e+54))) (/ x (* a (* y (exp b)))) (* x (/ (/ (pow z y) a) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -2.8e+83) || !(b <= 2.95e+54)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = x * ((pow(z, y) / a) / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-2.8d+83)) .or. (.not. (b <= 2.95d+54))) then
tmp = x / (a * (y * exp(b)))
else
tmp = x * (((z ** y) / a) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -2.8e+83) || !(b <= 2.95e+54)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = x * ((Math.pow(z, y) / a) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -2.8e+83) or not (b <= 2.95e+54): tmp = x / (a * (y * math.exp(b))) else: tmp = x * ((math.pow(z, y) / a) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -2.8e+83) || !(b <= 2.95e+54)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -2.8e+83) || ~((b <= 2.95e+54))) tmp = x / (a * (y * exp(b))); else tmp = x * (((z ^ y) / a) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -2.8e+83], N[Not[LessEqual[b, 2.95e+54]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.8 \cdot 10^{+83} \lor \neg \left(b \leq 2.95 \cdot 10^{+54}\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\end{array}
\end{array}
if b < -2.8e83 or 2.9499999999999999e54 < b Initial program 100.0%
associate-*l/85.1%
*-commutative85.1%
Simplified41.6%
Taylor expanded in y around 0 58.5%
associate-/l*63.4%
sub-neg63.4%
metadata-eval63.4%
associate-/l*63.4%
Simplified63.4%
Taylor expanded in t around 0 84.4%
if -2.8e83 < b < 2.9499999999999999e54Initial program 97.9%
associate-*r/96.5%
sub-neg96.5%
exp-sum90.7%
associate-/l*90.7%
associate-/r/90.1%
exp-neg90.1%
associate-*r/90.1%
Simplified80.1%
Taylor expanded in t around 0 69.7%
associate-*r*67.8%
*-commutative67.8%
associate-*r*69.7%
Simplified69.7%
Taylor expanded in b around 0 69.8%
*-commutative69.8%
associate-/r*74.3%
Simplified74.3%
Final simplification78.3%
(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/86.9%
*-commutative86.9%
Simplified62.1%
Taylor expanded in y around 0 63.9%
associate-/l*64.1%
sub-neg64.1%
metadata-eval64.1%
associate-/l*64.1%
Simplified64.1%
Taylor expanded in t around 0 60.9%
Final simplification60.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -7.6e+49)
(/ (* x (/ (- b) a)) y)
(if (<= b 5e-293)
(/ 1.0 (/ (* y a) x))
(if (<= b 3.1e-186) (/ (/ x a) y) (/ x (* y (* a (+ 1.0 b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -7.6e+49) {
tmp = (x * (-b / a)) / y;
} else if (b <= 5e-293) {
tmp = 1.0 / ((y * a) / x);
} else if (b <= 3.1e-186) {
tmp = (x / a) / y;
} else {
tmp = x / (y * (a * (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 <= (-7.6d+49)) then
tmp = (x * (-b / a)) / y
else if (b <= 5d-293) then
tmp = 1.0d0 / ((y * a) / x)
else if (b <= 3.1d-186) then
tmp = (x / a) / y
else
tmp = x / (y * (a * (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 <= -7.6e+49) {
tmp = (x * (-b / a)) / y;
} else if (b <= 5e-293) {
tmp = 1.0 / ((y * a) / x);
} else if (b <= 3.1e-186) {
tmp = (x / a) / y;
} else {
tmp = x / (y * (a * (1.0 + b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -7.6e+49: tmp = (x * (-b / a)) / y elif b <= 5e-293: tmp = 1.0 / ((y * a) / x) elif b <= 3.1e-186: tmp = (x / a) / y else: tmp = x / (y * (a * (1.0 + b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -7.6e+49) tmp = Float64(Float64(x * Float64(Float64(-b) / a)) / y); elseif (b <= 5e-293) tmp = Float64(1.0 / Float64(Float64(y * a) / x)); elseif (b <= 3.1e-186) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(y * Float64(a * Float64(1.0 + b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -7.6e+49) tmp = (x * (-b / a)) / y; elseif (b <= 5e-293) tmp = 1.0 / ((y * a) / x); elseif (b <= 3.1e-186) tmp = (x / a) / y; else tmp = x / (y * (a * (1.0 + b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -7.6e+49], N[(N[(x * N[((-b) / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 5e-293], N[(1.0 / N[(N[(y * a), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.1e-186], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * N[(a * N[(1.0 + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.6 \cdot 10^{+49}:\\
\;\;\;\;\frac{x \cdot \frac{-b}{a}}{y}\\
\mathbf{elif}\;b \leq 5 \cdot 10^{-293}:\\
\;\;\;\;\frac{1}{\frac{y \cdot a}{x}}\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{-186}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot \left(1 + b\right)\right)}\\
\end{array}
\end{array}
if b < -7.5999999999999997e49Initial program 100.0%
Taylor expanded in t around 0 90.3%
mul-1-neg90.3%
Simplified90.3%
Taylor expanded in y around 0 84.6%
exp-neg84.6%
associate-*l/84.6%
*-lft-identity84.6%
exp-sum84.6%
rem-exp-log84.6%
*-commutative84.6%
associate-/r*72.8%
Simplified72.8%
Taylor expanded in b around 0 39.2%
Taylor expanded in b around inf 39.2%
mul-1-neg39.2%
*-commutative39.2%
associate-*r/43.0%
*-commutative43.0%
distribute-rgt-neg-in43.0%
Simplified43.0%
if -7.5999999999999997e49 < b < 5.0000000000000003e-293Initial program 97.4%
associate-*r/98.6%
sub-neg98.6%
exp-sum97.3%
associate-/l*97.3%
associate-/r/97.3%
exp-neg97.3%
associate-*r/97.3%
Simplified85.1%
Taylor expanded in t around 0 72.2%
associate-*r*70.8%
*-commutative70.8%
associate-*r*72.2%
Simplified72.2%
Taylor expanded in b around 0 69.5%
*-commutative69.5%
associate-/r*75.0%
Simplified75.0%
Taylor expanded in y around 0 45.1%
associate-*r/45.0%
clear-num45.8%
*-commutative45.8%
*-rgt-identity45.8%
Applied egg-rr45.8%
if 5.0000000000000003e-293 < b < 3.10000000000000009e-186Initial program 97.5%
associate-*l/93.2%
*-commutative93.2%
Simplified90.6%
Taylor expanded in y around 0 73.9%
associate-/l*73.9%
sub-neg73.9%
metadata-eval73.9%
associate-/l*73.9%
Simplified73.9%
Taylor expanded in t around 0 29.1%
Taylor expanded in b around 0 29.1%
associate-/r*45.4%
Simplified45.4%
if 3.10000000000000009e-186 < b Initial program 99.4%
associate-*l/83.2%
*-commutative83.2%
Simplified54.7%
Taylor expanded in y around 0 55.7%
associate-/l*57.9%
sub-neg57.9%
metadata-eval57.9%
associate-/l*57.9%
Simplified57.9%
Taylor expanded in t around 0 63.7%
Taylor expanded in b around 0 37.1%
Taylor expanded in y around 0 38.9%
Final simplification42.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -6e-262)
(/ (* x (- (- (/ -1.0 a)) (/ b a))) y)
(if (<= b 3.1e-275)
(/ (/ (* x (- b)) a) y)
(if (<= b 9.2e-186) (/ (/ x a) y) (/ x (* y (* a (+ 1.0 b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6e-262) {
tmp = (x * (-(-1.0 / a) - (b / a))) / y;
} else if (b <= 3.1e-275) {
tmp = ((x * -b) / a) / y;
} else if (b <= 9.2e-186) {
tmp = (x / a) / y;
} else {
tmp = x / (y * (a * (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 <= (-6d-262)) then
tmp = (x * (-((-1.0d0) / a) - (b / a))) / y
else if (b <= 3.1d-275) then
tmp = ((x * -b) / a) / y
else if (b <= 9.2d-186) then
tmp = (x / a) / y
else
tmp = x / (y * (a * (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 <= -6e-262) {
tmp = (x * (-(-1.0 / a) - (b / a))) / y;
} else if (b <= 3.1e-275) {
tmp = ((x * -b) / a) / y;
} else if (b <= 9.2e-186) {
tmp = (x / a) / y;
} else {
tmp = x / (y * (a * (1.0 + b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -6e-262: tmp = (x * (-(-1.0 / a) - (b / a))) / y elif b <= 3.1e-275: tmp = ((x * -b) / a) / y elif b <= 9.2e-186: tmp = (x / a) / y else: tmp = x / (y * (a * (1.0 + b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -6e-262) tmp = Float64(Float64(x * Float64(Float64(-Float64(-1.0 / a)) - Float64(b / a))) / y); elseif (b <= 3.1e-275) tmp = Float64(Float64(Float64(x * Float64(-b)) / a) / y); elseif (b <= 9.2e-186) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(y * Float64(a * Float64(1.0 + b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -6e-262) tmp = (x * (-(-1.0 / a) - (b / a))) / y; elseif (b <= 3.1e-275) tmp = ((x * -b) / a) / y; elseif (b <= 9.2e-186) tmp = (x / a) / y; else tmp = x / (y * (a * (1.0 + b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -6e-262], N[(N[(x * N[((-N[(-1.0 / a), $MachinePrecision]) - N[(b / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 3.1e-275], N[(N[(N[(x * (-b)), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 9.2e-186], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * N[(a * N[(1.0 + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6 \cdot 10^{-262}:\\
\;\;\;\;\frac{x \cdot \left(\left(-\frac{-1}{a}\right) - \frac{b}{a}\right)}{y}\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{-275}:\\
\;\;\;\;\frac{\frac{x \cdot \left(-b\right)}{a}}{y}\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{-186}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot \left(1 + b\right)\right)}\\
\end{array}
\end{array}
if b < -6.00000000000000036e-262Initial program 98.3%
Taylor expanded in t around 0 79.8%
mul-1-neg79.8%
Simplified79.8%
Taylor expanded in y around 0 63.4%
exp-neg63.4%
associate-*l/63.4%
*-lft-identity63.4%
exp-sum64.2%
rem-exp-log64.8%
*-commutative64.8%
associate-/r*58.8%
Simplified58.8%
Taylor expanded in b around 0 41.5%
Taylor expanded in x around -inf 43.2%
associate-*r/43.2%
mul-1-neg43.2%
distribute-rgt-neg-in43.2%
unpow-143.2%
sub-neg43.2%
unpow-143.2%
distribute-neg-frac43.2%
metadata-eval43.2%
Simplified43.2%
if -6.00000000000000036e-262 < b < 3.1e-275Initial program 99.2%
Taylor expanded in t around 0 70.8%
mul-1-neg70.8%
Simplified70.8%
Taylor expanded in y around 0 18.8%
exp-neg18.8%
associate-*l/18.8%
*-lft-identity18.8%
exp-sum18.8%
rem-exp-log18.8%
*-commutative18.8%
associate-/r*18.8%
Simplified18.8%
Taylor expanded in b around 0 18.8%
Taylor expanded in b around inf 54.8%
if 3.1e-275 < b < 9.2000000000000003e-186Initial program 97.6%
associate-*l/92.4%
*-commutative92.4%
Simplified89.2%
Taylor expanded in y around 0 69.0%
associate-/l*69.0%
sub-neg69.0%
metadata-eval69.0%
associate-/l*69.0%
Simplified69.0%
Taylor expanded in t around 0 29.3%
Taylor expanded in b around 0 29.3%
associate-/r*48.7%
Simplified48.7%
if 9.2000000000000003e-186 < b Initial program 99.4%
associate-*l/83.2%
*-commutative83.2%
Simplified54.7%
Taylor expanded in y around 0 55.7%
associate-/l*57.9%
sub-neg57.9%
metadata-eval57.9%
associate-/l*57.9%
Simplified57.9%
Taylor expanded in t around 0 63.7%
Taylor expanded in b around 0 37.1%
Taylor expanded in y around 0 38.9%
Final simplification42.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.25e+32)
(/ (/ (* a (- x (* x b))) (* a a)) y)
(if (<= b 7.2e-293)
(/ 1.0 (/ (* y a) x))
(if (<= b 2.25e-185) (/ (/ x a) y) (/ x (* y (* a (+ 1.0 b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.25e+32) {
tmp = ((a * (x - (x * b))) / (a * a)) / y;
} else if (b <= 7.2e-293) {
tmp = 1.0 / ((y * a) / x);
} else if (b <= 2.25e-185) {
tmp = (x / a) / y;
} else {
tmp = x / (y * (a * (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 <= (-1.25d+32)) then
tmp = ((a * (x - (x * b))) / (a * a)) / y
else if (b <= 7.2d-293) then
tmp = 1.0d0 / ((y * a) / x)
else if (b <= 2.25d-185) then
tmp = (x / a) / y
else
tmp = x / (y * (a * (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 <= -1.25e+32) {
tmp = ((a * (x - (x * b))) / (a * a)) / y;
} else if (b <= 7.2e-293) {
tmp = 1.0 / ((y * a) / x);
} else if (b <= 2.25e-185) {
tmp = (x / a) / y;
} else {
tmp = x / (y * (a * (1.0 + b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.25e+32: tmp = ((a * (x - (x * b))) / (a * a)) / y elif b <= 7.2e-293: tmp = 1.0 / ((y * a) / x) elif b <= 2.25e-185: tmp = (x / a) / y else: tmp = x / (y * (a * (1.0 + b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.25e+32) tmp = Float64(Float64(Float64(a * Float64(x - Float64(x * b))) / Float64(a * a)) / y); elseif (b <= 7.2e-293) tmp = Float64(1.0 / Float64(Float64(y * a) / x)); elseif (b <= 2.25e-185) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(y * Float64(a * Float64(1.0 + b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.25e+32) tmp = ((a * (x - (x * b))) / (a * a)) / y; elseif (b <= 7.2e-293) tmp = 1.0 / ((y * a) / x); elseif (b <= 2.25e-185) tmp = (x / a) / y; else tmp = x / (y * (a * (1.0 + b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.25e+32], N[(N[(N[(a * N[(x - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 7.2e-293], N[(1.0 / N[(N[(y * a), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.25e-185], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * N[(a * N[(1.0 + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.25 \cdot 10^{+32}:\\
\;\;\;\;\frac{\frac{a \cdot \left(x - x \cdot b\right)}{a \cdot a}}{y}\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{-293}:\\
\;\;\;\;\frac{1}{\frac{y \cdot a}{x}}\\
\mathbf{elif}\;b \leq 2.25 \cdot 10^{-185}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot \left(1 + b\right)\right)}\\
\end{array}
\end{array}
if b < -1.2499999999999999e32Initial program 100.0%
Taylor expanded in t around 0 88.9%
mul-1-neg88.9%
Simplified88.9%
Taylor expanded in y around 0 83.3%
exp-neg83.3%
associate-*l/83.3%
*-lft-identity83.3%
exp-sum83.3%
rem-exp-log83.3%
*-commutative83.3%
associate-/r*72.0%
Simplified72.0%
Taylor expanded in b around 0 39.7%
associate-*r/39.7%
frac-add46.6%
neg-mul-146.6%
distribute-rgt-neg-in46.6%
Applied egg-rr46.6%
+-commutative46.6%
*-commutative46.6%
distribute-lft-out46.6%
distribute-rgt-neg-out46.6%
*-commutative46.6%
unsub-neg46.6%
Simplified46.6%
if -1.2499999999999999e32 < b < 7.1999999999999997e-293Initial program 97.3%
associate-*r/98.6%
sub-neg98.6%
exp-sum98.6%
associate-/l*98.6%
associate-/r/98.6%
exp-neg98.6%
associate-*r/98.6%
Simplified86.0%
Taylor expanded in t around 0 72.8%
associate-*r*71.4%
*-commutative71.4%
associate-*r*72.8%
Simplified72.8%
Taylor expanded in b around 0 70.0%
*-commutative70.0%
associate-/r*75.6%
Simplified75.6%
Taylor expanded in y around 0 44.9%
associate-*r/44.8%
clear-num45.6%
*-commutative45.6%
*-rgt-identity45.6%
Applied egg-rr45.6%
if 7.1999999999999997e-293 < b < 2.2500000000000001e-185Initial program 97.5%
associate-*l/93.2%
*-commutative93.2%
Simplified90.6%
Taylor expanded in y around 0 73.9%
associate-/l*73.9%
sub-neg73.9%
metadata-eval73.9%
associate-/l*73.9%
Simplified73.9%
Taylor expanded in t around 0 29.1%
Taylor expanded in b around 0 29.1%
associate-/r*45.4%
Simplified45.4%
if 2.2500000000000001e-185 < b Initial program 99.4%
associate-*l/83.2%
*-commutative83.2%
Simplified54.7%
Taylor expanded in y around 0 55.7%
associate-/l*57.9%
sub-neg57.9%
metadata-eval57.9%
associate-/l*57.9%
Simplified57.9%
Taylor expanded in t around 0 63.7%
Taylor expanded in b around 0 37.1%
Taylor expanded in y around 0 38.9%
Final simplification43.0%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.5e+83) (* (/ b a) (/ (- x) y)) (if (<= b 2.8e+54) (/ 1.0 (/ (* y a) x)) (/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.5e+83) {
tmp = (b / a) * (-x / y);
} else if (b <= 2.8e+54) {
tmp = 1.0 / ((y * a) / x);
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-2.5d+83)) then
tmp = (b / a) * (-x / y)
else if (b <= 2.8d+54) then
tmp = 1.0d0 / ((y * a) / x)
else
tmp = x / (y * (a * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.5e+83) {
tmp = (b / a) * (-x / y);
} else if (b <= 2.8e+54) {
tmp = 1.0 / ((y * a) / x);
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.5e+83: tmp = (b / a) * (-x / y) elif b <= 2.8e+54: tmp = 1.0 / ((y * a) / x) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.5e+83) tmp = Float64(Float64(b / a) * Float64(Float64(-x) / y)); elseif (b <= 2.8e+54) tmp = Float64(1.0 / Float64(Float64(y * a) / x)); else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.5e+83) tmp = (b / a) * (-x / y); elseif (b <= 2.8e+54) tmp = 1.0 / ((y * a) / x); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.5e+83], N[(N[(b / a), $MachinePrecision] * N[((-x) / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.8e+54], N[(1.0 / N[(N[(y * a), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.5 \cdot 10^{+83}:\\
\;\;\;\;\frac{b}{a} \cdot \frac{-x}{y}\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{+54}:\\
\;\;\;\;\frac{1}{\frac{y \cdot a}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -2.50000000000000014e83Initial program 100.0%
Taylor expanded in t around 0 93.3%
mul-1-neg93.3%
Simplified93.3%
Taylor expanded in y around 0 86.6%
exp-neg86.6%
associate-*l/86.6%
*-lft-identity86.6%
exp-sum86.6%
rem-exp-log86.6%
*-commutative86.6%
associate-/r*75.2%
Simplified75.2%
Taylor expanded in b around 0 40.6%
Taylor expanded in b around inf 36.3%
associate-*r/36.3%
mul-1-neg36.3%
distribute-rgt-neg-out36.3%
*-commutative36.3%
times-frac42.6%
Simplified42.6%
if -2.50000000000000014e83 < b < 2.80000000000000015e54Initial program 97.9%
associate-*r/96.5%
sub-neg96.5%
exp-sum90.7%
associate-/l*90.7%
associate-/r/90.1%
exp-neg90.1%
associate-*r/90.1%
Simplified80.1%
Taylor expanded in t around 0 69.7%
associate-*r*67.8%
*-commutative67.8%
associate-*r*69.7%
Simplified69.7%
Taylor expanded in b around 0 69.8%
*-commutative69.8%
associate-/r*74.3%
Simplified74.3%
Taylor expanded in y around 0 38.1%
associate-*r/38.1%
clear-num38.5%
*-commutative38.5%
*-rgt-identity38.5%
Applied egg-rr38.5%
if 2.80000000000000015e54 < b Initial program 100.0%
associate-*l/82.5%
*-commutative82.5%
Simplified42.1%
Taylor expanded in y around 0 56.3%
associate-/l*63.3%
sub-neg63.3%
metadata-eval63.3%
associate-/l*63.3%
Simplified63.3%
Taylor expanded in t around 0 82.7%
Taylor expanded in b around 0 39.0%
Taylor expanded in b around -inf 42.3%
Final simplification40.0%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.55e+50) (/ (* (/ x a) (- b)) y) (if (<= b 1.05e+55) (/ 1.0 (/ (* y a) x)) (/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.55e+50) {
tmp = ((x / a) * -b) / y;
} else if (b <= 1.05e+55) {
tmp = 1.0 / ((y * a) / x);
} 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 <= (-1.55d+50)) then
tmp = ((x / a) * -b) / y
else if (b <= 1.05d+55) then
tmp = 1.0d0 / ((y * a) / x)
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 <= -1.55e+50) {
tmp = ((x / a) * -b) / y;
} else if (b <= 1.05e+55) {
tmp = 1.0 / ((y * a) / x);
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.55e+50: tmp = ((x / a) * -b) / y elif b <= 1.05e+55: tmp = 1.0 / ((y * a) / x) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.55e+50) tmp = Float64(Float64(Float64(x / a) * Float64(-b)) / y); elseif (b <= 1.05e+55) tmp = Float64(1.0 / Float64(Float64(y * a) / x)); 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 <= -1.55e+50) tmp = ((x / a) * -b) / y; elseif (b <= 1.05e+55) tmp = 1.0 / ((y * a) / x); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.55e+50], N[(N[(N[(x / a), $MachinePrecision] * (-b)), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 1.05e+55], N[(1.0 / N[(N[(y * a), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.55 \cdot 10^{+50}:\\
\;\;\;\;\frac{\frac{x}{a} \cdot \left(-b\right)}{y}\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{+55}:\\
\;\;\;\;\frac{1}{\frac{y \cdot a}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.55000000000000001e50Initial program 100.0%
Taylor expanded in t around 0 90.3%
mul-1-neg90.3%
Simplified90.3%
Taylor expanded in y around 0 84.6%
exp-neg84.6%
associate-*l/84.6%
*-lft-identity84.6%
exp-sum84.6%
rem-exp-log84.6%
*-commutative84.6%
associate-/r*72.8%
Simplified72.8%
Taylor expanded in b around 0 39.2%
Taylor expanded in b around inf 39.2%
mul-1-neg39.2%
associate-*r/39.1%
distribute-rgt-neg-in39.1%
Simplified39.1%
if -1.55000000000000001e50 < b < 1.05e55Initial program 97.8%
associate-*r/96.4%
sub-neg96.4%
exp-sum92.3%
associate-/l*92.3%
associate-/r/91.6%
exp-neg91.6%
associate-*r/91.7%
Simplified81.8%
Taylor expanded in t around 0 69.6%
associate-*r*68.3%
*-commutative68.3%
associate-*r*69.6%
Simplified69.6%
Taylor expanded in b around 0 69.7%
*-commutative69.7%
associate-/r*73.7%
Simplified73.7%
Taylor expanded in y around 0 39.1%
associate-*r/39.1%
clear-num39.5%
*-commutative39.5%
*-rgt-identity39.5%
Applied egg-rr39.5%
if 1.05e55 < b Initial program 100.0%
associate-*l/82.5%
*-commutative82.5%
Simplified42.1%
Taylor expanded in y around 0 56.3%
associate-/l*63.3%
sub-neg63.3%
metadata-eval63.3%
associate-/l*63.3%
Simplified63.3%
Taylor expanded in t around 0 82.7%
Taylor expanded in b around 0 39.0%
Taylor expanded in b around -inf 42.3%
Final simplification40.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b -4.2e+49) (/ (* x (/ (- b) a)) y) (if (<= b 5.8e+54) (/ 1.0 (/ (* y a) x)) (/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.2e+49) {
tmp = (x * (-b / a)) / y;
} else if (b <= 5.8e+54) {
tmp = 1.0 / ((y * a) / x);
} 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 <= (-4.2d+49)) then
tmp = (x * (-b / a)) / y
else if (b <= 5.8d+54) then
tmp = 1.0d0 / ((y * a) / x)
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 <= -4.2e+49) {
tmp = (x * (-b / a)) / y;
} else if (b <= 5.8e+54) {
tmp = 1.0 / ((y * a) / x);
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -4.2e+49: tmp = (x * (-b / a)) / y elif b <= 5.8e+54: tmp = 1.0 / ((y * a) / x) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -4.2e+49) tmp = Float64(Float64(x * Float64(Float64(-b) / a)) / y); elseif (b <= 5.8e+54) tmp = Float64(1.0 / Float64(Float64(y * a) / x)); 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 <= -4.2e+49) tmp = (x * (-b / a)) / y; elseif (b <= 5.8e+54) tmp = 1.0 / ((y * a) / x); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -4.2e+49], N[(N[(x * N[((-b) / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 5.8e+54], N[(1.0 / N[(N[(y * a), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.2 \cdot 10^{+49}:\\
\;\;\;\;\frac{x \cdot \frac{-b}{a}}{y}\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{+54}:\\
\;\;\;\;\frac{1}{\frac{y \cdot a}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -4.20000000000000022e49Initial program 100.0%
Taylor expanded in t around 0 90.3%
mul-1-neg90.3%
Simplified90.3%
Taylor expanded in y around 0 84.6%
exp-neg84.6%
associate-*l/84.6%
*-lft-identity84.6%
exp-sum84.6%
rem-exp-log84.6%
*-commutative84.6%
associate-/r*72.8%
Simplified72.8%
Taylor expanded in b around 0 39.2%
Taylor expanded in b around inf 39.2%
mul-1-neg39.2%
*-commutative39.2%
associate-*r/43.0%
*-commutative43.0%
distribute-rgt-neg-in43.0%
Simplified43.0%
if -4.20000000000000022e49 < b < 5.7999999999999997e54Initial program 97.8%
associate-*r/96.4%
sub-neg96.4%
exp-sum92.3%
associate-/l*92.3%
associate-/r/91.6%
exp-neg91.6%
associate-*r/91.7%
Simplified81.8%
Taylor expanded in t around 0 69.6%
associate-*r*68.3%
*-commutative68.3%
associate-*r*69.6%
Simplified69.6%
Taylor expanded in b around 0 69.7%
*-commutative69.7%
associate-/r*73.7%
Simplified73.7%
Taylor expanded in y around 0 39.1%
associate-*r/39.1%
clear-num39.5%
*-commutative39.5%
*-rgt-identity39.5%
Applied egg-rr39.5%
if 5.7999999999999997e54 < b Initial program 100.0%
associate-*l/82.5%
*-commutative82.5%
Simplified42.1%
Taylor expanded in y around 0 56.3%
associate-/l*63.3%
sub-neg63.3%
metadata-eval63.3%
associate-/l*63.3%
Simplified63.3%
Taylor expanded in t around 0 82.7%
Taylor expanded in b around 0 39.0%
Taylor expanded in b around -inf 42.3%
Final simplification40.8%
(FPCore (x y z t a b) :precision binary64 (if (<= b -15500.0) (/ (* x (/ (- b) a)) y) (/ x (* a (+ y (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -15500.0) {
tmp = (x * (-b / a)) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-15500.0d0)) then
tmp = (x * (-b / a)) / y
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -15500.0) {
tmp = (x * (-b / a)) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -15500.0: tmp = (x * (-b / a)) / y else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -15500.0) tmp = Float64(Float64(x * Float64(Float64(-b) / a)) / y); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -15500.0) tmp = (x * (-b / a)) / y; else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -15500.0], N[(N[(x * N[((-b) / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -15500:\\
\;\;\;\;\frac{x \cdot \frac{-b}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -15500Initial program 100.0%
Taylor expanded in t around 0 89.8%
mul-1-neg89.8%
Simplified89.8%
Taylor expanded in y around 0 84.7%
exp-neg84.7%
associate-*l/84.7%
*-lft-identity84.7%
exp-sum84.7%
rem-exp-log84.7%
*-commutative84.7%
associate-/r*74.4%
Simplified74.4%
Taylor expanded in b around 0 41.5%
Taylor expanded in b around inf 41.5%
mul-1-neg41.5%
*-commutative41.5%
associate-*r/44.8%
*-commutative44.8%
distribute-rgt-neg-in44.8%
Simplified44.8%
if -15500 < b Initial program 98.4%
associate-*l/86.6%
*-commutative86.6%
Simplified67.1%
Taylor expanded in y around 0 64.4%
associate-/l*64.2%
sub-neg64.2%
metadata-eval64.2%
associate-/l*64.2%
Simplified64.2%
Taylor expanded in t around 0 53.9%
Taylor expanded in b around 0 38.4%
Final simplification39.9%
(FPCore (x y z t a b) :precision binary64 (if (<= a 5.5e-197) (/ (/ x y) a) (* x (/ 1.0 (* y a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 5.5e-197) {
tmp = (x / y) / a;
} else {
tmp = x * (1.0 / (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 <= 5.5d-197) then
tmp = (x / y) / a
else
tmp = x * (1.0d0 / (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 <= 5.5e-197) {
tmp = (x / y) / a;
} else {
tmp = x * (1.0 / (y * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 5.5e-197: tmp = (x / y) / a else: tmp = x * (1.0 / (y * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 5.5e-197) tmp = Float64(Float64(x / y) / a); else tmp = Float64(x * Float64(1.0 / Float64(y * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= 5.5e-197) tmp = (x / y) / a; else tmp = x * (1.0 / (y * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 5.5e-197], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 5.5 \cdot 10^{-197}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\end{array}
\end{array}
if a < 5.50000000000000037e-197Initial program 99.1%
associate-*l/87.4%
*-commutative87.4%
Simplified54.8%
Taylor expanded in b around 0 58.4%
expm1-log1p-u41.4%
expm1-udef40.0%
*-commutative40.0%
pow-sub40.0%
pow140.0%
Applied egg-rr40.0%
expm1-def41.6%
expm1-log1p58.6%
Simplified58.6%
Taylor expanded in y around 0 59.4%
Taylor expanded in t around 0 25.8%
associate-/r*38.5%
Simplified38.5%
if 5.50000000000000037e-197 < a Initial program 98.6%
associate-*r/99.2%
sub-neg99.2%
exp-sum80.4%
associate-/l*80.4%
associate-/r/80.4%
exp-neg80.4%
associate-*r/80.4%
Simplified71.9%
Taylor expanded in t around 0 69.3%
associate-*r*66.7%
*-commutative66.7%
associate-*r*69.3%
Simplified69.3%
Taylor expanded in b around 0 57.2%
*-commutative57.2%
associate-/r*62.3%
Simplified62.3%
Taylor expanded in y around 0 33.2%
Final simplification34.4%
(FPCore (x y z t a b) :precision binary64 (if (<= a 3e+35) (/ 1.0 (/ a (/ x y))) (* x (/ 1.0 (* y a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 3e+35) {
tmp = 1.0 / (a / (x / y));
} else {
tmp = x * (1.0 / (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 <= 3d+35) then
tmp = 1.0d0 / (a / (x / y))
else
tmp = x * (1.0d0 / (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 <= 3e+35) {
tmp = 1.0 / (a / (x / y));
} else {
tmp = x * (1.0 / (y * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 3e+35: tmp = 1.0 / (a / (x / y)) else: tmp = x * (1.0 / (y * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 3e+35) tmp = Float64(1.0 / Float64(a / Float64(x / y))); else tmp = Float64(x * Float64(1.0 / Float64(y * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= 3e+35) tmp = 1.0 / (a / (x / y)); else tmp = x * (1.0 / (y * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 3e+35], N[(1.0 / N[(a / N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 3 \cdot 10^{+35}:\\
\;\;\;\;\frac{1}{\frac{a}{\frac{x}{y}}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\end{array}
\end{array}
if a < 2.99999999999999991e35Initial program 99.4%
associate-*r/97.1%
sub-neg97.1%
exp-sum74.7%
associate-/l*74.7%
associate-/r/72.6%
exp-neg72.6%
associate-*r/72.6%
Simplified63.8%
Taylor expanded in t around 0 71.0%
associate-*r*66.1%
*-commutative66.1%
associate-*r*71.0%
Simplified71.0%
Taylor expanded in b around 0 62.5%
*-commutative62.5%
associate-/r*62.5%
Simplified62.5%
Taylor expanded in y around 0 30.4%
div-inv30.4%
associate-/r*35.7%
clear-num36.0%
Applied egg-rr36.0%
if 2.99999999999999991e35 < a Initial program 97.9%
associate-*r/98.9%
sub-neg98.9%
exp-sum82.1%
associate-/l*82.1%
associate-/r/82.1%
exp-neg82.1%
associate-*r/82.1%
Simplified71.6%
Taylor expanded in t around 0 66.9%
associate-*r*63.4%
*-commutative63.4%
associate-*r*66.9%
Simplified66.9%
Taylor expanded in b around 0 49.9%
*-commutative49.9%
associate-/r*58.7%
Simplified58.7%
Taylor expanded in y around 0 32.9%
Final simplification34.6%
(FPCore (x y z t a b) :precision binary64 (if (<= y 5.8e+54) (/ (/ x a) y) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 5.8e+54) {
tmp = (x / a) / y;
} 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 (y <= 5.8d+54) then
tmp = (x / a) / y
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 (y <= 5.8e+54) {
tmp = (x / a) / y;
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= 5.8e+54: tmp = (x / a) / y else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= 5.8e+54) tmp = Float64(Float64(x / a) / y); 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 (y <= 5.8e+54) tmp = (x / a) / y; else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, 5.8e+54], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 5.8 \cdot 10^{+54}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if y < 5.7999999999999997e54Initial program 98.4%
associate-*l/89.0%
*-commutative89.0%
Simplified67.4%
Taylor expanded in y around 0 71.1%
associate-/l*71.9%
sub-neg71.9%
metadata-eval71.9%
associate-/l*71.9%
Simplified71.9%
Taylor expanded in t around 0 64.6%
Taylor expanded in b around 0 32.7%
associate-/r*35.3%
Simplified35.3%
if 5.7999999999999997e54 < y Initial program 100.0%
associate-*l/79.7%
*-commutative79.7%
Simplified44.1%
Taylor expanded in y around 0 39.7%
associate-/l*38.0%
sub-neg38.0%
metadata-eval38.0%
associate-/l*38.0%
Simplified38.0%
Taylor expanded in t around 0 48.6%
Taylor expanded in b around 0 38.7%
Taylor expanded in b around inf 36.7%
Final simplification35.6%
(FPCore (x y z t a b) :precision binary64 (if (<= b 5e+54) (/ (/ x a) y) (/ x (* y (* a b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 5e+54) {
tmp = (x / a) / y;
} 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 <= 5d+54) then
tmp = (x / a) / y
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 <= 5e+54) {
tmp = (x / a) / y;
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 5e+54: tmp = (x / a) / y else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 5e+54) tmp = Float64(Float64(x / a) / y); 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 <= 5e+54) tmp = (x / a) / y; else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 5e+54], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 5 \cdot 10^{+54}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < 5.00000000000000005e54Initial program 98.4%
associate-*l/88.1%
*-commutative88.1%
Simplified67.8%
Taylor expanded in y around 0 66.1%
associate-/l*64.3%
sub-neg64.3%
metadata-eval64.3%
associate-/l*64.3%
Simplified64.3%
Taylor expanded in t around 0 54.6%
Taylor expanded in b around 0 33.3%
associate-/r*34.1%
Simplified34.1%
if 5.00000000000000005e54 < b Initial program 100.0%
associate-*l/82.5%
*-commutative82.5%
Simplified42.1%
Taylor expanded in y around 0 56.3%
associate-/l*63.3%
sub-neg63.3%
metadata-eval63.3%
associate-/l*63.3%
Simplified63.3%
Taylor expanded in t around 0 82.7%
Taylor expanded in b around 0 39.0%
Taylor expanded in b around -inf 42.3%
Final simplification35.9%
(FPCore (x y z t a b) :precision binary64 (if (<= a 1.4e-106) (/ (/ x a) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 1.4e-106) {
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 <= 1.4d-106) 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 <= 1.4e-106) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 1.4e-106: tmp = (x / a) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 1.4e-106) 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 <= 1.4e-106) tmp = (x / a) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 1.4e-106], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 1.4 \cdot 10^{-106}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if a < 1.39999999999999994e-106Initial program 99.3%
associate-*l/86.6%
*-commutative86.6%
Simplified56.1%
Taylor expanded in y around 0 58.6%
associate-/l*62.0%
sub-neg62.0%
metadata-eval62.0%
associate-/l*62.0%
Simplified62.0%
Taylor expanded in t around 0 59.5%
Taylor expanded in b around 0 27.4%
associate-/r*35.0%
Simplified35.0%
if 1.39999999999999994e-106 < a Initial program 98.5%
associate-*l/87.0%
*-commutative87.0%
Simplified65.1%
Taylor expanded in y around 0 66.6%
associate-/l*65.2%
sub-neg65.2%
metadata-eval65.2%
associate-/l*65.2%
Simplified65.2%
Taylor expanded in t around 0 61.6%
Taylor expanded in b around 0 33.6%
*-commutative33.6%
Simplified33.6%
Final simplification34.0%
(FPCore (x y z t a b) :precision binary64 (if (<= a 1.6e-193) (/ (/ x y) a) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 1.6e-193) {
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 (a <= 1.6d-193) 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 (a <= 1.6e-193) {
tmp = (x / y) / a;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 1.6e-193: tmp = (x / y) / a else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 1.6e-193) tmp = Float64(Float64(x / y) / a); 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 <= 1.6e-193) tmp = (x / y) / a; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 1.6e-193], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 1.6 \cdot 10^{-193}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if a < 1.60000000000000003e-193Initial program 99.1%
associate-*l/87.6%
*-commutative87.6%
Simplified55.5%
Taylor expanded in b around 0 57.5%
expm1-log1p-u40.8%
expm1-udef39.3%
*-commutative39.3%
pow-sub39.3%
pow139.3%
Applied egg-rr39.3%
expm1-def40.9%
expm1-log1p57.7%
Simplified57.7%
Taylor expanded in y around 0 58.4%
Taylor expanded in t around 0 25.4%
associate-/r*37.9%
Simplified37.9%
if 1.60000000000000003e-193 < a Initial program 98.6%
associate-*l/86.6%
*-commutative86.6%
Simplified64.1%
Taylor expanded in y around 0 66.4%
associate-/l*65.7%
sub-neg65.7%
metadata-eval65.7%
associate-/l*65.7%
Simplified65.7%
Taylor expanded in t around 0 61.1%
Taylor expanded in b around 0 33.4%
*-commutative33.4%
Simplified33.4%
Final simplification34.4%
(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/86.9%
*-commutative86.9%
Simplified62.1%
Taylor expanded in y around 0 63.9%
associate-/l*64.1%
sub-neg64.1%
metadata-eval64.1%
associate-/l*64.1%
Simplified64.1%
Taylor expanded in t around 0 60.9%
Taylor expanded in b around 0 31.5%
*-commutative31.5%
Simplified31.5%
Final simplification31.5%
(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 2023196
(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))