
(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 26 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
(let* ((t_1 (/ (/ x (exp b)) y)))
(if (<= b -5200.0)
t_1
(if (<= b 1.3e+53) (* x (* (pow a (+ t -1.0)) (/ (pow z y) y))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / exp(b)) / y;
double tmp;
if (b <= -5200.0) {
tmp = t_1;
} else if (b <= 1.3e+53) {
tmp = x * (pow(a, (t + -1.0)) * (pow(z, y) / 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 / exp(b)) / y
if (b <= (-5200.0d0)) then
tmp = t_1
else if (b <= 1.3d+53) then
tmp = x * ((a ** (t + (-1.0d0))) * ((z ** y) / 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.exp(b)) / y;
double tmp;
if (b <= -5200.0) {
tmp = t_1;
} else if (b <= 1.3e+53) {
tmp = x * (Math.pow(a, (t + -1.0)) * (Math.pow(z, y) / y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / math.exp(b)) / y tmp = 0 if b <= -5200.0: tmp = t_1 elif b <= 1.3e+53: tmp = x * (math.pow(a, (t + -1.0)) * (math.pow(z, y) / y)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / exp(b)) / y) tmp = 0.0 if (b <= -5200.0) tmp = t_1; elseif (b <= 1.3e+53) tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) * Float64((z ^ y) / y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / exp(b)) / y; tmp = 0.0; if (b <= -5200.0) tmp = t_1; elseif (b <= 1.3e+53) tmp = x * ((a ^ (t + -1.0)) * ((z ^ y) / 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[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -5200.0], t$95$1, If[LessEqual[b, 1.3e+53], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{e^{b}}}{y}\\
\mathbf{if}\;b \leq -5200:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{+53}:\\
\;\;\;\;x \cdot \left({a}^{\left(t + -1\right)} \cdot \frac{{z}^{y}}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -5200 or 1.29999999999999999e53 < b Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6487.9%
Simplified87.9%
/-lowering-/.f64N/A
sub0-negN/A
rec-expN/A
un-div-invN/A
/-lowering-/.f64N/A
exp-lowering-exp.f6487.9%
Applied egg-rr87.9%
if -5200 < b < 1.29999999999999999e53Initial program 97.4%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr83.3%
Taylor expanded in b around 0
associate-/l*N/A
*-lowering-*.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6485.4%
Simplified85.4%
Final simplification86.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (/ y (pow z y)))))
(if (<= y -1.5e+150)
t_1
(if (<= y 8000000000.0) (/ (* x (/ (pow a (+ t -1.0)) (exp b))) y) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y / pow(z, y));
double tmp;
if (y <= -1.5e+150) {
tmp = t_1;
} else if (y <= 8000000000.0) {
tmp = (x * (pow(a, (t + -1.0)) / 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 / (y / (z ** y))
if (y <= (-1.5d+150)) then
tmp = t_1
else if (y <= 8000000000.0d0) then
tmp = (x * ((a ** (t + (-1.0d0))) / 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 / (y / Math.pow(z, y));
double tmp;
if (y <= -1.5e+150) {
tmp = t_1;
} else if (y <= 8000000000.0) {
tmp = (x * (Math.pow(a, (t + -1.0)) / Math.exp(b))) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y / math.pow(z, y)) tmp = 0 if y <= -1.5e+150: tmp = t_1 elif y <= 8000000000.0: tmp = (x * (math.pow(a, (t + -1.0)) / math.exp(b))) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y / (z ^ y))) tmp = 0.0 if (y <= -1.5e+150) tmp = t_1; elseif (y <= 8000000000.0) tmp = Float64(Float64(x * Float64((a ^ Float64(t + -1.0)) / exp(b))) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y / (z ^ y)); tmp = 0.0; if (y <= -1.5e+150) tmp = t_1; elseif (y <= 8000000000.0) tmp = (x * ((a ^ (t + -1.0)) / exp(b))) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y / N[Power[z, y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.5e+150], t$95$1, If[LessEqual[y, 8000000000.0], N[(N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\frac{y}{{z}^{y}}}\\
\mathbf{if}\;y \leq -1.5 \cdot 10^{+150}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 8000000000:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.50000000000000006e150 or 8e9 < y Initial program 100.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
log-lowering-log.f6489.6%
Simplified89.6%
associate-/l*N/A
*-commutativeN/A
pow-to-expN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6489.6%
Applied egg-rr89.6%
if -1.50000000000000006e150 < y < 8e9Initial program 98.1%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6485.0%
Simplified85.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (pow a t) y))))
(if (<= t -1.18e+83)
t_1
(if (<= t 3e+81) (* x (/ (pow z y) (* a (* y (exp b))))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (pow(a, t) / y);
double tmp;
if (t <= -1.18e+83) {
tmp = t_1;
} else if (t <= 3e+81) {
tmp = x * (pow(z, y) / (a * (y * exp(b))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((a ** t) / y)
if (t <= (-1.18d+83)) then
tmp = t_1
else if (t <= 3d+81) then
tmp = x * ((z ** y) / (a * (y * exp(b))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (Math.pow(a, t) / y);
double tmp;
if (t <= -1.18e+83) {
tmp = t_1;
} else if (t <= 3e+81) {
tmp = x * (Math.pow(z, y) / (a * (y * Math.exp(b))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * (math.pow(a, t) / y) tmp = 0 if t <= -1.18e+83: tmp = t_1 elif t <= 3e+81: tmp = x * (math.pow(z, y) / (a * (y * math.exp(b)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64((a ^ t) / y)) tmp = 0.0 if (t <= -1.18e+83) tmp = t_1; elseif (t <= 3e+81) tmp = Float64(x * Float64((z ^ y) / Float64(a * Float64(y * exp(b))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * ((a ^ t) / y); tmp = 0.0; if (t <= -1.18e+83) tmp = t_1; elseif (t <= 3e+81) tmp = x * ((z ^ y) / (a * (y * exp(b)))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.18e+83], t$95$1, If[LessEqual[t, 3e+81], N[(x * N[(N[Power[z, y], $MachinePrecision] / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{{a}^{t}}{y}\\
\mathbf{if}\;t \leq -1.18 \cdot 10^{+83}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3 \cdot 10^{+81}:\\
\;\;\;\;x \cdot \frac{{z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.1799999999999999e83 or 2.99999999999999997e81 < t Initial program 100.0%
Taylor expanded in t around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6482.0%
Simplified82.0%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f6482.0%
Applied egg-rr82.0%
if -1.1799999999999999e83 < t < 2.99999999999999997e81Initial program 98.1%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr80.4%
Taylor expanded in t around 0
/-lowering-/.f64N/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6480.0%
Simplified80.0%
Final simplification80.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (/ y (pow z y))))
(t_2 (* x (/ (pow a t) y)))
(t_3 (/ (/ x (exp b)) y)))
(if (<= b -115000000000.0)
t_3
(if (<= b -3.6e-103)
t_1
(if (<= b -1.6e-302)
(/ 1.0 (/ (* a (* y (+ 1.0 b))) x))
(if (<= b 1.05e-260)
t_2
(if (<= b 4.5e-98) t_1 (if (<= b 2.05e+23) t_2 t_3))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y / pow(z, y));
double t_2 = x * (pow(a, t) / y);
double t_3 = (x / exp(b)) / y;
double tmp;
if (b <= -115000000000.0) {
tmp = t_3;
} else if (b <= -3.6e-103) {
tmp = t_1;
} else if (b <= -1.6e-302) {
tmp = 1.0 / ((a * (y * (1.0 + b))) / x);
} else if (b <= 1.05e-260) {
tmp = t_2;
} else if (b <= 4.5e-98) {
tmp = t_1;
} else if (b <= 2.05e+23) {
tmp = t_2;
} else {
tmp = t_3;
}
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 / (y / (z ** y))
t_2 = x * ((a ** t) / y)
t_3 = (x / exp(b)) / y
if (b <= (-115000000000.0d0)) then
tmp = t_3
else if (b <= (-3.6d-103)) then
tmp = t_1
else if (b <= (-1.6d-302)) then
tmp = 1.0d0 / ((a * (y * (1.0d0 + b))) / x)
else if (b <= 1.05d-260) then
tmp = t_2
else if (b <= 4.5d-98) then
tmp = t_1
else if (b <= 2.05d+23) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y / Math.pow(z, y));
double t_2 = x * (Math.pow(a, t) / y);
double t_3 = (x / Math.exp(b)) / y;
double tmp;
if (b <= -115000000000.0) {
tmp = t_3;
} else if (b <= -3.6e-103) {
tmp = t_1;
} else if (b <= -1.6e-302) {
tmp = 1.0 / ((a * (y * (1.0 + b))) / x);
} else if (b <= 1.05e-260) {
tmp = t_2;
} else if (b <= 4.5e-98) {
tmp = t_1;
} else if (b <= 2.05e+23) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y / math.pow(z, y)) t_2 = x * (math.pow(a, t) / y) t_3 = (x / math.exp(b)) / y tmp = 0 if b <= -115000000000.0: tmp = t_3 elif b <= -3.6e-103: tmp = t_1 elif b <= -1.6e-302: tmp = 1.0 / ((a * (y * (1.0 + b))) / x) elif b <= 1.05e-260: tmp = t_2 elif b <= 4.5e-98: tmp = t_1 elif b <= 2.05e+23: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y / (z ^ y))) t_2 = Float64(x * Float64((a ^ t) / y)) t_3 = Float64(Float64(x / exp(b)) / y) tmp = 0.0 if (b <= -115000000000.0) tmp = t_3; elseif (b <= -3.6e-103) tmp = t_1; elseif (b <= -1.6e-302) tmp = Float64(1.0 / Float64(Float64(a * Float64(y * Float64(1.0 + b))) / x)); elseif (b <= 1.05e-260) tmp = t_2; elseif (b <= 4.5e-98) tmp = t_1; elseif (b <= 2.05e+23) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y / (z ^ y)); t_2 = x * ((a ^ t) / y); t_3 = (x / exp(b)) / y; tmp = 0.0; if (b <= -115000000000.0) tmp = t_3; elseif (b <= -3.6e-103) tmp = t_1; elseif (b <= -1.6e-302) tmp = 1.0 / ((a * (y * (1.0 + b))) / x); elseif (b <= 1.05e-260) tmp = t_2; elseif (b <= 4.5e-98) tmp = t_1; elseif (b <= 2.05e+23) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y / N[Power[z, y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -115000000000.0], t$95$3, If[LessEqual[b, -3.6e-103], t$95$1, If[LessEqual[b, -1.6e-302], N[(1.0 / N[(N[(a * N[(y * N[(1.0 + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.05e-260], t$95$2, If[LessEqual[b, 4.5e-98], t$95$1, If[LessEqual[b, 2.05e+23], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\frac{y}{{z}^{y}}}\\
t_2 := x \cdot \frac{{a}^{t}}{y}\\
t_3 := \frac{\frac{x}{e^{b}}}{y}\\
\mathbf{if}\;b \leq -115000000000:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -3.6 \cdot 10^{-103}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.6 \cdot 10^{-302}:\\
\;\;\;\;\frac{1}{\frac{a \cdot \left(y \cdot \left(1 + b\right)\right)}{x}}\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-260}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{-98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.05 \cdot 10^{+23}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -1.15e11 or 2.04999999999999998e23 < b Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6486.3%
Simplified86.3%
/-lowering-/.f64N/A
sub0-negN/A
rec-expN/A
un-div-invN/A
/-lowering-/.f64N/A
exp-lowering-exp.f6486.3%
Applied egg-rr86.3%
if -1.15e11 < b < -3.5999999999999998e-103 or 1.05000000000000002e-260 < b < 4.49999999999999997e-98Initial program 97.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
log-lowering-log.f6468.5%
Simplified68.5%
associate-/l*N/A
*-commutativeN/A
pow-to-expN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6468.5%
Applied egg-rr68.5%
if -3.5999999999999998e-103 < b < -1.59999999999999989e-302Initial program 95.9%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6472.4%
Simplified72.4%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6451.9%
Simplified51.9%
clear-numN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-evalN/A
div-invN/A
clear-numN/A
associate-*r/N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6457.0%
Applied egg-rr57.0%
Taylor expanded in b around 0
distribute-lft-outN/A
*-lowering-*.f64N/A
distribute-rgt1-inN/A
*-lowering-*.f64N/A
+-lowering-+.f6457.0%
Simplified57.0%
if -1.59999999999999989e-302 < b < 1.05000000000000002e-260 or 4.49999999999999997e-98 < b < 2.04999999999999998e23Initial program 99.0%
Taylor expanded in t around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6481.1%
Simplified81.1%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f6481.1%
Applied egg-rr81.1%
Final simplification78.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (/ y (pow z y)))))
(if (<= y -2.7e+131)
t_1
(if (<= y 1.02e+35) (/ 1.0 (/ (* y (* a (exp b))) x)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y / pow(z, y));
double tmp;
if (y <= -2.7e+131) {
tmp = t_1;
} else if (y <= 1.02e+35) {
tmp = 1.0 / ((y * (a * exp(b))) / x);
} 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 / (y / (z ** y))
if (y <= (-2.7d+131)) then
tmp = t_1
else if (y <= 1.02d+35) then
tmp = 1.0d0 / ((y * (a * exp(b))) / x)
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 / (y / Math.pow(z, y));
double tmp;
if (y <= -2.7e+131) {
tmp = t_1;
} else if (y <= 1.02e+35) {
tmp = 1.0 / ((y * (a * Math.exp(b))) / x);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y / math.pow(z, y)) tmp = 0 if y <= -2.7e+131: tmp = t_1 elif y <= 1.02e+35: tmp = 1.0 / ((y * (a * math.exp(b))) / x) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y / (z ^ y))) tmp = 0.0 if (y <= -2.7e+131) tmp = t_1; elseif (y <= 1.02e+35) tmp = Float64(1.0 / Float64(Float64(y * Float64(a * exp(b))) / x)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y / (z ^ y)); tmp = 0.0; if (y <= -2.7e+131) tmp = t_1; elseif (y <= 1.02e+35) tmp = 1.0 / ((y * (a * exp(b))) / x); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y / N[Power[z, y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.7e+131], t$95$1, If[LessEqual[y, 1.02e+35], N[(1.0 / N[(N[(y * N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\frac{y}{{z}^{y}}}\\
\mathbf{if}\;y \leq -2.7 \cdot 10^{+131}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.02 \cdot 10^{+35}:\\
\;\;\;\;\frac{1}{\frac{y \cdot \left(a \cdot e^{b}\right)}{x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.70000000000000004e131 or 1.02000000000000007e35 < y Initial program 100.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
log-lowering-log.f6488.6%
Simplified88.6%
associate-/l*N/A
*-commutativeN/A
pow-to-expN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6488.6%
Applied egg-rr88.6%
if -2.70000000000000004e131 < y < 1.02000000000000007e35Initial program 98.1%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6485.5%
Simplified85.5%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6473.2%
Simplified73.2%
clear-numN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-evalN/A
div-invN/A
clear-numN/A
associate-*r/N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6474.8%
Applied egg-rr74.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (/ y (pow z y)))))
(if (<= y -4.3e+131)
t_1
(if (<= y 1.55e+35) (/ (/ 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 / (y / pow(z, y));
double tmp;
if (y <= -4.3e+131) {
tmp = t_1;
} else if (y <= 1.55e+35) {
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 / (y / (z ** y))
if (y <= (-4.3d+131)) then
tmp = t_1
else if (y <= 1.55d+35) 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 / (y / Math.pow(z, y));
double tmp;
if (y <= -4.3e+131) {
tmp = t_1;
} else if (y <= 1.55e+35) {
tmp = (x / (a * Math.exp(b))) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y / math.pow(z, y)) tmp = 0 if y <= -4.3e+131: tmp = t_1 elif y <= 1.55e+35: tmp = (x / (a * math.exp(b))) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y / (z ^ y))) tmp = 0.0 if (y <= -4.3e+131) tmp = t_1; elseif (y <= 1.55e+35) 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 / (y / (z ^ y)); tmp = 0.0; if (y <= -4.3e+131) tmp = t_1; elseif (y <= 1.55e+35) 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[(x / N[(y / N[Power[z, y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.3e+131], t$95$1, If[LessEqual[y, 1.55e+35], 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}{\frac{y}{{z}^{y}}}\\
\mathbf{if}\;y \leq -4.3 \cdot 10^{+131}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{+35}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.3000000000000001e131 or 1.54999999999999993e35 < y Initial program 100.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
log-lowering-log.f6488.6%
Simplified88.6%
associate-/l*N/A
*-commutativeN/A
pow-to-expN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f6488.6%
Applied egg-rr88.6%
if -4.3000000000000001e131 < y < 1.54999999999999993e35Initial program 98.1%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6485.5%
Simplified85.5%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6473.2%
Simplified73.2%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ (/ x (exp b)) y))) (if (<= b -6.6e+37) t_1 (if (<= b 4e+24) (* x (/ (pow a t) y)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / exp(b)) / y;
double tmp;
if (b <= -6.6e+37) {
tmp = t_1;
} else if (b <= 4e+24) {
tmp = x * (pow(a, t) / 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 / exp(b)) / y
if (b <= (-6.6d+37)) then
tmp = t_1
else if (b <= 4d+24) then
tmp = x * ((a ** t) / 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.exp(b)) / y;
double tmp;
if (b <= -6.6e+37) {
tmp = t_1;
} else if (b <= 4e+24) {
tmp = x * (Math.pow(a, t) / y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / math.exp(b)) / y tmp = 0 if b <= -6.6e+37: tmp = t_1 elif b <= 4e+24: tmp = x * (math.pow(a, t) / y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / exp(b)) / y) tmp = 0.0 if (b <= -6.6e+37) tmp = t_1; elseif (b <= 4e+24) tmp = Float64(x * Float64((a ^ t) / y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / exp(b)) / y; tmp = 0.0; if (b <= -6.6e+37) tmp = t_1; elseif (b <= 4e+24) tmp = x * ((a ^ t) / 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[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -6.6e+37], t$95$1, If[LessEqual[b, 4e+24], N[(x * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{e^{b}}}{y}\\
\mathbf{if}\;b \leq -6.6 \cdot 10^{+37}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+24}:\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -6.6000000000000002e37 or 3.9999999999999999e24 < b Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6486.8%
Simplified86.8%
/-lowering-/.f64N/A
sub0-negN/A
rec-expN/A
un-div-invN/A
/-lowering-/.f64N/A
exp-lowering-exp.f6486.8%
Applied egg-rr86.8%
if -6.6000000000000002e37 < b < 3.9999999999999999e24Initial program 97.3%
Taylor expanded in t around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6450.4%
Simplified50.4%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f6450.4%
Applied egg-rr50.4%
Final simplification69.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x (exp b)) y)))
(if (<= b -1.9)
t_1
(if (<= b 1.55e+23)
(/
1.0
(/
(*
y
(+
a
(* b (+ a (* b (+ (* a (* b 0.16666666666666666)) (* a 0.5)))))))
x))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / exp(b)) / y;
double tmp;
if (b <= -1.9) {
tmp = t_1;
} else if (b <= 1.55e+23) {
tmp = 1.0 / ((y * (a + (b * (a + (b * ((a * (b * 0.16666666666666666)) + (a * 0.5))))))) / x);
} 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 / exp(b)) / y
if (b <= (-1.9d0)) then
tmp = t_1
else if (b <= 1.55d+23) then
tmp = 1.0d0 / ((y * (a + (b * (a + (b * ((a * (b * 0.16666666666666666d0)) + (a * 0.5d0))))))) / x)
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.exp(b)) / y;
double tmp;
if (b <= -1.9) {
tmp = t_1;
} else if (b <= 1.55e+23) {
tmp = 1.0 / ((y * (a + (b * (a + (b * ((a * (b * 0.16666666666666666)) + (a * 0.5))))))) / x);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / math.exp(b)) / y tmp = 0 if b <= -1.9: tmp = t_1 elif b <= 1.55e+23: tmp = 1.0 / ((y * (a + (b * (a + (b * ((a * (b * 0.16666666666666666)) + (a * 0.5))))))) / x) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / exp(b)) / y) tmp = 0.0 if (b <= -1.9) tmp = t_1; elseif (b <= 1.55e+23) tmp = Float64(1.0 / Float64(Float64(y * Float64(a + Float64(b * Float64(a + Float64(b * Float64(Float64(a * Float64(b * 0.16666666666666666)) + Float64(a * 0.5))))))) / x)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / exp(b)) / y; tmp = 0.0; if (b <= -1.9) tmp = t_1; elseif (b <= 1.55e+23) tmp = 1.0 / ((y * (a + (b * (a + (b * ((a * (b * 0.16666666666666666)) + (a * 0.5))))))) / x); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -1.9], t$95$1, If[LessEqual[b, 1.55e+23], N[(1.0 / N[(N[(y * N[(a + N[(b * N[(a + N[(b * N[(N[(a * N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision] + N[(a * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{e^{b}}}{y}\\
\mathbf{if}\;b \leq -1.9:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.55 \cdot 10^{+23}:\\
\;\;\;\;\frac{1}{\frac{y \cdot \left(a + b \cdot \left(a + b \cdot \left(a \cdot \left(b \cdot 0.16666666666666666\right) + a \cdot 0.5\right)\right)\right)}{x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.8999999999999999 or 1.54999999999999985e23 < b Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6486.4%
Simplified86.4%
/-lowering-/.f64N/A
sub0-negN/A
rec-expN/A
un-div-invN/A
/-lowering-/.f64N/A
exp-lowering-exp.f6486.4%
Applied egg-rr86.4%
if -1.8999999999999999 < b < 1.54999999999999985e23Initial program 97.2%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6469.6%
Simplified69.6%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6436.7%
Simplified36.7%
clear-numN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-evalN/A
div-invN/A
clear-numN/A
associate-*r/N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6439.0%
Applied egg-rr39.0%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6440.7%
Simplified40.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (* (* b (* b b)) -0.16666666666666666)) y)))
(if (<= b -2.5e-5)
t_1
(if (<= b -6.4e-261)
(/ (/ x (* a (+ 1.0 b))) y)
(if (<= b 7.4e-104)
t_1
(if (<= b 3.6e+48)
(/ (/ x (+ a (* b (+ a (* a (* b 0.5)))))) y)
(/
(/ x (+ 1.0 (* b (+ 1.0 (* b (+ (* b 0.16666666666666666) 0.5))))))
y)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * ((b * (b * b)) * -0.16666666666666666)) / y;
double tmp;
if (b <= -2.5e-5) {
tmp = t_1;
} else if (b <= -6.4e-261) {
tmp = (x / (a * (1.0 + b))) / y;
} else if (b <= 7.4e-104) {
tmp = t_1;
} else if (b <= 3.6e+48) {
tmp = (x / (a + (b * (a + (a * (b * 0.5)))))) / y;
} else {
tmp = (x / (1.0 + (b * (1.0 + (b * ((b * 0.16666666666666666) + 0.5)))))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x * ((b * (b * b)) * (-0.16666666666666666d0))) / y
if (b <= (-2.5d-5)) then
tmp = t_1
else if (b <= (-6.4d-261)) then
tmp = (x / (a * (1.0d0 + b))) / y
else if (b <= 7.4d-104) then
tmp = t_1
else if (b <= 3.6d+48) then
tmp = (x / (a + (b * (a + (a * (b * 0.5d0)))))) / y
else
tmp = (x / (1.0d0 + (b * (1.0d0 + (b * ((b * 0.16666666666666666d0) + 0.5d0)))))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * ((b * (b * b)) * -0.16666666666666666)) / y;
double tmp;
if (b <= -2.5e-5) {
tmp = t_1;
} else if (b <= -6.4e-261) {
tmp = (x / (a * (1.0 + b))) / y;
} else if (b <= 7.4e-104) {
tmp = t_1;
} else if (b <= 3.6e+48) {
tmp = (x / (a + (b * (a + (a * (b * 0.5)))))) / y;
} else {
tmp = (x / (1.0 + (b * (1.0 + (b * ((b * 0.16666666666666666) + 0.5)))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * ((b * (b * b)) * -0.16666666666666666)) / y tmp = 0 if b <= -2.5e-5: tmp = t_1 elif b <= -6.4e-261: tmp = (x / (a * (1.0 + b))) / y elif b <= 7.4e-104: tmp = t_1 elif b <= 3.6e+48: tmp = (x / (a + (b * (a + (a * (b * 0.5)))))) / y else: tmp = (x / (1.0 + (b * (1.0 + (b * ((b * 0.16666666666666666) + 0.5)))))) / y return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * Float64(Float64(b * Float64(b * b)) * -0.16666666666666666)) / y) tmp = 0.0 if (b <= -2.5e-5) tmp = t_1; elseif (b <= -6.4e-261) tmp = Float64(Float64(x / Float64(a * Float64(1.0 + b))) / y); elseif (b <= 7.4e-104) tmp = t_1; elseif (b <= 3.6e+48) tmp = Float64(Float64(x / Float64(a + Float64(b * Float64(a + Float64(a * Float64(b * 0.5)))))) / y); else tmp = Float64(Float64(x / Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * Float64(Float64(b * 0.16666666666666666) + 0.5)))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * ((b * (b * b)) * -0.16666666666666666)) / y; tmp = 0.0; if (b <= -2.5e-5) tmp = t_1; elseif (b <= -6.4e-261) tmp = (x / (a * (1.0 + b))) / y; elseif (b <= 7.4e-104) tmp = t_1; elseif (b <= 3.6e+48) tmp = (x / (a + (b * (a + (a * (b * 0.5)))))) / y; else tmp = (x / (1.0 + (b * (1.0 + (b * ((b * 0.16666666666666666) + 0.5)))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[(N[(b * N[(b * b), $MachinePrecision]), $MachinePrecision] * -0.16666666666666666), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -2.5e-5], t$95$1, If[LessEqual[b, -6.4e-261], N[(N[(x / N[(a * N[(1.0 + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 7.4e-104], t$95$1, If[LessEqual[b, 3.6e+48], N[(N[(x / N[(a + N[(b * N[(a + N[(a * N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / N[(1.0 + N[(b * N[(1.0 + N[(b * N[(N[(b * 0.16666666666666666), $MachinePrecision] + 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \left(\left(b \cdot \left(b \cdot b\right)\right) \cdot -0.16666666666666666\right)}{y}\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{-5}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -6.4 \cdot 10^{-261}:\\
\;\;\;\;\frac{\frac{x}{a \cdot \left(1 + b\right)}}{y}\\
\mathbf{elif}\;b \leq 7.4 \cdot 10^{-104}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3.6 \cdot 10^{+48}:\\
\;\;\;\;\frac{\frac{x}{a + b \cdot \left(a + a \cdot \left(b \cdot 0.5\right)\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{1 + b \cdot \left(1 + b \cdot \left(b \cdot 0.16666666666666666 + 0.5\right)\right)}}{y}\\
\end{array}
\end{array}
if b < -2.50000000000000012e-5 or -6.40000000000000008e-261 < b < 7.3999999999999999e-104Initial program 98.8%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6455.9%
Simplified55.9%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6446.7%
Simplified46.7%
Taylor expanded in b around inf
associate-*r/N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
/-lowering-/.f64N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6466.7%
Simplified66.7%
if -2.50000000000000012e-5 < b < -6.40000000000000008e-261Initial program 96.6%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6468.1%
Simplified68.1%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6447.0%
Simplified47.0%
Taylor expanded in b around 0
*-commutativeN/A
distribute-rgt1-inN/A
*-lowering-*.f64N/A
+-lowering-+.f6447.0%
Simplified47.0%
if 7.3999999999999999e-104 < b < 3.59999999999999983e48Initial program 99.0%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6479.5%
Simplified79.5%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6446.0%
Simplified46.0%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6446.4%
Simplified46.4%
if 3.59999999999999983e48 < b Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6482.4%
Simplified82.4%
/-lowering-/.f64N/A
sub0-negN/A
rec-expN/A
un-div-invN/A
/-lowering-/.f64N/A
exp-lowering-exp.f6482.4%
Applied egg-rr82.4%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6475.2%
Simplified75.2%
Final simplification63.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (* (* b (* b b)) -0.16666666666666666)) y)))
(if (<= b -2.5e-5)
t_1
(if (<= b -3.6e-261)
(/ (/ x (* a (+ 1.0 b))) y)
(if (<= b 2.7e-107)
t_1
(if (<= b 6.1e+153)
(/ (/ x (+ a (* b (+ a (* a (* b 0.5)))))) y)
(/ (/ x (- 1.0 (* b (- -1.0 (* b 0.5))))) y)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * ((b * (b * b)) * -0.16666666666666666)) / y;
double tmp;
if (b <= -2.5e-5) {
tmp = t_1;
} else if (b <= -3.6e-261) {
tmp = (x / (a * (1.0 + b))) / y;
} else if (b <= 2.7e-107) {
tmp = t_1;
} else if (b <= 6.1e+153) {
tmp = (x / (a + (b * (a + (a * (b * 0.5)))))) / y;
} else {
tmp = (x / (1.0 - (b * (-1.0 - (b * 0.5))))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x * ((b * (b * b)) * (-0.16666666666666666d0))) / y
if (b <= (-2.5d-5)) then
tmp = t_1
else if (b <= (-3.6d-261)) then
tmp = (x / (a * (1.0d0 + b))) / y
else if (b <= 2.7d-107) then
tmp = t_1
else if (b <= 6.1d+153) then
tmp = (x / (a + (b * (a + (a * (b * 0.5d0)))))) / y
else
tmp = (x / (1.0d0 - (b * ((-1.0d0) - (b * 0.5d0))))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * ((b * (b * b)) * -0.16666666666666666)) / y;
double tmp;
if (b <= -2.5e-5) {
tmp = t_1;
} else if (b <= -3.6e-261) {
tmp = (x / (a * (1.0 + b))) / y;
} else if (b <= 2.7e-107) {
tmp = t_1;
} else if (b <= 6.1e+153) {
tmp = (x / (a + (b * (a + (a * (b * 0.5)))))) / y;
} else {
tmp = (x / (1.0 - (b * (-1.0 - (b * 0.5))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * ((b * (b * b)) * -0.16666666666666666)) / y tmp = 0 if b <= -2.5e-5: tmp = t_1 elif b <= -3.6e-261: tmp = (x / (a * (1.0 + b))) / y elif b <= 2.7e-107: tmp = t_1 elif b <= 6.1e+153: tmp = (x / (a + (b * (a + (a * (b * 0.5)))))) / y else: tmp = (x / (1.0 - (b * (-1.0 - (b * 0.5))))) / y return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * Float64(Float64(b * Float64(b * b)) * -0.16666666666666666)) / y) tmp = 0.0 if (b <= -2.5e-5) tmp = t_1; elseif (b <= -3.6e-261) tmp = Float64(Float64(x / Float64(a * Float64(1.0 + b))) / y); elseif (b <= 2.7e-107) tmp = t_1; elseif (b <= 6.1e+153) tmp = Float64(Float64(x / Float64(a + Float64(b * Float64(a + Float64(a * Float64(b * 0.5)))))) / y); else tmp = Float64(Float64(x / Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * 0.5))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * ((b * (b * b)) * -0.16666666666666666)) / y; tmp = 0.0; if (b <= -2.5e-5) tmp = t_1; elseif (b <= -3.6e-261) tmp = (x / (a * (1.0 + b))) / y; elseif (b <= 2.7e-107) tmp = t_1; elseif (b <= 6.1e+153) tmp = (x / (a + (b * (a + (a * (b * 0.5)))))) / y; else tmp = (x / (1.0 - (b * (-1.0 - (b * 0.5))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[(N[(b * N[(b * b), $MachinePrecision]), $MachinePrecision] * -0.16666666666666666), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -2.5e-5], t$95$1, If[LessEqual[b, -3.6e-261], N[(N[(x / N[(a * N[(1.0 + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 2.7e-107], t$95$1, If[LessEqual[b, 6.1e+153], N[(N[(x / N[(a + N[(b * N[(a + N[(a * N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / N[(1.0 - N[(b * N[(-1.0 - N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \left(\left(b \cdot \left(b \cdot b\right)\right) \cdot -0.16666666666666666\right)}{y}\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{-5}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -3.6 \cdot 10^{-261}:\\
\;\;\;\;\frac{\frac{x}{a \cdot \left(1 + b\right)}}{y}\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{-107}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 6.1 \cdot 10^{+153}:\\
\;\;\;\;\frac{\frac{x}{a + b \cdot \left(a + a \cdot \left(b \cdot 0.5\right)\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{1 - b \cdot \left(-1 - b \cdot 0.5\right)}}{y}\\
\end{array}
\end{array}
if b < -2.50000000000000012e-5 or -3.59999999999999999e-261 < b < 2.7e-107Initial program 98.8%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6455.9%
Simplified55.9%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6446.7%
Simplified46.7%
Taylor expanded in b around inf
associate-*r/N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
/-lowering-/.f64N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6466.7%
Simplified66.7%
if -2.50000000000000012e-5 < b < -3.59999999999999999e-261Initial program 96.6%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6468.1%
Simplified68.1%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6447.0%
Simplified47.0%
Taylor expanded in b around 0
*-commutativeN/A
distribute-rgt1-inN/A
*-lowering-*.f64N/A
+-lowering-+.f6447.0%
Simplified47.0%
if 2.7e-107 < b < 6.0999999999999998e153Initial program 99.5%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6469.8%
Simplified69.8%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6461.5%
Simplified61.5%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6447.8%
Simplified47.8%
if 6.0999999999999998e153 < b Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6485.2%
Simplified85.2%
/-lowering-/.f64N/A
sub0-negN/A
rec-expN/A
un-div-invN/A
/-lowering-/.f64N/A
exp-lowering-exp.f6485.2%
Applied egg-rr85.2%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6485.2%
Simplified85.2%
Final simplification61.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (* (* b (* b b)) -0.16666666666666666)) y)))
(if (<= b -2.5e-5)
t_1
(if (<= b -5.2e-261)
(/ (/ x (* a (+ 1.0 b))) y)
(if (<= b 2.1e-108)
t_1
(/
(/
x
(* a (+ 1.0 (* b (+ 1.0 (* b (+ (* b 0.16666666666666666) 0.5)))))))
y))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * ((b * (b * b)) * -0.16666666666666666)) / y;
double tmp;
if (b <= -2.5e-5) {
tmp = t_1;
} else if (b <= -5.2e-261) {
tmp = (x / (a * (1.0 + b))) / y;
} else if (b <= 2.1e-108) {
tmp = t_1;
} else {
tmp = (x / (a * (1.0 + (b * (1.0 + (b * ((b * 0.16666666666666666) + 0.5))))))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x * ((b * (b * b)) * (-0.16666666666666666d0))) / y
if (b <= (-2.5d-5)) then
tmp = t_1
else if (b <= (-5.2d-261)) then
tmp = (x / (a * (1.0d0 + b))) / y
else if (b <= 2.1d-108) then
tmp = t_1
else
tmp = (x / (a * (1.0d0 + (b * (1.0d0 + (b * ((b * 0.16666666666666666d0) + 0.5d0))))))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * ((b * (b * b)) * -0.16666666666666666)) / y;
double tmp;
if (b <= -2.5e-5) {
tmp = t_1;
} else if (b <= -5.2e-261) {
tmp = (x / (a * (1.0 + b))) / y;
} else if (b <= 2.1e-108) {
tmp = t_1;
} else {
tmp = (x / (a * (1.0 + (b * (1.0 + (b * ((b * 0.16666666666666666) + 0.5))))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * ((b * (b * b)) * -0.16666666666666666)) / y tmp = 0 if b <= -2.5e-5: tmp = t_1 elif b <= -5.2e-261: tmp = (x / (a * (1.0 + b))) / y elif b <= 2.1e-108: tmp = t_1 else: tmp = (x / (a * (1.0 + (b * (1.0 + (b * ((b * 0.16666666666666666) + 0.5))))))) / y return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * Float64(Float64(b * Float64(b * b)) * -0.16666666666666666)) / y) tmp = 0.0 if (b <= -2.5e-5) tmp = t_1; elseif (b <= -5.2e-261) tmp = Float64(Float64(x / Float64(a * Float64(1.0 + b))) / y); elseif (b <= 2.1e-108) tmp = t_1; else tmp = Float64(Float64(x / Float64(a * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * Float64(Float64(b * 0.16666666666666666) + 0.5))))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * ((b * (b * b)) * -0.16666666666666666)) / y; tmp = 0.0; if (b <= -2.5e-5) tmp = t_1; elseif (b <= -5.2e-261) tmp = (x / (a * (1.0 + b))) / y; elseif (b <= 2.1e-108) tmp = t_1; else tmp = (x / (a * (1.0 + (b * (1.0 + (b * ((b * 0.16666666666666666) + 0.5))))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[(N[(b * N[(b * b), $MachinePrecision]), $MachinePrecision] * -0.16666666666666666), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -2.5e-5], t$95$1, If[LessEqual[b, -5.2e-261], N[(N[(x / N[(a * N[(1.0 + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 2.1e-108], t$95$1, N[(N[(x / N[(a * N[(1.0 + N[(b * N[(1.0 + N[(b * N[(N[(b * 0.16666666666666666), $MachinePrecision] + 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \left(\left(b \cdot \left(b \cdot b\right)\right) \cdot -0.16666666666666666\right)}{y}\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{-5}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5.2 \cdot 10^{-261}:\\
\;\;\;\;\frac{\frac{x}{a \cdot \left(1 + b\right)}}{y}\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{-108}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a \cdot \left(1 + b \cdot \left(1 + b \cdot \left(b \cdot 0.16666666666666666 + 0.5\right)\right)\right)}}{y}\\
\end{array}
\end{array}
if b < -2.50000000000000012e-5 or -5.2000000000000002e-261 < b < 2.0999999999999999e-108Initial program 98.8%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6455.9%
Simplified55.9%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6446.7%
Simplified46.7%
Taylor expanded in b around inf
associate-*r/N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
/-lowering-/.f64N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6466.7%
Simplified66.7%
if -2.50000000000000012e-5 < b < -5.2000000000000002e-261Initial program 96.6%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6468.1%
Simplified68.1%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6447.0%
Simplified47.0%
Taylor expanded in b around 0
*-commutativeN/A
distribute-rgt1-inN/A
*-lowering-*.f64N/A
+-lowering-+.f6447.0%
Simplified47.0%
if 2.0999999999999999e-108 < b Initial program 99.7%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6471.0%
Simplified71.0%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6471.4%
Simplified71.4%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6464.5%
Simplified64.5%
Final simplification62.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -4.8e-77)
(/
(*
(* b (* b b))
(- (/ (+ (* x 0.5) (/ (- (/ x b) x) b)) b) (* x 0.16666666666666666)))
y)
(/
1.0
(/
(*
y
(+ a (* b (+ a (* b (+ (* a (* b 0.16666666666666666)) (* a 0.5)))))))
x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.8e-77) {
tmp = ((b * (b * b)) * ((((x * 0.5) + (((x / b) - x) / b)) / b) - (x * 0.16666666666666666))) / y;
} else {
tmp = 1.0 / ((y * (a + (b * (a + (b * ((a * (b * 0.16666666666666666)) + (a * 0.5))))))) / x);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-4.8d-77)) then
tmp = ((b * (b * b)) * ((((x * 0.5d0) + (((x / b) - x) / b)) / b) - (x * 0.16666666666666666d0))) / y
else
tmp = 1.0d0 / ((y * (a + (b * (a + (b * ((a * (b * 0.16666666666666666d0)) + (a * 0.5d0))))))) / x)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.8e-77) {
tmp = ((b * (b * b)) * ((((x * 0.5) + (((x / b) - x) / b)) / b) - (x * 0.16666666666666666))) / y;
} else {
tmp = 1.0 / ((y * (a + (b * (a + (b * ((a * (b * 0.16666666666666666)) + (a * 0.5))))))) / x);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -4.8e-77: tmp = ((b * (b * b)) * ((((x * 0.5) + (((x / b) - x) / b)) / b) - (x * 0.16666666666666666))) / y else: tmp = 1.0 / ((y * (a + (b * (a + (b * ((a * (b * 0.16666666666666666)) + (a * 0.5))))))) / x) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -4.8e-77) tmp = Float64(Float64(Float64(b * Float64(b * b)) * Float64(Float64(Float64(Float64(x * 0.5) + Float64(Float64(Float64(x / b) - x) / b)) / b) - Float64(x * 0.16666666666666666))) / y); else tmp = Float64(1.0 / Float64(Float64(y * Float64(a + Float64(b * Float64(a + Float64(b * Float64(Float64(a * Float64(b * 0.16666666666666666)) + Float64(a * 0.5))))))) / x)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -4.8e-77) tmp = ((b * (b * b)) * ((((x * 0.5) + (((x / b) - x) / b)) / b) - (x * 0.16666666666666666))) / y; else tmp = 1.0 / ((y * (a + (b * (a + (b * ((a * (b * 0.16666666666666666)) + (a * 0.5))))))) / x); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -4.8e-77], N[(N[(N[(b * N[(b * b), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[(x * 0.5), $MachinePrecision] + N[(N[(N[(x / b), $MachinePrecision] - x), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision] - N[(x * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(1.0 / N[(N[(y * N[(a + N[(b * N[(a + N[(b * N[(N[(a * N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision] + N[(a * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.8 \cdot 10^{-77}:\\
\;\;\;\;\frac{\left(b \cdot \left(b \cdot b\right)\right) \cdot \left(\frac{x \cdot 0.5 + \frac{\frac{x}{b} - x}{b}}{b} - x \cdot 0.16666666666666666\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{y \cdot \left(a + b \cdot \left(a + b \cdot \left(a \cdot \left(b \cdot 0.16666666666666666\right) + a \cdot 0.5\right)\right)\right)}{x}}\\
\end{array}
\end{array}
if b < -4.7999999999999998e-77Initial program 99.8%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6476.6%
Simplified76.6%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6463.4%
Simplified63.4%
Taylor expanded in b around -inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Simplified71.9%
if -4.7999999999999998e-77 < b Initial program 98.3%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6470.1%
Simplified70.1%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6456.0%
Simplified56.0%
clear-numN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-evalN/A
div-invN/A
clear-numN/A
associate-*r/N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6458.2%
Applied egg-rr58.2%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6454.4%
Simplified54.4%
Final simplification59.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -2.5e-5)
(/ (* x (* (* b (* b b)) -0.16666666666666666)) y)
(/
1.0
(/
(*
y
(+ a (* b (+ a (* b (+ (* a (* b 0.16666666666666666)) (* a 0.5)))))))
x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.5e-5) {
tmp = (x * ((b * (b * b)) * -0.16666666666666666)) / y;
} else {
tmp = 1.0 / ((y * (a + (b * (a + (b * ((a * (b * 0.16666666666666666)) + (a * 0.5))))))) / x);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-2.5d-5)) then
tmp = (x * ((b * (b * b)) * (-0.16666666666666666d0))) / y
else
tmp = 1.0d0 / ((y * (a + (b * (a + (b * ((a * (b * 0.16666666666666666d0)) + (a * 0.5d0))))))) / x)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.5e-5) {
tmp = (x * ((b * (b * b)) * -0.16666666666666666)) / y;
} else {
tmp = 1.0 / ((y * (a + (b * (a + (b * ((a * (b * 0.16666666666666666)) + (a * 0.5))))))) / x);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.5e-5: tmp = (x * ((b * (b * b)) * -0.16666666666666666)) / y else: tmp = 1.0 / ((y * (a + (b * (a + (b * ((a * (b * 0.16666666666666666)) + (a * 0.5))))))) / x) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.5e-5) tmp = Float64(Float64(x * Float64(Float64(b * Float64(b * b)) * -0.16666666666666666)) / y); else tmp = Float64(1.0 / Float64(Float64(y * Float64(a + Float64(b * Float64(a + Float64(b * Float64(Float64(a * Float64(b * 0.16666666666666666)) + Float64(a * 0.5))))))) / x)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.5e-5) tmp = (x * ((b * (b * b)) * -0.16666666666666666)) / y; else tmp = 1.0 / ((y * (a + (b * (a + (b * ((a * (b * 0.16666666666666666)) + (a * 0.5))))))) / x); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.5e-5], N[(N[(x * N[(N[(b * N[(b * b), $MachinePrecision]), $MachinePrecision] * -0.16666666666666666), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(1.0 / N[(N[(y * N[(a + N[(b * N[(a + N[(b * N[(N[(a * N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision] + N[(a * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.5 \cdot 10^{-5}:\\
\;\;\;\;\frac{x \cdot \left(\left(b \cdot \left(b \cdot b\right)\right) \cdot -0.16666666666666666\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{y \cdot \left(a + b \cdot \left(a + b \cdot \left(a \cdot \left(b \cdot 0.16666666666666666\right) + a \cdot 0.5\right)\right)\right)}{x}}\\
\end{array}
\end{array}
if b < -2.50000000000000012e-5Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6491.0%
Simplified91.0%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6474.8%
Simplified74.8%
Taylor expanded in b around inf
associate-*r/N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
/-lowering-/.f64N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6480.8%
Simplified80.8%
if -2.50000000000000012e-5 < b Initial program 98.3%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6469.2%
Simplified69.2%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6454.2%
Simplified54.2%
clear-numN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-evalN/A
div-invN/A
clear-numN/A
associate-*r/N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6455.6%
Applied egg-rr55.6%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6452.1%
Simplified52.1%
Final simplification59.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x (* a (+ 1.0 b))) y))
(t_2 (/ (* x (* (* b (* b b)) -0.16666666666666666)) y)))
(if (<= b -2.5e-5)
t_2
(if (<= b -3.7e-261) t_1 (if (<= b 6.5e-107) t_2 t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / (a * (1.0 + b))) / y;
double t_2 = (x * ((b * (b * b)) * -0.16666666666666666)) / y;
double tmp;
if (b <= -2.5e-5) {
tmp = t_2;
} else if (b <= -3.7e-261) {
tmp = t_1;
} else if (b <= 6.5e-107) {
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 / (a * (1.0d0 + b))) / y
t_2 = (x * ((b * (b * b)) * (-0.16666666666666666d0))) / y
if (b <= (-2.5d-5)) then
tmp = t_2
else if (b <= (-3.7d-261)) then
tmp = t_1
else if (b <= 6.5d-107) 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 / (a * (1.0 + b))) / y;
double t_2 = (x * ((b * (b * b)) * -0.16666666666666666)) / y;
double tmp;
if (b <= -2.5e-5) {
tmp = t_2;
} else if (b <= -3.7e-261) {
tmp = t_1;
} else if (b <= 6.5e-107) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / (a * (1.0 + b))) / y t_2 = (x * ((b * (b * b)) * -0.16666666666666666)) / y tmp = 0 if b <= -2.5e-5: tmp = t_2 elif b <= -3.7e-261: tmp = t_1 elif b <= 6.5e-107: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / Float64(a * Float64(1.0 + b))) / y) t_2 = Float64(Float64(x * Float64(Float64(b * Float64(b * b)) * -0.16666666666666666)) / y) tmp = 0.0 if (b <= -2.5e-5) tmp = t_2; elseif (b <= -3.7e-261) tmp = t_1; elseif (b <= 6.5e-107) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / (a * (1.0 + b))) / y; t_2 = (x * ((b * (b * b)) * -0.16666666666666666)) / y; tmp = 0.0; if (b <= -2.5e-5) tmp = t_2; elseif (b <= -3.7e-261) tmp = t_1; elseif (b <= 6.5e-107) tmp = t_2; 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[(1.0 + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(b * N[(b * b), $MachinePrecision]), $MachinePrecision] * -0.16666666666666666), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -2.5e-5], t$95$2, If[LessEqual[b, -3.7e-261], t$95$1, If[LessEqual[b, 6.5e-107], t$95$2, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{a \cdot \left(1 + b\right)}}{y}\\
t_2 := \frac{x \cdot \left(\left(b \cdot \left(b \cdot b\right)\right) \cdot -0.16666666666666666\right)}{y}\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{-5}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -3.7 \cdot 10^{-261}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{-107}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.50000000000000012e-5 or -3.7000000000000002e-261 < b < 6.5000000000000002e-107Initial program 98.8%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6455.9%
Simplified55.9%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6446.7%
Simplified46.7%
Taylor expanded in b around inf
associate-*r/N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
/-lowering-/.f64N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6466.7%
Simplified66.7%
if -2.50000000000000012e-5 < b < -3.7000000000000002e-261 or 6.5000000000000002e-107 < b Initial program 98.7%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6470.1%
Simplified70.1%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6463.5%
Simplified63.5%
Taylor expanded in b around 0
*-commutativeN/A
distribute-rgt1-inN/A
*-lowering-*.f64N/A
+-lowering-+.f6443.1%
Simplified43.1%
Final simplification53.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x (* a (+ 1.0 b))) y)) (t_2 (/ (* x (* 0.5 (* b b))) y)))
(if (<= b -2.5e-5)
t_2
(if (<= b -4.2e-261) t_1 (if (<= b 2.15e-217) t_2 t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / (a * (1.0 + b))) / y;
double t_2 = (x * (0.5 * (b * b))) / y;
double tmp;
if (b <= -2.5e-5) {
tmp = t_2;
} else if (b <= -4.2e-261) {
tmp = t_1;
} else if (b <= 2.15e-217) {
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 / (a * (1.0d0 + b))) / y
t_2 = (x * (0.5d0 * (b * b))) / y
if (b <= (-2.5d-5)) then
tmp = t_2
else if (b <= (-4.2d-261)) then
tmp = t_1
else if (b <= 2.15d-217) 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 / (a * (1.0 + b))) / y;
double t_2 = (x * (0.5 * (b * b))) / y;
double tmp;
if (b <= -2.5e-5) {
tmp = t_2;
} else if (b <= -4.2e-261) {
tmp = t_1;
} else if (b <= 2.15e-217) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / (a * (1.0 + b))) / y t_2 = (x * (0.5 * (b * b))) / y tmp = 0 if b <= -2.5e-5: tmp = t_2 elif b <= -4.2e-261: tmp = t_1 elif b <= 2.15e-217: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / Float64(a * Float64(1.0 + b))) / y) t_2 = Float64(Float64(x * Float64(0.5 * Float64(b * b))) / y) tmp = 0.0 if (b <= -2.5e-5) tmp = t_2; elseif (b <= -4.2e-261) tmp = t_1; elseif (b <= 2.15e-217) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / (a * (1.0 + b))) / y; t_2 = (x * (0.5 * (b * b))) / y; tmp = 0.0; if (b <= -2.5e-5) tmp = t_2; elseif (b <= -4.2e-261) tmp = t_1; elseif (b <= 2.15e-217) tmp = t_2; 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[(1.0 + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(0.5 * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -2.5e-5], t$95$2, If[LessEqual[b, -4.2e-261], t$95$1, If[LessEqual[b, 2.15e-217], t$95$2, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{a \cdot \left(1 + b\right)}}{y}\\
t_2 := \frac{x \cdot \left(0.5 \cdot \left(b \cdot b\right)\right)}{y}\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{-5}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -4.2 \cdot 10^{-261}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.15 \cdot 10^{-217}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.50000000000000012e-5 or -4.19999999999999991e-261 < b < 2.15000000000000011e-217Initial program 98.7%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6466.5%
Simplified66.5%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
metadata-evalN/A
sub-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6446.9%
Simplified46.9%
Taylor expanded in b around inf
*-commutativeN/A
*-commutativeN/A
associate-*l*N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.4%
Simplified65.4%
if -2.50000000000000012e-5 < b < -4.19999999999999991e-261 or 2.15000000000000011e-217 < b Initial program 98.7%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6468.1%
Simplified68.1%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6459.5%
Simplified59.5%
Taylor expanded in b around 0
*-commutativeN/A
distribute-rgt1-inN/A
*-lowering-*.f64N/A
+-lowering-+.f6441.8%
Simplified41.8%
Final simplification50.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -2.5e-5)
(/ (* x (* (* b (* b b)) -0.16666666666666666)) y)
(if (<= b 3.2e+48)
(/ 1.0 (/ (* a (* y (+ 1.0 b))) x))
(/ (/ x (- 1.0 (* b (- -1.0 (* b 0.5))))) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.5e-5) {
tmp = (x * ((b * (b * b)) * -0.16666666666666666)) / y;
} else if (b <= 3.2e+48) {
tmp = 1.0 / ((a * (y * (1.0 + b))) / x);
} else {
tmp = (x / (1.0 - (b * (-1.0 - (b * 0.5))))) / 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.5d-5)) then
tmp = (x * ((b * (b * b)) * (-0.16666666666666666d0))) / y
else if (b <= 3.2d+48) then
tmp = 1.0d0 / ((a * (y * (1.0d0 + b))) / x)
else
tmp = (x / (1.0d0 - (b * ((-1.0d0) - (b * 0.5d0))))) / 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.5e-5) {
tmp = (x * ((b * (b * b)) * -0.16666666666666666)) / y;
} else if (b <= 3.2e+48) {
tmp = 1.0 / ((a * (y * (1.0 + b))) / x);
} else {
tmp = (x / (1.0 - (b * (-1.0 - (b * 0.5))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.5e-5: tmp = (x * ((b * (b * b)) * -0.16666666666666666)) / y elif b <= 3.2e+48: tmp = 1.0 / ((a * (y * (1.0 + b))) / x) else: tmp = (x / (1.0 - (b * (-1.0 - (b * 0.5))))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.5e-5) tmp = Float64(Float64(x * Float64(Float64(b * Float64(b * b)) * -0.16666666666666666)) / y); elseif (b <= 3.2e+48) tmp = Float64(1.0 / Float64(Float64(a * Float64(y * Float64(1.0 + b))) / x)); else tmp = Float64(Float64(x / Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * 0.5))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.5e-5) tmp = (x * ((b * (b * b)) * -0.16666666666666666)) / y; elseif (b <= 3.2e+48) tmp = 1.0 / ((a * (y * (1.0 + b))) / x); else tmp = (x / (1.0 - (b * (-1.0 - (b * 0.5))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.5e-5], N[(N[(x * N[(N[(b * N[(b * b), $MachinePrecision]), $MachinePrecision] * -0.16666666666666666), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 3.2e+48], N[(1.0 / N[(N[(a * N[(y * N[(1.0 + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(1.0 - N[(b * N[(-1.0 - N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.5 \cdot 10^{-5}:\\
\;\;\;\;\frac{x \cdot \left(\left(b \cdot \left(b \cdot b\right)\right) \cdot -0.16666666666666666\right)}{y}\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{+48}:\\
\;\;\;\;\frac{1}{\frac{a \cdot \left(y \cdot \left(1 + b\right)\right)}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{1 - b \cdot \left(-1 - b \cdot 0.5\right)}}{y}\\
\end{array}
\end{array}
if b < -2.50000000000000012e-5Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6491.0%
Simplified91.0%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6474.8%
Simplified74.8%
Taylor expanded in b around inf
associate-*r/N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
/-lowering-/.f64N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6480.8%
Simplified80.8%
if -2.50000000000000012e-5 < b < 3.2000000000000001e48Initial program 97.4%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6470.2%
Simplified70.2%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6439.0%
Simplified39.0%
clear-numN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-evalN/A
div-invN/A
clear-numN/A
associate-*r/N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6441.1%
Applied egg-rr41.1%
Taylor expanded in b around 0
distribute-lft-outN/A
*-lowering-*.f64N/A
distribute-rgt1-inN/A
*-lowering-*.f64N/A
+-lowering-+.f6440.4%
Simplified40.4%
if 3.2000000000000001e48 < b Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6482.4%
Simplified82.4%
/-lowering-/.f64N/A
sub0-negN/A
rec-expN/A
un-div-invN/A
/-lowering-/.f64N/A
exp-lowering-exp.f6482.4%
Applied egg-rr82.4%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6466.5%
Simplified66.5%
Final simplification57.5%
(FPCore (x y z t a b) :precision binary64 (if (<= b -7.2e-6) (/ (* x (* 0.5 (* b b))) y) (if (<= b 5.8e+52) (/ x (* y a)) (/ (/ x (+ 1.0 b)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -7.2e-6) {
tmp = (x * (0.5 * (b * b))) / y;
} else if (b <= 5.8e+52) {
tmp = x / (y * a);
} else {
tmp = (x / (1.0 + 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-6)) then
tmp = (x * (0.5d0 * (b * b))) / y
else if (b <= 5.8d+52) then
tmp = x / (y * a)
else
tmp = (x / (1.0d0 + 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-6) {
tmp = (x * (0.5 * (b * b))) / y;
} else if (b <= 5.8e+52) {
tmp = x / (y * a);
} else {
tmp = (x / (1.0 + b)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -7.2e-6: tmp = (x * (0.5 * (b * b))) / y elif b <= 5.8e+52: tmp = x / (y * a) else: tmp = (x / (1.0 + b)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -7.2e-6) tmp = Float64(Float64(x * Float64(0.5 * Float64(b * b))) / y); elseif (b <= 5.8e+52) tmp = Float64(x / Float64(y * a)); else tmp = Float64(Float64(x / Float64(1.0 + b)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -7.2e-6) tmp = (x * (0.5 * (b * b))) / y; elseif (b <= 5.8e+52) tmp = x / (y * a); else tmp = (x / (1.0 + b)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -7.2e-6], N[(N[(x * N[(0.5 * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 5.8e+52], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(1.0 + b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.2 \cdot 10^{-6}:\\
\;\;\;\;\frac{x \cdot \left(0.5 \cdot \left(b \cdot b\right)\right)}{y}\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{+52}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{1 + b}}{y}\\
\end{array}
\end{array}
if b < -7.19999999999999967e-6Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6491.0%
Simplified91.0%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
metadata-evalN/A
sub-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6463.3%
Simplified63.3%
Taylor expanded in b around inf
*-commutativeN/A
*-commutativeN/A
associate-*l*N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6470.5%
Simplified70.5%
if -7.19999999999999967e-6 < b < 5.8e52Initial program 97.4%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6470.2%
Simplified70.2%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6439.0%
Simplified39.0%
clear-numN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-evalN/A
div-invN/A
clear-numN/A
associate-*r/N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6441.1%
Applied egg-rr41.1%
Taylor expanded in b around 0
/-lowering-/.f64N/A
*-lowering-*.f6439.4%
Simplified39.4%
if 5.8e52 < b Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6482.4%
Simplified82.4%
/-lowering-/.f64N/A
sub0-negN/A
rec-expN/A
un-div-invN/A
/-lowering-/.f64N/A
exp-lowering-exp.f6482.4%
Applied egg-rr82.4%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6427.5%
Simplified27.5%
Final simplification44.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.5e-5) (* (* 0.5 (* b b)) (/ x y)) (if (<= b 7e+50) (/ x (* y a)) (/ (/ x (+ 1.0 b)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.5e-5) {
tmp = (0.5 * (b * b)) * (x / y);
} else if (b <= 7e+50) {
tmp = x / (y * a);
} else {
tmp = (x / (1.0 + 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.5d-5)) then
tmp = (0.5d0 * (b * b)) * (x / y)
else if (b <= 7d+50) then
tmp = x / (y * a)
else
tmp = (x / (1.0d0 + 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.5e-5) {
tmp = (0.5 * (b * b)) * (x / y);
} else if (b <= 7e+50) {
tmp = x / (y * a);
} else {
tmp = (x / (1.0 + b)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.5e-5: tmp = (0.5 * (b * b)) * (x / y) elif b <= 7e+50: tmp = x / (y * a) else: tmp = (x / (1.0 + b)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.5e-5) tmp = Float64(Float64(0.5 * Float64(b * b)) * Float64(x / y)); elseif (b <= 7e+50) tmp = Float64(x / Float64(y * a)); else tmp = Float64(Float64(x / Float64(1.0 + b)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.5e-5) tmp = (0.5 * (b * b)) * (x / y); elseif (b <= 7e+50) tmp = x / (y * a); else tmp = (x / (1.0 + b)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.5e-5], N[(N[(0.5 * N[(b * b), $MachinePrecision]), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7e+50], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(1.0 + b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.5 \cdot 10^{-5}:\\
\;\;\;\;\left(0.5 \cdot \left(b \cdot b\right)\right) \cdot \frac{x}{y}\\
\mathbf{elif}\;b \leq 7 \cdot 10^{+50}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{1 + b}}{y}\\
\end{array}
\end{array}
if b < -2.50000000000000012e-5Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6491.0%
Simplified91.0%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
metadata-evalN/A
sub-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6463.3%
Simplified63.3%
Taylor expanded in b around inf
associate-/l*N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
associate-*l*N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*r*N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6464.4%
Simplified64.4%
if -2.50000000000000012e-5 < b < 7.00000000000000012e50Initial program 97.4%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6470.2%
Simplified70.2%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6439.0%
Simplified39.0%
clear-numN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-evalN/A
div-invN/A
clear-numN/A
associate-*r/N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6441.1%
Applied egg-rr41.1%
Taylor expanded in b around 0
/-lowering-/.f64N/A
*-lowering-*.f6439.4%
Simplified39.4%
if 7.00000000000000012e50 < b Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6482.4%
Simplified82.4%
/-lowering-/.f64N/A
sub0-negN/A
rec-expN/A
un-div-invN/A
/-lowering-/.f64N/A
exp-lowering-exp.f6482.4%
Applied egg-rr82.4%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6427.5%
Simplified27.5%
Final simplification42.6%
(FPCore (x y z t a b) :precision binary64 (if (<= b -65.0) (/ (* x (- 1.0 b)) y) (if (<= b 2.2e+52) (/ x (* y a)) (/ (/ x (+ 1.0 b)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -65.0) {
tmp = (x * (1.0 - b)) / y;
} else if (b <= 2.2e+52) {
tmp = x / (y * a);
} else {
tmp = (x / (1.0 + 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 <= (-65.0d0)) then
tmp = (x * (1.0d0 - b)) / y
else if (b <= 2.2d+52) then
tmp = x / (y * a)
else
tmp = (x / (1.0d0 + 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 <= -65.0) {
tmp = (x * (1.0 - b)) / y;
} else if (b <= 2.2e+52) {
tmp = x / (y * a);
} else {
tmp = (x / (1.0 + b)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -65.0: tmp = (x * (1.0 - b)) / y elif b <= 2.2e+52: tmp = x / (y * a) else: tmp = (x / (1.0 + b)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -65.0) tmp = Float64(Float64(x * Float64(1.0 - b)) / y); elseif (b <= 2.2e+52) tmp = Float64(x / Float64(y * a)); else tmp = Float64(Float64(x / Float64(1.0 + b)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -65.0) tmp = (x * (1.0 - b)) / y; elseif (b <= 2.2e+52) tmp = x / (y * a); else tmp = (x / (1.0 + b)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -65.0], N[(N[(x * N[(1.0 - b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 2.2e+52], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(1.0 + b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -65:\\
\;\;\;\;\frac{x \cdot \left(1 - b\right)}{y}\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{+52}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{1 + b}}{y}\\
\end{array}
\end{array}
if b < -65Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6492.3%
Simplified92.3%
Taylor expanded in b around 0
associate-*r*N/A
distribute-rgt1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
neg-mul-1N/A
unsub-negN/A
--lowering--.f6444.5%
Simplified44.5%
if -65 < b < 2.2e52Initial program 97.4%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6469.7%
Simplified69.7%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6438.7%
Simplified38.7%
clear-numN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-evalN/A
div-invN/A
clear-numN/A
associate-*r/N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6440.8%
Applied egg-rr40.8%
Taylor expanded in b around 0
/-lowering-/.f64N/A
*-lowering-*.f6439.1%
Simplified39.1%
if 2.2e52 < b Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6482.4%
Simplified82.4%
/-lowering-/.f64N/A
sub0-negN/A
rec-expN/A
un-div-invN/A
/-lowering-/.f64N/A
exp-lowering-exp.f6482.4%
Applied egg-rr82.4%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6427.5%
Simplified27.5%
Final simplification37.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b -3100.0) (/ (* x (- 1.0 b)) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3100.0) {
tmp = (x * (1.0 - b)) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-3100.0d0)) then
tmp = (x * (1.0d0 - b)) / y
else
tmp = x / (y * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3100.0) {
tmp = (x * (1.0 - b)) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3100.0: tmp = (x * (1.0 - b)) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3100.0) tmp = Float64(Float64(x * Float64(1.0 - b)) / y); else tmp = Float64(x / Float64(y * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -3100.0) tmp = (x * (1.0 - b)) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3100.0], N[(N[(x * N[(1.0 - b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3100:\\
\;\;\;\;\frac{x \cdot \left(1 - b\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if b < -3100Initial program 100.0%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6492.3%
Simplified92.3%
Taylor expanded in b around 0
associate-*r*N/A
distribute-rgt1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
neg-mul-1N/A
unsub-negN/A
--lowering--.f6444.5%
Simplified44.5%
if -3100 < b Initial program 98.3%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6468.9%
Simplified68.9%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6453.9%
Simplified53.9%
clear-numN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-evalN/A
div-invN/A
clear-numN/A
associate-*r/N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6455.3%
Applied egg-rr55.3%
Taylor expanded in b around 0
/-lowering-/.f64N/A
*-lowering-*.f6429.5%
Simplified29.5%
Final simplification33.3%
(FPCore (x y z t a b) :precision binary64 (if (<= t 2.05e-249) (/ (/ x a) y) (/ 1.0 (/ (* y a) x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 2.05e-249) {
tmp = (x / a) / y;
} else {
tmp = 1.0 / ((y * a) / x);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= 2.05d-249) then
tmp = (x / a) / y
else
tmp = 1.0d0 / ((y * a) / x)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 2.05e-249) {
tmp = (x / a) / y;
} else {
tmp = 1.0 / ((y * a) / x);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= 2.05e-249: tmp = (x / a) / y else: tmp = 1.0 / ((y * a) / x) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= 2.05e-249) tmp = Float64(Float64(x / a) / y); else tmp = Float64(1.0 / Float64(Float64(y * a) / x)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= 2.05e-249) tmp = (x / a) / y; else tmp = 1.0 / ((y * a) / x); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, 2.05e-249], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(1.0 / N[(N[(y * a), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.05 \cdot 10^{-249}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{y \cdot a}{x}}\\
\end{array}
\end{array}
if t < 2.05000000000000002e-249Initial program 99.6%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6468.2%
Simplified68.2%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6467.0%
Simplified67.0%
Taylor expanded in b around 0
/-lowering-/.f6433.7%
Simplified33.7%
if 2.05000000000000002e-249 < t Initial program 97.9%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6475.0%
Simplified75.0%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6460.1%
Simplified60.1%
clear-numN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-evalN/A
div-invN/A
clear-numN/A
associate-*r/N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6462.2%
Applied egg-rr62.2%
Taylor expanded in b around 0
Simplified30.3%
(FPCore (x y z t a b) :precision binary64 (if (<= t -6.2e-239) (/ (/ x a) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -6.2e-239) {
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 (t <= (-6.2d-239)) 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 (t <= -6.2e-239) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -6.2e-239: tmp = (x / a) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -6.2e-239) 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 (t <= -6.2e-239) tmp = (x / a) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -6.2e-239], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.2 \cdot 10^{-239}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if t < -6.1999999999999997e-239Initial program 99.6%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6467.9%
Simplified67.9%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6466.4%
Simplified66.4%
Taylor expanded in b around 0
/-lowering-/.f6435.4%
Simplified35.4%
if -6.1999999999999997e-239 < t Initial program 98.2%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6473.9%
Simplified73.9%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6461.7%
Simplified61.7%
clear-numN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-evalN/A
div-invN/A
clear-numN/A
associate-*r/N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6464.0%
Applied egg-rr64.0%
Taylor expanded in b around 0
/-lowering-/.f64N/A
*-lowering-*.f6429.8%
Simplified29.8%
Final simplification32.0%
(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%
Taylor expanded in y around 0
exp-diffN/A
/-lowering-/.f64N/A
exp-to-powN/A
pow-lowering-pow.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
exp-lowering-exp.f6471.6%
Simplified71.6%
Taylor expanded in t around 0
associate-/r*N/A
*-commutativeN/A
associate-/r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6463.5%
Simplified63.5%
clear-numN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-evalN/A
div-invN/A
clear-numN/A
associate-*r/N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f6464.6%
Applied egg-rr64.6%
Taylor expanded in b around 0
/-lowering-/.f64N/A
*-lowering-*.f6430.1%
Simplified30.1%
Final simplification30.1%
(FPCore (x y z t a b) :precision binary64 (/ 1.0 (/ y x)))
double code(double x, double y, double z, double t, double a, double b) {
return 1.0 / (y / x);
}
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 = 1.0d0 / (y / x)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return 1.0 / (y / x);
}
def code(x, y, z, t, a, b): return 1.0 / (y / x)
function code(x, y, z, t, a, b) return Float64(1.0 / Float64(y / x)) end
function tmp = code(x, y, z, t, a, b) tmp = 1.0 / (y / x); end
code[x_, y_, z_, t_, a_, b_] := N[(1.0 / N[(y / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{\frac{y}{x}}
\end{array}
Initial program 98.7%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6453.2%
Simplified53.2%
Taylor expanded in b around 0
/-lowering-/.f6414.9%
Simplified14.9%
clear-numN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-evalN/A
/-lowering-/.f6415.2%
Applied egg-rr15.2%
(FPCore (x y z t a b) :precision binary64 (/ x y))
double code(double x, double y, double z, double t, double a, double b) {
return x / 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 / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / y;
}
def code(x, y, z, t, a, b): return x / y
function code(x, y, z, t, a, b) return Float64(x / y) end
function tmp = code(x, y, z, t, a, b) tmp = x / y; end
code[x_, y_, z_, t_, a_, b_] := N[(x / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y}
\end{array}
Initial program 98.7%
Taylor expanded in b around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f6453.2%
Simplified53.2%
Taylor expanded in b around 0
/-lowering-/.f6414.9%
Simplified14.9%
(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 2024160
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:alt
(! :herbie-platform default (if (< t -8845848504127471/10000000000000000) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))) (if (< t 8520312288374073/10000000000) (/ (* (/ x y) (pow a (- t 1))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))