
(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 20 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.9%
Final simplification98.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -7.5e+49) (not (<= y 3.05e-12))) (/ x (/ y (exp (- (- (* y (log z)) (log a)) b)))) (* (/ x y) (exp (- (* (+ t -1.0) (log a)) b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -7.5e+49) || !(y <= 3.05e-12)) {
tmp = x / (y / exp((((y * log(z)) - log(a)) - b)));
} else {
tmp = (x / y) * exp((((t + -1.0) * log(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 ((y <= (-7.5d+49)) .or. (.not. (y <= 3.05d-12))) then
tmp = x / (y / exp((((y * log(z)) - log(a)) - b)))
else
tmp = (x / y) * exp((((t + (-1.0d0)) * log(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 ((y <= -7.5e+49) || !(y <= 3.05e-12)) {
tmp = x / (y / Math.exp((((y * Math.log(z)) - Math.log(a)) - b)));
} else {
tmp = (x / y) * Math.exp((((t + -1.0) * Math.log(a)) - b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -7.5e+49) or not (y <= 3.05e-12): tmp = x / (y / math.exp((((y * math.log(z)) - math.log(a)) - b))) else: tmp = (x / y) * math.exp((((t + -1.0) * math.log(a)) - b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -7.5e+49) || !(y <= 3.05e-12)) tmp = Float64(x / Float64(y / exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b)))); else tmp = Float64(Float64(x / y) * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -7.5e+49) || ~((y <= 3.05e-12))) tmp = x / (y / exp((((y * log(z)) - log(a)) - b))); else tmp = (x / y) * exp((((t + -1.0) * log(a)) - b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -7.5e+49], N[Not[LessEqual[y, 3.05e-12]], $MachinePrecision]], N[(x / N[(y / N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / y), $MachinePrecision] * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.5 \cdot 10^{+49} \lor \neg \left(y \leq 3.05 \cdot 10^{-12}\right):\\
\;\;\;\;\frac{x}{\frac{y}{e^{\left(y \cdot \log z - \log a\right) - b}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} \cdot e^{\left(t + -1\right) \cdot \log a - b}\\
\end{array}
\end{array}
if y < -7.4999999999999995e49 or 3.0500000000000001e-12 < y Initial program 99.8%
associate-*l/89.3%
fma-def89.3%
sub-neg89.3%
metadata-eval89.3%
Simplified89.3%
Taylor expanded in t around 0 94.3%
associate-/l*94.3%
+-commutative94.3%
mul-1-neg94.3%
unsub-neg94.3%
Simplified94.3%
if -7.4999999999999995e49 < y < 3.0500000000000001e-12Initial program 98.0%
associate-*l/94.4%
fma-def94.4%
sub-neg94.4%
metadata-eval94.4%
Simplified94.4%
Taylor expanded in y around 0 94.4%
Final simplification94.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (/ x y) (/ (pow a (+ t -1.0)) (exp b)))))
(if (<= y -2700000000000.0)
(* (/ x y) (exp (- (* y (log z)) b)))
(if (<= y 5.4e-194)
t_1
(if (<= y 2.8e-100)
(/ x (* a (* y (exp b))))
(if (<= y 1.05e+38) t_1 (/ (* x (pow z y)) y)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / y) * (pow(a, (t + -1.0)) / exp(b));
double tmp;
if (y <= -2700000000000.0) {
tmp = (x / y) * exp(((y * log(z)) - b));
} else if (y <= 5.4e-194) {
tmp = t_1;
} else if (y <= 2.8e-100) {
tmp = x / (a * (y * exp(b)));
} else if (y <= 1.05e+38) {
tmp = t_1;
} else {
tmp = (x * pow(z, y)) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x / y) * ((a ** (t + (-1.0d0))) / exp(b))
if (y <= (-2700000000000.0d0)) then
tmp = (x / y) * exp(((y * log(z)) - b))
else if (y <= 5.4d-194) then
tmp = t_1
else if (y <= 2.8d-100) then
tmp = x / (a * (y * exp(b)))
else if (y <= 1.05d+38) then
tmp = t_1
else
tmp = (x * (z ** y)) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / y) * (Math.pow(a, (t + -1.0)) / Math.exp(b));
double tmp;
if (y <= -2700000000000.0) {
tmp = (x / y) * Math.exp(((y * Math.log(z)) - b));
} else if (y <= 5.4e-194) {
tmp = t_1;
} else if (y <= 2.8e-100) {
tmp = x / (a * (y * Math.exp(b)));
} else if (y <= 1.05e+38) {
tmp = t_1;
} else {
tmp = (x * Math.pow(z, y)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / y) * (math.pow(a, (t + -1.0)) / math.exp(b)) tmp = 0 if y <= -2700000000000.0: tmp = (x / y) * math.exp(((y * math.log(z)) - b)) elif y <= 5.4e-194: tmp = t_1 elif y <= 2.8e-100: tmp = x / (a * (y * math.exp(b))) elif y <= 1.05e+38: tmp = t_1 else: tmp = (x * math.pow(z, y)) / y return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / y) * Float64((a ^ Float64(t + -1.0)) / exp(b))) tmp = 0.0 if (y <= -2700000000000.0) tmp = Float64(Float64(x / y) * exp(Float64(Float64(y * log(z)) - b))); elseif (y <= 5.4e-194) tmp = t_1; elseif (y <= 2.8e-100) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); elseif (y <= 1.05e+38) tmp = t_1; else tmp = Float64(Float64(x * (z ^ y)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / y) * ((a ^ (t + -1.0)) / exp(b)); tmp = 0.0; if (y <= -2700000000000.0) tmp = (x / y) * exp(((y * log(z)) - b)); elseif (y <= 5.4e-194) tmp = t_1; elseif (y <= 2.8e-100) tmp = x / (a * (y * exp(b))); elseif (y <= 1.05e+38) tmp = t_1; else tmp = (x * (z ^ y)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / y), $MachinePrecision] * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2700000000000.0], N[(N[(x / y), $MachinePrecision] * N[Exp[N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.4e-194], t$95$1, If[LessEqual[y, 2.8e-100], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.05e+38], t$95$1, N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y} \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}\\
\mathbf{if}\;y \leq -2700000000000:\\
\;\;\;\;\frac{x}{y} \cdot e^{y \cdot \log z - b}\\
\mathbf{elif}\;y \leq 5.4 \cdot 10^{-194}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-100}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{+38}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot {z}^{y}}{y}\\
\end{array}
\end{array}
if y < -2.7e12Initial program 100.0%
associate-*l/94.5%
fma-def94.5%
sub-neg94.5%
metadata-eval94.5%
Simplified94.5%
Taylor expanded in y around inf 86.4%
if -2.7e12 < y < 5.4e-194 or 2.79999999999999995e-100 < y < 1.05e38Initial program 97.6%
associate-*l/95.3%
*-commutative95.3%
associate--l+95.3%
exp-sum93.6%
*-commutative93.6%
exp-to-pow93.6%
exp-diff87.6%
*-commutative87.6%
exp-to-pow88.6%
sub-neg88.6%
metadata-eval88.6%
Simplified88.6%
Taylor expanded in y around 0 84.9%
times-frac88.6%
exp-prod88.6%
rem-exp-log89.4%
sub-neg89.4%
metadata-eval89.4%
Simplified89.4%
if 5.4e-194 < y < 2.79999999999999995e-100Initial program 99.2%
associate-*l/83.8%
fma-def83.8%
sub-neg83.8%
metadata-eval83.8%
Simplified83.8%
Taylor expanded in y around 0 99.2%
associate-/l*99.2%
exp-diff68.4%
exp-prod68.4%
rem-exp-log69.1%
sub-neg69.1%
metadata-eval69.1%
Simplified69.1%
Taylor expanded in t around 0 92.3%
if 1.05e38 < y Initial program 100.0%
associate-*l/83.0%
fma-def83.0%
sub-neg83.0%
metadata-eval83.0%
Simplified83.0%
Taylor expanded in y around inf 79.3%
Taylor expanded in b around 0 90.7%
Final simplification89.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -4.15e+152) (not (<= y 6e+38))) (/ (* x (pow z y)) y) (* (/ x y) (exp (- (* (+ t -1.0) (log a)) b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -4.15e+152) || !(y <= 6e+38)) {
tmp = (x * pow(z, y)) / y;
} else {
tmp = (x / y) * exp((((t + -1.0) * log(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 ((y <= (-4.15d+152)) .or. (.not. (y <= 6d+38))) then
tmp = (x * (z ** y)) / y
else
tmp = (x / y) * exp((((t + (-1.0d0)) * log(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 ((y <= -4.15e+152) || !(y <= 6e+38)) {
tmp = (x * Math.pow(z, y)) / y;
} else {
tmp = (x / y) * Math.exp((((t + -1.0) * Math.log(a)) - b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -4.15e+152) or not (y <= 6e+38): tmp = (x * math.pow(z, y)) / y else: tmp = (x / y) * math.exp((((t + -1.0) * math.log(a)) - b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -4.15e+152) || !(y <= 6e+38)) tmp = Float64(Float64(x * (z ^ y)) / y); else tmp = Float64(Float64(x / y) * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -4.15e+152) || ~((y <= 6e+38))) tmp = (x * (z ^ y)) / y; else tmp = (x / y) * exp((((t + -1.0) * log(a)) - b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -4.15e+152], N[Not[LessEqual[y, 6e+38]], $MachinePrecision]], N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / y), $MachinePrecision] * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.15 \cdot 10^{+152} \lor \neg \left(y \leq 6 \cdot 10^{+38}\right):\\
\;\;\;\;\frac{x \cdot {z}^{y}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} \cdot e^{\left(t + -1\right) \cdot \log a - b}\\
\end{array}
\end{array}
if y < -4.1500000000000001e152 or 6.0000000000000002e38 < y Initial program 100.0%
associate-*l/87.1%
fma-def87.1%
sub-neg87.1%
metadata-eval87.1%
Simplified87.1%
Taylor expanded in y around inf 82.9%
Taylor expanded in b around 0 92.6%
if -4.1500000000000001e152 < y < 6.0000000000000002e38Initial program 98.2%
associate-*l/94.7%
fma-def94.7%
sub-neg94.7%
metadata-eval94.7%
Simplified94.7%
Taylor expanded in y around 0 91.2%
Final simplification91.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -3e+18)
(* (/ x y) (exp (- (* y (log z)) b)))
(if (<= y 1.35e+34)
(/ x (/ y (/ (pow a (+ t -1.0)) (exp b))))
(/ (* x (pow z y)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -3e+18) {
tmp = (x / y) * exp(((y * log(z)) - b));
} else if (y <= 1.35e+34) {
tmp = x / (y / (pow(a, (t + -1.0)) / exp(b)));
} else {
tmp = (x * pow(z, y)) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-3d+18)) then
tmp = (x / y) * exp(((y * log(z)) - b))
else if (y <= 1.35d+34) then
tmp = x / (y / ((a ** (t + (-1.0d0))) / exp(b)))
else
tmp = (x * (z ** y)) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -3e+18) {
tmp = (x / y) * Math.exp(((y * Math.log(z)) - b));
} else if (y <= 1.35e+34) {
tmp = x / (y / (Math.pow(a, (t + -1.0)) / Math.exp(b)));
} else {
tmp = (x * Math.pow(z, y)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -3e+18: tmp = (x / y) * math.exp(((y * math.log(z)) - b)) elif y <= 1.35e+34: tmp = x / (y / (math.pow(a, (t + -1.0)) / math.exp(b))) else: tmp = (x * math.pow(z, y)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -3e+18) tmp = Float64(Float64(x / y) * exp(Float64(Float64(y * log(z)) - b))); elseif (y <= 1.35e+34) tmp = Float64(x / Float64(y / Float64((a ^ Float64(t + -1.0)) / exp(b)))); else tmp = Float64(Float64(x * (z ^ y)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -3e+18) tmp = (x / y) * exp(((y * log(z)) - b)); elseif (y <= 1.35e+34) tmp = x / (y / ((a ^ (t + -1.0)) / exp(b))); else tmp = (x * (z ^ y)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -3e+18], N[(N[(x / y), $MachinePrecision] * N[Exp[N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.35e+34], N[(x / N[(y / N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3 \cdot 10^{+18}:\\
\;\;\;\;\frac{x}{y} \cdot e^{y \cdot \log z - b}\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{+34}:\\
\;\;\;\;\frac{x}{\frac{y}{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot {z}^{y}}{y}\\
\end{array}
\end{array}
if y < -3e18Initial program 100.0%
associate-*l/94.5%
fma-def94.5%
sub-neg94.5%
metadata-eval94.5%
Simplified94.5%
Taylor expanded in y around inf 86.4%
if -3e18 < y < 1.35e34Initial program 97.8%
associate-*l/94.2%
fma-def94.2%
sub-neg94.2%
metadata-eval94.2%
Simplified94.2%
Taylor expanded in y around 0 97.1%
associate-/l*96.3%
exp-diff87.9%
exp-prod87.9%
rem-exp-log88.5%
sub-neg88.5%
metadata-eval88.5%
Simplified88.5%
if 1.35e34 < y Initial program 100.0%
associate-*l/83.0%
fma-def83.0%
sub-neg83.0%
metadata-eval83.0%
Simplified83.0%
Taylor expanded in y around inf 79.3%
Taylor expanded in b around 0 90.7%
Final simplification88.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (/ y (/ (pow a t) a)))))
(if (<= b -5.7e-161)
(* (/ x y) (exp (- (* y (log z)) b)))
(if (<= b 1.5e-179)
t_1
(if (<= b 1.45e-136)
(/ (* x (pow z y)) y)
(if (<= b 1.5e+29) t_1 (/ (/ x (exp b)) y)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y / (pow(a, t) / a));
double tmp;
if (b <= -5.7e-161) {
tmp = (x / y) * exp(((y * log(z)) - b));
} else if (b <= 1.5e-179) {
tmp = t_1;
} else if (b <= 1.45e-136) {
tmp = (x * pow(z, y)) / y;
} else if (b <= 1.5e+29) {
tmp = t_1;
} else {
tmp = (x / 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) :: t_1
real(8) :: tmp
t_1 = x / (y / ((a ** t) / a))
if (b <= (-5.7d-161)) then
tmp = (x / y) * exp(((y * log(z)) - b))
else if (b <= 1.5d-179) then
tmp = t_1
else if (b <= 1.45d-136) then
tmp = (x * (z ** y)) / y
else if (b <= 1.5d+29) then
tmp = t_1
else
tmp = (x / 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 t_1 = x / (y / (Math.pow(a, t) / a));
double tmp;
if (b <= -5.7e-161) {
tmp = (x / y) * Math.exp(((y * Math.log(z)) - b));
} else if (b <= 1.5e-179) {
tmp = t_1;
} else if (b <= 1.45e-136) {
tmp = (x * Math.pow(z, y)) / y;
} else if (b <= 1.5e+29) {
tmp = t_1;
} else {
tmp = (x / Math.exp(b)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y / (math.pow(a, t) / a)) tmp = 0 if b <= -5.7e-161: tmp = (x / y) * math.exp(((y * math.log(z)) - b)) elif b <= 1.5e-179: tmp = t_1 elif b <= 1.45e-136: tmp = (x * math.pow(z, y)) / y elif b <= 1.5e+29: tmp = t_1 else: tmp = (x / math.exp(b)) / y return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y / Float64((a ^ t) / a))) tmp = 0.0 if (b <= -5.7e-161) tmp = Float64(Float64(x / y) * exp(Float64(Float64(y * log(z)) - b))); elseif (b <= 1.5e-179) tmp = t_1; elseif (b <= 1.45e-136) tmp = Float64(Float64(x * (z ^ y)) / y); elseif (b <= 1.5e+29) tmp = t_1; else tmp = Float64(Float64(x / exp(b)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y / ((a ^ t) / a)); tmp = 0.0; if (b <= -5.7e-161) tmp = (x / y) * exp(((y * log(z)) - b)); elseif (b <= 1.5e-179) tmp = t_1; elseif (b <= 1.45e-136) tmp = (x * (z ^ y)) / y; elseif (b <= 1.5e+29) tmp = t_1; else tmp = (x / exp(b)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y / N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.7e-161], N[(N[(x / y), $MachinePrecision] * N[Exp[N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e-179], t$95$1, If[LessEqual[b, 1.45e-136], N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 1.5e+29], t$95$1, N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\frac{y}{\frac{{a}^{t}}{a}}}\\
\mathbf{if}\;b \leq -5.7 \cdot 10^{-161}:\\
\;\;\;\;\frac{x}{y} \cdot e^{y \cdot \log z - b}\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{-179}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.45 \cdot 10^{-136}:\\
\;\;\;\;\frac{x \cdot {z}^{y}}{y}\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{+29}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{e^{b}}}{y}\\
\end{array}
\end{array}
if b < -5.70000000000000022e-161Initial program 99.5%
associate-*l/93.9%
fma-def93.9%
sub-neg93.9%
metadata-eval93.9%
Simplified93.9%
Taylor expanded in y around inf 81.3%
if -5.70000000000000022e-161 < b < 1.50000000000000003e-179 or 1.44999999999999997e-136 < b < 1.5e29Initial program 97.5%
associate-*l/94.6%
fma-def94.6%
sub-neg94.6%
metadata-eval94.6%
Simplified94.6%
Taylor expanded in y around 0 75.1%
associate-/l*76.5%
exp-diff74.4%
exp-prod74.4%
rem-exp-log75.0%
sub-neg75.0%
metadata-eval75.0%
Simplified75.0%
Taylor expanded in b around 0 76.5%
exp-prod76.6%
sub-neg76.6%
metadata-eval76.6%
exp-prod76.5%
distribute-lft-in76.5%
*-commutative76.5%
mul-1-neg76.5%
sub-neg76.5%
exp-diff76.5%
*-commutative76.5%
log-pow76.6%
exp-diff76.5%
log-div76.5%
rem-exp-log77.3%
Simplified77.3%
if 1.50000000000000003e-179 < b < 1.44999999999999997e-136Initial program 99.3%
associate-*l/82.6%
fma-def82.6%
sub-neg82.6%
metadata-eval82.6%
Simplified82.6%
Taylor expanded in y around inf 67.3%
Taylor expanded in b around 0 83.9%
if 1.5e29 < b Initial program 100.0%
associate-*l/86.9%
fma-def86.9%
sub-neg86.9%
metadata-eval86.9%
Simplified86.9%
Taylor expanded in y around inf 78.8%
Taylor expanded in y around 0 83.9%
Taylor expanded in b around -inf 83.9%
*-commutative83.9%
mul-1-neg83.9%
exp-neg83.9%
associate-/r/83.9%
remove-double-div83.9%
associate-/r/83.9%
/-rgt-identity83.9%
associate-/l/83.9%
remove-double-div83.9%
Simplified83.9%
Final simplification80.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (pow z y)) y))
(t_2 (* (/ x y) (/ (pow a t) a)))
(t_3 (/ (/ x (exp b)) y)))
(if (<= b -250000.0)
t_3
(if (<= b -5.9e-171)
t_1
(if (<= b 1.55e-179)
t_2
(if (<= b 5.2e-136) t_1 (if (<= b 8e+30) t_2 t_3)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * pow(z, y)) / y;
double t_2 = (x / y) * (pow(a, t) / a);
double t_3 = (x / exp(b)) / y;
double tmp;
if (b <= -250000.0) {
tmp = t_3;
} else if (b <= -5.9e-171) {
tmp = t_1;
} else if (b <= 1.55e-179) {
tmp = t_2;
} else if (b <= 5.2e-136) {
tmp = t_1;
} else if (b <= 8e+30) {
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 * (z ** y)) / y
t_2 = (x / y) * ((a ** t) / a)
t_3 = (x / exp(b)) / y
if (b <= (-250000.0d0)) then
tmp = t_3
else if (b <= (-5.9d-171)) then
tmp = t_1
else if (b <= 1.55d-179) then
tmp = t_2
else if (b <= 5.2d-136) then
tmp = t_1
else if (b <= 8d+30) 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 * Math.pow(z, y)) / y;
double t_2 = (x / y) * (Math.pow(a, t) / a);
double t_3 = (x / Math.exp(b)) / y;
double tmp;
if (b <= -250000.0) {
tmp = t_3;
} else if (b <= -5.9e-171) {
tmp = t_1;
} else if (b <= 1.55e-179) {
tmp = t_2;
} else if (b <= 5.2e-136) {
tmp = t_1;
} else if (b <= 8e+30) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * math.pow(z, y)) / y t_2 = (x / y) * (math.pow(a, t) / a) t_3 = (x / math.exp(b)) / y tmp = 0 if b <= -250000.0: tmp = t_3 elif b <= -5.9e-171: tmp = t_1 elif b <= 1.55e-179: tmp = t_2 elif b <= 5.2e-136: tmp = t_1 elif b <= 8e+30: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * (z ^ y)) / y) t_2 = Float64(Float64(x / y) * Float64((a ^ t) / a)) t_3 = Float64(Float64(x / exp(b)) / y) tmp = 0.0 if (b <= -250000.0) tmp = t_3; elseif (b <= -5.9e-171) tmp = t_1; elseif (b <= 1.55e-179) tmp = t_2; elseif (b <= 5.2e-136) tmp = t_1; elseif (b <= 8e+30) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * (z ^ y)) / y; t_2 = (x / y) * ((a ^ t) / a); t_3 = (x / exp(b)) / y; tmp = 0.0; if (b <= -250000.0) tmp = t_3; elseif (b <= -5.9e-171) tmp = t_1; elseif (b <= 1.55e-179) tmp = t_2; elseif (b <= 5.2e-136) tmp = t_1; elseif (b <= 8e+30) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / y), $MachinePrecision] * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -250000.0], t$95$3, If[LessEqual[b, -5.9e-171], t$95$1, If[LessEqual[b, 1.55e-179], t$95$2, If[LessEqual[b, 5.2e-136], t$95$1, If[LessEqual[b, 8e+30], t$95$2, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot {z}^{y}}{y}\\
t_2 := \frac{x}{y} \cdot \frac{{a}^{t}}{a}\\
t_3 := \frac{\frac{x}{e^{b}}}{y}\\
\mathbf{if}\;b \leq -250000:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -5.9 \cdot 10^{-171}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.55 \cdot 10^{-179}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{-136}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 8 \cdot 10^{+30}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -2.5e5 or 8.0000000000000002e30 < b Initial program 100.0%
associate-*l/91.8%
fma-def91.8%
sub-neg91.8%
metadata-eval91.8%
Simplified91.8%
Taylor expanded in y around inf 85.3%
Taylor expanded in y around 0 84.7%
Taylor expanded in b around -inf 84.7%
*-commutative84.7%
mul-1-neg84.7%
exp-neg84.7%
associate-/r/84.7%
remove-double-div84.7%
associate-/r/84.7%
/-rgt-identity84.7%
associate-/l/84.7%
remove-double-div84.7%
Simplified84.7%
if -2.5e5 < b < -5.8999999999999998e-171 or 1.5500000000000001e-179 < b < 5.19999999999999993e-136Initial program 98.7%
associate-*l/85.0%
fma-def85.0%
sub-neg85.0%
metadata-eval85.0%
Simplified85.0%
Taylor expanded in y around inf 58.2%
Taylor expanded in b around 0 71.9%
if -5.8999999999999998e-171 < b < 1.5500000000000001e-179 or 5.19999999999999993e-136 < b < 8.0000000000000002e30Initial program 97.5%
associate-*l/95.6%
fma-def95.6%
sub-neg95.6%
metadata-eval95.6%
Simplified95.6%
Taylor expanded in y around 0 77.7%
associate-/l*78.2%
exp-diff76.0%
exp-prod76.0%
rem-exp-log76.7%
sub-neg76.7%
metadata-eval76.7%
Simplified76.7%
Taylor expanded in b around 0 77.7%
exp-prod77.8%
sub-neg77.8%
metadata-eval77.8%
exp-prod77.7%
distribute-lft-in77.7%
*-commutative77.7%
mul-1-neg77.7%
sub-neg77.7%
exp-diff77.7%
*-commutative77.7%
log-pow77.8%
exp-diff77.7%
log-div77.7%
rem-exp-log78.5%
associate-*l/78.9%
Simplified78.9%
Final simplification80.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (pow z y)) y))
(t_2 (/ x (/ y (/ (pow a t) a))))
(t_3 (/ (/ x (exp b)) y)))
(if (<= b -100000.0)
t_3
(if (<= b -8.2e-173)
t_1
(if (<= b 1.4e-179)
t_2
(if (<= b 1.8e-136) t_1 (if (<= b 1.5e+29) t_2 t_3)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * pow(z, y)) / y;
double t_2 = x / (y / (pow(a, t) / a));
double t_3 = (x / exp(b)) / y;
double tmp;
if (b <= -100000.0) {
tmp = t_3;
} else if (b <= -8.2e-173) {
tmp = t_1;
} else if (b <= 1.4e-179) {
tmp = t_2;
} else if (b <= 1.8e-136) {
tmp = t_1;
} else if (b <= 1.5e+29) {
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 * (z ** y)) / y
t_2 = x / (y / ((a ** t) / a))
t_3 = (x / exp(b)) / y
if (b <= (-100000.0d0)) then
tmp = t_3
else if (b <= (-8.2d-173)) then
tmp = t_1
else if (b <= 1.4d-179) then
tmp = t_2
else if (b <= 1.8d-136) then
tmp = t_1
else if (b <= 1.5d+29) 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 * Math.pow(z, y)) / y;
double t_2 = x / (y / (Math.pow(a, t) / a));
double t_3 = (x / Math.exp(b)) / y;
double tmp;
if (b <= -100000.0) {
tmp = t_3;
} else if (b <= -8.2e-173) {
tmp = t_1;
} else if (b <= 1.4e-179) {
tmp = t_2;
} else if (b <= 1.8e-136) {
tmp = t_1;
} else if (b <= 1.5e+29) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * math.pow(z, y)) / y t_2 = x / (y / (math.pow(a, t) / a)) t_3 = (x / math.exp(b)) / y tmp = 0 if b <= -100000.0: tmp = t_3 elif b <= -8.2e-173: tmp = t_1 elif b <= 1.4e-179: tmp = t_2 elif b <= 1.8e-136: tmp = t_1 elif b <= 1.5e+29: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * (z ^ y)) / y) t_2 = Float64(x / Float64(y / Float64((a ^ t) / a))) t_3 = Float64(Float64(x / exp(b)) / y) tmp = 0.0 if (b <= -100000.0) tmp = t_3; elseif (b <= -8.2e-173) tmp = t_1; elseif (b <= 1.4e-179) tmp = t_2; elseif (b <= 1.8e-136) tmp = t_1; elseif (b <= 1.5e+29) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * (z ^ y)) / y; t_2 = x / (y / ((a ^ t) / a)); t_3 = (x / exp(b)) / y; tmp = 0.0; if (b <= -100000.0) tmp = t_3; elseif (b <= -8.2e-173) tmp = t_1; elseif (b <= 1.4e-179) tmp = t_2; elseif (b <= 1.8e-136) tmp = t_1; elseif (b <= 1.5e+29) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(y / N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -100000.0], t$95$3, If[LessEqual[b, -8.2e-173], t$95$1, If[LessEqual[b, 1.4e-179], t$95$2, If[LessEqual[b, 1.8e-136], t$95$1, If[LessEqual[b, 1.5e+29], t$95$2, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot {z}^{y}}{y}\\
t_2 := \frac{x}{\frac{y}{\frac{{a}^{t}}{a}}}\\
t_3 := \frac{\frac{x}{e^{b}}}{y}\\
\mathbf{if}\;b \leq -100000:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -8.2 \cdot 10^{-173}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{-179}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{-136}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{+29}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -1e5 or 1.5e29 < b Initial program 100.0%
associate-*l/91.8%
fma-def91.8%
sub-neg91.8%
metadata-eval91.8%
Simplified91.8%
Taylor expanded in y around inf 85.3%
Taylor expanded in y around 0 84.7%
Taylor expanded in b around -inf 84.7%
*-commutative84.7%
mul-1-neg84.7%
exp-neg84.7%
associate-/r/84.7%
remove-double-div84.7%
associate-/r/84.7%
/-rgt-identity84.7%
associate-/l/84.7%
remove-double-div84.7%
Simplified84.7%
if -1e5 < b < -8.1999999999999995e-173 or 1.4e-179 < b < 1.7999999999999999e-136Initial program 98.7%
associate-*l/85.0%
fma-def85.0%
sub-neg85.0%
metadata-eval85.0%
Simplified85.0%
Taylor expanded in y around inf 58.2%
Taylor expanded in b around 0 71.9%
if -8.1999999999999995e-173 < b < 1.4e-179 or 1.7999999999999999e-136 < b < 1.5e29Initial program 97.5%
associate-*l/95.6%
fma-def95.6%
sub-neg95.6%
metadata-eval95.6%
Simplified95.6%
Taylor expanded in y around 0 77.7%
associate-/l*78.2%
exp-diff76.0%
exp-prod76.0%
rem-exp-log76.7%
sub-neg76.7%
metadata-eval76.7%
Simplified76.7%
Taylor expanded in b around 0 78.2%
exp-prod78.3%
sub-neg78.3%
metadata-eval78.3%
exp-prod78.2%
distribute-lft-in78.2%
*-commutative78.2%
mul-1-neg78.2%
sub-neg78.2%
exp-diff78.2%
*-commutative78.2%
log-pow78.3%
exp-diff78.2%
log-div78.2%
rem-exp-log79.1%
Simplified79.1%
Final simplification80.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x (exp b)) y)) (t_2 (/ (* x (pow z y)) y)))
(if (<= y -6e+147)
t_2
(if (<= y 2.95e-268)
t_1
(if (<= y 3.2e-219) (/ (/ x a) y) (if (<= y 1.15e+30) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / exp(b)) / y;
double t_2 = (x * pow(z, y)) / y;
double tmp;
if (y <= -6e+147) {
tmp = t_2;
} else if (y <= 2.95e-268) {
tmp = t_1;
} else if (y <= 3.2e-219) {
tmp = (x / a) / y;
} else if (y <= 1.15e+30) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x / exp(b)) / y
t_2 = (x * (z ** y)) / y
if (y <= (-6d+147)) then
tmp = t_2
else if (y <= 2.95d-268) then
tmp = t_1
else if (y <= 3.2d-219) then
tmp = (x / a) / y
else if (y <= 1.15d+30) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / Math.exp(b)) / y;
double t_2 = (x * Math.pow(z, y)) / y;
double tmp;
if (y <= -6e+147) {
tmp = t_2;
} else if (y <= 2.95e-268) {
tmp = t_1;
} else if (y <= 3.2e-219) {
tmp = (x / a) / y;
} else if (y <= 1.15e+30) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / math.exp(b)) / y t_2 = (x * math.pow(z, y)) / y tmp = 0 if y <= -6e+147: tmp = t_2 elif y <= 2.95e-268: tmp = t_1 elif y <= 3.2e-219: tmp = (x / a) / y elif y <= 1.15e+30: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / exp(b)) / y) t_2 = Float64(Float64(x * (z ^ y)) / y) tmp = 0.0 if (y <= -6e+147) tmp = t_2; elseif (y <= 2.95e-268) tmp = t_1; elseif (y <= 3.2e-219) tmp = Float64(Float64(x / a) / y); elseif (y <= 1.15e+30) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / exp(b)) / y; t_2 = (x * (z ^ y)) / y; tmp = 0.0; if (y <= -6e+147) tmp = t_2; elseif (y <= 2.95e-268) tmp = t_1; elseif (y <= 3.2e-219) tmp = (x / a) / y; elseif (y <= 1.15e+30) tmp = t_1; else tmp = t_2; 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]}, Block[{t$95$2 = N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -6e+147], t$95$2, If[LessEqual[y, 2.95e-268], t$95$1, If[LessEqual[y, 3.2e-219], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 1.15e+30], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{e^{b}}}{y}\\
t_2 := \frac{x \cdot {z}^{y}}{y}\\
\mathbf{if}\;y \leq -6 \cdot 10^{+147}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 2.95 \cdot 10^{-268}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{-219}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{+30}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -5.99999999999999987e147 or 1.15e30 < y Initial program 100.0%
associate-*l/87.5%
fma-def87.5%
sub-neg87.5%
metadata-eval87.5%
Simplified87.5%
Taylor expanded in y around inf 82.4%
Taylor expanded in b around 0 91.8%
if -5.99999999999999987e147 < y < 2.94999999999999998e-268 or 3.19999999999999998e-219 < y < 1.15e30Initial program 98.2%
associate-*l/95.0%
fma-def95.0%
sub-neg95.0%
metadata-eval95.0%
Simplified95.0%
Taylor expanded in y around inf 62.6%
Taylor expanded in y around 0 61.6%
Taylor expanded in b around -inf 61.6%
*-commutative61.6%
mul-1-neg61.6%
exp-neg61.6%
associate-/r/61.6%
remove-double-div61.6%
associate-/r/61.6%
/-rgt-identity61.6%
associate-/l/61.6%
remove-double-div61.6%
Simplified61.6%
if 2.94999999999999998e-268 < y < 3.19999999999999998e-219Initial program 98.5%
associate-*l/90.8%
*-commutative90.8%
associate--l+90.8%
exp-sum90.8%
*-commutative90.8%
exp-to-pow90.8%
exp-diff75.4%
*-commutative75.4%
exp-to-pow76.8%
sub-neg76.8%
metadata-eval76.8%
Simplified76.8%
Applied egg-rr76.8%
Taylor expanded in t around 0 47.3%
Taylor expanded in y around 0 47.3%
Taylor expanded in b around 0 62.7%
Final simplification73.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x (exp b)) y)))
(if (<= b -6.4e-24)
t_1
(if (<= b 1.95e-156)
(/ (/ x a) y)
(if (<= b 1.95e-85)
(/ (- (/ (* x y) x) (* y b)) (/ y (/ x y)))
(if (<= b 16200000000000.0) (/ x (* a (+ y (* y b)))) 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.4e-24) {
tmp = t_1;
} else if (b <= 1.95e-156) {
tmp = (x / a) / y;
} else if (b <= 1.95e-85) {
tmp = (((x * y) / x) - (y * b)) / (y / (x / y));
} else if (b <= 16200000000000.0) {
tmp = x / (a * (y + (y * 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 / exp(b)) / y
if (b <= (-6.4d-24)) then
tmp = t_1
else if (b <= 1.95d-156) then
tmp = (x / a) / y
else if (b <= 1.95d-85) then
tmp = (((x * y) / x) - (y * b)) / (y / (x / y))
else if (b <= 16200000000000.0d0) then
tmp = x / (a * (y + (y * 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.exp(b)) / y;
double tmp;
if (b <= -6.4e-24) {
tmp = t_1;
} else if (b <= 1.95e-156) {
tmp = (x / a) / y;
} else if (b <= 1.95e-85) {
tmp = (((x * y) / x) - (y * b)) / (y / (x / y));
} else if (b <= 16200000000000.0) {
tmp = x / (a * (y + (y * b)));
} 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.4e-24: tmp = t_1 elif b <= 1.95e-156: tmp = (x / a) / y elif b <= 1.95e-85: tmp = (((x * y) / x) - (y * b)) / (y / (x / y)) elif b <= 16200000000000.0: tmp = x / (a * (y + (y * b))) 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.4e-24) tmp = t_1; elseif (b <= 1.95e-156) tmp = Float64(Float64(x / a) / y); elseif (b <= 1.95e-85) tmp = Float64(Float64(Float64(Float64(x * y) / x) - Float64(y * b)) / Float64(y / Float64(x / y))); elseif (b <= 16200000000000.0) tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); 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.4e-24) tmp = t_1; elseif (b <= 1.95e-156) tmp = (x / a) / y; elseif (b <= 1.95e-85) tmp = (((x * y) / x) - (y * b)) / (y / (x / y)); elseif (b <= 16200000000000.0) tmp = x / (a * (y + (y * b))); 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.4e-24], t$95$1, If[LessEqual[b, 1.95e-156], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 1.95e-85], N[(N[(N[(N[(x * y), $MachinePrecision] / x), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(y / N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 16200000000000.0], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{e^{b}}}{y}\\
\mathbf{if}\;b \leq -6.4 \cdot 10^{-24}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.95 \cdot 10^{-156}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{elif}\;b \leq 1.95 \cdot 10^{-85}:\\
\;\;\;\;\frac{\frac{x \cdot y}{x} - y \cdot b}{\frac{y}{\frac{x}{y}}}\\
\mathbf{elif}\;b \leq 16200000000000:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -6.40000000000000025e-24 or 1.62e13 < b Initial program 100.0%
associate-*l/91.5%
fma-def91.5%
sub-neg91.5%
metadata-eval91.5%
Simplified91.5%
Taylor expanded in y around inf 84.6%
Taylor expanded in y around 0 82.5%
Taylor expanded in b around -inf 82.5%
*-commutative82.5%
mul-1-neg82.5%
exp-neg82.5%
associate-/r/82.5%
remove-double-div82.5%
associate-/r/82.5%
/-rgt-identity82.5%
associate-/l/82.5%
remove-double-div82.5%
Simplified82.5%
if -6.40000000000000025e-24 < b < 1.9500000000000001e-156Initial program 98.2%
associate-*l/91.2%
*-commutative91.2%
associate--l+91.2%
exp-sum78.4%
*-commutative78.4%
exp-to-pow78.4%
exp-diff78.4%
*-commutative78.4%
exp-to-pow79.5%
sub-neg79.5%
metadata-eval79.5%
Simplified79.5%
Applied egg-rr83.5%
Taylor expanded in t around 0 71.8%
Taylor expanded in y around 0 37.9%
Taylor expanded in b around 0 37.9%
if 1.9500000000000001e-156 < b < 1.94999999999999994e-85Initial program 92.2%
associate-*l/90.8%
fma-def90.8%
sub-neg90.8%
metadata-eval90.8%
Simplified90.8%
Taylor expanded in y around inf 43.5%
Taylor expanded in y around 0 29.0%
associate-*l/29.0%
*-commutative29.0%
Simplified29.0%
Taylor expanded in b around 0 20.7%
+-commutative20.7%
associate-/l*20.7%
associate-*r/20.7%
neg-mul-120.7%
frac-add26.0%
associate-*r/25.7%
Applied egg-rr25.7%
*-commutative25.7%
cancel-sign-sub-inv25.7%
*-commutative25.7%
associate-*r/50.7%
associate-/l*59.3%
Simplified59.3%
if 1.94999999999999994e-85 < b < 1.62e13Initial program 99.0%
associate-*l/99.0%
fma-def99.0%
sub-neg99.0%
metadata-eval99.0%
Simplified99.0%
Taylor expanded in y around 0 71.1%
associate-/l*71.7%
exp-diff66.9%
exp-prod66.9%
rem-exp-log67.4%
sub-neg67.4%
metadata-eval67.4%
Simplified67.4%
Taylor expanded in t around 0 45.2%
Taylor expanded in b around 0 45.4%
distribute-lft-out45.4%
*-commutative45.4%
Simplified45.4%
Final simplification62.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -6e+147) (not (<= y 1.4e+30))) (/ (* x (pow z y)) y) (/ x (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -6e+147) || !(y <= 1.4e+30)) {
tmp = (x * pow(z, y)) / 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 ((y <= (-6d+147)) .or. (.not. (y <= 1.4d+30))) then
tmp = (x * (z ** y)) / 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 ((y <= -6e+147) || !(y <= 1.4e+30)) {
tmp = (x * Math.pow(z, y)) / y;
} else {
tmp = x / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -6e+147) or not (y <= 1.4e+30): tmp = (x * math.pow(z, y)) / y else: tmp = x / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -6e+147) || !(y <= 1.4e+30)) tmp = Float64(Float64(x * (z ^ y)) / 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 ((y <= -6e+147) || ~((y <= 1.4e+30))) tmp = (x * (z ^ y)) / y; else tmp = x / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -6e+147], N[Not[LessEqual[y, 1.4e+30]], $MachinePrecision]], N[(N[(x * N[Power[z, y], $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}\;y \leq -6 \cdot 10^{+147} \lor \neg \left(y \leq 1.4 \cdot 10^{+30}\right):\\
\;\;\;\;\frac{x \cdot {z}^{y}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if y < -5.99999999999999987e147 or 1.39999999999999992e30 < y Initial program 100.0%
associate-*l/87.5%
fma-def87.5%
sub-neg87.5%
metadata-eval87.5%
Simplified87.5%
Taylor expanded in y around inf 82.4%
Taylor expanded in b around 0 91.8%
if -5.99999999999999987e147 < y < 1.39999999999999992e30Initial program 98.2%
associate-*l/94.6%
fma-def94.6%
sub-neg94.6%
metadata-eval94.6%
Simplified94.6%
Taylor expanded in y around 0 94.6%
associate-/l*94.0%
exp-diff84.6%
exp-prod84.7%
rem-exp-log85.1%
sub-neg85.1%
metadata-eval85.1%
Simplified85.1%
Taylor expanded in t around 0 71.6%
Final simplification79.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -2.4e+125)
(+ (/ (- x (* x b)) y) (* 0.5 (/ (* b b) (/ y x))))
(if (<= b -6.2e-72)
(/ (- (/ y b) (/ (* x y) x)) (* (/ y x) (/ y b)))
(/ x (* a (+ y (* y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.4e+125) {
tmp = ((x - (x * b)) / y) + (0.5 * ((b * b) / (y / x)));
} else if (b <= -6.2e-72) {
tmp = ((y / b) - ((x * y) / x)) / ((y / x) * (y / b));
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-2.4d+125)) then
tmp = ((x - (x * b)) / y) + (0.5d0 * ((b * b) / (y / x)))
else if (b <= (-6.2d-72)) then
tmp = ((y / b) - ((x * y) / x)) / ((y / x) * (y / b))
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.4e+125) {
tmp = ((x - (x * b)) / y) + (0.5 * ((b * b) / (y / x)));
} else if (b <= -6.2e-72) {
tmp = ((y / b) - ((x * y) / x)) / ((y / x) * (y / b));
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.4e+125: tmp = ((x - (x * b)) / y) + (0.5 * ((b * b) / (y / x))) elif b <= -6.2e-72: tmp = ((y / b) - ((x * y) / x)) / ((y / x) * (y / b)) else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.4e+125) tmp = Float64(Float64(Float64(x - Float64(x * b)) / y) + Float64(0.5 * Float64(Float64(b * b) / Float64(y / x)))); elseif (b <= -6.2e-72) tmp = Float64(Float64(Float64(y / b) - Float64(Float64(x * y) / x)) / Float64(Float64(y / x) * Float64(y / b))); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.4e+125) tmp = ((x - (x * b)) / y) + (0.5 * ((b * b) / (y / x))); elseif (b <= -6.2e-72) tmp = ((y / b) - ((x * y) / x)) / ((y / x) * (y / b)); else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.4e+125], N[(N[(N[(x - N[(x * b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + N[(0.5 * N[(N[(b * b), $MachinePrecision] / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.2e-72], N[(N[(N[(y / b), $MachinePrecision] - N[(N[(x * y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / N[(N[(y / x), $MachinePrecision] * N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.4 \cdot 10^{+125}:\\
\;\;\;\;\frac{x - x \cdot b}{y} + 0.5 \cdot \frac{b \cdot b}{\frac{y}{x}}\\
\mathbf{elif}\;b \leq -6.2 \cdot 10^{-72}:\\
\;\;\;\;\frac{\frac{y}{b} - \frac{x \cdot y}{x}}{\frac{y}{x} \cdot \frac{y}{b}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -2.4e125Initial program 100.0%
associate-*l/97.2%
fma-def97.2%
sub-neg97.2%
metadata-eval97.2%
Simplified97.2%
Taylor expanded in y around inf 94.5%
Taylor expanded in y around 0 80.9%
*-commutative80.9%
associate-/l*78.0%
associate-/r/80.9%
Applied egg-rr80.9%
Taylor expanded in b around 0 67.8%
+-commutative67.8%
associate-+r+67.8%
+-commutative67.8%
mul-1-neg67.8%
sub-neg67.8%
*-commutative67.8%
div-sub67.8%
associate-/l*67.7%
unpow267.7%
Simplified67.7%
if -2.4e125 < b < -6.1999999999999996e-72Initial program 99.5%
associate-*l/91.6%
fma-def91.6%
sub-neg91.6%
metadata-eval91.6%
Simplified91.6%
Taylor expanded in y around inf 76.8%
Taylor expanded in y around 0 64.7%
associate-*l/59.5%
*-commutative59.5%
Simplified59.5%
Taylor expanded in b around 0 6.4%
+-commutative6.4%
mul-1-neg6.4%
unsub-neg6.4%
clear-num6.4%
*-commutative6.4%
associate-/l*6.4%
frac-sub16.0%
Applied egg-rr16.0%
*-lft-identity16.0%
*-commutative16.0%
associate-*r/31.2%
Simplified31.2%
if -6.1999999999999996e-72 < b Initial program 98.5%
associate-*l/91.0%
fma-def91.0%
sub-neg91.0%
metadata-eval91.0%
Simplified91.0%
Taylor expanded in y around 0 74.5%
associate-/l*75.2%
exp-diff68.6%
exp-prod68.6%
rem-exp-log69.0%
sub-neg69.0%
metadata-eval69.0%
Simplified69.0%
Taylor expanded in t around 0 54.0%
Taylor expanded in b around 0 34.9%
distribute-lft-out37.1%
*-commutative37.1%
Simplified37.1%
Final simplification40.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -3.6e+78)
(+ (/ (- x (* x b)) y) (* 0.5 (/ (* b b) (/ y x))))
(if (<= b -6.2e-72)
(/ (- (/ (* x y) x) (* y b)) (/ y (/ x y)))
(/ x (* a (+ y (* y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.6e+78) {
tmp = ((x - (x * b)) / y) + (0.5 * ((b * b) / (y / x)));
} else if (b <= -6.2e-72) {
tmp = (((x * y) / x) - (y * b)) / (y / (x / y));
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-3.6d+78)) then
tmp = ((x - (x * b)) / y) + (0.5d0 * ((b * b) / (y / x)))
else if (b <= (-6.2d-72)) then
tmp = (((x * y) / x) - (y * b)) / (y / (x / y))
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.6e+78) {
tmp = ((x - (x * b)) / y) + (0.5 * ((b * b) / (y / x)));
} else if (b <= -6.2e-72) {
tmp = (((x * y) / x) - (y * b)) / (y / (x / y));
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3.6e+78: tmp = ((x - (x * b)) / y) + (0.5 * ((b * b) / (y / x))) elif b <= -6.2e-72: tmp = (((x * y) / x) - (y * b)) / (y / (x / y)) else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3.6e+78) tmp = Float64(Float64(Float64(x - Float64(x * b)) / y) + Float64(0.5 * Float64(Float64(b * b) / Float64(y / x)))); elseif (b <= -6.2e-72) tmp = Float64(Float64(Float64(Float64(x * y) / x) - Float64(y * b)) / Float64(y / Float64(x / y))); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -3.6e+78) tmp = ((x - (x * b)) / y) + (0.5 * ((b * b) / (y / x))); elseif (b <= -6.2e-72) tmp = (((x * y) / x) - (y * b)) / (y / (x / y)); else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.6e+78], N[(N[(N[(x - N[(x * b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + N[(0.5 * N[(N[(b * b), $MachinePrecision] / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.2e-72], N[(N[(N[(N[(x * y), $MachinePrecision] / x), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(y / N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.6 \cdot 10^{+78}:\\
\;\;\;\;\frac{x - x \cdot b}{y} + 0.5 \cdot \frac{b \cdot b}{\frac{y}{x}}\\
\mathbf{elif}\;b \leq -6.2 \cdot 10^{-72}:\\
\;\;\;\;\frac{\frac{x \cdot y}{x} - y \cdot b}{\frac{y}{\frac{x}{y}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -3.6000000000000002e78Initial program 100.0%
associate-*l/97.8%
fma-def97.8%
sub-neg97.8%
metadata-eval97.8%
Simplified97.8%
Taylor expanded in y around inf 91.2%
Taylor expanded in y around 0 80.3%
*-commutative80.3%
associate-/l*78.0%
associate-/r/80.3%
Applied egg-rr80.3%
Taylor expanded in b around 0 57.3%
+-commutative57.3%
associate-+r+57.3%
+-commutative57.3%
mul-1-neg57.3%
sub-neg57.3%
*-commutative57.3%
div-sub57.3%
associate-/l*55.1%
unpow255.1%
Simplified55.1%
if -3.6000000000000002e78 < b < -6.1999999999999996e-72Initial program 99.3%
associate-*l/89.0%
fma-def89.0%
sub-neg89.0%
metadata-eval89.0%
Simplified89.0%
Taylor expanded in y around inf 76.4%
Taylor expanded in y around 0 60.6%
associate-*l/53.7%
*-commutative53.7%
Simplified53.7%
Taylor expanded in b around 0 7.4%
+-commutative7.4%
associate-/l*7.3%
associate-*r/7.3%
neg-mul-17.3%
frac-add19.9%
associate-*r/19.8%
Applied egg-rr19.8%
*-commutative19.8%
cancel-sign-sub-inv19.8%
*-commutative19.8%
associate-*r/36.5%
associate-/l*36.5%
Simplified36.5%
if -6.1999999999999996e-72 < b Initial program 98.5%
associate-*l/91.0%
fma-def91.0%
sub-neg91.0%
metadata-eval91.0%
Simplified91.0%
Taylor expanded in y around 0 74.5%
associate-/l*75.2%
exp-diff68.6%
exp-prod68.6%
rem-exp-log69.0%
sub-neg69.0%
metadata-eval69.0%
Simplified69.0%
Taylor expanded in t around 0 54.0%
Taylor expanded in b around 0 34.9%
distribute-lft-out37.1%
*-commutative37.1%
Simplified37.1%
Final simplification40.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b -7.8e-69) (/ (* y (* x (- (- b) -1.0))) (* y y)) (/ x (* a (+ y (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -7.8e-69) {
tmp = (y * (x * (-b - -1.0))) / (y * y);
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-7.8d-69)) then
tmp = (y * (x * (-b - (-1.0d0)))) / (y * y)
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -7.8e-69) {
tmp = (y * (x * (-b - -1.0))) / (y * y);
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -7.8e-69: tmp = (y * (x * (-b - -1.0))) / (y * y) else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -7.8e-69) tmp = Float64(Float64(y * Float64(x * Float64(Float64(-b) - -1.0))) / Float64(y * y)); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -7.8e-69) tmp = (y * (x * (-b - -1.0))) / (y * y); else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -7.8e-69], N[(N[(y * N[(x * N[((-b) - -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y * y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.8 \cdot 10^{-69}:\\
\;\;\;\;\frac{y \cdot \left(x \cdot \left(\left(-b\right) - -1\right)\right)}{y \cdot y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -7.79999999999999961e-69Initial program 99.9%
associate-*l/94.4%
fma-def94.4%
sub-neg94.4%
metadata-eval94.4%
Simplified94.4%
Taylor expanded in y around inf 86.5%
Taylor expanded in y around 0 73.5%
associate-*l/69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in b around 0 21.2%
associate-*r/21.2%
frac-add37.6%
div-inv38.9%
+-commutative38.9%
*-commutative38.9%
fma-def38.9%
*-commutative38.9%
associate-*l*38.9%
neg-mul-138.9%
*-commutative38.9%
Applied egg-rr38.9%
associate-*r/37.6%
*-rgt-identity37.6%
distribute-rgt-neg-out37.6%
fma-neg37.6%
div-sub30.8%
remove-double-neg30.8%
*-commutative30.8%
distribute-lft-neg-out30.8%
*-commutative30.8%
distribute-lft-neg-out30.8%
div-sub37.6%
sub-neg37.6%
distribute-rgt-neg-out37.6%
Simplified37.6%
if -7.79999999999999961e-69 < b Initial program 98.5%
associate-*l/91.0%
fma-def91.0%
sub-neg91.0%
metadata-eval91.0%
Simplified91.0%
Taylor expanded in y around 0 74.5%
associate-/l*74.8%
exp-diff68.2%
exp-prod68.3%
rem-exp-log68.7%
sub-neg68.7%
metadata-eval68.7%
Simplified68.7%
Taylor expanded in t around 0 53.8%
Taylor expanded in b around 0 34.7%
distribute-lft-out36.9%
*-commutative36.9%
Simplified36.9%
Final simplification37.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.35e+123) (* x (/ (- b) y)) (if (<= b -8.8e-131) (/ (/ x a) y) (/ x (* a (+ y (* y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.35e+123) {
tmp = x * (-b / y);
} else if (b <= -8.8e-131) {
tmp = (x / a) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.35d+123)) then
tmp = x * (-b / y)
else if (b <= (-8.8d-131)) then
tmp = (x / a) / y
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.35e+123) {
tmp = x * (-b / y);
} else if (b <= -8.8e-131) {
tmp = (x / a) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.35e+123: tmp = x * (-b / y) elif b <= -8.8e-131: tmp = (x / a) / y else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.35e+123) tmp = Float64(x * Float64(Float64(-b) / y)); elseif (b <= -8.8e-131) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.35e+123) tmp = x * (-b / y); elseif (b <= -8.8e-131) tmp = (x / a) / y; else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.35e+123], N[(x * N[((-b) / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8.8e-131], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.35 \cdot 10^{+123}:\\
\;\;\;\;x \cdot \frac{-b}{y}\\
\mathbf{elif}\;b \leq -8.8 \cdot 10^{-131}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.35000000000000007e123Initial program 100.0%
associate-*l/97.3%
fma-def97.3%
sub-neg97.3%
metadata-eval97.3%
Simplified97.3%
Taylor expanded in y around inf 94.6%
Taylor expanded in y around 0 81.4%
associate-*l/78.6%
*-commutative78.6%
Simplified78.6%
Taylor expanded in b around 0 35.4%
Taylor expanded in b around inf 35.4%
mul-1-neg35.4%
associate-*l/50.8%
*-commutative50.8%
Simplified50.8%
if -1.35000000000000007e123 < b < -8.7999999999999999e-131Initial program 99.1%
associate-*l/90.4%
*-commutative90.4%
associate--l+90.4%
exp-sum79.5%
*-commutative79.5%
exp-to-pow79.5%
exp-diff73.0%
*-commutative73.0%
exp-to-pow73.7%
sub-neg73.7%
metadata-eval73.7%
Simplified73.7%
Applied egg-rr73.9%
Taylor expanded in t around 0 75.8%
Taylor expanded in y around 0 63.3%
Taylor expanded in b around 0 29.8%
if -8.7999999999999999e-131 < b Initial program 98.6%
associate-*l/91.2%
fma-def91.2%
sub-neg91.2%
metadata-eval91.2%
Simplified91.2%
Taylor expanded in y around 0 75.5%
associate-/l*76.3%
exp-diff69.4%
exp-prod69.4%
rem-exp-log69.8%
sub-neg69.8%
metadata-eval69.8%
Simplified69.8%
Taylor expanded in t around 0 54.0%
Taylor expanded in b around 0 33.8%
distribute-lft-out36.2%
*-commutative36.2%
Simplified36.2%
Final simplification37.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.45e-127) (/ (- (/ x a) (/ (* x b) a)) y) (/ x (* a (+ y (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.45e-127) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.45d-127)) then
tmp = ((x / a) - ((x * b) / a)) / y
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.45e-127) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.45e-127: tmp = ((x / a) - ((x * b) / a)) / y else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.45e-127) tmp = Float64(Float64(Float64(x / a) - Float64(Float64(x * b) / a)) / y); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.45e-127) tmp = ((x / a) - ((x * b) / a)) / y; else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.45e-127], N[(N[(N[(x / a), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.45 \cdot 10^{-127}:\\
\;\;\;\;\frac{\frac{x}{a} - \frac{x \cdot b}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.45e-127Initial program 99.5%
associate-*l/93.5%
*-commutative93.5%
associate--l+93.5%
exp-sum76.6%
*-commutative76.6%
exp-to-pow76.6%
exp-diff65.8%
*-commutative65.8%
exp-to-pow66.1%
sub-neg66.1%
metadata-eval66.1%
Simplified66.1%
Applied egg-rr65.0%
Taylor expanded in t around 0 67.3%
Taylor expanded in y around 0 65.3%
Taylor expanded in b around 0 40.2%
if -1.45e-127 < b Initial program 98.6%
associate-*l/91.2%
fma-def91.2%
sub-neg91.2%
metadata-eval91.2%
Simplified91.2%
Taylor expanded in y around 0 75.5%
associate-/l*76.3%
exp-diff69.4%
exp-prod69.4%
rem-exp-log69.8%
sub-neg69.8%
metadata-eval69.8%
Simplified69.8%
Taylor expanded in t around 0 54.0%
Taylor expanded in b around 0 33.8%
distribute-lft-out36.2%
*-commutative36.2%
Simplified36.2%
Final simplification37.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -1800000.0)
(/ x (* y a))
(if (<= t 5.5e-57)
(/ (/ x y) a)
(if (<= t 31.0) (/ (/ x a) y) (* x (/ (- b) y))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1800000.0) {
tmp = x / (y * a);
} else if (t <= 5.5e-57) {
tmp = (x / y) / a;
} else if (t <= 31.0) {
tmp = (x / a) / y;
} else {
tmp = x * (-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 <= (-1800000.0d0)) then
tmp = x / (y * a)
else if (t <= 5.5d-57) then
tmp = (x / y) / a
else if (t <= 31.0d0) then
tmp = (x / a) / y
else
tmp = x * (-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 <= -1800000.0) {
tmp = x / (y * a);
} else if (t <= 5.5e-57) {
tmp = (x / y) / a;
} else if (t <= 31.0) {
tmp = (x / a) / y;
} else {
tmp = x * (-b / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -1800000.0: tmp = x / (y * a) elif t <= 5.5e-57: tmp = (x / y) / a elif t <= 31.0: tmp = (x / a) / y else: tmp = x * (-b / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -1800000.0) tmp = Float64(x / Float64(y * a)); elseif (t <= 5.5e-57) tmp = Float64(Float64(x / y) / a); elseif (t <= 31.0) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x * Float64(Float64(-b) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -1800000.0) tmp = x / (y * a); elseif (t <= 5.5e-57) tmp = (x / y) / a; elseif (t <= 31.0) tmp = (x / a) / y; else tmp = x * (-b / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1800000.0], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e-57], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[t, 31.0], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x * N[((-b) / y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1800000:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-57}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\mathbf{elif}\;t \leq 31:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{-b}{y}\\
\end{array}
\end{array}
if t < -1.8e6Initial program 100.0%
associate-*l/94.9%
fma-def94.9%
sub-neg94.9%
metadata-eval94.9%
Simplified94.9%
Taylor expanded in y around 0 93.3%
associate-/l*93.3%
exp-diff71.2%
exp-prod71.2%
rem-exp-log71.2%
sub-neg71.2%
metadata-eval71.2%
Simplified71.2%
Taylor expanded in t around 0 56.7%
Taylor expanded in b around 0 33.9%
*-commutative33.9%
Simplified33.9%
if -1.8e6 < t < 5.50000000000000011e-57Initial program 97.5%
associate-*l/89.1%
fma-def89.1%
sub-neg89.1%
metadata-eval89.1%
Simplified89.1%
Taylor expanded in y around 0 67.4%
associate-/l*66.6%
exp-diff65.7%
exp-prod65.8%
rem-exp-log66.4%
sub-neg66.4%
metadata-eval66.4%
Simplified66.4%
Taylor expanded in b around 0 34.8%
exp-prod34.9%
sub-neg34.9%
metadata-eval34.9%
exp-prod34.8%
distribute-lft-in34.9%
*-commutative34.9%
mul-1-neg34.9%
sub-neg34.9%
exp-diff34.9%
*-commutative34.9%
log-pow34.9%
exp-diff34.9%
log-div34.9%
rem-exp-log35.9%
associate-*l/38.0%
Simplified38.0%
Taylor expanded in t around 0 31.2%
*-commutative31.2%
associate-/r*35.8%
Simplified35.8%
if 5.50000000000000011e-57 < t < 31Initial program 100.0%
associate-*l/84.2%
*-commutative84.2%
associate--l+84.2%
exp-sum73.7%
*-commutative73.7%
exp-to-pow73.7%
exp-diff73.7%
*-commutative73.7%
exp-to-pow73.7%
sub-neg73.7%
metadata-eval73.7%
Simplified73.7%
Applied egg-rr73.7%
Taylor expanded in t around 0 73.7%
Taylor expanded in y around 0 68.7%
Taylor expanded in b around 0 49.1%
if 31 < t Initial program 100.0%
associate-*l/96.8%
fma-def96.8%
sub-neg96.8%
metadata-eval96.8%
Simplified96.8%
Taylor expanded in y around inf 65.5%
Taylor expanded in y around 0 41.0%
associate-*l/39.3%
*-commutative39.3%
Simplified39.3%
Taylor expanded in b around 0 14.5%
Taylor expanded in b around inf 26.5%
mul-1-neg26.5%
associate-*l/31.1%
*-commutative31.1%
Simplified31.1%
Final simplification35.2%
(FPCore (x y z t a b) :precision binary64 (if (<= y -1e-213) (/ x (* y a)) (/ (/ x a) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1e-213) {
tmp = x / (y * a);
} else {
tmp = (x / a) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-1d-213)) then
tmp = x / (y * a)
else
tmp = (x / a) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1e-213) {
tmp = x / (y * a);
} else {
tmp = (x / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -1e-213: tmp = x / (y * a) else: tmp = (x / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -1e-213) tmp = Float64(x / Float64(y * a)); else tmp = Float64(Float64(x / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -1e-213) tmp = x / (y * a); else tmp = (x / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -1e-213], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1 \cdot 10^{-213}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\end{array}
\end{array}
if y < -9.9999999999999995e-214Initial program 98.5%
associate-*l/95.4%
fma-def95.4%
sub-neg95.4%
metadata-eval95.4%
Simplified95.4%
Taylor expanded in y around 0 78.2%
associate-/l*79.2%
exp-diff70.0%
exp-prod70.0%
rem-exp-log70.4%
sub-neg70.4%
metadata-eval70.4%
Simplified70.4%
Taylor expanded in t around 0 61.3%
Taylor expanded in b around 0 25.8%
*-commutative25.8%
Simplified25.8%
if -9.9999999999999995e-214 < y Initial program 99.2%
associate-*l/89.0%
*-commutative89.0%
associate--l+89.0%
exp-sum76.4%
*-commutative76.4%
exp-to-pow76.4%
exp-diff69.1%
*-commutative69.1%
exp-to-pow69.7%
sub-neg69.7%
metadata-eval69.7%
Simplified69.7%
Applied egg-rr72.0%
Taylor expanded in t around 0 64.0%
Taylor expanded in y around 0 52.7%
Taylor expanded in b around 0 33.9%
Final simplification30.1%
(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.9%
associate-*l/92.0%
fma-def92.0%
sub-neg92.0%
metadata-eval92.0%
Simplified92.0%
Taylor expanded in y around 0 78.3%
associate-/l*77.9%
exp-diff69.3%
exp-prod69.3%
rem-exp-log69.6%
sub-neg69.6%
metadata-eval69.6%
Simplified69.6%
Taylor expanded in t around 0 59.8%
Taylor expanded in b around 0 28.2%
*-commutative28.2%
Simplified28.2%
Final simplification28.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.9%
associate-*l/92.0%
fma-def92.0%
sub-neg92.0%
metadata-eval92.0%
Simplified92.0%
Taylor expanded in y around inf 67.8%
Taylor expanded in y around 0 49.9%
associate-*l/46.8%
*-commutative46.8%
Simplified46.8%
Taylor expanded in b around 0 15.8%
Final simplification15.8%
(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 2023297
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:herbie-target
(if (< t -0.8845848504127471) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z)))) (if (< t 852031.2288374073) (/ (* (/ x y) (pow a (- t 1.0))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))