
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (+ t -1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t + (-1.0d0)) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t + -1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t + -1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t + -1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t + -1\right) \cdot \log a\right) - b}}{y}
\end{array}
Initial program 99.0%
Final simplification99.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -5e+20)
(/ (* x (exp (- (- (* y (log z)) (log a)) b))) y)
(if (<= y 6.2e+85)
(/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)
(/ (* x (/ (pow z y) a)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -5e+20) {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
} else if (y <= 6.2e+85) {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
} else {
tmp = (x * (pow(z, y) / a)) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-5d+20)) then
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y
else if (y <= 6.2d+85) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
else
tmp = (x * ((z ** y) / a)) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -5e+20) {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
} else if (y <= 6.2e+85) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
} else {
tmp = (x * (Math.pow(z, y) / a)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -5e+20: tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y elif y <= 6.2e+85: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y else: tmp = (x * (math.pow(z, y) / a)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -5e+20) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); elseif (y <= 6.2e+85) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); else tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -5e+20) tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; elseif (y <= 6.2e+85) tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; else tmp = (x * ((z ^ y) / a)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -5e+20], 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], If[LessEqual[y, 6.2e+85], 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[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5 \cdot 10^{+20}:\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{+85}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\end{array}
\end{array}
if y < -5e20Initial program 100.0%
Taylor expanded in t around 0 92.4%
+-commutative92.4%
mul-1-neg92.4%
unsub-neg92.4%
Simplified92.4%
if -5e20 < y < 6.20000000000000023e85Initial program 98.2%
Taylor expanded in y around 0 95.4%
if 6.20000000000000023e85 < y Initial program 100.0%
Taylor expanded in t around 0 93.7%
+-commutative93.7%
mul-1-neg93.7%
unsub-neg93.7%
Simplified93.7%
Taylor expanded in b around 0 93.7%
div-exp93.7%
*-commutative93.7%
exp-to-pow93.7%
rem-exp-log93.7%
Simplified93.7%
Final simplification94.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -5e+167) (not (<= y 2.2e+86))) (/ (* 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 <= -5e+167) || !(y <= 2.2e+86)) {
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 <= (-5d+167)) .or. (.not. (y <= 2.2d+86))) 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 <= -5e+167) || !(y <= 2.2e+86)) {
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 <= -5e+167) or not (y <= 2.2e+86): 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 <= -5e+167) || !(y <= 2.2e+86)) tmp = Float64(Float64(x * 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 <= -5e+167) || ~((y <= 2.2e+86))) 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, -5e+167], N[Not[LessEqual[y, 2.2e+86]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $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 -5 \cdot 10^{+167} \lor \neg \left(y \leq 2.2 \cdot 10^{+86}\right):\\
\;\;\;\;\frac{x \cdot \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 < -4.9999999999999997e167 or 2.20000000000000003e86 < y Initial program 100.0%
Taylor expanded in t around 0 93.8%
+-commutative93.8%
mul-1-neg93.8%
unsub-neg93.8%
Simplified93.8%
Taylor expanded in b around 0 91.4%
div-exp91.4%
*-commutative91.4%
exp-to-pow91.4%
rem-exp-log91.4%
Simplified91.4%
if -4.9999999999999997e167 < y < 2.20000000000000003e86Initial program 98.5%
Taylor expanded in y around 0 91.8%
Final simplification91.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -5.4e+205) (not (<= t 3500.0))) (/ (* x (/ (pow a t) a)) y) (/ (* x (pow z y)) (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -5.4e+205) || !(t <= 3500.0)) {
tmp = (x * (pow(a, t) / a)) / y;
} else {
tmp = (x * pow(z, y)) / (a * (y * exp(b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-5.4d+205)) .or. (.not. (t <= 3500.0d0))) then
tmp = (x * ((a ** t) / a)) / y
else
tmp = (x * (z ** y)) / (a * (y * exp(b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -5.4e+205) || !(t <= 3500.0)) {
tmp = (x * (Math.pow(a, t) / a)) / y;
} else {
tmp = (x * Math.pow(z, y)) / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -5.4e+205) or not (t <= 3500.0): tmp = (x * (math.pow(a, t) / a)) / y else: tmp = (x * math.pow(z, y)) / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -5.4e+205) || !(t <= 3500.0)) tmp = Float64(Float64(x * Float64((a ^ t) / a)) / 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 <= -5.4e+205) || ~((t <= 3500.0))) tmp = (x * ((a ^ t) / a)) / y; else tmp = (x * (z ^ y)) / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -5.4e+205], N[Not[LessEqual[t, 3500.0]], $MachinePrecision]], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $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 \leq -5.4 \cdot 10^{+205} \lor \neg \left(t \leq 3500\right):\\
\;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if t < -5.40000000000000025e205 or 3500 < t Initial program 100.0%
Taylor expanded in y around 0 90.8%
Taylor expanded in b around 0 82.8%
exp-to-pow82.8%
sub-neg82.8%
metadata-eval82.8%
+-commutative82.8%
Simplified82.8%
+-commutative82.8%
unpow-prod-up82.8%
inv-pow82.8%
Applied egg-rr82.8%
associate-*r/82.8%
*-rgt-identity82.8%
Simplified82.8%
if -5.40000000000000025e205 < t < 3500Initial program 98.5%
associate-*l/89.3%
associate--l+89.3%
exp-sum75.8%
associate-*r*75.8%
*-commutative75.8%
exp-to-pow75.8%
exp-diff67.6%
*-commutative67.6%
exp-to-pow68.0%
sub-neg68.0%
metadata-eval68.0%
Simplified68.0%
Taylor expanded in t around 0 81.9%
Final simplification82.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (pow a t) a)) (t_2 (/ (* x (/ (pow z y) a)) y)))
(if (<= y -9e+22)
t_2
(if (<= y -5e-180)
(* (/ x y) (/ t_1 (exp b)))
(if (<= y -6.7e-289)
(/ (* x t_1) y)
(if (<= y 3.4e-8) (/ (/ x (* a (exp b))) y) t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = pow(a, t) / a;
double t_2 = (x * (pow(z, y) / a)) / y;
double tmp;
if (y <= -9e+22) {
tmp = t_2;
} else if (y <= -5e-180) {
tmp = (x / y) * (t_1 / exp(b));
} else if (y <= -6.7e-289) {
tmp = (x * t_1) / y;
} else if (y <= 3.4e-8) {
tmp = (x / (a * exp(b))) / 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) / a
t_2 = (x * ((z ** y) / a)) / y
if (y <= (-9d+22)) then
tmp = t_2
else if (y <= (-5d-180)) then
tmp = (x / y) * (t_1 / exp(b))
else if (y <= (-6.7d-289)) then
tmp = (x * t_1) / y
else if (y <= 3.4d-8) then
tmp = (x / (a * exp(b))) / 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) / a;
double t_2 = (x * (Math.pow(z, y) / a)) / y;
double tmp;
if (y <= -9e+22) {
tmp = t_2;
} else if (y <= -5e-180) {
tmp = (x / y) * (t_1 / Math.exp(b));
} else if (y <= -6.7e-289) {
tmp = (x * t_1) / y;
} else if (y <= 3.4e-8) {
tmp = (x / (a * Math.exp(b))) / y;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, t) / a t_2 = (x * (math.pow(z, y) / a)) / y tmp = 0 if y <= -9e+22: tmp = t_2 elif y <= -5e-180: tmp = (x / y) * (t_1 / math.exp(b)) elif y <= -6.7e-289: tmp = (x * t_1) / y elif y <= 3.4e-8: tmp = (x / (a * math.exp(b))) / y else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64((a ^ t) / a) t_2 = Float64(Float64(x * Float64((z ^ y) / a)) / y) tmp = 0.0 if (y <= -9e+22) tmp = t_2; elseif (y <= -5e-180) tmp = Float64(Float64(x / y) * Float64(t_1 / exp(b))); elseif (y <= -6.7e-289) tmp = Float64(Float64(x * t_1) / y); elseif (y <= 3.4e-8) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (a ^ t) / a; t_2 = (x * ((z ^ y) / a)) / y; tmp = 0.0; if (y <= -9e+22) tmp = t_2; elseif (y <= -5e-180) tmp = (x / y) * (t_1 / exp(b)); elseif (y <= -6.7e-289) tmp = (x * t_1) / y; elseif (y <= 3.4e-8) tmp = (x / (a * exp(b))) / y; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -9e+22], t$95$2, If[LessEqual[y, -5e-180], N[(N[(x / y), $MachinePrecision] * N[(t$95$1 / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -6.7e-289], N[(N[(x * t$95$1), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 3.4e-8], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{{a}^{t}}{a}\\
t_2 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -9 \cdot 10^{+22}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -5 \cdot 10^{-180}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{t_1}{e^{b}}\\
\mathbf{elif}\;y \leq -6.7 \cdot 10^{-289}:\\
\;\;\;\;\frac{x \cdot t_1}{y}\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{-8}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -8.9999999999999996e22 or 3.4e-8 < y Initial program 100.0%
Taylor expanded in t around 0 88.8%
+-commutative88.8%
mul-1-neg88.8%
unsub-neg88.8%
Simplified88.8%
Taylor expanded in b around 0 82.1%
div-exp82.1%
*-commutative82.1%
exp-to-pow82.1%
rem-exp-log82.1%
Simplified82.1%
if -8.9999999999999996e22 < y < -5.0000000000000001e-180Initial program 99.0%
associate-*l/96.4%
associate--l+96.4%
exp-sum85.9%
associate-*r*85.9%
*-commutative85.9%
exp-to-pow85.9%
exp-diff75.4%
*-commutative75.4%
exp-to-pow76.0%
sub-neg76.0%
metadata-eval76.0%
Simplified76.0%
Taylor expanded in y around 0 85.2%
times-frac85.2%
exp-to-pow85.5%
sub-neg85.5%
metadata-eval85.5%
Simplified85.5%
unpow-prod-up85.7%
*-un-lft-identity85.7%
times-frac85.7%
unpow-185.7%
Applied egg-rr85.7%
/-rgt-identity85.7%
associate-*r/85.7%
associate-*r/85.7%
*-rgt-identity85.7%
Simplified85.7%
if -5.0000000000000001e-180 < y < -6.70000000000000015e-289Initial program 99.4%
Taylor expanded in y around 0 99.4%
Taylor expanded in b around 0 90.9%
exp-to-pow91.4%
sub-neg91.4%
metadata-eval91.4%
+-commutative91.4%
Simplified91.4%
+-commutative91.4%
unpow-prod-up91.4%
inv-pow91.4%
Applied egg-rr91.4%
associate-*r/91.4%
*-rgt-identity91.4%
Simplified91.4%
if -6.70000000000000015e-289 < y < 3.4e-8Initial program 96.6%
Taylor expanded in t around 0 80.6%
+-commutative80.6%
mul-1-neg80.6%
unsub-neg80.6%
Simplified80.6%
Taylor expanded in y around 0 80.6%
exp-neg80.6%
associate-*r/80.6%
*-rgt-identity80.6%
+-commutative80.6%
exp-sum80.6%
rem-exp-log81.0%
Simplified81.0%
Final simplification83.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x (* a (exp b))) y)))
(if (<= b -1.9e+29)
t_1
(if (<= b -7.5e-273)
(* (/ x a) (/ (pow z y) y))
(if (<= b 3.2e+102) (/ (* 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 * exp(b))) / y;
double tmp;
if (b <= -1.9e+29) {
tmp = t_1;
} else if (b <= -7.5e-273) {
tmp = (x / a) * (pow(z, y) / y);
} else if (b <= 3.2e+102) {
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 * exp(b))) / y
if (b <= (-1.9d+29)) then
tmp = t_1
else if (b <= (-7.5d-273)) then
tmp = (x / a) * ((z ** y) / y)
else if (b <= 3.2d+102) 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 * Math.exp(b))) / y;
double tmp;
if (b <= -1.9e+29) {
tmp = t_1;
} else if (b <= -7.5e-273) {
tmp = (x / a) * (Math.pow(z, y) / y);
} else if (b <= 3.2e+102) {
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 * math.exp(b))) / y tmp = 0 if b <= -1.9e+29: tmp = t_1 elif b <= -7.5e-273: tmp = (x / a) * (math.pow(z, y) / y) elif b <= 3.2e+102: 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(Float64(x / Float64(a * exp(b))) / y) tmp = 0.0 if (b <= -1.9e+29) tmp = t_1; elseif (b <= -7.5e-273) tmp = Float64(Float64(x / a) * Float64((z ^ y) / y)); elseif (b <= 3.2e+102) tmp = Float64(Float64(x * 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 * exp(b))) / y; tmp = 0.0; if (b <= -1.9e+29) tmp = t_1; elseif (b <= -7.5e-273) tmp = (x / a) * ((z ^ y) / y); elseif (b <= 3.2e+102) 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[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -1.9e+29], t$95$1, If[LessEqual[b, -7.5e-273], N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.2e+102], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{if}\;b \leq -1.9 \cdot 10^{+29}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-273}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y}\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{+102}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -1.89999999999999985e29 or 3.1999999999999999e102 < b Initial program 100.0%
Taylor expanded in t around 0 91.1%
+-commutative91.1%
mul-1-neg91.1%
unsub-neg91.1%
Simplified91.1%
Taylor expanded in y around 0 85.7%
exp-neg85.7%
associate-*r/85.7%
*-rgt-identity85.7%
+-commutative85.7%
exp-sum85.7%
rem-exp-log85.7%
Simplified85.7%
if -1.89999999999999985e29 < b < -7.5000000000000007e-273Initial program 97.7%
Taylor expanded in t around 0 79.3%
+-commutative79.3%
mul-1-neg79.3%
unsub-neg79.3%
Simplified79.3%
Taylor expanded in b around 0 76.1%
div-exp76.1%
*-commutative76.1%
exp-to-pow76.1%
rem-exp-log76.6%
associate-*r/76.6%
associate-/r*68.3%
times-frac71.6%
Simplified71.6%
if -7.5000000000000007e-273 < b < 3.1999999999999999e102Initial program 98.6%
Taylor expanded in y around 0 74.9%
Taylor expanded in b around 0 70.9%
exp-to-pow71.2%
sub-neg71.2%
metadata-eval71.2%
+-commutative71.2%
Simplified71.2%
+-commutative71.2%
unpow-prod-up71.3%
inv-pow71.3%
Applied egg-rr71.3%
associate-*r/71.3%
*-rgt-identity71.3%
Simplified71.3%
Final simplification77.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (/ (pow z y) a)) y)))
(if (<= y -8e+22)
t_1
(if (<= y -6.4e-289)
(/ (* x (/ (pow a t) a)) y)
(if (<= y 3.4e-8) (/ (/ x (* a (exp b))) y) 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 tmp;
if (y <= -8e+22) {
tmp = t_1;
} else if (y <= -6.4e-289) {
tmp = (x * (pow(a, t) / a)) / y;
} else if (y <= 3.4e-8) {
tmp = (x / (a * exp(b))) / 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 * ((z ** y) / a)) / y
if (y <= (-8d+22)) then
tmp = t_1
else if (y <= (-6.4d-289)) then
tmp = (x * ((a ** t) / a)) / y
else if (y <= 3.4d-8) then
tmp = (x / (a * exp(b))) / y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * (Math.pow(z, y) / a)) / y;
double tmp;
if (y <= -8e+22) {
tmp = t_1;
} else if (y <= -6.4e-289) {
tmp = (x * (Math.pow(a, t) / a)) / y;
} else if (y <= 3.4e-8) {
tmp = (x / (a * Math.exp(b))) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * (math.pow(z, y) / a)) / y tmp = 0 if y <= -8e+22: tmp = t_1 elif y <= -6.4e-289: tmp = (x * (math.pow(a, t) / a)) / y elif y <= 3.4e-8: tmp = (x / (a * math.exp(b))) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * Float64((z ^ y) / a)) / y) tmp = 0.0 if (y <= -8e+22) tmp = t_1; elseif (y <= -6.4e-289) tmp = Float64(Float64(x * Float64((a ^ t) / a)) / y); elseif (y <= 3.4e-8) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); 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; tmp = 0.0; if (y <= -8e+22) tmp = t_1; elseif (y <= -6.4e-289) tmp = (x * ((a ^ t) / a)) / y; elseif (y <= 3.4e-8) tmp = (x / (a * exp(b))) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -8e+22], t$95$1, If[LessEqual[y, -6.4e-289], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 3.4e-8], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -8 \cdot 10^{+22}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -6.4 \cdot 10^{-289}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{-8}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -8e22 or 3.4e-8 < y Initial program 100.0%
Taylor expanded in t around 0 88.8%
+-commutative88.8%
mul-1-neg88.8%
unsub-neg88.8%
Simplified88.8%
Taylor expanded in b around 0 82.1%
div-exp82.1%
*-commutative82.1%
exp-to-pow82.1%
rem-exp-log82.1%
Simplified82.1%
if -8e22 < y < -6.4000000000000004e-289Initial program 99.2%
Taylor expanded in y around 0 98.7%
Taylor expanded in b around 0 76.3%
exp-to-pow76.7%
sub-neg76.7%
metadata-eval76.7%
+-commutative76.7%
Simplified76.7%
+-commutative76.7%
unpow-prod-up76.8%
inv-pow76.8%
Applied egg-rr76.8%
associate-*r/76.8%
*-rgt-identity76.8%
Simplified76.8%
if -6.4000000000000004e-289 < y < 3.4e-8Initial program 96.6%
Taylor expanded in t around 0 80.6%
+-commutative80.6%
mul-1-neg80.6%
unsub-neg80.6%
Simplified80.6%
Taylor expanded in y around 0 80.6%
exp-neg80.6%
associate-*r/80.6%
*-rgt-identity80.6%
+-commutative80.6%
exp-sum80.6%
rem-exp-log81.0%
Simplified81.0%
Final simplification80.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -6e+36) (not (<= b 6.6e-10))) (/ (/ x (* a (exp b))) y) (* (/ x a) (/ (pow z y) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -6e+36) || !(b <= 6.6e-10)) {
tmp = (x / (a * exp(b))) / y;
} else {
tmp = (x / a) * (pow(z, y) / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-6d+36)) .or. (.not. (b <= 6.6d-10))) then
tmp = (x / (a * exp(b))) / y
else
tmp = (x / a) * ((z ** y) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -6e+36) || !(b <= 6.6e-10)) {
tmp = (x / (a * Math.exp(b))) / y;
} else {
tmp = (x / a) * (Math.pow(z, y) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -6e+36) or not (b <= 6.6e-10): tmp = (x / (a * math.exp(b))) / y else: tmp = (x / a) * (math.pow(z, y) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -6e+36) || !(b <= 6.6e-10)) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); else tmp = Float64(Float64(x / a) * Float64((z ^ y) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -6e+36) || ~((b <= 6.6e-10))) tmp = (x / (a * exp(b))) / y; else tmp = (x / a) * ((z ^ y) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -6e+36], N[Not[LessEqual[b, 6.6e-10]], $MachinePrecision]], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6 \cdot 10^{+36} \lor \neg \left(b \leq 6.6 \cdot 10^{-10}\right):\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y}\\
\end{array}
\end{array}
if b < -6e36 or 6.6e-10 < b Initial program 100.0%
Taylor expanded in t around 0 87.6%
+-commutative87.6%
mul-1-neg87.6%
unsub-neg87.6%
Simplified87.6%
Taylor expanded in y around 0 82.1%
exp-neg82.1%
associate-*r/82.1%
*-rgt-identity82.1%
+-commutative82.1%
exp-sum82.1%
rem-exp-log82.2%
Simplified82.2%
if -6e36 < b < 6.6e-10Initial program 98.0%
Taylor expanded in t around 0 73.4%
+-commutative73.4%
mul-1-neg73.4%
unsub-neg73.4%
Simplified73.4%
Taylor expanded in b around 0 71.9%
div-exp71.9%
*-commutative71.9%
exp-to-pow71.9%
rem-exp-log72.3%
associate-*r/72.3%
associate-/r*66.8%
times-frac66.1%
Simplified66.1%
Final simplification74.1%
(FPCore (x y z t a b) :precision binary64 (if (<= y 4.5e+174) (/ (/ x (exp b)) (* y a)) (/ (- b) (* a (/ y x)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 4.5e+174) {
tmp = (x / exp(b)) / (y * a);
} else {
tmp = -b / (a * (y / x));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= 4.5d+174) then
tmp = (x / exp(b)) / (y * a)
else
tmp = -b / (a * (y / x))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 4.5e+174) {
tmp = (x / Math.exp(b)) / (y * a);
} else {
tmp = -b / (a * (y / x));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= 4.5e+174: tmp = (x / math.exp(b)) / (y * a) else: tmp = -b / (a * (y / x)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= 4.5e+174) tmp = Float64(Float64(x / exp(b)) / Float64(y * a)); else tmp = Float64(Float64(-b) / Float64(a * Float64(y / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= 4.5e+174) tmp = (x / exp(b)) / (y * a); else tmp = -b / (a * (y / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, 4.5e+174], N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], N[((-b) / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 4.5 \cdot 10^{+174}:\\
\;\;\;\;\frac{\frac{x}{e^{b}}}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{-b}{a \cdot \frac{y}{x}}\\
\end{array}
\end{array}
if y < 4.50000000000000042e174Initial program 98.8%
associate-*l/88.0%
associate--l+88.0%
exp-sum72.8%
associate-*r*72.8%
*-commutative72.8%
exp-to-pow72.8%
exp-diff60.0%
*-commutative60.0%
exp-to-pow60.3%
sub-neg60.3%
metadata-eval60.3%
Simplified60.3%
Taylor expanded in t around 0 66.4%
times-frac61.5%
Simplified61.5%
Taylor expanded in y around 0 60.6%
associate-*r*54.8%
*-commutative54.8%
associate-/r*54.8%
*-commutative54.8%
Simplified54.8%
if 4.50000000000000042e174 < y Initial program 100.0%
Taylor expanded in t around 0 93.6%
+-commutative93.6%
mul-1-neg93.6%
unsub-neg93.6%
Simplified93.6%
Taylor expanded in y around 0 48.1%
exp-neg48.1%
associate-*r/48.1%
*-rgt-identity48.1%
+-commutative48.1%
exp-sum48.1%
rem-exp-log48.1%
Simplified48.1%
Taylor expanded in b around 0 36.5%
+-commutative36.5%
mul-1-neg36.5%
unsub-neg36.5%
*-commutative36.5%
*-commutative36.5%
times-frac36.4%
Simplified36.4%
Taylor expanded in b around inf 47.2%
mul-1-neg47.2%
*-commutative47.2%
associate-/l*50.3%
associate-*l/53.3%
*-commutative53.3%
Simplified53.3%
Final simplification54.6%
(FPCore (x y z t a b) :precision binary64 (/ (/ x (* a (exp b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x / (a * exp(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 / (a * exp(b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x / (a * Math.exp(b))) / y;
}
def code(x, y, z, t, a, b): return (x / (a * math.exp(b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x / Float64(a * exp(b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x / (a * exp(b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{x}{a \cdot e^{b}}}{y}
\end{array}
Initial program 99.0%
Taylor expanded in t around 0 80.4%
+-commutative80.4%
mul-1-neg80.4%
unsub-neg80.4%
Simplified80.4%
Taylor expanded in y around 0 58.5%
exp-neg58.5%
associate-*r/58.5%
*-rgt-identity58.5%
+-commutative58.5%
exp-sum58.5%
rem-exp-log58.7%
Simplified58.7%
Final simplification58.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b 4.5e-68) (/ (- (* a (/ x a)) (* y (* x (/ b y)))) (* y a)) (/ (/ x (+ a (* a b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 4.5e-68) {
tmp = ((a * (x / a)) - (y * (x * (b / y)))) / (y * a);
} else {
tmp = (x / (a + (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 (b <= 4.5d-68) then
tmp = ((a * (x / a)) - (y * (x * (b / y)))) / (y * a)
else
tmp = (x / (a + (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 (b <= 4.5e-68) {
tmp = ((a * (x / a)) - (y * (x * (b / y)))) / (y * a);
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 4.5e-68: tmp = ((a * (x / a)) - (y * (x * (b / y)))) / (y * a) else: tmp = (x / (a + (a * b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 4.5e-68) tmp = Float64(Float64(Float64(a * Float64(x / a)) - Float64(y * Float64(x * Float64(b / y)))) / Float64(y * a)); else tmp = Float64(Float64(x / Float64(a + Float64(a * b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 4.5e-68) tmp = ((a * (x / a)) - (y * (x * (b / y)))) / (y * a); else tmp = (x / (a + (a * b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 4.5e-68], N[(N[(N[(a * N[(x / a), $MachinePrecision]), $MachinePrecision] - N[(y * N[(x * N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 4.5 \cdot 10^{-68}:\\
\;\;\;\;\frac{a \cdot \frac{x}{a} - y \cdot \left(x \cdot \frac{b}{y}\right)}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a + a \cdot b}}{y}\\
\end{array}
\end{array}
if b < 4.49999999999999999e-68Initial program 98.5%
Taylor expanded in t around 0 77.7%
+-commutative77.7%
mul-1-neg77.7%
unsub-neg77.7%
Simplified77.7%
Taylor expanded in y around 0 51.3%
exp-neg51.3%
associate-*r/51.3%
*-rgt-identity51.3%
+-commutative51.3%
exp-sum51.3%
rem-exp-log51.6%
Simplified51.6%
Taylor expanded in b around 0 39.9%
+-commutative39.9%
mul-1-neg39.9%
unsub-neg39.9%
*-commutative39.9%
*-commutative39.9%
times-frac38.3%
Simplified38.3%
associate-/r*38.1%
un-div-inv38.1%
associate-*r/39.3%
frac-sub43.7%
un-div-inv43.7%
Applied egg-rr43.7%
*-commutative43.7%
associate-*l/43.8%
associate-*r/44.9%
*-commutative44.9%
Simplified44.9%
if 4.49999999999999999e-68 < b Initial program 99.9%
Taylor expanded in t around 0 85.9%
+-commutative85.9%
mul-1-neg85.9%
unsub-neg85.9%
Simplified85.9%
Taylor expanded in y around 0 73.2%
exp-neg73.2%
associate-*r/73.2%
*-rgt-identity73.2%
+-commutative73.2%
exp-sum73.2%
rem-exp-log73.3%
Simplified73.3%
Taylor expanded in b around 0 36.2%
Final simplification42.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -3.3e+15)
(/ (* x (- b)) (* y a))
(if (<= b 1.8e-281)
(/ (/ 1.0 (/ a x)) y)
(if (<= b 5.3e-253)
(/ (/ (- b) a) (/ y x))
(if (<= b 2.2e-10) (* (- 1.0 b) (/ x (* y a))) (/ (/ x (* a b)) y))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.3e+15) {
tmp = (x * -b) / (y * a);
} else if (b <= 1.8e-281) {
tmp = (1.0 / (a / x)) / y;
} else if (b <= 5.3e-253) {
tmp = (-b / a) / (y / x);
} else if (b <= 2.2e-10) {
tmp = (1.0 - b) * (x / (y * a));
} else {
tmp = (x / (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 (b <= (-3.3d+15)) then
tmp = (x * -b) / (y * a)
else if (b <= 1.8d-281) then
tmp = (1.0d0 / (a / x)) / y
else if (b <= 5.3d-253) then
tmp = (-b / a) / (y / x)
else if (b <= 2.2d-10) then
tmp = (1.0d0 - b) * (x / (y * a))
else
tmp = (x / (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 (b <= -3.3e+15) {
tmp = (x * -b) / (y * a);
} else if (b <= 1.8e-281) {
tmp = (1.0 / (a / x)) / y;
} else if (b <= 5.3e-253) {
tmp = (-b / a) / (y / x);
} else if (b <= 2.2e-10) {
tmp = (1.0 - b) * (x / (y * a));
} else {
tmp = (x / (a * b)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3.3e+15: tmp = (x * -b) / (y * a) elif b <= 1.8e-281: tmp = (1.0 / (a / x)) / y elif b <= 5.3e-253: tmp = (-b / a) / (y / x) elif b <= 2.2e-10: tmp = (1.0 - b) * (x / (y * a)) else: tmp = (x / (a * b)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3.3e+15) tmp = Float64(Float64(x * Float64(-b)) / Float64(y * a)); elseif (b <= 1.8e-281) tmp = Float64(Float64(1.0 / Float64(a / x)) / y); elseif (b <= 5.3e-253) tmp = Float64(Float64(Float64(-b) / a) / Float64(y / x)); elseif (b <= 2.2e-10) tmp = Float64(Float64(1.0 - b) * Float64(x / Float64(y * a))); else tmp = Float64(Float64(x / Float64(a * b)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -3.3e+15) tmp = (x * -b) / (y * a); elseif (b <= 1.8e-281) tmp = (1.0 / (a / x)) / y; elseif (b <= 5.3e-253) tmp = (-b / a) / (y / x); elseif (b <= 2.2e-10) tmp = (1.0 - b) * (x / (y * a)); else tmp = (x / (a * b)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.3e+15], N[(N[(x * (-b)), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.8e-281], N[(N[(1.0 / N[(a / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 5.3e-253], N[(N[((-b) / a), $MachinePrecision] / N[(y / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.2e-10], N[(N[(1.0 - b), $MachinePrecision] * N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a * b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.3 \cdot 10^{+15}:\\
\;\;\;\;\frac{x \cdot \left(-b\right)}{y \cdot a}\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{-281}:\\
\;\;\;\;\frac{\frac{1}{\frac{a}{x}}}{y}\\
\mathbf{elif}\;b \leq 5.3 \cdot 10^{-253}:\\
\;\;\;\;\frac{\frac{-b}{a}}{\frac{y}{x}}\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{-10}:\\
\;\;\;\;\left(1 - b\right) \cdot \frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a \cdot b}}{y}\\
\end{array}
\end{array}
if b < -3.3e15Initial program 100.0%
Taylor expanded in t around 0 88.7%
+-commutative88.7%
mul-1-neg88.7%
unsub-neg88.7%
Simplified88.7%
Taylor expanded in y around 0 79.0%
exp-neg79.0%
associate-*r/79.0%
*-rgt-identity79.0%
+-commutative79.0%
exp-sum79.0%
rem-exp-log79.0%
Simplified79.0%
Taylor expanded in b around 0 50.6%
+-commutative50.6%
mul-1-neg50.6%
unsub-neg50.6%
*-commutative50.6%
*-commutative50.6%
times-frac44.4%
Simplified44.4%
Taylor expanded in b around inf 50.6%
if -3.3e15 < b < 1.80000000000000003e-281Initial program 98.0%
Taylor expanded in t around 0 73.1%
+-commutative73.1%
mul-1-neg73.1%
unsub-neg73.1%
Simplified73.1%
Taylor expanded in b around 0 71.8%
div-exp71.8%
*-commutative71.8%
exp-to-pow71.8%
rem-exp-log72.2%
Simplified72.2%
Taylor expanded in y around 0 36.5%
un-div-inv36.6%
clear-num36.6%
Applied egg-rr36.6%
if 1.80000000000000003e-281 < b < 5.3000000000000002e-253Initial program 100.0%
Taylor expanded in t around 0 75.6%
+-commutative75.6%
mul-1-neg75.6%
unsub-neg75.6%
Simplified75.6%
Taylor expanded in y around 0 15.9%
exp-neg15.9%
associate-*r/15.9%
*-rgt-identity15.9%
+-commutative15.9%
exp-sum15.9%
rem-exp-log15.9%
Simplified15.9%
Taylor expanded in b around 0 15.8%
+-commutative15.8%
mul-1-neg15.8%
unsub-neg15.8%
*-commutative15.8%
*-commutative15.8%
times-frac15.8%
Simplified15.8%
Taylor expanded in b around inf 63.8%
*-commutative63.8%
associate-/l*52.6%
associate-*l/52.6%
associate-/l/63.8%
associate-*r/63.8%
neg-mul-163.8%
distribute-neg-frac63.8%
Simplified63.8%
if 5.3000000000000002e-253 < b < 2.1999999999999999e-10Initial program 97.5%
Taylor expanded in t around 0 71.7%
+-commutative71.7%
mul-1-neg71.7%
unsub-neg71.7%
Simplified71.7%
Taylor expanded in y around 0 34.8%
exp-neg34.9%
associate-*r/34.8%
*-rgt-identity34.8%
+-commutative34.8%
exp-sum34.8%
rem-exp-log35.4%
Simplified35.4%
Taylor expanded in b around 0 35.4%
Taylor expanded in b around 0 37.3%
+-commutative37.3%
*-commutative37.3%
mul-1-neg37.3%
*-commutative37.3%
times-frac35.2%
*-commutative35.2%
sub-neg35.2%
*-commutative35.2%
times-frac37.3%
*-commutative37.3%
*-rgt-identity37.3%
associate-/r*35.4%
associate-*l/35.4%
associate-/l*35.4%
associate-/r/33.1%
associate-/r*35.0%
distribute-lft-out--41.7%
*-commutative41.7%
Simplified41.7%
if 2.1999999999999999e-10 < b Initial program 99.9%
Taylor expanded in t around 0 87.1%
+-commutative87.1%
mul-1-neg87.1%
unsub-neg87.1%
Simplified87.1%
Taylor expanded in y around 0 82.8%
exp-neg82.8%
associate-*r/82.8%
*-rgt-identity82.8%
+-commutative82.8%
exp-sum82.8%
rem-exp-log82.9%
Simplified82.9%
Taylor expanded in b around 0 37.7%
Taylor expanded in b around inf 36.7%
Final simplification41.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -5e+14)
(/ (* x (- b)) (* y a))
(if (<= b 1.03e-280)
(/ (/ 1.0 (/ a x)) y)
(if (<= b 5.3e-253)
(/ (/ (- b) a) (/ y x))
(if (<= b 5.5e-10) (/ x (* y a)) (/ (/ x (* a b)) y))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5e+14) {
tmp = (x * -b) / (y * a);
} else if (b <= 1.03e-280) {
tmp = (1.0 / (a / x)) / y;
} else if (b <= 5.3e-253) {
tmp = (-b / a) / (y / x);
} else if (b <= 5.5e-10) {
tmp = x / (y * a);
} else {
tmp = (x / (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 (b <= (-5d+14)) then
tmp = (x * -b) / (y * a)
else if (b <= 1.03d-280) then
tmp = (1.0d0 / (a / x)) / y
else if (b <= 5.3d-253) then
tmp = (-b / a) / (y / x)
else if (b <= 5.5d-10) then
tmp = x / (y * a)
else
tmp = (x / (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 (b <= -5e+14) {
tmp = (x * -b) / (y * a);
} else if (b <= 1.03e-280) {
tmp = (1.0 / (a / x)) / y;
} else if (b <= 5.3e-253) {
tmp = (-b / a) / (y / x);
} else if (b <= 5.5e-10) {
tmp = x / (y * a);
} else {
tmp = (x / (a * b)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -5e+14: tmp = (x * -b) / (y * a) elif b <= 1.03e-280: tmp = (1.0 / (a / x)) / y elif b <= 5.3e-253: tmp = (-b / a) / (y / x) elif b <= 5.5e-10: tmp = x / (y * a) else: tmp = (x / (a * b)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -5e+14) tmp = Float64(Float64(x * Float64(-b)) / Float64(y * a)); elseif (b <= 1.03e-280) tmp = Float64(Float64(1.0 / Float64(a / x)) / y); elseif (b <= 5.3e-253) tmp = Float64(Float64(Float64(-b) / a) / Float64(y / x)); elseif (b <= 5.5e-10) tmp = Float64(x / Float64(y * a)); else tmp = Float64(Float64(x / Float64(a * b)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -5e+14) tmp = (x * -b) / (y * a); elseif (b <= 1.03e-280) tmp = (1.0 / (a / x)) / y; elseif (b <= 5.3e-253) tmp = (-b / a) / (y / x); elseif (b <= 5.5e-10) tmp = x / (y * a); else tmp = (x / (a * b)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -5e+14], N[(N[(x * (-b)), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.03e-280], N[(N[(1.0 / N[(a / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 5.3e-253], N[(N[((-b) / a), $MachinePrecision] / N[(y / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.5e-10], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a * b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{+14}:\\
\;\;\;\;\frac{x \cdot \left(-b\right)}{y \cdot a}\\
\mathbf{elif}\;b \leq 1.03 \cdot 10^{-280}:\\
\;\;\;\;\frac{\frac{1}{\frac{a}{x}}}{y}\\
\mathbf{elif}\;b \leq 5.3 \cdot 10^{-253}:\\
\;\;\;\;\frac{\frac{-b}{a}}{\frac{y}{x}}\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-10}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a \cdot b}}{y}\\
\end{array}
\end{array}
if b < -5e14Initial program 100.0%
Taylor expanded in t around 0 88.7%
+-commutative88.7%
mul-1-neg88.7%
unsub-neg88.7%
Simplified88.7%
Taylor expanded in y around 0 79.0%
exp-neg79.0%
associate-*r/79.0%
*-rgt-identity79.0%
+-commutative79.0%
exp-sum79.0%
rem-exp-log79.0%
Simplified79.0%
Taylor expanded in b around 0 50.6%
+-commutative50.6%
mul-1-neg50.6%
unsub-neg50.6%
*-commutative50.6%
*-commutative50.6%
times-frac44.4%
Simplified44.4%
Taylor expanded in b around inf 50.6%
if -5e14 < b < 1.03000000000000003e-280Initial program 98.0%
Taylor expanded in t around 0 73.1%
+-commutative73.1%
mul-1-neg73.1%
unsub-neg73.1%
Simplified73.1%
Taylor expanded in b around 0 71.8%
div-exp71.8%
*-commutative71.8%
exp-to-pow71.8%
rem-exp-log72.2%
Simplified72.2%
Taylor expanded in y around 0 36.5%
un-div-inv36.6%
clear-num36.6%
Applied egg-rr36.6%
if 1.03000000000000003e-280 < b < 5.3000000000000002e-253Initial program 100.0%
Taylor expanded in t around 0 75.6%
+-commutative75.6%
mul-1-neg75.6%
unsub-neg75.6%
Simplified75.6%
Taylor expanded in y around 0 15.9%
exp-neg15.9%
associate-*r/15.9%
*-rgt-identity15.9%
+-commutative15.9%
exp-sum15.9%
rem-exp-log15.9%
Simplified15.9%
Taylor expanded in b around 0 15.8%
+-commutative15.8%
mul-1-neg15.8%
unsub-neg15.8%
*-commutative15.8%
*-commutative15.8%
times-frac15.8%
Simplified15.8%
Taylor expanded in b around inf 63.8%
*-commutative63.8%
associate-/l*52.6%
associate-*l/52.6%
associate-/l/63.8%
associate-*r/63.8%
neg-mul-163.8%
distribute-neg-frac63.8%
Simplified63.8%
if 5.3000000000000002e-253 < b < 5.4999999999999996e-10Initial program 97.5%
associate-*l/92.5%
associate--l+92.5%
exp-sum79.4%
associate-*r*79.4%
*-commutative79.4%
exp-to-pow79.4%
exp-diff79.4%
*-commutative79.4%
exp-to-pow80.2%
sub-neg80.2%
metadata-eval80.2%
Simplified80.2%
Taylor expanded in t around 0 67.5%
times-frac63.5%
Simplified63.5%
Taylor expanded in y around 0 41.7%
associate-*r*41.7%
*-commutative41.7%
associate-/r*41.7%
*-commutative41.7%
Simplified41.7%
Taylor expanded in b around 0 41.7%
if 5.4999999999999996e-10 < b Initial program 99.9%
Taylor expanded in t around 0 87.1%
+-commutative87.1%
mul-1-neg87.1%
unsub-neg87.1%
Simplified87.1%
Taylor expanded in y around 0 82.8%
exp-neg82.8%
associate-*r/82.8%
*-rgt-identity82.8%
+-commutative82.8%
exp-sum82.8%
rem-exp-log82.9%
Simplified82.9%
Taylor expanded in b around 0 37.7%
Taylor expanded in b around inf 36.7%
Final simplification41.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -7.2e-122)
(/ (- (/ x a) (* x (/ b a))) y)
(if (<= b 1.06e-41)
(/ 1.0 (* a (/ y x)))
(if (<= b 3.2)
(/ (/ x (+ a (* a b))) y)
(if (<= b 5.2e+252) (/ x (* a (* y b))) (/ (/ x (* a b)) y))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -7.2e-122) {
tmp = ((x / a) - (x * (b / a))) / y;
} else if (b <= 1.06e-41) {
tmp = 1.0 / (a * (y / x));
} else if (b <= 3.2) {
tmp = (x / (a + (a * b))) / y;
} else if (b <= 5.2e+252) {
tmp = x / (a * (y * b));
} else {
tmp = (x / (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 (b <= (-7.2d-122)) then
tmp = ((x / a) - (x * (b / a))) / y
else if (b <= 1.06d-41) then
tmp = 1.0d0 / (a * (y / x))
else if (b <= 3.2d0) then
tmp = (x / (a + (a * b))) / y
else if (b <= 5.2d+252) then
tmp = x / (a * (y * b))
else
tmp = (x / (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 (b <= -7.2e-122) {
tmp = ((x / a) - (x * (b / a))) / y;
} else if (b <= 1.06e-41) {
tmp = 1.0 / (a * (y / x));
} else if (b <= 3.2) {
tmp = (x / (a + (a * b))) / y;
} else if (b <= 5.2e+252) {
tmp = x / (a * (y * b));
} else {
tmp = (x / (a * b)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -7.2e-122: tmp = ((x / a) - (x * (b / a))) / y elif b <= 1.06e-41: tmp = 1.0 / (a * (y / x)) elif b <= 3.2: tmp = (x / (a + (a * b))) / y elif b <= 5.2e+252: tmp = x / (a * (y * b)) else: tmp = (x / (a * b)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -7.2e-122) tmp = Float64(Float64(Float64(x / a) - Float64(x * Float64(b / a))) / y); elseif (b <= 1.06e-41) tmp = Float64(1.0 / Float64(a * Float64(y / x))); elseif (b <= 3.2) tmp = Float64(Float64(x / Float64(a + Float64(a * b))) / y); elseif (b <= 5.2e+252) tmp = Float64(x / Float64(a * Float64(y * b))); else tmp = Float64(Float64(x / Float64(a * b)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -7.2e-122) tmp = ((x / a) - (x * (b / a))) / y; elseif (b <= 1.06e-41) tmp = 1.0 / (a * (y / x)); elseif (b <= 3.2) tmp = (x / (a + (a * b))) / y; elseif (b <= 5.2e+252) tmp = x / (a * (y * b)); else tmp = (x / (a * b)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -7.2e-122], N[(N[(N[(x / a), $MachinePrecision] - N[(x * N[(b / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 1.06e-41], N[(1.0 / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.2], N[(N[(x / N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 5.2e+252], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a * b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.2 \cdot 10^{-122}:\\
\;\;\;\;\frac{\frac{x}{a} - x \cdot \frac{b}{a}}{y}\\
\mathbf{elif}\;b \leq 1.06 \cdot 10^{-41}:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\
\mathbf{elif}\;b \leq 3.2:\\
\;\;\;\;\frac{\frac{x}{a + a \cdot b}}{y}\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{+252}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a \cdot b}}{y}\\
\end{array}
\end{array}
if b < -7.19999999999999989e-122Initial program 99.7%
Taylor expanded in t around 0 84.7%
+-commutative84.7%
mul-1-neg84.7%
unsub-neg84.7%
Simplified84.7%
Taylor expanded in y around 0 68.6%
exp-neg68.6%
associate-*r/68.6%
*-rgt-identity68.6%
+-commutative68.6%
exp-sum68.6%
rem-exp-log68.8%
Simplified68.8%
Taylor expanded in b around 0 19.0%
Taylor expanded in b around 0 48.8%
+-commutative48.8%
mul-1-neg48.8%
sub-neg48.8%
*-commutative48.8%
associate-*r/48.8%
Simplified48.8%
if -7.19999999999999989e-122 < b < 1.06e-41Initial program 97.4%
associate-*l/87.6%
associate--l+87.6%
exp-sum72.7%
associate-*r*72.7%
*-commutative72.7%
exp-to-pow72.7%
exp-diff72.7%
*-commutative72.7%
exp-to-pow73.3%
sub-neg73.3%
metadata-eval73.3%
Simplified73.3%
Taylor expanded in t around 0 66.3%
times-frac64.3%
Simplified64.3%
Taylor expanded in y around 0 35.7%
associate-*r*35.7%
*-commutative35.7%
associate-/r*35.7%
*-commutative35.7%
Simplified35.7%
Taylor expanded in b around 0 35.7%
clear-num36.1%
inv-pow36.1%
Applied egg-rr36.1%
unpow-136.1%
associate-*l/37.2%
*-commutative37.2%
Simplified37.2%
if 1.06e-41 < b < 3.2000000000000002Initial program 99.5%
Taylor expanded in t around 0 74.9%
+-commutative74.9%
mul-1-neg74.9%
unsub-neg74.9%
Simplified74.9%
Taylor expanded in y around 0 43.5%
exp-neg43.5%
associate-*r/43.6%
*-rgt-identity43.6%
+-commutative43.6%
exp-sum43.5%
rem-exp-log43.9%
Simplified43.9%
Taylor expanded in b around 0 42.3%
if 3.2000000000000002 < b < 5.20000000000000035e252Initial program 100.0%
Taylor expanded in t around 0 85.4%
+-commutative85.4%
mul-1-neg85.4%
unsub-neg85.4%
Simplified85.4%
Taylor expanded in y around 0 79.9%
exp-neg79.9%
associate-*r/79.9%
*-rgt-identity79.9%
+-commutative79.9%
exp-sum79.9%
rem-exp-log79.9%
Simplified79.9%
Taylor expanded in b around 0 33.4%
Taylor expanded in b around inf 37.0%
*-commutative37.0%
Simplified37.0%
if 5.20000000000000035e252 < b Initial program 100.0%
Taylor expanded in t around 0 100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
Taylor expanded in y around 0 100.0%
exp-neg100.0%
associate-*r/100.0%
*-rgt-identity100.0%
+-commutative100.0%
exp-sum100.0%
rem-exp-log100.0%
Simplified100.0%
Taylor expanded in b around 0 51.3%
Taylor expanded in b around inf 51.3%
Final simplification42.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -6.5e+14)
(/ (* x (- b)) (* y a))
(if (<= b 1.03e-280)
(/ (/ 1.0 (/ a x)) y)
(if (<= b 5.3e-253) (/ (/ (- b) a) (/ y x)) (/ x (* y (+ a (* a b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6.5e+14) {
tmp = (x * -b) / (y * a);
} else if (b <= 1.03e-280) {
tmp = (1.0 / (a / x)) / y;
} else if (b <= 5.3e-253) {
tmp = (-b / a) / (y / x);
} else {
tmp = x / (y * (a + (a * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-6.5d+14)) then
tmp = (x * -b) / (y * a)
else if (b <= 1.03d-280) then
tmp = (1.0d0 / (a / x)) / y
else if (b <= 5.3d-253) then
tmp = (-b / a) / (y / x)
else
tmp = x / (y * (a + (a * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6.5e+14) {
tmp = (x * -b) / (y * a);
} else if (b <= 1.03e-280) {
tmp = (1.0 / (a / x)) / y;
} else if (b <= 5.3e-253) {
tmp = (-b / a) / (y / x);
} else {
tmp = x / (y * (a + (a * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -6.5e+14: tmp = (x * -b) / (y * a) elif b <= 1.03e-280: tmp = (1.0 / (a / x)) / y elif b <= 5.3e-253: tmp = (-b / a) / (y / x) else: tmp = x / (y * (a + (a * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -6.5e+14) tmp = Float64(Float64(x * Float64(-b)) / Float64(y * a)); elseif (b <= 1.03e-280) tmp = Float64(Float64(1.0 / Float64(a / x)) / y); elseif (b <= 5.3e-253) tmp = Float64(Float64(Float64(-b) / a) / Float64(y / x)); else tmp = Float64(x / Float64(y * Float64(a + Float64(a * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -6.5e+14) tmp = (x * -b) / (y * a); elseif (b <= 1.03e-280) tmp = (1.0 / (a / x)) / y; elseif (b <= 5.3e-253) tmp = (-b / a) / (y / x); else tmp = x / (y * (a + (a * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -6.5e+14], N[(N[(x * (-b)), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.03e-280], N[(N[(1.0 / N[(a / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 5.3e-253], N[(N[((-b) / a), $MachinePrecision] / N[(y / x), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.5 \cdot 10^{+14}:\\
\;\;\;\;\frac{x \cdot \left(-b\right)}{y \cdot a}\\
\mathbf{elif}\;b \leq 1.03 \cdot 10^{-280}:\\
\;\;\;\;\frac{\frac{1}{\frac{a}{x}}}{y}\\
\mathbf{elif}\;b \leq 5.3 \cdot 10^{-253}:\\
\;\;\;\;\frac{\frac{-b}{a}}{\frac{y}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a + a \cdot b\right)}\\
\end{array}
\end{array}
if b < -6.5e14Initial program 100.0%
Taylor expanded in t around 0 88.7%
+-commutative88.7%
mul-1-neg88.7%
unsub-neg88.7%
Simplified88.7%
Taylor expanded in y around 0 79.0%
exp-neg79.0%
associate-*r/79.0%
*-rgt-identity79.0%
+-commutative79.0%
exp-sum79.0%
rem-exp-log79.0%
Simplified79.0%
Taylor expanded in b around 0 50.6%
+-commutative50.6%
mul-1-neg50.6%
unsub-neg50.6%
*-commutative50.6%
*-commutative50.6%
times-frac44.4%
Simplified44.4%
Taylor expanded in b around inf 50.6%
if -6.5e14 < b < 1.03000000000000003e-280Initial program 98.0%
Taylor expanded in t around 0 73.1%
+-commutative73.1%
mul-1-neg73.1%
unsub-neg73.1%
Simplified73.1%
Taylor expanded in b around 0 71.8%
div-exp71.8%
*-commutative71.8%
exp-to-pow71.8%
rem-exp-log72.2%
Simplified72.2%
Taylor expanded in y around 0 36.5%
un-div-inv36.6%
clear-num36.6%
Applied egg-rr36.6%
if 1.03000000000000003e-280 < b < 5.3000000000000002e-253Initial program 100.0%
Taylor expanded in t around 0 75.6%
+-commutative75.6%
mul-1-neg75.6%
unsub-neg75.6%
Simplified75.6%
Taylor expanded in y around 0 15.9%
exp-neg15.9%
associate-*r/15.9%
*-rgt-identity15.9%
+-commutative15.9%
exp-sum15.9%
rem-exp-log15.9%
Simplified15.9%
Taylor expanded in b around 0 15.8%
+-commutative15.8%
mul-1-neg15.8%
unsub-neg15.8%
*-commutative15.8%
*-commutative15.8%
times-frac15.8%
Simplified15.8%
Taylor expanded in b around inf 63.8%
*-commutative63.8%
associate-/l*52.6%
associate-*l/52.6%
associate-/l/63.8%
associate-*r/63.8%
neg-mul-163.8%
distribute-neg-frac63.8%
Simplified63.8%
if 5.3000000000000002e-253 < b Initial program 99.0%
Taylor expanded in t around 0 80.9%
+-commutative80.9%
mul-1-neg80.9%
unsub-neg80.9%
Simplified80.9%
Taylor expanded in y around 0 63.6%
exp-neg63.6%
associate-*r/63.6%
*-rgt-identity63.6%
+-commutative63.6%
exp-sum63.6%
rem-exp-log63.9%
Simplified63.9%
Taylor expanded in b around 0 36.8%
Taylor expanded in x around 0 37.7%
Final simplification41.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.06e-15) (/ (- b) (* a (/ y x))) (if (<= b 8e-67) (* (/ x y) (/ 1.0 a)) (/ (/ x (* a b)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.06e-15) {
tmp = -b / (a * (y / x));
} else if (b <= 8e-67) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = (x / (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 (b <= (-1.06d-15)) then
tmp = -b / (a * (y / x))
else if (b <= 8d-67) then
tmp = (x / y) * (1.0d0 / a)
else
tmp = (x / (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 (b <= -1.06e-15) {
tmp = -b / (a * (y / x));
} else if (b <= 8e-67) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = (x / (a * b)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.06e-15: tmp = -b / (a * (y / x)) elif b <= 8e-67: tmp = (x / y) * (1.0 / a) else: tmp = (x / (a * b)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.06e-15) tmp = Float64(Float64(-b) / Float64(a * Float64(y / x))); elseif (b <= 8e-67) tmp = Float64(Float64(x / y) * Float64(1.0 / a)); else tmp = Float64(Float64(x / Float64(a * b)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.06e-15) tmp = -b / (a * (y / x)); elseif (b <= 8e-67) tmp = (x / y) * (1.0 / a); else tmp = (x / (a * b)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.06e-15], N[((-b) / N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8e-67], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a * b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.06 \cdot 10^{-15}:\\
\;\;\;\;\frac{-b}{a \cdot \frac{y}{x}}\\
\mathbf{elif}\;b \leq 8 \cdot 10^{-67}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a \cdot b}}{y}\\
\end{array}
\end{array}
if b < -1.06000000000000007e-15Initial program 100.0%
Taylor expanded in t around 0 87.9%
+-commutative87.9%
mul-1-neg87.9%
unsub-neg87.9%
Simplified87.9%
Taylor expanded in y around 0 77.3%
exp-neg77.3%
associate-*r/77.3%
*-rgt-identity77.3%
+-commutative77.3%
exp-sum77.3%
rem-exp-log77.3%
Simplified77.3%
Taylor expanded in b around 0 47.6%
+-commutative47.6%
mul-1-neg47.6%
unsub-neg47.6%
*-commutative47.6%
*-commutative47.6%
times-frac41.9%
Simplified41.9%
Taylor expanded in b around inf 47.6%
mul-1-neg47.6%
*-commutative47.6%
associate-/l*42.0%
associate-*l/40.6%
*-commutative40.6%
Simplified40.6%
if -1.06000000000000007e-15 < b < 7.99999999999999954e-67Initial program 97.6%
associate-*l/90.6%
associate--l+90.6%
exp-sum78.5%
associate-*r*78.5%
*-commutative78.5%
exp-to-pow78.5%
exp-diff78.5%
*-commutative78.5%
exp-to-pow79.1%
sub-neg79.1%
metadata-eval79.1%
Simplified79.1%
Taylor expanded in t around 0 66.4%
times-frac65.6%
Simplified65.6%
Taylor expanded in y around 0 37.0%
associate-*r*37.0%
*-commutative37.0%
associate-/r*37.0%
*-commutative37.0%
Simplified37.0%
Taylor expanded in b around 0 37.0%
associate-/r*38.9%
div-inv38.8%
Applied egg-rr38.8%
if 7.99999999999999954e-67 < b Initial program 99.9%
Taylor expanded in t around 0 85.9%
+-commutative85.9%
mul-1-neg85.9%
unsub-neg85.9%
Simplified85.9%
Taylor expanded in y around 0 73.2%
exp-neg73.2%
associate-*r/73.2%
*-rgt-identity73.2%
+-commutative73.2%
exp-sum73.2%
rem-exp-log73.3%
Simplified73.3%
Taylor expanded in b around 0 36.2%
Taylor expanded in b around inf 35.3%
Final simplification38.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b 8.5e-11) (/ (- x (* x b)) (* y a)) (/ (/ x (* a b)) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 8.5e-11) {
tmp = (x - (x * b)) / (y * a);
} else {
tmp = (x / (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 (b <= 8.5d-11) then
tmp = (x - (x * b)) / (y * a)
else
tmp = (x / (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 (b <= 8.5e-11) {
tmp = (x - (x * b)) / (y * a);
} else {
tmp = (x / (a * b)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 8.5e-11: tmp = (x - (x * b)) / (y * a) else: tmp = (x / (a * b)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 8.5e-11) tmp = Float64(Float64(x - Float64(x * b)) / Float64(y * a)); else tmp = Float64(Float64(x / Float64(a * b)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 8.5e-11) tmp = (x - (x * b)) / (y * a); else tmp = (x / (a * b)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 8.5e-11], N[(N[(x - N[(x * b), $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a * b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 8.5 \cdot 10^{-11}:\\
\;\;\;\;\frac{x - x \cdot b}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a \cdot b}}{y}\\
\end{array}
\end{array}
if b < 8.50000000000000037e-11Initial program 98.6%
associate-*l/89.3%
associate--l+89.3%
exp-sum73.8%
associate-*r*73.8%
*-commutative73.8%
exp-to-pow73.8%
exp-diff68.4%
*-commutative68.4%
exp-to-pow68.8%
sub-neg68.8%
metadata-eval68.8%
Simplified68.8%
Taylor expanded in t around 0 65.4%
times-frac64.3%
Simplified64.3%
Taylor expanded in y around 0 50.4%
associate-*r*47.7%
*-commutative47.7%
associate-/r*47.7%
*-commutative47.7%
Simplified47.7%
Taylor expanded in b around 0 40.1%
mul-1-neg40.1%
unsub-neg40.1%
*-commutative40.1%
Simplified40.1%
if 8.50000000000000037e-11 < b Initial program 99.9%
Taylor expanded in t around 0 87.1%
+-commutative87.1%
mul-1-neg87.1%
unsub-neg87.1%
Simplified87.1%
Taylor expanded in y around 0 82.8%
exp-neg82.8%
associate-*r/82.8%
*-rgt-identity82.8%
+-commutative82.8%
exp-sum82.8%
rem-exp-log82.9%
Simplified82.9%
Taylor expanded in b around 0 37.7%
Taylor expanded in b around inf 36.7%
Final simplification39.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b 2.8e-27) (/ (- x (* x b)) (* y a)) (/ (/ x (+ a (* a b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 2.8e-27) {
tmp = (x - (x * b)) / (y * a);
} else {
tmp = (x / (a + (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 (b <= 2.8d-27) then
tmp = (x - (x * b)) / (y * a)
else
tmp = (x / (a + (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 (b <= 2.8e-27) {
tmp = (x - (x * b)) / (y * a);
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 2.8e-27: tmp = (x - (x * b)) / (y * a) else: tmp = (x / (a + (a * b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 2.8e-27) tmp = Float64(Float64(x - Float64(x * b)) / Float64(y * a)); else tmp = Float64(Float64(x / Float64(a + Float64(a * b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 2.8e-27) tmp = (x - (x * b)) / (y * a); else tmp = (x / (a + (a * b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 2.8e-27], N[(N[(x - N[(x * b), $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2.8 \cdot 10^{-27}:\\
\;\;\;\;\frac{x - x \cdot b}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a + a \cdot b}}{y}\\
\end{array}
\end{array}
if b < 2.8e-27Initial program 98.6%
associate-*l/89.5%
associate--l+89.5%
exp-sum73.5%
associate-*r*73.5%
*-commutative73.5%
exp-to-pow73.5%
exp-diff67.9%
*-commutative67.9%
exp-to-pow68.3%
sub-neg68.3%
metadata-eval68.3%
Simplified68.3%
Taylor expanded in t around 0 64.7%
times-frac64.2%
Simplified64.2%
Taylor expanded in y around 0 50.9%
associate-*r*48.1%
*-commutative48.1%
associate-/r*48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in b around 0 40.2%
mul-1-neg40.2%
unsub-neg40.2%
*-commutative40.2%
Simplified40.2%
if 2.8e-27 < b Initial program 99.9%
Taylor expanded in t around 0 86.8%
+-commutative86.8%
mul-1-neg86.8%
unsub-neg86.8%
Simplified86.8%
Taylor expanded in y around 0 79.1%
exp-neg79.1%
associate-*r/79.1%
*-rgt-identity79.1%
+-commutative79.1%
exp-sum79.1%
rem-exp-log79.2%
Simplified79.2%
Taylor expanded in b around 0 37.6%
Final simplification39.4%
(FPCore (x y z t a b) :precision binary64 (if (<= x 1.8e-65) (* (/ x y) (/ 1.0 a)) (/ (/ x a) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= 1.8e-65) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = (x / a) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (x <= 1.8d-65) then
tmp = (x / y) * (1.0d0 / a)
else
tmp = (x / a) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= 1.8e-65) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = (x / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= 1.8e-65: tmp = (x / y) * (1.0 / a) else: tmp = (x / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= 1.8e-65) tmp = Float64(Float64(x / y) * Float64(1.0 / a)); else tmp = Float64(Float64(x / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= 1.8e-65) tmp = (x / y) * (1.0 / a); else tmp = (x / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, 1.8e-65], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.8 \cdot 10^{-65}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\end{array}
\end{array}
if x < 1.7999999999999999e-65Initial program 98.8%
associate-*l/87.2%
associate--l+87.2%
exp-sum73.6%
associate-*r*73.6%
*-commutative73.6%
exp-to-pow73.6%
exp-diff63.0%
*-commutative63.0%
exp-to-pow63.3%
sub-neg63.3%
metadata-eval63.3%
Simplified63.3%
Taylor expanded in t around 0 71.5%
times-frac66.8%
Simplified66.8%
Taylor expanded in y around 0 59.0%
associate-*r*51.9%
*-commutative51.9%
associate-/r*51.9%
*-commutative51.9%
Simplified51.9%
Taylor expanded in b around 0 29.6%
associate-/r*31.9%
div-inv31.9%
Applied egg-rr31.9%
if 1.7999999999999999e-65 < x Initial program 99.4%
Taylor expanded in t around 0 79.5%
+-commutative79.5%
mul-1-neg79.5%
unsub-neg79.5%
Simplified79.5%
Taylor expanded in y around 0 57.9%
exp-neg57.9%
associate-*r/57.9%
*-rgt-identity57.9%
+-commutative57.9%
exp-sum57.9%
rem-exp-log58.2%
Simplified58.2%
Taylor expanded in b around 0 27.0%
Final simplification30.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b 7.2e-36) (* (/ x y) (/ 1.0 a)) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 7.2e-36) {
tmp = (x / y) * (1.0 / 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 <= 7.2d-36) then
tmp = (x / y) * (1.0d0 / 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 <= 7.2e-36) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 7.2e-36: tmp = (x / y) * (1.0 / a) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 7.2e-36) tmp = Float64(Float64(x / y) * Float64(1.0 / 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 <= 7.2e-36) tmp = (x / y) * (1.0 / a); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 7.2e-36], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 7.2 \cdot 10^{-36}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 7.20000000000000064e-36Initial program 98.6%
associate-*l/89.4%
associate--l+89.4%
exp-sum73.7%
associate-*r*73.7%
*-commutative73.7%
exp-to-pow73.7%
exp-diff68.1%
*-commutative68.1%
exp-to-pow68.5%
sub-neg68.5%
metadata-eval68.5%
Simplified68.5%
Taylor expanded in t around 0 64.9%
times-frac64.4%
Simplified64.4%
Taylor expanded in y around 0 50.9%
associate-*r*48.0%
*-commutative48.0%
associate-/r*48.0%
*-commutative48.0%
Simplified48.0%
Taylor expanded in b around 0 33.2%
associate-/r*34.3%
div-inv34.2%
Applied egg-rr34.2%
if 7.20000000000000064e-36 < b Initial program 99.9%
Taylor expanded in t around 0 85.9%
+-commutative85.9%
mul-1-neg85.9%
unsub-neg85.9%
Simplified85.9%
Taylor expanded in y around 0 77.1%
exp-neg77.1%
associate-*r/77.1%
*-rgt-identity77.1%
+-commutative77.1%
exp-sum77.1%
rem-exp-log77.2%
Simplified77.2%
Taylor expanded in b around 0 36.7%
Taylor expanded in b around inf 33.2%
*-commutative33.2%
Simplified33.2%
Final simplification33.9%
(FPCore (x y z t a b) :precision binary64 (if (<= b 1.9e-67) (* (/ x y) (/ 1.0 a)) (/ (/ x (* a b)) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.9e-67) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = (x / (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 (b <= 1.9d-67) then
tmp = (x / y) * (1.0d0 / a)
else
tmp = (x / (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 (b <= 1.9e-67) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = (x / (a * b)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 1.9e-67: tmp = (x / y) * (1.0 / a) else: tmp = (x / (a * b)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 1.9e-67) tmp = Float64(Float64(x / y) * Float64(1.0 / a)); else tmp = Float64(Float64(x / Float64(a * b)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 1.9e-67) tmp = (x / y) * (1.0 / a); else tmp = (x / (a * b)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.9e-67], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a * b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.9 \cdot 10^{-67}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a \cdot b}}{y}\\
\end{array}
\end{array}
if b < 1.89999999999999994e-67Initial program 98.5%
associate-*l/90.1%
associate--l+90.1%
exp-sum73.8%
associate-*r*73.8%
*-commutative73.8%
exp-to-pow73.8%
exp-diff68.0%
*-commutative68.0%
exp-to-pow68.4%
sub-neg68.4%
metadata-eval68.4%
Simplified68.4%
Taylor expanded in t around 0 65.2%
times-frac63.5%
Simplified63.5%
Taylor expanded in y around 0 52.2%
associate-*r*49.3%
*-commutative49.3%
associate-/r*49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in b around 0 33.8%
associate-/r*35.0%
div-inv35.0%
Applied egg-rr35.0%
if 1.89999999999999994e-67 < b Initial program 99.9%
Taylor expanded in t around 0 85.9%
+-commutative85.9%
mul-1-neg85.9%
unsub-neg85.9%
Simplified85.9%
Taylor expanded in y around 0 73.2%
exp-neg73.2%
associate-*r/73.2%
*-rgt-identity73.2%
+-commutative73.2%
exp-sum73.2%
rem-exp-log73.3%
Simplified73.3%
Taylor expanded in b around 0 36.2%
Taylor expanded in b around inf 35.3%
Final simplification35.1%
(FPCore (x y z t a b) :precision binary64 (if (<= a 5e+15) (/ (/ x a) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 5e+15) {
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 <= 5d+15) 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 <= 5e+15) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 5e+15: tmp = (x / a) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 5e+15) 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 <= 5e+15) tmp = (x / a) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 5e+15], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 5 \cdot 10^{+15}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if a < 5e15Initial program 99.7%
Taylor expanded in t around 0 82.6%
+-commutative82.6%
mul-1-neg82.6%
unsub-neg82.6%
Simplified82.6%
Taylor expanded in y around 0 60.5%
exp-neg60.5%
associate-*r/60.5%
*-rgt-identity60.5%
+-commutative60.5%
exp-sum60.5%
rem-exp-log60.6%
Simplified60.6%
Taylor expanded in b around 0 28.2%
if 5e15 < a Initial program 98.2%
associate-*l/89.7%
associate--l+89.7%
exp-sum75.0%
associate-*r*75.0%
*-commutative75.0%
exp-to-pow75.0%
exp-diff63.6%
*-commutative63.6%
exp-to-pow64.1%
sub-neg64.1%
metadata-eval64.1%
Simplified64.1%
Taylor expanded in t around 0 61.3%
times-frac63.7%
Simplified63.7%
Taylor expanded in y around 0 59.1%
associate-*r*54.9%
*-commutative54.9%
associate-/r*54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in b around 0 34.7%
Final simplification31.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 99.0%
associate-*l/88.2%
associate--l+88.2%
exp-sum71.8%
associate-*r*71.8%
*-commutative71.8%
exp-to-pow71.8%
exp-diff60.1%
*-commutative60.1%
exp-to-pow60.4%
sub-neg60.4%
metadata-eval60.4%
Simplified60.4%
Taylor expanded in t around 0 67.3%
times-frac63.4%
Simplified63.4%
Taylor expanded in y around 0 58.8%
associate-*r*52.9%
*-commutative52.9%
associate-/r*52.9%
*-commutative52.9%
Simplified52.9%
Taylor expanded in b around 0 29.1%
Final simplification29.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (- t 1.0)))
(t_2 (/ (* x (/ t_1 y)) (- (+ b 1.0) (* y (log z))))))
(if (< t -0.8845848504127471)
t_2
(if (< t 852031.2288374073)
(/ (* (/ x y) t_1) (exp (- b (* (log z) y))))
t_2))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a ** (t - 1.0d0)
t_2 = (x * (t_1 / y)) / ((b + 1.0d0) - (y * log(z)))
if (t < (-0.8845848504127471d0)) then
tmp = t_2
else if (t < 852031.2288374073d0) then
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = Math.pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * Math.log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / Math.exp((b - (Math.log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, (t - 1.0)) t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * math.log(z))) tmp = 0 if t < -0.8845848504127471: tmp = t_2 elif t < 852031.2288374073: tmp = ((x / y) * t_1) / math.exp((b - (math.log(z) * y))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = a ^ Float64(t - 1.0) t_2 = Float64(Float64(x * Float64(t_1 / y)) / Float64(Float64(b + 1.0) - Float64(y * log(z)))) tmp = 0.0 if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = Float64(Float64(Float64(x / y) * t_1) / exp(Float64(b - Float64(log(z) * y)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a ^ (t - 1.0); t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z))); tmp = 0.0; if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = ((x / y) * t_1) / exp((b - (log(z) * y))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision] / N[(N[(b + 1.0), $MachinePrecision] - N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -0.8845848504127471], t$95$2, If[Less[t, 852031.2288374073], N[(N[(N[(x / y), $MachinePrecision] * t$95$1), $MachinePrecision] / N[Exp[N[(b - N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {a}^{\left(t - 1\right)}\\
t_2 := \frac{x \cdot \frac{t_1}{y}}{\left(b + 1\right) - y \cdot \log z}\\
\mathbf{if}\;t < -0.8845848504127471:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < 852031.2288374073:\\
\;\;\;\;\frac{\frac{x}{y} \cdot t_1}{e^{b - \log z \cdot y}}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023322
(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))