
(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 27 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.8%
Final simplification98.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (+ t -1.0) -1e+132) (not (<= (+ t -1.0) -1.0))) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y) (/ (* x (exp (- (- (* y (log z)) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((t + -1.0) <= -1e+132) || !((t + -1.0) <= -1.0)) {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
} else {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (((t + (-1.0d0)) <= (-1d+132)) .or. (.not. ((t + (-1.0d0)) <= (-1.0d0)))) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
else
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((t + -1.0) <= -1e+132) || !((t + -1.0) <= -1.0)) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
} else {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((t + -1.0) <= -1e+132) or not ((t + -1.0) <= -1.0): tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y else: tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(t + -1.0) <= -1e+132) || !(Float64(t + -1.0) <= -1.0)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (((t + -1.0) <= -1e+132) || ~(((t + -1.0) <= -1.0))) tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; else tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(t + -1.0), $MachinePrecision], -1e+132], N[Not[LessEqual[N[(t + -1.0), $MachinePrecision], -1.0]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t + -1 \leq -1 \cdot 10^{+132} \lor \neg \left(t + -1 \leq -1\right):\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\end{array}
\end{array}
if (-.f64 t #s(literal 1 binary64)) < -9.99999999999999991e131 or -1 < (-.f64 t #s(literal 1 binary64)) Initial program 100.0%
Taylor expanded in y around 0 92.8%
if -9.99999999999999991e131 < (-.f64 t #s(literal 1 binary64)) < -1Initial program 98.0%
Taylor expanded in t around 0 95.4%
+-commutative95.4%
mul-1-neg95.4%
unsub-neg95.4%
Simplified95.4%
Final simplification94.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.22e+72) (not (<= y 1.26e+88))) (* x (* (/ 1.0 a) (/ (pow z y) y))) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.22e+72) || !(y <= 1.26e+88)) {
tmp = x * ((1.0 / a) * (pow(z, y) / y));
} else {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-1.22d+72)) .or. (.not. (y <= 1.26d+88))) then
tmp = x * ((1.0d0 / a) * ((z ** y) / y))
else
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.22e+72) || !(y <= 1.26e+88)) {
tmp = x * ((1.0 / a) * (Math.pow(z, y) / y));
} else {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.22e+72) or not (y <= 1.26e+88): tmp = x * ((1.0 / a) * (math.pow(z, y) / y)) else: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.22e+72) || !(y <= 1.26e+88)) tmp = Float64(x * Float64(Float64(1.0 / a) * Float64((z ^ y) / y))); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.22e+72) || ~((y <= 1.26e+88))) tmp = x * ((1.0 / a) * ((z ^ y) / y)); else tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.22e+72], N[Not[LessEqual[y, 1.26e+88]], $MachinePrecision]], N[(x * N[(N[(1.0 / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.22 \cdot 10^{+72} \lor \neg \left(y \leq 1.26 \cdot 10^{+88}\right):\\
\;\;\;\;x \cdot \left(\frac{1}{a} \cdot \frac{{z}^{y}}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -1.2200000000000001e72 or 1.26e88 < y Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum61.1%
associate-/l*55.6%
*-commutative55.6%
exp-to-pow55.6%
exp-diff47.8%
*-commutative47.8%
exp-to-pow47.8%
sub-neg47.8%
metadata-eval47.8%
Simplified47.8%
Taylor expanded in b around 0 65.6%
associate-/l*65.6%
exp-to-pow65.6%
sub-neg65.6%
metadata-eval65.6%
Simplified65.6%
Taylor expanded in t around 0 84.7%
if -1.2200000000000001e72 < y < 1.26e88Initial program 98.2%
Taylor expanded in y around 0 95.4%
Final simplification91.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -2.2e+26) (not (<= y 2.4e+88))) (* x (* (/ 1.0 a) (/ (pow z y) y))) (/ (* x (/ (pow a (+ t -1.0)) (exp b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.2e+26) || !(y <= 2.4e+88)) {
tmp = x * ((1.0 / a) * (pow(z, y) / y));
} else {
tmp = (x * (pow(a, (t + -1.0)) / exp(b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-2.2d+26)) .or. (.not. (y <= 2.4d+88))) then
tmp = x * ((1.0d0 / a) * ((z ** y) / y))
else
tmp = (x * ((a ** (t + (-1.0d0))) / exp(b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.2e+26) || !(y <= 2.4e+88)) {
tmp = x * ((1.0 / a) * (Math.pow(z, y) / y));
} else {
tmp = (x * (Math.pow(a, (t + -1.0)) / Math.exp(b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -2.2e+26) or not (y <= 2.4e+88): tmp = x * ((1.0 / a) * (math.pow(z, y) / y)) else: tmp = (x * (math.pow(a, (t + -1.0)) / math.exp(b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -2.2e+26) || !(y <= 2.4e+88)) tmp = Float64(x * Float64(Float64(1.0 / a) * Float64((z ^ y) / y))); else tmp = Float64(Float64(x * Float64((a ^ Float64(t + -1.0)) / exp(b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -2.2e+26) || ~((y <= 2.4e+88))) tmp = x * ((1.0 / a) * ((z ^ y) / y)); else tmp = (x * ((a ^ (t + -1.0)) / exp(b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -2.2e+26], N[Not[LessEqual[y, 2.4e+88]], $MachinePrecision]], N[(x * N[(N[(1.0 / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.2 \cdot 10^{+26} \lor \neg \left(y \leq 2.4 \cdot 10^{+88}\right):\\
\;\;\;\;x \cdot \left(\frac{1}{a} \cdot \frac{{z}^{y}}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\\
\end{array}
\end{array}
if y < -2.20000000000000007e26 or 2.3999999999999999e88 < y Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum60.4%
associate-/l*55.4%
*-commutative55.4%
exp-to-pow55.4%
exp-diff47.5%
*-commutative47.5%
exp-to-pow47.5%
sub-neg47.5%
metadata-eval47.5%
Simplified47.5%
Taylor expanded in b around 0 64.4%
associate-/l*64.4%
exp-to-pow64.4%
sub-neg64.4%
metadata-eval64.4%
Simplified64.4%
Taylor expanded in t around 0 81.5%
if -2.20000000000000007e26 < y < 2.3999999999999999e88Initial program 98.1%
Taylor expanded in y around 0 96.3%
div-exp84.7%
exp-to-pow85.6%
sub-neg85.6%
metadata-eval85.6%
Simplified85.6%
Final simplification84.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -7.2e+28) (not (<= t 1.75e+35))) (* x (/ (pow a (+ t -1.0)) y)) (/ (* x (pow z y)) (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -7.2e+28) || !(t <= 1.75e+35)) {
tmp = x * (pow(a, (t + -1.0)) / y);
} else {
tmp = (x * pow(z, y)) / (a * (y * exp(b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-7.2d+28)) .or. (.not. (t <= 1.75d+35))) then
tmp = x * ((a ** (t + (-1.0d0))) / y)
else
tmp = (x * (z ** y)) / (a * (y * exp(b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -7.2e+28) || !(t <= 1.75e+35)) {
tmp = x * (Math.pow(a, (t + -1.0)) / y);
} else {
tmp = (x * Math.pow(z, y)) / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -7.2e+28) or not (t <= 1.75e+35): tmp = x * (math.pow(a, (t + -1.0)) / y) else: tmp = (x * math.pow(z, y)) / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -7.2e+28) || !(t <= 1.75e+35)) tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)); else tmp = Float64(Float64(x * (z ^ y)) / Float64(a * Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -7.2e+28) || ~((t <= 1.75e+35))) tmp = x * ((a ^ (t + -1.0)) / y); else tmp = (x * (z ^ y)) / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -7.2e+28], N[Not[LessEqual[t, 1.75e+35]], $MachinePrecision]], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.2 \cdot 10^{+28} \lor \neg \left(t \leq 1.75 \cdot 10^{+35}\right):\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if t < -7.1999999999999999e28 or 1.75e35 < t Initial program 100.0%
Taylor expanded in y around 0 89.1%
Taylor expanded in b around 0 85.7%
associate-/l*85.7%
exp-to-pow85.7%
sub-neg85.7%
metadata-eval85.7%
+-commutative85.7%
Simplified85.7%
if -7.1999999999999999e28 < t < 1.75e35Initial program 97.9%
associate-/l*97.5%
associate--l+97.5%
exp-sum87.4%
associate-/l*83.8%
*-commutative83.8%
exp-to-pow83.8%
exp-diff79.5%
*-commutative79.5%
exp-to-pow80.6%
sub-neg80.6%
metadata-eval80.6%
Simplified80.6%
Taylor expanded in t around 0 85.0%
Final simplification85.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (pow a (+ t -1.0)) y))))
(if (<= t -1.05e+30)
t_1
(if (<= t 5.2e-287)
(/ (/ x (* a (exp b))) y)
(if (<= t 2.9e-111)
(* (/ (pow z y) y) (/ x a))
(if (<= t 8.5e+35) (/ x (* 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 + -1.0)) / y);
double tmp;
if (t <= -1.05e+30) {
tmp = t_1;
} else if (t <= 5.2e-287) {
tmp = (x / (a * exp(b))) / y;
} else if (t <= 2.9e-111) {
tmp = (pow(z, y) / y) * (x / a);
} else if (t <= 8.5e+35) {
tmp = x / (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 + (-1.0d0))) / y)
if (t <= (-1.05d+30)) then
tmp = t_1
else if (t <= 5.2d-287) then
tmp = (x / (a * exp(b))) / y
else if (t <= 2.9d-111) then
tmp = ((z ** y) / y) * (x / a)
else if (t <= 8.5d+35) then
tmp = x / (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 + -1.0)) / y);
double tmp;
if (t <= -1.05e+30) {
tmp = t_1;
} else if (t <= 5.2e-287) {
tmp = (x / (a * Math.exp(b))) / y;
} else if (t <= 2.9e-111) {
tmp = (Math.pow(z, y) / y) * (x / a);
} else if (t <= 8.5e+35) {
tmp = x / (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 + -1.0)) / y) tmp = 0 if t <= -1.05e+30: tmp = t_1 elif t <= 5.2e-287: tmp = (x / (a * math.exp(b))) / y elif t <= 2.9e-111: tmp = (math.pow(z, y) / y) * (x / a) elif t <= 8.5e+35: tmp = x / (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 ^ Float64(t + -1.0)) / y)) tmp = 0.0 if (t <= -1.05e+30) tmp = t_1; elseif (t <= 5.2e-287) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); elseif (t <= 2.9e-111) tmp = Float64(Float64((z ^ y) / y) * Float64(x / a)); elseif (t <= 8.5e+35) tmp = Float64(x / 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 + -1.0)) / y); tmp = 0.0; if (t <= -1.05e+30) tmp = t_1; elseif (t <= 5.2e-287) tmp = (x / (a * exp(b))) / y; elseif (t <= 2.9e-111) tmp = ((z ^ y) / y) * (x / a); elseif (t <= 8.5e+35) tmp = x / (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, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.05e+30], t$95$1, If[LessEqual[t, 5.2e-287], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t, 2.9e-111], N[(N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision] * N[(x / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e+35], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\mathbf{if}\;t \leq -1.05 \cdot 10^{+30}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{-287}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{-111}:\\
\;\;\;\;\frac{{z}^{y}}{y} \cdot \frac{x}{a}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{+35}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.05e30 or 8.4999999999999995e35 < t Initial program 100.0%
Taylor expanded in y around 0 89.1%
Taylor expanded in b around 0 85.7%
associate-/l*85.7%
exp-to-pow85.7%
sub-neg85.7%
metadata-eval85.7%
+-commutative85.7%
Simplified85.7%
if -1.05e30 < t < 5.1999999999999999e-287Initial program 99.4%
Taylor expanded in y around 0 72.8%
div-exp69.8%
exp-to-pow70.4%
sub-neg70.4%
metadata-eval70.4%
Simplified70.4%
Taylor expanded in t around 0 73.5%
if 5.1999999999999999e-287 < t < 2.90000000000000002e-111Initial program 94.9%
associate-/l*92.5%
associate--l+92.5%
exp-sum79.0%
associate-/l*76.3%
*-commutative76.3%
exp-to-pow76.2%
exp-diff76.2%
*-commutative76.2%
exp-to-pow78.5%
sub-neg78.5%
metadata-eval78.5%
Simplified78.5%
Taylor expanded in t around 0 78.7%
Taylor expanded in b around 0 76.7%
*-commutative76.7%
*-commutative76.7%
times-frac87.1%
Applied egg-rr87.1%
if 2.90000000000000002e-111 < t < 8.4999999999999995e35Initial program 98.1%
Taylor expanded in y around 0 83.8%
div-exp72.7%
exp-to-pow73.3%
sub-neg73.3%
metadata-eval73.3%
Simplified73.3%
Taylor expanded in t around 0 83.0%
Final simplification82.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -2.1e+28) (not (<= t 1.05e+39))) (* x (/ (pow a (+ t -1.0)) y)) (/ (/ x (* a (exp b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -2.1e+28) || !(t <= 1.05e+39)) {
tmp = x * (pow(a, (t + -1.0)) / y);
} else {
tmp = (x / (a * exp(b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-2.1d+28)) .or. (.not. (t <= 1.05d+39))) then
tmp = x * ((a ** (t + (-1.0d0))) / y)
else
tmp = (x / (a * exp(b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -2.1e+28) || !(t <= 1.05e+39)) {
tmp = x * (Math.pow(a, (t + -1.0)) / y);
} else {
tmp = (x / (a * Math.exp(b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -2.1e+28) or not (t <= 1.05e+39): tmp = x * (math.pow(a, (t + -1.0)) / y) else: tmp = (x / (a * math.exp(b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -2.1e+28) || !(t <= 1.05e+39)) tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)); else tmp = Float64(Float64(x / Float64(a * exp(b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -2.1e+28) || ~((t <= 1.05e+39))) tmp = x * ((a ^ (t + -1.0)) / y); else tmp = (x / (a * exp(b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -2.1e+28], N[Not[LessEqual[t, 1.05e+39]], $MachinePrecision]], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.1 \cdot 10^{+28} \lor \neg \left(t \leq 1.05 \cdot 10^{+39}\right):\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\end{array}
\end{array}
if t < -2.09999999999999989e28 or 1.0499999999999999e39 < t Initial program 100.0%
Taylor expanded in y around 0 89.1%
Taylor expanded in b around 0 85.7%
associate-/l*85.7%
exp-to-pow85.7%
sub-neg85.7%
metadata-eval85.7%
+-commutative85.7%
Simplified85.7%
if -2.09999999999999989e28 < t < 1.0499999999999999e39Initial program 97.9%
Taylor expanded in y around 0 75.3%
div-exp71.0%
exp-to-pow72.0%
sub-neg72.0%
metadata-eval72.0%
Simplified72.0%
Taylor expanded in t around 0 75.6%
Final simplification80.2%
(FPCore (x y z t a b) :precision binary64 (if (<= t -1.95e+129) (/ (/ x (+ a (* b (* b (+ (* a 0.5) (/ a b)))))) y) (/ x (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1.95e+129) {
tmp = (x / (a + (b * (b * ((a * 0.5) + (a / b)))))) / y;
} else {
tmp = x / (a * (y * exp(b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= (-1.95d+129)) then
tmp = (x / (a + (b * (b * ((a * 0.5d0) + (a / b)))))) / y
else
tmp = x / (a * (y * exp(b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1.95e+129) {
tmp = (x / (a + (b * (b * ((a * 0.5) + (a / b)))))) / y;
} else {
tmp = x / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -1.95e+129: tmp = (x / (a + (b * (b * ((a * 0.5) + (a / b)))))) / y else: tmp = x / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -1.95e+129) tmp = Float64(Float64(x / Float64(a + Float64(b * Float64(b * Float64(Float64(a * 0.5) + Float64(a / b)))))) / y); else tmp = Float64(x / Float64(a * Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -1.95e+129) tmp = (x / (a + (b * (b * ((a * 0.5) + (a / b)))))) / y; else tmp = x / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1.95e+129], N[(N[(x / N[(a + N[(b * N[(b * N[(N[(a * 0.5), $MachinePrecision] + N[(a / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.95 \cdot 10^{+129}:\\
\;\;\;\;\frac{\frac{x}{a + b \cdot \left(b \cdot \left(a \cdot 0.5 + \frac{a}{b}\right)\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if t < -1.9499999999999999e129Initial program 100.0%
Taylor expanded in y around 0 97.0%
div-exp60.7%
exp-to-pow60.7%
sub-neg60.7%
metadata-eval60.7%
Simplified60.7%
Taylor expanded in t around 0 40.5%
Taylor expanded in b around 0 44.1%
associate-*r*44.1%
*-commutative44.1%
Simplified44.1%
Taylor expanded in b around inf 56.0%
if -1.9499999999999999e129 < t Initial program 98.7%
Taylor expanded in y around 0 79.3%
div-exp70.8%
exp-to-pow71.4%
sub-neg71.4%
metadata-eval71.4%
Simplified71.4%
Taylor expanded in t around 0 61.8%
Final simplification61.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= b 2.9e-31)
(*
(+
(/ 1.0 a)
(*
b
(+
(* b (+ (* -0.16666666666666666 (/ b a)) (* (/ 1.0 a) 0.5)))
(/ -1.0 a))))
(/ x y))
(/
(/ x (+ a (* b (+ a (* b (+ (* a 0.5) (* 0.16666666666666666 (* a b))))))))
y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 2.9e-31) {
tmp = ((1.0 / a) + (b * ((b * ((-0.16666666666666666 * (b / a)) + ((1.0 / a) * 0.5))) + (-1.0 / a)))) * (x / y);
} else {
tmp = (x / (a + (b * (a + (b * ((a * 0.5) + (0.16666666666666666 * (a * b)))))))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 2.9d-31) then
tmp = ((1.0d0 / a) + (b * ((b * (((-0.16666666666666666d0) * (b / a)) + ((1.0d0 / a) * 0.5d0))) + ((-1.0d0) / a)))) * (x / y)
else
tmp = (x / (a + (b * (a + (b * ((a * 0.5d0) + (0.16666666666666666d0 * (a * b)))))))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 2.9e-31) {
tmp = ((1.0 / a) + (b * ((b * ((-0.16666666666666666 * (b / a)) + ((1.0 / a) * 0.5))) + (-1.0 / a)))) * (x / y);
} else {
tmp = (x / (a + (b * (a + (b * ((a * 0.5) + (0.16666666666666666 * (a * b)))))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 2.9e-31: tmp = ((1.0 / a) + (b * ((b * ((-0.16666666666666666 * (b / a)) + ((1.0 / a) * 0.5))) + (-1.0 / a)))) * (x / y) else: tmp = (x / (a + (b * (a + (b * ((a * 0.5) + (0.16666666666666666 * (a * b)))))))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 2.9e-31) tmp = Float64(Float64(Float64(1.0 / a) + Float64(b * Float64(Float64(b * Float64(Float64(-0.16666666666666666 * Float64(b / a)) + Float64(Float64(1.0 / a) * 0.5))) + Float64(-1.0 / a)))) * Float64(x / y)); else tmp = Float64(Float64(x / Float64(a + Float64(b * Float64(a + Float64(b * Float64(Float64(a * 0.5) + Float64(0.16666666666666666 * Float64(a * b)))))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 2.9e-31) tmp = ((1.0 / a) + (b * ((b * ((-0.16666666666666666 * (b / a)) + ((1.0 / a) * 0.5))) + (-1.0 / a)))) * (x / y); else tmp = (x / (a + (b * (a + (b * ((a * 0.5) + (0.16666666666666666 * (a * b)))))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 2.9e-31], N[(N[(N[(1.0 / a), $MachinePrecision] + N[(b * N[(N[(b * N[(N[(-0.16666666666666666 * N[(b / a), $MachinePrecision]), $MachinePrecision] + N[(N[(1.0 / a), $MachinePrecision] * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-1.0 / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a + N[(b * N[(a + N[(b * N[(N[(a * 0.5), $MachinePrecision] + N[(0.16666666666666666 * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2.9 \cdot 10^{-31}:\\
\;\;\;\;\left(\frac{1}{a} + b \cdot \left(b \cdot \left(-0.16666666666666666 \cdot \frac{b}{a} + \frac{1}{a} \cdot 0.5\right) + \frac{-1}{a}\right)\right) \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a + b \cdot \left(a + b \cdot \left(a \cdot 0.5 + 0.16666666666666666 \cdot \left(a \cdot b\right)\right)\right)}}{y}\\
\end{array}
\end{array}
if b < 2.9000000000000001e-31Initial program 98.4%
associate-/l*98.6%
associate--l+98.6%
exp-sum79.7%
associate-/l*76.9%
*-commutative76.9%
exp-to-pow76.9%
exp-diff70.8%
*-commutative70.8%
exp-to-pow71.6%
sub-neg71.6%
metadata-eval71.6%
Simplified71.6%
Taylor expanded in t around 0 64.3%
*-commutative64.3%
associate-/r*64.3%
*-commutative64.3%
associate-/r*64.3%
exp-neg64.3%
Simplified64.3%
Taylor expanded in y around 0 51.5%
*-commutative51.5%
times-frac51.6%
Simplified51.6%
Taylor expanded in b around 0 49.1%
if 2.9000000000000001e-31 < b Initial program 99.8%
Taylor expanded in y around 0 89.5%
div-exp67.1%
exp-to-pow67.3%
sub-neg67.3%
metadata-eval67.3%
Simplified67.3%
Taylor expanded in t around 0 71.6%
Taylor expanded in b around 0 64.0%
Final simplification53.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= b 2.4e-219)
(/ (+ (/ x a) (* b (- (/ (* x b) a) (/ x a)))) y)
(if (<= b 1.05e+104)
(/ (/ x (+ a (* b (* b (+ (* a 0.5) (/ a b)))))) y)
(/ x (* a (* y (+ 1.0 (* b (+ 1.0 (* b 0.5))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 2.4e-219) {
tmp = ((x / a) + (b * (((x * b) / a) - (x / a)))) / y;
} else if (b <= 1.05e+104) {
tmp = (x / (a + (b * (b * ((a * 0.5) + (a / b)))))) / y;
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 2.4d-219) then
tmp = ((x / a) + (b * (((x * b) / a) - (x / a)))) / y
else if (b <= 1.05d+104) then
tmp = (x / (a + (b * (b * ((a * 0.5d0) + (a / b)))))) / y
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * 0.5d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 2.4e-219) {
tmp = ((x / a) + (b * (((x * b) / a) - (x / a)))) / y;
} else if (b <= 1.05e+104) {
tmp = (x / (a + (b * (b * ((a * 0.5) + (a / b)))))) / y;
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 2.4e-219: tmp = ((x / a) + (b * (((x * b) / a) - (x / a)))) / y elif b <= 1.05e+104: tmp = (x / (a + (b * (b * ((a * 0.5) + (a / b)))))) / y else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 2.4e-219) tmp = Float64(Float64(Float64(x / a) + Float64(b * Float64(Float64(Float64(x * b) / a) - Float64(x / a)))) / y); elseif (b <= 1.05e+104) tmp = Float64(Float64(x / Float64(a + Float64(b * Float64(b * Float64(Float64(a * 0.5) + Float64(a / b)))))) / y); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * 0.5))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 2.4e-219) tmp = ((x / a) + (b * (((x * b) / a) - (x / a)))) / y; elseif (b <= 1.05e+104) tmp = (x / (a + (b * (b * ((a * 0.5) + (a / b)))))) / y; else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 2.4e-219], N[(N[(N[(x / a), $MachinePrecision] + N[(b * N[(N[(N[(x * b), $MachinePrecision] / a), $MachinePrecision] - N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 1.05e+104], N[(N[(x / N[(a + N[(b * N[(b * N[(N[(a * 0.5), $MachinePrecision] + N[(a / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2.4 \cdot 10^{-219}:\\
\;\;\;\;\frac{\frac{x}{a} + b \cdot \left(\frac{x \cdot b}{a} - \frac{x}{a}\right)}{y}\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{+104}:\\
\;\;\;\;\frac{\frac{x}{a + b \cdot \left(b \cdot \left(a \cdot 0.5 + \frac{a}{b}\right)\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < 2.40000000000000014e-219Initial program 98.3%
Taylor expanded in y around 0 79.3%
div-exp69.5%
exp-to-pow70.0%
sub-neg70.0%
metadata-eval70.0%
Simplified70.0%
Taylor expanded in t around 0 56.7%
Taylor expanded in b around 0 21.6%
Taylor expanded in b around 0 48.0%
if 2.40000000000000014e-219 < b < 1.0499999999999999e104Initial program 99.1%
Taylor expanded in y around 0 79.2%
div-exp70.0%
exp-to-pow70.8%
sub-neg70.8%
metadata-eval70.8%
Simplified70.8%
Taylor expanded in t around 0 48.7%
Taylor expanded in b around 0 38.5%
associate-*r*38.5%
*-commutative38.5%
Simplified38.5%
Taylor expanded in b around inf 41.3%
if 1.0499999999999999e104 < b Initial program 100.0%
Taylor expanded in y around 0 91.8%
div-exp68.8%
exp-to-pow68.8%
sub-neg68.8%
metadata-eval68.8%
Simplified68.8%
Taylor expanded in t around 0 79.5%
Taylor expanded in b around 0 59.6%
associate-*r*59.6%
*-commutative59.6%
Simplified59.6%
Taylor expanded in a around 0 71.6%
Final simplification50.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -1.46e+53)
(+ t_1 (* b (- (/ (* x b) (* y a)) t_1)))
(if (<= b 3.4e+104)
(/ (/ x (+ a (* b (* a (* b 0.5))))) y)
(/ x (* a (* y (+ 1.0 (* b (+ 1.0 (* b 0.5)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -1.46e+53) {
tmp = t_1 + (b * (((x * b) / (y * a)) - t_1));
} else if (b <= 3.4e+104) {
tmp = (x / (a + (b * (a * (b * 0.5))))) / y;
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (y * a)
if (b <= (-1.46d+53)) then
tmp = t_1 + (b * (((x * b) / (y * a)) - t_1))
else if (b <= 3.4d+104) then
tmp = (x / (a + (b * (a * (b * 0.5d0))))) / y
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * 0.5d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -1.46e+53) {
tmp = t_1 + (b * (((x * b) / (y * a)) - t_1));
} else if (b <= 3.4e+104) {
tmp = (x / (a + (b * (a * (b * 0.5))))) / y;
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -1.46e+53: tmp = t_1 + (b * (((x * b) / (y * a)) - t_1)) elif b <= 3.4e+104: tmp = (x / (a + (b * (a * (b * 0.5))))) / y else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5)))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -1.46e+53) tmp = Float64(t_1 + Float64(b * Float64(Float64(Float64(x * b) / Float64(y * a)) - t_1))); elseif (b <= 3.4e+104) tmp = Float64(Float64(x / Float64(a + Float64(b * Float64(a * Float64(b * 0.5))))) / y); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * 0.5))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -1.46e+53) tmp = t_1 + (b * (((x * b) / (y * a)) - t_1)); elseif (b <= 3.4e+104) tmp = (x / (a + (b * (a * (b * 0.5))))) / y; else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.46e+53], N[(t$95$1 + N[(b * N[(N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.4e+104], N[(N[(x / N[(a + N[(b * N[(a * N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot a}\\
\mathbf{if}\;b \leq -1.46 \cdot 10^{+53}:\\
\;\;\;\;t\_1 + b \cdot \left(\frac{x \cdot b}{y \cdot a} - t\_1\right)\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{+104}:\\
\;\;\;\;\frac{\frac{x}{a + b \cdot \left(a \cdot \left(b \cdot 0.5\right)\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -1.45999999999999999e53Initial program 100.0%
Taylor expanded in y around 0 93.0%
div-exp76.9%
exp-to-pow76.9%
sub-neg76.9%
metadata-eval76.9%
Simplified76.9%
Taylor expanded in t around 0 87.7%
Taylor expanded in b around 0 5.1%
Taylor expanded in b around 0 72.3%
if -1.45999999999999999e53 < b < 3.3999999999999997e104Initial program 98.1%
Taylor expanded in y around 0 74.2%
div-exp66.9%
exp-to-pow67.8%
sub-neg67.8%
metadata-eval67.8%
Simplified67.8%
Taylor expanded in t around 0 41.8%
Taylor expanded in b around 0 36.2%
associate-*r*36.2%
*-commutative36.2%
Simplified36.2%
Taylor expanded in b around inf 36.2%
associate-*r*36.2%
*-commutative36.2%
associate-*r*36.2%
Simplified36.2%
if 3.3999999999999997e104 < b Initial program 100.0%
Taylor expanded in y around 0 91.8%
div-exp68.8%
exp-to-pow68.8%
sub-neg68.8%
metadata-eval68.8%
Simplified68.8%
Taylor expanded in t around 0 79.5%
Taylor expanded in b around 0 59.6%
associate-*r*59.6%
*-commutative59.6%
Simplified59.6%
Taylor expanded in a around 0 71.6%
Final simplification50.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -1.26e+50)
(+ t_1 (* b (- (/ (* x b) (* y a)) t_1)))
(/
x
(*
a
(+
y
(* b (+ y (* b (+ (* 0.16666666666666666 (* y b)) (* y 0.5)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -1.26e+50) {
tmp = t_1 + (b * (((x * b) / (y * a)) - t_1));
} else {
tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666 * (y * b)) + (y * 0.5)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (y * a)
if (b <= (-1.26d+50)) then
tmp = t_1 + (b * (((x * b) / (y * a)) - t_1))
else
tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666d0 * (y * b)) + (y * 0.5d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -1.26e+50) {
tmp = t_1 + (b * (((x * b) / (y * a)) - t_1));
} else {
tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666 * (y * b)) + (y * 0.5)))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -1.26e+50: tmp = t_1 + (b * (((x * b) / (y * a)) - t_1)) else: tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666 * (y * b)) + (y * 0.5))))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -1.26e+50) tmp = Float64(t_1 + Float64(b * Float64(Float64(Float64(x * b) / Float64(y * a)) - t_1))); else tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(y + Float64(b * Float64(Float64(0.16666666666666666 * Float64(y * b)) + Float64(y * 0.5)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -1.26e+50) tmp = t_1 + (b * (((x * b) / (y * a)) - t_1)); else tmp = x / (a * (y + (b * (y + (b * ((0.16666666666666666 * (y * b)) + (y * 0.5))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.26e+50], N[(t$95$1 + N[(b * N[(N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y + N[(b * N[(y + N[(b * N[(N[(0.16666666666666666 * N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(y * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot a}\\
\mathbf{if}\;b \leq -1.26 \cdot 10^{+50}:\\
\;\;\;\;t\_1 + b \cdot \left(\frac{x \cdot b}{y \cdot a} - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(y + b \cdot \left(0.16666666666666666 \cdot \left(y \cdot b\right) + y \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -1.26000000000000001e50Initial program 100.0%
Taylor expanded in y around 0 93.0%
div-exp76.9%
exp-to-pow76.9%
sub-neg76.9%
metadata-eval76.9%
Simplified76.9%
Taylor expanded in t around 0 87.7%
Taylor expanded in b around 0 5.1%
Taylor expanded in b around 0 72.3%
if -1.26000000000000001e50 < b Initial program 98.5%
Taylor expanded in y around 0 78.4%
div-exp67.4%
exp-to-pow68.1%
sub-neg68.1%
metadata-eval68.1%
Simplified68.1%
Taylor expanded in t around 0 50.1%
Taylor expanded in b around 0 42.9%
Final simplification49.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -2.5e-210)
(/ (+ (/ x a) (* b (- (/ (* x b) a) (/ x a)))) y)
(/
x
(*
y
(+ a (* b (+ a (* b (+ (* a 0.5) (* 0.16666666666666666 (* a b)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.5e-210) {
tmp = ((x / a) + (b * (((x * b) / a) - (x / a)))) / y;
} else {
tmp = x / (y * (a + (b * (a + (b * ((a * 0.5) + (0.16666666666666666 * (a * b))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-2.5d-210)) then
tmp = ((x / a) + (b * (((x * b) / a) - (x / a)))) / y
else
tmp = x / (y * (a + (b * (a + (b * ((a * 0.5d0) + (0.16666666666666666d0 * (a * b))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.5e-210) {
tmp = ((x / a) + (b * (((x * b) / a) - (x / a)))) / y;
} else {
tmp = x / (y * (a + (b * (a + (b * ((a * 0.5) + (0.16666666666666666 * (a * b))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.5e-210: tmp = ((x / a) + (b * (((x * b) / a) - (x / a)))) / y else: tmp = x / (y * (a + (b * (a + (b * ((a * 0.5) + (0.16666666666666666 * (a * b)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.5e-210) tmp = Float64(Float64(Float64(x / a) + Float64(b * Float64(Float64(Float64(x * b) / a) - Float64(x / a)))) / y); else tmp = Float64(x / Float64(y * Float64(a + Float64(b * Float64(a + Float64(b * Float64(Float64(a * 0.5) + Float64(0.16666666666666666 * Float64(a * b))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.5e-210) tmp = ((x / a) + (b * (((x * b) / a) - (x / a)))) / y; else tmp = x / (y * (a + (b * (a + (b * ((a * 0.5) + (0.16666666666666666 * (a * b)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.5e-210], N[(N[(N[(x / a), $MachinePrecision] + N[(b * N[(N[(N[(x * b), $MachinePrecision] / a), $MachinePrecision] - N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * N[(a + N[(b * N[(a + N[(b * N[(N[(a * 0.5), $MachinePrecision] + N[(0.16666666666666666 * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.5 \cdot 10^{-210}:\\
\;\;\;\;\frac{\frac{x}{a} + b \cdot \left(\frac{x \cdot b}{a} - \frac{x}{a}\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a + b \cdot \left(a + b \cdot \left(a \cdot 0.5 + 0.16666666666666666 \cdot \left(a \cdot b\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -2.5000000000000001e-210Initial program 98.6%
Taylor expanded in y around 0 85.1%
div-exp72.2%
exp-to-pow72.8%
sub-neg72.8%
metadata-eval72.8%
Simplified72.8%
Taylor expanded in t around 0 65.9%
Taylor expanded in b around 0 19.9%
Taylor expanded in b around 0 54.6%
if -2.5000000000000001e-210 < b Initial program 99.1%
Taylor expanded in y around 0 79.0%
div-exp67.4%
exp-to-pow68.0%
sub-neg68.0%
metadata-eval68.0%
Simplified68.0%
Taylor expanded in t around 0 52.8%
Taylor expanded in b around 0 43.3%
Taylor expanded in y around 0 48.2%
Final simplification50.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -8.5e-47)
(+ t_1 (* b (- (/ (* x b) (* y a)) t_1)))
(/
(/
x
(+ a (* b (+ a (* b (+ (* a 0.5) (* 0.16666666666666666 (* a b))))))))
y))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -8.5e-47) {
tmp = t_1 + (b * (((x * b) / (y * a)) - t_1));
} else {
tmp = (x / (a + (b * (a + (b * ((a * 0.5) + (0.16666666666666666 * (a * b)))))))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (y * a)
if (b <= (-8.5d-47)) then
tmp = t_1 + (b * (((x * b) / (y * a)) - t_1))
else
tmp = (x / (a + (b * (a + (b * ((a * 0.5d0) + (0.16666666666666666d0 * (a * b)))))))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -8.5e-47) {
tmp = t_1 + (b * (((x * b) / (y * a)) - t_1));
} else {
tmp = (x / (a + (b * (a + (b * ((a * 0.5) + (0.16666666666666666 * (a * b)))))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -8.5e-47: tmp = t_1 + (b * (((x * b) / (y * a)) - t_1)) else: tmp = (x / (a + (b * (a + (b * ((a * 0.5) + (0.16666666666666666 * (a * b)))))))) / y return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -8.5e-47) tmp = Float64(t_1 + Float64(b * Float64(Float64(Float64(x * b) / Float64(y * a)) - t_1))); else tmp = Float64(Float64(x / Float64(a + Float64(b * Float64(a + Float64(b * Float64(Float64(a * 0.5) + Float64(0.16666666666666666 * Float64(a * b)))))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -8.5e-47) tmp = t_1 + (b * (((x * b) / (y * a)) - t_1)); else tmp = (x / (a + (b * (a + (b * ((a * 0.5) + (0.16666666666666666 * (a * b)))))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8.5e-47], N[(t$95$1 + N[(b * N[(N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a + N[(b * N[(a + N[(b * N[(N[(a * 0.5), $MachinePrecision] + N[(0.16666666666666666 * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot a}\\
\mathbf{if}\;b \leq -8.5 \cdot 10^{-47}:\\
\;\;\;\;t\_1 + b \cdot \left(\frac{x \cdot b}{y \cdot a} - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a + b \cdot \left(a + b \cdot \left(a \cdot 0.5 + 0.16666666666666666 \cdot \left(a \cdot b\right)\right)\right)}}{y}\\
\end{array}
\end{array}
if b < -8.4999999999999999e-47Initial program 98.6%
Taylor expanded in y around 0 88.3%
div-exp69.8%
exp-to-pow69.9%
sub-neg69.9%
metadata-eval69.9%
Simplified69.9%
Taylor expanded in t around 0 76.7%
Taylor expanded in b around 0 10.7%
Taylor expanded in b around 0 61.6%
if -8.4999999999999999e-47 < b Initial program 98.9%
Taylor expanded in y around 0 78.8%
div-exp69.3%
exp-to-pow70.0%
sub-neg70.0%
metadata-eval70.0%
Simplified70.0%
Taylor expanded in t around 0 51.4%
Taylor expanded in b around 0 48.2%
Final simplification52.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -7.6e+55)
(/ (- (/ x a) (/ (* x b) a)) y)
(if (<= b 3.7e+104)
(/ (/ x (+ a (* b (* a (* b 0.5))))) y)
(/ x (* a (* y (+ 1.0 (* b (+ 1.0 (* b 0.5))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -7.6e+55) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else if (b <= 3.7e+104) {
tmp = (x / (a + (b * (a * (b * 0.5))))) / y;
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-7.6d+55)) then
tmp = ((x / a) - ((x * b) / a)) / y
else if (b <= 3.7d+104) then
tmp = (x / (a + (b * (a * (b * 0.5d0))))) / y
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * 0.5d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -7.6e+55) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else if (b <= 3.7e+104) {
tmp = (x / (a + (b * (a * (b * 0.5))))) / y;
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -7.6e+55: tmp = ((x / a) - ((x * b) / a)) / y elif b <= 3.7e+104: tmp = (x / (a + (b * (a * (b * 0.5))))) / y else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -7.6e+55) tmp = Float64(Float64(Float64(x / a) - Float64(Float64(x * b) / a)) / y); elseif (b <= 3.7e+104) tmp = Float64(Float64(x / Float64(a + Float64(b * Float64(a * Float64(b * 0.5))))) / y); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * 0.5))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -7.6e+55) tmp = ((x / a) - ((x * b) / a)) / y; elseif (b <= 3.7e+104) tmp = (x / (a + (b * (a * (b * 0.5))))) / y; else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -7.6e+55], N[(N[(N[(x / a), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 3.7e+104], N[(N[(x / N[(a + N[(b * N[(a * N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.6 \cdot 10^{+55}:\\
\;\;\;\;\frac{\frac{x}{a} - \frac{x \cdot b}{a}}{y}\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{+104}:\\
\;\;\;\;\frac{\frac{x}{a + b \cdot \left(a \cdot \left(b \cdot 0.5\right)\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -7.5999999999999999e55Initial program 100.0%
Taylor expanded in y around 0 93.0%
div-exp76.9%
exp-to-pow76.9%
sub-neg76.9%
metadata-eval76.9%
Simplified76.9%
Taylor expanded in t around 0 87.7%
Taylor expanded in b around 0 58.7%
if -7.5999999999999999e55 < b < 3.6999999999999998e104Initial program 98.1%
Taylor expanded in y around 0 74.2%
div-exp66.9%
exp-to-pow67.8%
sub-neg67.8%
metadata-eval67.8%
Simplified67.8%
Taylor expanded in t around 0 41.8%
Taylor expanded in b around 0 36.2%
associate-*r*36.2%
*-commutative36.2%
Simplified36.2%
Taylor expanded in b around inf 36.2%
associate-*r*36.2%
*-commutative36.2%
associate-*r*36.2%
Simplified36.2%
if 3.6999999999999998e104 < b Initial program 100.0%
Taylor expanded in y around 0 91.8%
div-exp68.8%
exp-to-pow68.8%
sub-neg68.8%
metadata-eval68.8%
Simplified68.8%
Taylor expanded in t around 0 79.5%
Taylor expanded in b around 0 59.6%
associate-*r*59.6%
*-commutative59.6%
Simplified59.6%
Taylor expanded in a around 0 71.6%
Final simplification47.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -8.2e+55)
(/ (+ (/ x a) (* b (- (/ (* x b) a) (/ x a)))) y)
(if (<= b 3.4e+104)
(/ (/ x (+ a (* b (* a (* b 0.5))))) y)
(/ x (* a (* y (+ 1.0 (* b (+ 1.0 (* b 0.5))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -8.2e+55) {
tmp = ((x / a) + (b * (((x * b) / a) - (x / a)))) / y;
} else if (b <= 3.4e+104) {
tmp = (x / (a + (b * (a * (b * 0.5))))) / y;
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-8.2d+55)) then
tmp = ((x / a) + (b * (((x * b) / a) - (x / a)))) / y
else if (b <= 3.4d+104) then
tmp = (x / (a + (b * (a * (b * 0.5d0))))) / y
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * 0.5d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -8.2e+55) {
tmp = ((x / a) + (b * (((x * b) / a) - (x / a)))) / y;
} else if (b <= 3.4e+104) {
tmp = (x / (a + (b * (a * (b * 0.5))))) / y;
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -8.2e+55: tmp = ((x / a) + (b * (((x * b) / a) - (x / a)))) / y elif b <= 3.4e+104: tmp = (x / (a + (b * (a * (b * 0.5))))) / y else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -8.2e+55) tmp = Float64(Float64(Float64(x / a) + Float64(b * Float64(Float64(Float64(x * b) / a) - Float64(x / a)))) / y); elseif (b <= 3.4e+104) tmp = Float64(Float64(x / Float64(a + Float64(b * Float64(a * Float64(b * 0.5))))) / y); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * 0.5))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -8.2e+55) tmp = ((x / a) + (b * (((x * b) / a) - (x / a)))) / y; elseif (b <= 3.4e+104) tmp = (x / (a + (b * (a * (b * 0.5))))) / y; else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -8.2e+55], N[(N[(N[(x / a), $MachinePrecision] + N[(b * N[(N[(N[(x * b), $MachinePrecision] / a), $MachinePrecision] - N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 3.4e+104], N[(N[(x / N[(a + N[(b * N[(a * N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.2 \cdot 10^{+55}:\\
\;\;\;\;\frac{\frac{x}{a} + b \cdot \left(\frac{x \cdot b}{a} - \frac{x}{a}\right)}{y}\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{+104}:\\
\;\;\;\;\frac{\frac{x}{a + b \cdot \left(a \cdot \left(b \cdot 0.5\right)\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -8.19999999999999962e55Initial program 100.0%
Taylor expanded in y around 0 93.0%
div-exp76.9%
exp-to-pow76.9%
sub-neg76.9%
metadata-eval76.9%
Simplified76.9%
Taylor expanded in t around 0 87.7%
Taylor expanded in b around 0 5.1%
Taylor expanded in b around 0 70.6%
if -8.19999999999999962e55 < b < 3.3999999999999997e104Initial program 98.1%
Taylor expanded in y around 0 74.2%
div-exp66.9%
exp-to-pow67.8%
sub-neg67.8%
metadata-eval67.8%
Simplified67.8%
Taylor expanded in t around 0 41.8%
Taylor expanded in b around 0 36.2%
associate-*r*36.2%
*-commutative36.2%
Simplified36.2%
Taylor expanded in b around inf 36.2%
associate-*r*36.2%
*-commutative36.2%
associate-*r*36.2%
Simplified36.2%
if 3.3999999999999997e104 < b Initial program 100.0%
Taylor expanded in y around 0 91.8%
div-exp68.8%
exp-to-pow68.8%
sub-neg68.8%
metadata-eval68.8%
Simplified68.8%
Taylor expanded in t around 0 79.5%
Taylor expanded in b around 0 59.6%
associate-*r*59.6%
*-commutative59.6%
Simplified59.6%
Taylor expanded in a around 0 71.6%
Final simplification50.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b -5.8e+57) (/ (- (/ x a) (/ (* x b) a)) y) (/ (/ x (+ a (* b (* a (* b 0.5))))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5.8e+57) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else {
tmp = (x / (a + (b * (a * (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 <= (-5.8d+57)) then
tmp = ((x / a) - ((x * b) / a)) / y
else
tmp = (x / (a + (b * (a * (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 <= -5.8e+57) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else {
tmp = (x / (a + (b * (a * (b * 0.5))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -5.8e+57: tmp = ((x / a) - ((x * b) / a)) / y else: tmp = (x / (a + (b * (a * (b * 0.5))))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -5.8e+57) tmp = Float64(Float64(Float64(x / a) - Float64(Float64(x * b) / a)) / y); else tmp = Float64(Float64(x / Float64(a + Float64(b * Float64(a * Float64(b * 0.5))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -5.8e+57) tmp = ((x / a) - ((x * b) / a)) / y; else tmp = (x / (a + (b * (a * (b * 0.5))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -5.8e+57], N[(N[(N[(x / a), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / N[(a + N[(b * N[(a * N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.8 \cdot 10^{+57}:\\
\;\;\;\;\frac{\frac{x}{a} - \frac{x \cdot b}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a + b \cdot \left(a \cdot \left(b \cdot 0.5\right)\right)}}{y}\\
\end{array}
\end{array}
if b < -5.8000000000000003e57Initial program 100.0%
Taylor expanded in y around 0 93.0%
div-exp76.9%
exp-to-pow76.9%
sub-neg76.9%
metadata-eval76.9%
Simplified76.9%
Taylor expanded in t around 0 87.7%
Taylor expanded in b around 0 58.7%
if -5.8000000000000003e57 < b Initial program 98.5%
Taylor expanded in y around 0 78.4%
div-exp67.4%
exp-to-pow68.1%
sub-neg68.1%
metadata-eval68.1%
Simplified68.1%
Taylor expanded in t around 0 50.9%
Taylor expanded in b around 0 41.8%
associate-*r*41.8%
*-commutative41.8%
Simplified41.8%
Taylor expanded in b around inf 41.8%
associate-*r*41.8%
*-commutative41.8%
associate-*r*41.8%
Simplified41.8%
Final simplification45.5%
(FPCore (x y z t a b) :precision binary64 (if (<= b -16000.0) (/ (- (/ x a) (/ (* x b) a)) y) (/ (/ x (+ a (* a b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -16000.0) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-16000.0d0)) then
tmp = ((x / a) - ((x * b) / a)) / y
else
tmp = (x / (a + (a * b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -16000.0) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -16000.0: tmp = ((x / a) - ((x * b) / a)) / y else: tmp = (x / (a + (a * b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -16000.0) tmp = Float64(Float64(Float64(x / a) - Float64(Float64(x * b) / a)) / y); else tmp = Float64(Float64(x / Float64(a + Float64(a * b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -16000.0) tmp = ((x / a) - ((x * b) / a)) / y; else tmp = (x / (a + (a * b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -16000.0], N[(N[(N[(x / a), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -16000:\\
\;\;\;\;\frac{\frac{x}{a} - \frac{x \cdot b}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a + a \cdot b}}{y}\\
\end{array}
\end{array}
if b < -16000Initial program 100.0%
Taylor expanded in y around 0 94.1%
div-exp73.2%
exp-to-pow73.2%
sub-neg73.2%
metadata-eval73.2%
Simplified73.2%
Taylor expanded in t around 0 82.4%
Taylor expanded in b around 0 53.8%
if -16000 < b Initial program 98.4%
Taylor expanded in y around 0 77.2%
div-exp68.1%
exp-to-pow68.9%
sub-neg68.9%
metadata-eval68.9%
Simplified68.9%
Taylor expanded in t around 0 50.6%
Taylor expanded in b around 0 36.4%
Final simplification41.0%
(FPCore (x y z t a b) :precision binary64 (if (<= b 1.95e-162) (* (/ x (* y a)) (- (- -1.0) b)) (/ (/ x (+ a (* a b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.95e-162) {
tmp = (x / (y * a)) * (-(-1.0) - b);
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 1.95d-162) then
tmp = (x / (y * a)) * (-(-1.0d0) - b)
else
tmp = (x / (a + (a * b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.95e-162) {
tmp = (x / (y * a)) * (-(-1.0) - b);
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 1.95e-162: tmp = (x / (y * a)) * (-(-1.0) - b) else: tmp = (x / (a + (a * b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 1.95e-162) tmp = Float64(Float64(x / Float64(y * a)) * Float64(Float64(-(-1.0)) - b)); else tmp = Float64(Float64(x / Float64(a + Float64(a * b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 1.95e-162) tmp = (x / (y * a)) * (-(-1.0) - b); else tmp = (x / (a + (a * b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.95e-162], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] * N[((--1.0) - b), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.95 \cdot 10^{-162}:\\
\;\;\;\;\frac{x}{y \cdot a} \cdot \left(\left(--1\right) - b\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a + a \cdot b}}{y}\\
\end{array}
\end{array}
if b < 1.95e-162Initial program 98.4%
Taylor expanded in y around 0 78.3%
div-exp69.3%
exp-to-pow69.8%
sub-neg69.8%
metadata-eval69.8%
Simplified69.8%
Taylor expanded in t around 0 55.6%
Taylor expanded in b around 0 23.3%
Taylor expanded in b around 0 42.9%
remove-double-neg42.9%
mul-1-neg42.9%
distribute-neg-out42.9%
associate-/l*36.7%
mul-1-neg36.7%
distribute-rgt-out40.0%
*-commutative40.0%
Simplified40.0%
if 1.95e-162 < b Initial program 99.5%
Taylor expanded in y around 0 86.6%
div-exp69.8%
exp-to-pow70.3%
sub-neg70.3%
metadata-eval70.3%
Simplified70.3%
Taylor expanded in t around 0 64.0%
Taylor expanded in b around 0 37.3%
Final simplification38.9%
(FPCore (x y z t a b) :precision binary64 (if (<= b 1.5e-16) (/ (* (/ x a) (+ b -1.0)) (- y)) (/ x (* y (* a b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.5e-16) {
tmp = ((x / a) * (b + -1.0)) / -y;
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 1.5d-16) then
tmp = ((x / a) * (b + (-1.0d0))) / -y
else
tmp = x / (y * (a * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.5e-16) {
tmp = ((x / a) * (b + -1.0)) / -y;
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 1.5e-16: tmp = ((x / a) * (b + -1.0)) / -y else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 1.5e-16) tmp = Float64(Float64(Float64(x / a) * Float64(b + -1.0)) / Float64(-y)); else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 1.5e-16) tmp = ((x / a) * (b + -1.0)) / -y; else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.5e-16], N[(N[(N[(x / a), $MachinePrecision] * N[(b + -1.0), $MachinePrecision]), $MachinePrecision] / (-y)), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.5 \cdot 10^{-16}:\\
\;\;\;\;\frac{\frac{x}{a} \cdot \left(b + -1\right)}{-y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < 1.49999999999999997e-16Initial program 98.4%
Taylor expanded in y around 0 78.0%
div-exp70.4%
exp-to-pow71.1%
sub-neg71.1%
metadata-eval71.1%
Simplified71.1%
Taylor expanded in t around 0 53.8%
Taylor expanded in b around 0 26.4%
Taylor expanded in b around 0 42.3%
mul-1-neg42.3%
remove-double-neg42.3%
distribute-neg-out42.3%
associate-/l*40.1%
mul-1-neg40.1%
distribute-rgt-out42.3%
Simplified42.3%
if 1.49999999999999997e-16 < b Initial program 100.0%
Taylor expanded in y around 0 90.6%
div-exp67.2%
exp-to-pow67.2%
sub-neg67.2%
metadata-eval67.2%
Simplified67.2%
Taylor expanded in t around 0 71.8%
Taylor expanded in b around 0 34.9%
Taylor expanded in b around inf 31.1%
*-commutative31.1%
*-commutative31.1%
associate-*r*36.2%
*-commutative36.2%
Simplified36.2%
Final simplification40.6%
(FPCore (x y z t a b) :precision binary64 (if (<= a 3e-38) (/ 1.0 (* y (/ a x))) (/ x (* y (+ a (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 3e-38) {
tmp = 1.0 / (y * (a / x));
} else {
tmp = x / (y * (a + (a * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (a <= 3d-38) then
tmp = 1.0d0 / (y * (a / x))
else
tmp = x / (y * (a + (a * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 3e-38) {
tmp = 1.0 / (y * (a / x));
} else {
tmp = x / (y * (a + (a * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 3e-38: tmp = 1.0 / (y * (a / x)) else: tmp = x / (y * (a + (a * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 3e-38) tmp = Float64(1.0 / Float64(y * Float64(a / x))); else tmp = Float64(x / Float64(y * Float64(a + Float64(a * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= 3e-38) tmp = 1.0 / (y * (a / x)); else tmp = x / (y * (a + (a * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 3e-38], N[(1.0 / N[(y * N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 3 \cdot 10^{-38}:\\
\;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a + a \cdot b\right)}\\
\end{array}
\end{array}
if a < 2.99999999999999989e-38Initial program 99.5%
Taylor expanded in y around 0 83.3%
Taylor expanded in b around 0 62.4%
associate-/l*60.1%
exp-to-pow60.3%
sub-neg60.3%
metadata-eval60.3%
+-commutative60.3%
Simplified60.3%
Taylor expanded in t around 0 28.1%
clear-num28.3%
inv-pow28.3%
*-commutative28.3%
Applied egg-rr28.3%
unpow-128.3%
associate-/l*32.6%
Simplified32.6%
if 2.99999999999999989e-38 < a Initial program 98.4%
Taylor expanded in y around 0 80.3%
div-exp69.2%
exp-to-pow69.9%
sub-neg69.9%
metadata-eval69.9%
Simplified69.9%
Taylor expanded in t around 0 59.4%
Taylor expanded in b around 0 36.0%
Taylor expanded in x around 0 39.4%
Final simplification36.5%
(FPCore (x y z t a b) :precision binary64 (if (<= b 7.4e+168) (/ 1.0 (* y (/ a x))) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 7.4e+168) {
tmp = 1.0 / (y * (a / x));
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 7.4d+168) then
tmp = 1.0d0 / (y * (a / x))
else
tmp = x / (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 7.4e+168) {
tmp = 1.0 / (y * (a / x));
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 7.4e+168: tmp = 1.0 / (y * (a / x)) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 7.4e+168) tmp = Float64(1.0 / Float64(y * Float64(a / x))); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 7.4e+168) tmp = 1.0 / (y * (a / x)); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 7.4e+168], N[(1.0 / N[(y * N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 7.4 \cdot 10^{+168}:\\
\;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 7.40000000000000018e168Initial program 98.7%
Taylor expanded in y around 0 80.1%
Taylor expanded in b around 0 63.5%
associate-/l*62.9%
exp-to-pow63.4%
sub-neg63.4%
metadata-eval63.4%
+-commutative63.4%
Simplified63.4%
Taylor expanded in t around 0 31.1%
clear-num31.2%
inv-pow31.2%
*-commutative31.2%
Applied egg-rr31.2%
unpow-131.2%
associate-/l*33.3%
Simplified33.3%
if 7.40000000000000018e168 < b Initial program 100.0%
Taylor expanded in y around 0 93.2%
div-exp72.5%
exp-to-pow72.5%
sub-neg72.5%
metadata-eval72.5%
Simplified72.5%
Taylor expanded in t around 0 86.4%
Taylor expanded in b around 0 46.6%
Taylor expanded in b around inf 43.2%
*-commutative43.2%
Simplified43.2%
Final simplification34.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b 1.5e-16) (* (/ x a) (/ 1.0 y)) (/ x (* y (* a b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.5e-16) {
tmp = (x / a) * (1.0 / y);
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 1.5d-16) then
tmp = (x / a) * (1.0d0 / y)
else
tmp = x / (y * (a * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.5e-16) {
tmp = (x / a) * (1.0 / y);
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 1.5e-16: tmp = (x / a) * (1.0 / y) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 1.5e-16) tmp = Float64(Float64(x / a) * Float64(1.0 / y)); else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 1.5e-16) tmp = (x / a) * (1.0 / y); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.5e-16], N[(N[(x / a), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.5 \cdot 10^{-16}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < 1.49999999999999997e-16Initial program 98.4%
associate-/l*98.1%
associate--l+98.1%
exp-sum79.5%
associate-/l*76.8%
*-commutative76.8%
exp-to-pow76.8%
exp-diff70.8%
*-commutative70.8%
exp-to-pow71.6%
sub-neg71.6%
metadata-eval71.6%
Simplified71.6%
Taylor expanded in t around 0 63.9%
Taylor expanded in b around 0 57.9%
*-commutative57.9%
*-commutative57.9%
times-frac60.4%
Applied egg-rr60.4%
Taylor expanded in y around 0 34.5%
if 1.49999999999999997e-16 < b Initial program 100.0%
Taylor expanded in y around 0 90.6%
div-exp67.2%
exp-to-pow67.2%
sub-neg67.2%
metadata-eval67.2%
Simplified67.2%
Taylor expanded in t around 0 71.8%
Taylor expanded in b around 0 34.9%
Taylor expanded in b around inf 31.1%
*-commutative31.1%
*-commutative31.1%
associate-*r*36.2%
*-commutative36.2%
Simplified36.2%
Final simplification35.0%
(FPCore (x y z t a b) :precision binary64 (* (/ x a) (/ 1.0 y)))
double code(double x, double y, double z, double t, double a, double b) {
return (x / a) * (1.0 / y);
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x / a) * (1.0d0 / y)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x / a) * (1.0 / y);
}
def code(x, y, z, t, a, b): return (x / a) * (1.0 / y)
function code(x, y, z, t, a, b) return Float64(Float64(x / a) * Float64(1.0 / y)) end
function tmp = code(x, y, z, t, a, b) tmp = (x / a) * (1.0 / y); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x / a), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{a} \cdot \frac{1}{y}
\end{array}
Initial program 98.8%
associate-/l*98.6%
associate--l+98.6%
exp-sum79.1%
associate-/l*77.2%
*-commutative77.2%
exp-to-pow77.1%
exp-diff67.8%
*-commutative67.8%
exp-to-pow68.4%
sub-neg68.4%
metadata-eval68.4%
Simplified68.4%
Taylor expanded in t around 0 64.1%
Taylor expanded in b around 0 53.5%
*-commutative53.5%
*-commutative53.5%
times-frac55.6%
Applied egg-rr55.6%
Taylor expanded in y around 0 31.5%
Final simplification31.5%
(FPCore (x y z t a b) :precision binary64 (/ 1.0 (* y (/ a x))))
double code(double x, double y, double z, double t, double a, double b) {
return 1.0 / (y * (a / 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 * (a / x))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return 1.0 / (y * (a / x));
}
def code(x, y, z, t, a, b): return 1.0 / (y * (a / x))
function code(x, y, z, t, a, b) return Float64(1.0 / Float64(y * Float64(a / x))) end
function tmp = code(x, y, z, t, a, b) tmp = 1.0 / (y * (a / x)); end
code[x_, y_, z_, t_, a_, b_] := N[(1.0 / N[(y * N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{y \cdot \frac{a}{x}}
\end{array}
Initial program 98.8%
Taylor expanded in y around 0 81.6%
Taylor expanded in b around 0 61.9%
associate-/l*60.6%
exp-to-pow61.1%
sub-neg61.1%
metadata-eval61.1%
+-commutative61.1%
Simplified61.1%
Taylor expanded in t around 0 29.4%
clear-num29.5%
inv-pow29.5%
*-commutative29.5%
Applied egg-rr29.5%
unpow-129.5%
associate-/l*31.7%
Simplified31.7%
Final simplification31.7%
(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.8%
Taylor expanded in y around 0 81.6%
Taylor expanded in b around 0 61.9%
associate-/l*60.6%
exp-to-pow61.1%
sub-neg61.1%
metadata-eval61.1%
+-commutative61.1%
Simplified61.1%
Taylor expanded in t around 0 29.4%
Final simplification29.4%
(FPCore (x y z t a b) :precision binary64 (/ (/ x a) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x / a) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x / a) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x / a) / y;
}
def code(x, y, z, t, a, b): return (x / a) / y
function code(x, y, z, t, a, b) return Float64(Float64(x / a) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x / a) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{x}{a}}{y}
\end{array}
Initial program 98.8%
Taylor expanded in y around 0 81.6%
div-exp69.5%
exp-to-pow70.0%
sub-neg70.0%
metadata-eval70.0%
Simplified70.0%
Taylor expanded in t around 0 58.9%
Taylor expanded in b around 0 31.5%
Final simplification31.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (- t 1.0)))
(t_2 (/ (* x (/ t_1 y)) (- (+ b 1.0) (* y (log z))))))
(if (< t -0.8845848504127471)
t_2
(if (< t 852031.2288374073)
(/ (* (/ x y) t_1) (exp (- b (* (log z) y))))
t_2))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a ** (t - 1.0d0)
t_2 = (x * (t_1 / y)) / ((b + 1.0d0) - (y * log(z)))
if (t < (-0.8845848504127471d0)) then
tmp = t_2
else if (t < 852031.2288374073d0) then
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = Math.pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * Math.log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / Math.exp((b - (Math.log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, (t - 1.0)) t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * math.log(z))) tmp = 0 if t < -0.8845848504127471: tmp = t_2 elif t < 852031.2288374073: tmp = ((x / y) * t_1) / math.exp((b - (math.log(z) * y))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = a ^ Float64(t - 1.0) t_2 = Float64(Float64(x * Float64(t_1 / y)) / Float64(Float64(b + 1.0) - Float64(y * log(z)))) tmp = 0.0 if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = Float64(Float64(Float64(x / y) * t_1) / exp(Float64(b - Float64(log(z) * y)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a ^ (t - 1.0); t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z))); tmp = 0.0; if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = ((x / y) * t_1) / exp((b - (log(z) * y))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision] / N[(N[(b + 1.0), $MachinePrecision] - N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -0.8845848504127471], t$95$2, If[Less[t, 852031.2288374073], N[(N[(N[(x / y), $MachinePrecision] * t$95$1), $MachinePrecision] / N[Exp[N[(b - N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {a}^{\left(t - 1\right)}\\
t_2 := \frac{x \cdot \frac{t\_1}{y}}{\left(b + 1\right) - y \cdot \log z}\\
\mathbf{if}\;t < -0.8845848504127471:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 852031.2288374073:\\
\;\;\;\;\frac{\frac{x}{y} \cdot t\_1}{e^{b - \log z \cdot y}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024077
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:alt
(if (< t -0.8845848504127471) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z)))) (if (< t 852031.2288374073) (/ (* (/ x y) (pow a (- t 1.0))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))