
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (+ t -1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t + (-1.0d0)) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t + -1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t + -1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t + -1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t + -1\right) \cdot \log a\right) - b}}{y}
\end{array}
Initial program 98.9%
Final simplification98.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -2.2e+104) (not (<= y 1.5e+53))) (/ (* x (exp (- (- (* y (log z)) (log a)) b))) y) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.2e+104) || !(y <= 1.5e+53)) {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
} else {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-2.2d+104)) .or. (.not. (y <= 1.5d+53))) then
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y
else
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.2e+104) || !(y <= 1.5e+53)) {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
} else {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -2.2e+104) or not (y <= 1.5e+53): tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y else: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -2.2e+104) || !(y <= 1.5e+53)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -2.2e+104) || ~((y <= 1.5e+53))) tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; else tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -2.2e+104], N[Not[LessEqual[y, 1.5e+53]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.2 \cdot 10^{+104} \lor \neg \left(y \leq 1.5 \cdot 10^{+53}\right):\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -2.2e104 or 1.49999999999999999e53 < y Initial program 100.0%
Taylor expanded in t around 0 95.0%
+-commutative95.0%
mul-1-neg95.0%
unsub-neg95.0%
Simplified95.0%
if -2.2e104 < y < 1.49999999999999999e53Initial program 98.3%
Taylor expanded in y around 0 96.1%
Final simplification95.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.12e+105) (not (<= y 7.2e+61))) (* x (/ (/ (pow z y) a) y)) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.12e+105) || !(y <= 7.2e+61)) {
tmp = x * ((pow(z, y) / a) / y);
} else {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-1.12d+105)) .or. (.not. (y <= 7.2d+61))) then
tmp = x * (((z ** y) / a) / y)
else
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.12e+105) || !(y <= 7.2e+61)) {
tmp = x * ((Math.pow(z, y) / a) / y);
} else {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.12e+105) or not (y <= 7.2e+61): tmp = x * ((math.pow(z, y) / a) / y) else: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.12e+105) || !(y <= 7.2e+61)) tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.12e+105) || ~((y <= 7.2e+61))) tmp = x * (((z ^ y) / a) / y); else tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.12e+105], N[Not[LessEqual[y, 7.2e+61]], $MachinePrecision]], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.12 \cdot 10^{+105} \lor \neg \left(y \leq 7.2 \cdot 10^{+61}\right):\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -1.12e105 or 7.20000000000000021e61 < y Initial program 100.0%
Taylor expanded in t around 0 95.8%
+-commutative95.8%
mul-1-neg95.8%
unsub-neg95.8%
Simplified95.8%
Taylor expanded in b around 0 85.3%
associate-/l*85.3%
div-exp85.3%
*-commutative85.3%
exp-to-pow85.3%
rem-exp-log85.3%
Simplified85.3%
if -1.12e105 < y < 7.20000000000000021e61Initial program 98.3%
Taylor expanded in y around 0 95.6%
Final simplification91.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.6e+68) (not (<= y 1.02e+46))) (* x (/ (/ (pow z y) a) 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 <= -1.6e+68) || !(y <= 1.02e+46)) {
tmp = x * ((pow(z, y) / a) / 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 <= (-1.6d+68)) .or. (.not. (y <= 1.02d+46))) then
tmp = x * (((z ** y) / a) / 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 <= -1.6e+68) || !(y <= 1.02e+46)) {
tmp = x * ((Math.pow(z, y) / a) / 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 <= -1.6e+68) or not (y <= 1.02e+46): tmp = x * ((math.pow(z, y) / a) / 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 <= -1.6e+68) || !(y <= 1.02e+46)) tmp = Float64(x * Float64(Float64((z ^ y) / a) / 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 <= -1.6e+68) || ~((y <= 1.02e+46))) tmp = x * (((z ^ y) / a) / 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, -1.6e+68], N[Not[LessEqual[y, 1.02e+46]], $MachinePrecision]], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $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 -1.6 \cdot 10^{+68} \lor \neg \left(y \leq 1.02 \cdot 10^{+46}\right):\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\\
\end{array}
\end{array}
if y < -1.59999999999999997e68 or 1.0199999999999999e46 < y Initial program 100.0%
Taylor expanded in t around 0 93.5%
+-commutative93.5%
mul-1-neg93.5%
unsub-neg93.5%
Simplified93.5%
Taylor expanded in b around 0 84.2%
associate-/l*84.2%
div-exp84.2%
*-commutative84.2%
exp-to-pow84.2%
rem-exp-log84.2%
Simplified84.2%
if -1.59999999999999997e68 < y < 1.0199999999999999e46Initial program 98.2%
Taylor expanded in y around 0 96.5%
div-exp85.9%
exp-to-pow86.8%
sub-neg86.8%
metadata-eval86.8%
Simplified86.8%
Final simplification85.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -5.2e+63) (not (<= y 7.5e+41))) (* x (/ (/ (pow z y) a) y)) (* x (/ (pow a (+ t -1.0)) (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -5.2e+63) || !(y <= 7.5e+41)) {
tmp = x * ((pow(z, y) / a) / y);
} else {
tmp = x * (pow(a, (t + -1.0)) / (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 <= (-5.2d+63)) .or. (.not. (y <= 7.5d+41))) then
tmp = x * (((z ** y) / a) / y)
else
tmp = x * ((a ** (t + (-1.0d0))) / (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 <= -5.2e+63) || !(y <= 7.5e+41)) {
tmp = x * ((Math.pow(z, y) / a) / y);
} else {
tmp = x * (Math.pow(a, (t + -1.0)) / (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -5.2e+63) or not (y <= 7.5e+41): tmp = x * ((math.pow(z, y) / a) / y) else: tmp = x * (math.pow(a, (t + -1.0)) / (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -5.2e+63) || !(y <= 7.5e+41)) tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); else tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) / Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -5.2e+63) || ~((y <= 7.5e+41))) tmp = x * (((z ^ y) / a) / y); else tmp = x * ((a ^ (t + -1.0)) / (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -5.2e+63], N[Not[LessEqual[y, 7.5e+41]], $MachinePrecision]], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.2 \cdot 10^{+63} \lor \neg \left(y \leq 7.5 \cdot 10^{+41}\right):\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y \cdot e^{b}}\\
\end{array}
\end{array}
if y < -5.2000000000000002e63 or 7.50000000000000072e41 < y Initial program 100.0%
Taylor expanded in t around 0 93.5%
+-commutative93.5%
mul-1-neg93.5%
unsub-neg93.5%
Simplified93.5%
Taylor expanded in b around 0 84.2%
associate-/l*84.2%
div-exp84.2%
*-commutative84.2%
exp-to-pow84.2%
rem-exp-log84.2%
Simplified84.2%
if -5.2000000000000002e63 < y < 7.50000000000000072e41Initial program 98.2%
associate-/l*96.1%
associate--l+96.1%
exp-sum84.7%
associate-/l*84.7%
*-commutative84.7%
exp-to-pow84.7%
exp-diff74.7%
*-commutative74.7%
exp-to-pow75.5%
sub-neg75.5%
metadata-eval75.5%
Simplified75.5%
Taylor expanded in y around 0 81.9%
exp-to-pow82.8%
sub-neg82.8%
metadata-eval82.8%
associate-*r/84.5%
Simplified84.5%
Final simplification84.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* a (* y (exp b))))) (t_2 (* x (/ (/ (pow z y) a) y))))
(if (<= y -1.15e+65)
t_2
(if (<= y -1.85e-167)
t_1
(if (<= y 2.5e-158)
(/ (/ (* x (pow a t)) a) y)
(if (<= y 9e-8)
t_1
(if (<= y 6e+53) (/ (* x (pow a (+ t -1.0))) y) t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y * exp(b)));
double t_2 = x * ((pow(z, y) / a) / y);
double tmp;
if (y <= -1.15e+65) {
tmp = t_2;
} else if (y <= -1.85e-167) {
tmp = t_1;
} else if (y <= 2.5e-158) {
tmp = ((x * pow(a, t)) / a) / y;
} else if (y <= 9e-8) {
tmp = t_1;
} else if (y <= 6e+53) {
tmp = (x * pow(a, (t + -1.0))) / 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 = x / (a * (y * exp(b)))
t_2 = x * (((z ** y) / a) / y)
if (y <= (-1.15d+65)) then
tmp = t_2
else if (y <= (-1.85d-167)) then
tmp = t_1
else if (y <= 2.5d-158) then
tmp = ((x * (a ** t)) / a) / y
else if (y <= 9d-8) then
tmp = t_1
else if (y <= 6d+53) then
tmp = (x * (a ** (t + (-1.0d0)))) / 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 = x / (a * (y * Math.exp(b)));
double t_2 = x * ((Math.pow(z, y) / a) / y);
double tmp;
if (y <= -1.15e+65) {
tmp = t_2;
} else if (y <= -1.85e-167) {
tmp = t_1;
} else if (y <= 2.5e-158) {
tmp = ((x * Math.pow(a, t)) / a) / y;
} else if (y <= 9e-8) {
tmp = t_1;
} else if (y <= 6e+53) {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a * (y * math.exp(b))) t_2 = x * ((math.pow(z, y) / a) / y) tmp = 0 if y <= -1.15e+65: tmp = t_2 elif y <= -1.85e-167: tmp = t_1 elif y <= 2.5e-158: tmp = ((x * math.pow(a, t)) / a) / y elif y <= 9e-8: tmp = t_1 elif y <= 6e+53: tmp = (x * math.pow(a, (t + -1.0))) / y else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a * Float64(y * exp(b)))) t_2 = Float64(x * Float64(Float64((z ^ y) / a) / y)) tmp = 0.0 if (y <= -1.15e+65) tmp = t_2; elseif (y <= -1.85e-167) tmp = t_1; elseif (y <= 2.5e-158) tmp = Float64(Float64(Float64(x * (a ^ t)) / a) / y); elseif (y <= 9e-8) tmp = t_1; elseif (y <= 6e+53) tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a * (y * exp(b))); t_2 = x * (((z ^ y) / a) / y); tmp = 0.0; if (y <= -1.15e+65) tmp = t_2; elseif (y <= -1.85e-167) tmp = t_1; elseif (y <= 2.5e-158) tmp = ((x * (a ^ t)) / a) / y; elseif (y <= 9e-8) tmp = t_1; elseif (y <= 6e+53) tmp = (x * (a ^ (t + -1.0))) / y; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.15e+65], t$95$2, If[LessEqual[y, -1.85e-167], t$95$1, If[LessEqual[y, 2.5e-158], N[(N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 9e-8], t$95$1, If[LessEqual[y, 6e+53], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
t_2 := x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -1.15 \cdot 10^{+65}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.85 \cdot 10^{-167}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{-158}:\\
\;\;\;\;\frac{\frac{x \cdot {a}^{t}}{a}}{y}\\
\mathbf{elif}\;y \leq 9 \cdot 10^{-8}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 6 \cdot 10^{+53}:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -1.15e65 or 5.99999999999999996e53 < y Initial program 100.0%
Taylor expanded in t around 0 94.3%
+-commutative94.3%
mul-1-neg94.3%
unsub-neg94.3%
Simplified94.3%
Taylor expanded in b around 0 84.9%
associate-/l*84.9%
div-exp84.9%
*-commutative84.9%
exp-to-pow84.9%
rem-exp-log84.9%
Simplified84.9%
if -1.15e65 < y < -1.8500000000000001e-167 or 2.49999999999999986e-158 < y < 8.99999999999999986e-8Initial program 98.0%
associate-/l*99.0%
associate--l+99.0%
exp-sum85.1%
associate-/l*85.1%
*-commutative85.1%
exp-to-pow85.1%
exp-diff73.7%
*-commutative73.7%
exp-to-pow74.6%
sub-neg74.6%
metadata-eval74.6%
Simplified74.6%
Taylor expanded in y around 0 76.6%
exp-to-pow77.4%
sub-neg77.4%
metadata-eval77.4%
associate-*r/86.1%
Simplified86.1%
Taylor expanded in t around 0 82.9%
if -1.8500000000000001e-167 < y < 2.49999999999999986e-158Initial program 98.0%
associate-/l*91.1%
associate--l+91.1%
exp-sum91.1%
associate-/l*91.1%
*-commutative91.1%
exp-to-pow91.1%
exp-diff82.3%
*-commutative82.3%
exp-to-pow83.1%
sub-neg83.1%
metadata-eval83.1%
Simplified83.1%
Taylor expanded in b around 0 81.1%
*-commutative81.1%
exp-to-pow82.4%
sub-neg82.4%
metadata-eval82.4%
associate-*l*82.4%
Simplified82.4%
unpow-prod-up80.9%
unpow-180.9%
Applied egg-rr80.9%
associate-*r/82.7%
*-rgt-identity82.7%
Simplified82.7%
Taylor expanded in y around 0 82.7%
if 8.99999999999999986e-8 < y < 5.99999999999999996e53Initial program 99.6%
associate-/l*99.6%
associate--l+99.6%
exp-sum49.5%
associate-/l*49.5%
*-commutative49.5%
exp-to-pow49.5%
exp-diff43.3%
*-commutative43.3%
exp-to-pow43.8%
sub-neg43.8%
metadata-eval43.8%
Simplified43.8%
Taylor expanded in b around 0 55.9%
*-commutative55.9%
exp-to-pow56.3%
sub-neg56.3%
metadata-eval56.3%
associate-*l*56.3%
Simplified56.3%
Taylor expanded in y around 0 78.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* a (* y (exp b)))))
(t_2 (* x (/ (/ (pow z y) a) y)))
(t_3 (/ (* x (pow a (+ t -1.0))) y)))
(if (<= y -5e+63)
t_2
(if (<= y -4.9e-167)
t_1
(if (<= y 1.9e-158)
t_3
(if (<= y 3.3e-13) t_1 (if (<= y 9.4e+52) t_3 t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y * exp(b)));
double t_2 = x * ((pow(z, y) / a) / y);
double t_3 = (x * pow(a, (t + -1.0))) / y;
double tmp;
if (y <= -5e+63) {
tmp = t_2;
} else if (y <= -4.9e-167) {
tmp = t_1;
} else if (y <= 1.9e-158) {
tmp = t_3;
} else if (y <= 3.3e-13) {
tmp = t_1;
} else if (y <= 9.4e+52) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x / (a * (y * exp(b)))
t_2 = x * (((z ** y) / a) / y)
t_3 = (x * (a ** (t + (-1.0d0)))) / y
if (y <= (-5d+63)) then
tmp = t_2
else if (y <= (-4.9d-167)) then
tmp = t_1
else if (y <= 1.9d-158) then
tmp = t_3
else if (y <= 3.3d-13) then
tmp = t_1
else if (y <= 9.4d+52) then
tmp = t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y * Math.exp(b)));
double t_2 = x * ((Math.pow(z, y) / a) / y);
double t_3 = (x * Math.pow(a, (t + -1.0))) / y;
double tmp;
if (y <= -5e+63) {
tmp = t_2;
} else if (y <= -4.9e-167) {
tmp = t_1;
} else if (y <= 1.9e-158) {
tmp = t_3;
} else if (y <= 3.3e-13) {
tmp = t_1;
} else if (y <= 9.4e+52) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a * (y * math.exp(b))) t_2 = x * ((math.pow(z, y) / a) / y) t_3 = (x * math.pow(a, (t + -1.0))) / y tmp = 0 if y <= -5e+63: tmp = t_2 elif y <= -4.9e-167: tmp = t_1 elif y <= 1.9e-158: tmp = t_3 elif y <= 3.3e-13: tmp = t_1 elif y <= 9.4e+52: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a * Float64(y * exp(b)))) t_2 = Float64(x * Float64(Float64((z ^ y) / a) / y)) t_3 = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y) tmp = 0.0 if (y <= -5e+63) tmp = t_2; elseif (y <= -4.9e-167) tmp = t_1; elseif (y <= 1.9e-158) tmp = t_3; elseif (y <= 3.3e-13) tmp = t_1; elseif (y <= 9.4e+52) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a * (y * exp(b))); t_2 = x * (((z ^ y) / a) / y); t_3 = (x * (a ^ (t + -1.0))) / y; tmp = 0.0; if (y <= -5e+63) tmp = t_2; elseif (y <= -4.9e-167) tmp = t_1; elseif (y <= 1.9e-158) tmp = t_3; elseif (y <= 3.3e-13) tmp = t_1; elseif (y <= 9.4e+52) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -5e+63], t$95$2, If[LessEqual[y, -4.9e-167], t$95$1, If[LessEqual[y, 1.9e-158], t$95$3, If[LessEqual[y, 3.3e-13], t$95$1, If[LessEqual[y, 9.4e+52], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
t_2 := x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
t_3 := \frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{if}\;y \leq -5 \cdot 10^{+63}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -4.9 \cdot 10^{-167}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-158}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{-13}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 9.4 \cdot 10^{+52}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -5.00000000000000011e63 or 9.3999999999999999e52 < y Initial program 100.0%
Taylor expanded in t around 0 94.3%
+-commutative94.3%
mul-1-neg94.3%
unsub-neg94.3%
Simplified94.3%
Taylor expanded in b around 0 84.9%
associate-/l*84.9%
div-exp84.9%
*-commutative84.9%
exp-to-pow84.9%
rem-exp-log84.9%
Simplified84.9%
if -5.00000000000000011e63 < y < -4.90000000000000003e-167 or 1.8999999999999999e-158 < y < 3.3000000000000001e-13Initial program 98.0%
associate-/l*99.0%
associate--l+99.0%
exp-sum85.1%
associate-/l*85.1%
*-commutative85.1%
exp-to-pow85.1%
exp-diff73.7%
*-commutative73.7%
exp-to-pow74.6%
sub-neg74.6%
metadata-eval74.6%
Simplified74.6%
Taylor expanded in y around 0 76.6%
exp-to-pow77.4%
sub-neg77.4%
metadata-eval77.4%
associate-*r/86.1%
Simplified86.1%
Taylor expanded in t around 0 82.9%
if -4.90000000000000003e-167 < y < 1.8999999999999999e-158 or 3.3000000000000001e-13 < y < 9.3999999999999999e52Initial program 98.4%
associate-/l*93.0%
associate--l+93.0%
exp-sum82.0%
associate-/l*82.0%
*-commutative82.0%
exp-to-pow82.0%
exp-diff73.8%
*-commutative73.8%
exp-to-pow74.5%
sub-neg74.5%
metadata-eval74.5%
Simplified74.5%
Taylor expanded in b around 0 75.6%
*-commutative75.6%
exp-to-pow76.7%
sub-neg76.7%
metadata-eval76.7%
associate-*l*76.7%
Simplified76.7%
Taylor expanded in y around 0 81.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* a (* y (exp b))))) (t_2 (/ (* x (pow a t)) y)))
(if (<= t -4.5e+103)
t_2
(if (<= t -1.15e-254)
t_1
(if (<= t 2e-277)
(* x (/ (/ (pow z y) a) y))
(if (<= t 2.25e+64) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y * exp(b)));
double t_2 = (x * pow(a, t)) / y;
double tmp;
if (t <= -4.5e+103) {
tmp = t_2;
} else if (t <= -1.15e-254) {
tmp = t_1;
} else if (t <= 2e-277) {
tmp = x * ((pow(z, y) / a) / y);
} else if (t <= 2.25e+64) {
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 / (a * (y * exp(b)))
t_2 = (x * (a ** t)) / y
if (t <= (-4.5d+103)) then
tmp = t_2
else if (t <= (-1.15d-254)) then
tmp = t_1
else if (t <= 2d-277) then
tmp = x * (((z ** y) / a) / y)
else if (t <= 2.25d+64) 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 / (a * (y * Math.exp(b)));
double t_2 = (x * Math.pow(a, t)) / y;
double tmp;
if (t <= -4.5e+103) {
tmp = t_2;
} else if (t <= -1.15e-254) {
tmp = t_1;
} else if (t <= 2e-277) {
tmp = x * ((Math.pow(z, y) / a) / y);
} else if (t <= 2.25e+64) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a * (y * math.exp(b))) t_2 = (x * math.pow(a, t)) / y tmp = 0 if t <= -4.5e+103: tmp = t_2 elif t <= -1.15e-254: tmp = t_1 elif t <= 2e-277: tmp = x * ((math.pow(z, y) / a) / y) elif t <= 2.25e+64: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a * Float64(y * exp(b)))) t_2 = Float64(Float64(x * (a ^ t)) / y) tmp = 0.0 if (t <= -4.5e+103) tmp = t_2; elseif (t <= -1.15e-254) tmp = t_1; elseif (t <= 2e-277) tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); elseif (t <= 2.25e+64) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a * (y * exp(b))); t_2 = (x * (a ^ t)) / y; tmp = 0.0; if (t <= -4.5e+103) tmp = t_2; elseif (t <= -1.15e-254) tmp = t_1; elseif (t <= 2e-277) tmp = x * (((z ^ y) / a) / y); elseif (t <= 2.25e+64) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t, -4.5e+103], t$95$2, If[LessEqual[t, -1.15e-254], t$95$1, If[LessEqual[t, 2e-277], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.25e+64], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
t_2 := \frac{x \cdot {a}^{t}}{y}\\
\mathbf{if}\;t \leq -4.5 \cdot 10^{+103}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.15 \cdot 10^{-254}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-277}:\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{+64}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -4.50000000000000001e103 or 2.24999999999999987e64 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum64.3%
associate-/l*64.3%
*-commutative64.3%
exp-to-pow64.3%
exp-diff50.0%
*-commutative50.0%
exp-to-pow50.0%
sub-neg50.0%
metadata-eval50.0%
Simplified50.0%
Taylor expanded in b around 0 64.3%
*-commutative64.3%
exp-to-pow64.3%
sub-neg64.3%
metadata-eval64.3%
associate-*l*64.3%
Simplified64.3%
Taylor expanded in y around 0 85.9%
Taylor expanded in t around inf 85.9%
if -4.50000000000000001e103 < t < -1.1499999999999999e-254 or 1.99999999999999994e-277 < t < 2.24999999999999987e64Initial program 98.6%
associate-/l*97.0%
associate--l+97.0%
exp-sum77.2%
associate-/l*75.3%
*-commutative75.3%
exp-to-pow75.3%
exp-diff68.7%
*-commutative68.7%
exp-to-pow69.3%
sub-neg69.3%
metadata-eval69.3%
Simplified69.3%
Taylor expanded in y around 0 65.2%
exp-to-pow65.9%
sub-neg65.9%
metadata-eval65.9%
associate-*r/69.4%
Simplified69.4%
Taylor expanded in t around 0 76.7%
if -1.1499999999999999e-254 < t < 1.99999999999999994e-277Initial program 97.1%
Taylor expanded in t around 0 97.1%
+-commutative97.1%
mul-1-neg97.1%
unsub-neg97.1%
Simplified97.1%
Taylor expanded in b around 0 92.2%
associate-/l*88.4%
div-exp88.4%
*-commutative88.4%
exp-to-pow88.4%
rem-exp-log90.3%
Simplified90.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (pow a t)) y)))
(if (<= t -6.2e+102)
t_1
(if (<= t -9e-40)
(/ x (* a (+ y (* b (* b (+ (* y 0.5) (/ y b)))))))
(if (<= t 2.9e+72) (/ (/ x (exp b)) y) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * pow(a, t)) / y;
double tmp;
if (t <= -6.2e+102) {
tmp = t_1;
} else if (t <= -9e-40) {
tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b))))));
} else if (t <= 2.9e+72) {
tmp = (x / exp(b)) / y;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x * (a ** t)) / y
if (t <= (-6.2d+102)) then
tmp = t_1
else if (t <= (-9d-40)) then
tmp = x / (a * (y + (b * (b * ((y * 0.5d0) + (y / b))))))
else if (t <= 2.9d+72) then
tmp = (x / exp(b)) / y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * Math.pow(a, t)) / y;
double tmp;
if (t <= -6.2e+102) {
tmp = t_1;
} else if (t <= -9e-40) {
tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b))))));
} else if (t <= 2.9e+72) {
tmp = (x / Math.exp(b)) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * math.pow(a, t)) / y tmp = 0 if t <= -6.2e+102: tmp = t_1 elif t <= -9e-40: tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b)))))) elif t <= 2.9e+72: tmp = (x / math.exp(b)) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * (a ^ t)) / y) tmp = 0.0 if (t <= -6.2e+102) tmp = t_1; elseif (t <= -9e-40) tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(b * Float64(Float64(y * 0.5) + Float64(y / b))))))); elseif (t <= 2.9e+72) tmp = Float64(Float64(x / exp(b)) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * (a ^ t)) / y; tmp = 0.0; if (t <= -6.2e+102) tmp = t_1; elseif (t <= -9e-40) tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b)))))); elseif (t <= 2.9e+72) tmp = (x / exp(b)) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t, -6.2e+102], t$95$1, If[LessEqual[t, -9e-40], N[(x / N[(a * N[(y + N[(b * N[(b * N[(N[(y * 0.5), $MachinePrecision] + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.9e+72], N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot {a}^{t}}{y}\\
\mathbf{if}\;t \leq -6.2 \cdot 10^{+102}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -9 \cdot 10^{-40}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(b \cdot \left(y \cdot 0.5 + \frac{y}{b}\right)\right)\right)}\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{+72}:\\
\;\;\;\;\frac{\frac{x}{e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -6.19999999999999973e102 or 2.90000000000000017e72 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum64.3%
associate-/l*64.3%
*-commutative64.3%
exp-to-pow64.3%
exp-diff50.0%
*-commutative50.0%
exp-to-pow50.0%
sub-neg50.0%
metadata-eval50.0%
Simplified50.0%
Taylor expanded in b around 0 64.3%
*-commutative64.3%
exp-to-pow64.3%
sub-neg64.3%
metadata-eval64.3%
associate-*l*64.3%
Simplified64.3%
Taylor expanded in y around 0 85.9%
Taylor expanded in t around inf 85.9%
if -6.19999999999999973e102 < t < -9.0000000000000002e-40Initial program 98.9%
associate-/l*93.8%
associate--l+93.8%
exp-sum80.8%
associate-/l*77.6%
*-commutative77.6%
exp-to-pow77.6%
exp-diff58.3%
*-commutative58.3%
exp-to-pow58.5%
sub-neg58.5%
metadata-eval58.5%
Simplified58.5%
Taylor expanded in y around 0 54.5%
exp-to-pow55.3%
sub-neg55.3%
metadata-eval55.3%
associate-*r/52.6%
Simplified52.6%
Taylor expanded in t around 0 69.0%
Taylor expanded in b around 0 65.8%
associate-*r*65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in b around inf 68.9%
if -9.0000000000000002e-40 < t < 2.90000000000000017e72Initial program 98.3%
Taylor expanded in t around 0 97.3%
+-commutative97.3%
mul-1-neg97.3%
unsub-neg97.3%
Simplified97.3%
Taylor expanded in b around inf 59.7%
neg-mul-159.7%
Simplified59.7%
Taylor expanded in b around -inf 59.7%
mul-1-neg59.7%
rec-exp59.7%
associate-*r/59.7%
*-rgt-identity59.7%
Simplified59.7%
Final simplification69.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -7.2e+102) (not (<= t 1.7e+64))) (/ (* x (pow a t)) y) (/ x (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -7.2e+102) || !(t <= 1.7e+64)) {
tmp = (x * pow(a, t)) / 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 <= (-7.2d+102)) .or. (.not. (t <= 1.7d+64))) then
tmp = (x * (a ** t)) / 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 <= -7.2e+102) || !(t <= 1.7e+64)) {
tmp = (x * Math.pow(a, t)) / y;
} else {
tmp = x / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -7.2e+102) or not (t <= 1.7e+64): tmp = (x * math.pow(a, t)) / y else: tmp = x / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -7.2e+102) || !(t <= 1.7e+64)) tmp = Float64(Float64(x * (a ^ t)) / 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 <= -7.2e+102) || ~((t <= 1.7e+64))) tmp = (x * (a ^ t)) / y; else tmp = x / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -7.2e+102], N[Not[LessEqual[t, 1.7e+64]], $MachinePrecision]], N[(N[(x * N[Power[a, t], $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 -7.2 \cdot 10^{+102} \lor \neg \left(t \leq 1.7 \cdot 10^{+64}\right):\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if t < -7.2000000000000003e102 or 1.7000000000000001e64 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum64.3%
associate-/l*64.3%
*-commutative64.3%
exp-to-pow64.3%
exp-diff50.0%
*-commutative50.0%
exp-to-pow50.0%
sub-neg50.0%
metadata-eval50.0%
Simplified50.0%
Taylor expanded in b around 0 64.3%
*-commutative64.3%
exp-to-pow64.3%
sub-neg64.3%
metadata-eval64.3%
associate-*l*64.3%
Simplified64.3%
Taylor expanded in y around 0 85.9%
Taylor expanded in t around inf 85.9%
if -7.2000000000000003e102 < t < 1.7000000000000001e64Initial program 98.4%
associate-/l*96.6%
associate--l+96.6%
exp-sum75.6%
associate-/l*73.3%
*-commutative73.3%
exp-to-pow73.3%
exp-diff67.5%
*-commutative67.5%
exp-to-pow68.2%
sub-neg68.2%
metadata-eval68.2%
Simplified68.2%
Taylor expanded in y around 0 62.7%
exp-to-pow63.5%
sub-neg63.5%
metadata-eval63.5%
associate-*r/66.1%
Simplified66.1%
Taylor expanded in t around 0 72.6%
Final simplification77.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -7.2e-15) (not (<= b 330.0))) (/ (/ x (exp b)) y) (/ x (* a (+ y (* b (* b (+ (* y 0.5) (/ y b)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -7.2e-15) || !(b <= 330.0)) {
tmp = (x / exp(b)) / y;
} else {
tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-7.2d-15)) .or. (.not. (b <= 330.0d0))) then
tmp = (x / exp(b)) / y
else
tmp = x / (a * (y + (b * (b * ((y * 0.5d0) + (y / b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -7.2e-15) || !(b <= 330.0)) {
tmp = (x / Math.exp(b)) / y;
} else {
tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -7.2e-15) or not (b <= 330.0): tmp = (x / math.exp(b)) / y else: tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -7.2e-15) || !(b <= 330.0)) tmp = Float64(Float64(x / exp(b)) / y); else tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(b * Float64(Float64(y * 0.5) + Float64(y / b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -7.2e-15) || ~((b <= 330.0))) tmp = (x / exp(b)) / y; else tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -7.2e-15], N[Not[LessEqual[b, 330.0]], $MachinePrecision]], N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y + N[(b * N[(b * N[(N[(y * 0.5), $MachinePrecision] + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.2 \cdot 10^{-15} \lor \neg \left(b \leq 330\right):\\
\;\;\;\;\frac{\frac{x}{e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(b \cdot \left(y \cdot 0.5 + \frac{y}{b}\right)\right)\right)}\\
\end{array}
\end{array}
if b < -7.2000000000000002e-15 or 330 < b Initial program 100.0%
Taylor expanded in t around 0 90.1%
+-commutative90.1%
mul-1-neg90.1%
unsub-neg90.1%
Simplified90.1%
Taylor expanded in b around inf 76.6%
neg-mul-176.6%
Simplified76.6%
Taylor expanded in b around -inf 76.6%
mul-1-neg76.6%
rec-exp76.6%
associate-*r/76.6%
*-rgt-identity76.6%
Simplified76.6%
if -7.2000000000000002e-15 < b < 330Initial program 97.6%
associate-/l*95.0%
associate--l+95.0%
exp-sum75.3%
associate-/l*71.9%
*-commutative71.9%
exp-to-pow71.9%
exp-diff71.9%
*-commutative71.9%
exp-to-pow72.9%
sub-neg72.9%
metadata-eval72.9%
Simplified72.9%
Taylor expanded in y around 0 68.1%
exp-to-pow69.3%
sub-neg69.3%
metadata-eval69.3%
associate-*r/68.0%
Simplified68.0%
Taylor expanded in t around 0 42.4%
Taylor expanded in b around 0 42.4%
associate-*r*42.4%
*-commutative42.4%
Simplified42.4%
Taylor expanded in b around inf 44.9%
Final simplification62.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -3.2e+81)
(/ (* x (+ 1.0 (* b (+ -1.0 (* b (+ 0.5 (* b -0.16666666666666666))))))) y)
(if (<= b -7.2e-15)
(* x (/ (exp b) y))
(/
x
(*
a
(* y (+ 1.0 (* b (+ 1.0 (* b (+ 0.5 (* b 0.16666666666666666))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.2e+81) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else if (b <= -7.2e-15) {
tmp = x * (exp(b) / y);
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
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.2d+81)) then
tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * (0.5d0 + (b * (-0.16666666666666666d0)))))))) / y
else if (b <= (-7.2d-15)) then
tmp = x * (exp(b) / y)
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
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.2e+81) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else if (b <= -7.2e-15) {
tmp = x * (Math.exp(b) / y);
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3.2e+81: tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y elif b <= -7.2e-15: tmp = x * (math.exp(b) / y) else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3.2e+81) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(-1.0 + Float64(b * Float64(0.5 + Float64(b * -0.16666666666666666))))))) / y); elseif (b <= -7.2e-15) tmp = Float64(x * Float64(exp(b) / y)); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -3.2e+81) tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y; elseif (b <= -7.2e-15) tmp = x * (exp(b) / y); else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.2e+81], N[(N[(x * N[(1.0 + N[(b * N[(-1.0 + N[(b * N[(0.5 + N[(b * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, -7.2e-15], N[(x * N[(N[Exp[b], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.2 \cdot 10^{+81}:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(-1 + b \cdot \left(0.5 + b \cdot -0.16666666666666666\right)\right)\right)}{y}\\
\mathbf{elif}\;b \leq -7.2 \cdot 10^{-15}:\\
\;\;\;\;x \cdot \frac{e^{b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -3.2e81Initial program 100.0%
Taylor expanded in t around 0 93.1%
+-commutative93.1%
mul-1-neg93.1%
unsub-neg93.1%
Simplified93.1%
Taylor expanded in b around inf 79.4%
neg-mul-179.4%
Simplified79.4%
Taylor expanded in b around 0 75.0%
if -3.2e81 < b < -7.2000000000000002e-15Initial program 100.0%
Taylor expanded in t around 0 77.7%
+-commutative77.7%
mul-1-neg77.7%
unsub-neg77.7%
Simplified77.7%
Taylor expanded in b around inf 46.4%
neg-mul-146.4%
Simplified46.4%
associate-/l*46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod0.0%
add-sqr-sqrt59.8%
Applied egg-rr59.8%
if -7.2000000000000002e-15 < b Initial program 98.6%
associate-/l*96.9%
associate--l+96.9%
exp-sum71.8%
associate-/l*69.7%
*-commutative69.7%
exp-to-pow69.7%
exp-diff63.4%
*-commutative63.4%
exp-to-pow64.0%
sub-neg64.0%
metadata-eval64.0%
Simplified64.0%
Taylor expanded in y around 0 66.9%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
associate-*r/68.9%
Simplified68.9%
Taylor expanded in t around 0 58.6%
Taylor expanded in b around 0 54.6%
*-commutative54.6%
Simplified54.6%
Final simplification58.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -3e+80)
(/ (* x (+ 1.0 (* b (+ -1.0 (* b (+ 0.5 (* b -0.16666666666666666))))))) y)
(if (<= b 4e-98)
(/ x (* a (+ y (* b (* b (+ (* y 0.5) (/ y b)))))))
(/
x
(*
a
(* y (+ 1.0 (* b (+ 1.0 (* b (+ 0.5 (* b 0.16666666666666666))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3e+80) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else if (b <= 4e-98) {
tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b))))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
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 <= (-3d+80)) then
tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * (0.5d0 + (b * (-0.16666666666666666d0)))))))) / y
else if (b <= 4d-98) then
tmp = x / (a * (y + (b * (b * ((y * 0.5d0) + (y / b))))))
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
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 <= -3e+80) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else if (b <= 4e-98) {
tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b))))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3e+80: tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y elif b <= 4e-98: tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b)))))) else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3e+80) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(-1.0 + Float64(b * Float64(0.5 + Float64(b * -0.16666666666666666))))))) / y); elseif (b <= 4e-98) tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(b * Float64(Float64(y * 0.5) + Float64(y / b))))))); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -3e+80) tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y; elseif (b <= 4e-98) tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b)))))); else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3e+80], N[(N[(x * N[(1.0 + N[(b * N[(-1.0 + N[(b * N[(0.5 + N[(b * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 4e-98], N[(x / N[(a * N[(y + N[(b * N[(b * N[(N[(y * 0.5), $MachinePrecision] + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3 \cdot 10^{+80}:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(-1 + b \cdot \left(0.5 + b \cdot -0.16666666666666666\right)\right)\right)}{y}\\
\mathbf{elif}\;b \leq 4 \cdot 10^{-98}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(b \cdot \left(y \cdot 0.5 + \frac{y}{b}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -2.99999999999999987e80Initial program 100.0%
Taylor expanded in t around 0 93.1%
+-commutative93.1%
mul-1-neg93.1%
unsub-neg93.1%
Simplified93.1%
Taylor expanded in b around inf 79.4%
neg-mul-179.4%
Simplified79.4%
Taylor expanded in b around 0 75.0%
if -2.99999999999999987e80 < b < 3.99999999999999976e-98Initial program 98.6%
associate-/l*95.9%
associate--l+95.9%
exp-sum74.5%
associate-/l*71.1%
*-commutative71.1%
exp-to-pow71.1%
exp-diff67.7%
*-commutative67.7%
exp-to-pow68.6%
sub-neg68.6%
metadata-eval68.6%
Simplified68.6%
Taylor expanded in y around 0 65.1%
exp-to-pow66.2%
sub-neg66.2%
metadata-eval66.2%
associate-*r/65.0%
Simplified65.0%
Taylor expanded in t around 0 45.3%
Taylor expanded in b around 0 44.6%
associate-*r*44.6%
*-commutative44.6%
Simplified44.6%
Taylor expanded in b around inf 47.0%
if 3.99999999999999976e-98 < b Initial program 98.8%
associate-/l*98.8%
associate--l+98.8%
exp-sum67.6%
associate-/l*67.6%
*-commutative67.6%
exp-to-pow67.6%
exp-diff55.1%
*-commutative55.1%
exp-to-pow55.3%
sub-neg55.3%
metadata-eval55.3%
Simplified55.3%
Taylor expanded in y around 0 64.2%
exp-to-pow64.4%
sub-neg64.4%
metadata-eval64.4%
associate-*r/68.5%
Simplified68.5%
Taylor expanded in t around 0 71.0%
Taylor expanded in b around 0 63.1%
*-commutative63.1%
Simplified63.1%
Final simplification57.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -3.2e+80) (/ (* x (+ 1.0 (* b (+ -1.0 (* b (+ 0.5 (* b -0.16666666666666666))))))) y) (/ x (* a (+ y (* b (* b (+ (* y 0.5) (/ y b)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.2e+80) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else {
tmp = x / (a * (y + (b * (b * ((y * 0.5) + (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.2d+80)) then
tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * (0.5d0 + (b * (-0.16666666666666666d0)))))))) / y
else
tmp = x / (a * (y + (b * (b * ((y * 0.5d0) + (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.2e+80) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else {
tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3.2e+80: tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y else: tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3.2e+80) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(-1.0 + Float64(b * Float64(0.5 + Float64(b * -0.16666666666666666))))))) / y); else tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(b * Float64(Float64(y * 0.5) + Float64(y / b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -3.2e+80) tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y; else tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.2e+80], N[(N[(x * N[(1.0 + N[(b * N[(-1.0 + N[(b * N[(0.5 + N[(b * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y + N[(b * N[(b * N[(N[(y * 0.5), $MachinePrecision] + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.2 \cdot 10^{+80}:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(-1 + b \cdot \left(0.5 + b \cdot -0.16666666666666666\right)\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(b \cdot \left(y \cdot 0.5 + \frac{y}{b}\right)\right)\right)}\\
\end{array}
\end{array}
if b < -3.1999999999999999e80Initial program 100.0%
Taylor expanded in t around 0 93.1%
+-commutative93.1%
mul-1-neg93.1%
unsub-neg93.1%
Simplified93.1%
Taylor expanded in b around inf 79.4%
neg-mul-179.4%
Simplified79.4%
Taylor expanded in b around 0 75.0%
if -3.1999999999999999e80 < b Initial program 98.7%
associate-/l*97.2%
associate--l+97.2%
exp-sum71.4%
associate-/l*69.5%
*-commutative69.5%
exp-to-pow69.5%
exp-diff62.0%
*-commutative62.0%
exp-to-pow62.6%
sub-neg62.6%
metadata-eval62.6%
Simplified62.6%
Taylor expanded in y around 0 64.7%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
associate-*r/66.6%
Simplified66.6%
Taylor expanded in t around 0 56.9%
Taylor expanded in b around 0 49.3%
associate-*r*49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in b around inf 50.6%
Final simplification54.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.4e+83) (/ (* x (+ 1.0 (* b (+ -1.0 (* b 0.5))))) y) (/ x (* a (+ y (* b (* b (+ (* y 0.5) (/ y b)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.4e+83) {
tmp = (x * (1.0 + (b * (-1.0 + (b * 0.5))))) / y;
} else {
tmp = x / (a * (y + (b * (b * ((y * 0.5) + (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+83)) then
tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * 0.5d0))))) / y
else
tmp = x / (a * (y + (b * (b * ((y * 0.5d0) + (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+83) {
tmp = (x * (1.0 + (b * (-1.0 + (b * 0.5))))) / y;
} else {
tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.4e+83: tmp = (x * (1.0 + (b * (-1.0 + (b * 0.5))))) / y else: tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.4e+83) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(-1.0 + Float64(b * 0.5))))) / y); else tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(b * Float64(Float64(y * 0.5) + Float64(y / b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.4e+83) tmp = (x * (1.0 + (b * (-1.0 + (b * 0.5))))) / y; else tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.4e+83], N[(N[(x * N[(1.0 + N[(b * N[(-1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y + N[(b * N[(b * N[(N[(y * 0.5), $MachinePrecision] + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.4 \cdot 10^{+83}:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(-1 + b \cdot 0.5\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(b \cdot \left(y \cdot 0.5 + \frac{y}{b}\right)\right)\right)}\\
\end{array}
\end{array}
if b < -2.39999999999999991e83Initial program 100.0%
Taylor expanded in t around 0 93.1%
+-commutative93.1%
mul-1-neg93.1%
unsub-neg93.1%
Simplified93.1%
Taylor expanded in b around inf 79.4%
neg-mul-179.4%
Simplified79.4%
Taylor expanded in b around 0 68.4%
if -2.39999999999999991e83 < b Initial program 98.7%
associate-/l*97.2%
associate--l+97.2%
exp-sum71.4%
associate-/l*69.5%
*-commutative69.5%
exp-to-pow69.5%
exp-diff62.0%
*-commutative62.0%
exp-to-pow62.6%
sub-neg62.6%
metadata-eval62.6%
Simplified62.6%
Taylor expanded in y around 0 64.7%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
associate-*r/66.6%
Simplified66.6%
Taylor expanded in t around 0 56.9%
Taylor expanded in b around 0 49.3%
associate-*r*49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in b around inf 50.6%
Final simplification53.6%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.7e+82) (/ (* x (+ 1.0 (* b (+ -1.0 (* 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 <= -1.7e+82) {
tmp = (x * (1.0 + (b * (-1.0 + (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 <= (-1.7d+82)) then
tmp = (x * (1.0d0 + (b * ((-1.0d0) + (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 <= -1.7e+82) {
tmp = (x * (1.0 + (b * (-1.0 + (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 <= -1.7e+82: tmp = (x * (1.0 + (b * (-1.0 + (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 <= -1.7e+82) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(-1.0 + 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 <= -1.7e+82) tmp = (x * (1.0 + (b * (-1.0 + (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, -1.7e+82], N[(N[(x * N[(1.0 + N[(b * N[(-1.0 + 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 -1.7 \cdot 10^{+82}:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(-1 + 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.69999999999999997e82Initial program 100.0%
Taylor expanded in t around 0 93.1%
+-commutative93.1%
mul-1-neg93.1%
unsub-neg93.1%
Simplified93.1%
Taylor expanded in b around inf 79.4%
neg-mul-179.4%
Simplified79.4%
Taylor expanded in b around 0 68.4%
if -1.69999999999999997e82 < b Initial program 98.7%
associate-/l*97.2%
associate--l+97.2%
exp-sum71.4%
associate-/l*69.5%
*-commutative69.5%
exp-to-pow69.5%
exp-diff62.0%
*-commutative62.0%
exp-to-pow62.6%
sub-neg62.6%
metadata-eval62.6%
Simplified62.6%
Taylor expanded in y around 0 64.7%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
associate-*r/66.6%
Simplified66.6%
Taylor expanded in t around 0 56.9%
Taylor expanded in b around 0 50.2%
*-commutative50.2%
Simplified50.2%
Final simplification53.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.12e+82) (/ (* x (+ 1.0 (* b (+ -1.0 (* b 0.5))))) 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.12e+82) {
tmp = (x * (1.0 + (b * (-1.0 + (b * 0.5))))) / 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.12d+82)) then
tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * 0.5d0))))) / 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.12e+82) {
tmp = (x * (1.0 + (b * (-1.0 + (b * 0.5))))) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.12e+82: tmp = (x * (1.0 + (b * (-1.0 + (b * 0.5))))) / y else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.12e+82) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(-1.0 + Float64(b * 0.5))))) / 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.12e+82) tmp = (x * (1.0 + (b * (-1.0 + (b * 0.5))))) / y; else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.12e+82], N[(N[(x * N[(1.0 + N[(b * N[(-1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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.12 \cdot 10^{+82}:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(-1 + b \cdot 0.5\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.11999999999999998e82Initial program 100.0%
Taylor expanded in t around 0 93.1%
+-commutative93.1%
mul-1-neg93.1%
unsub-neg93.1%
Simplified93.1%
Taylor expanded in b around inf 79.4%
neg-mul-179.4%
Simplified79.4%
Taylor expanded in b around 0 68.4%
if -1.11999999999999998e82 < b Initial program 98.7%
associate-/l*97.2%
associate--l+97.2%
exp-sum71.4%
associate-/l*69.5%
*-commutative69.5%
exp-to-pow69.5%
exp-diff62.0%
*-commutative62.0%
exp-to-pow62.6%
sub-neg62.6%
metadata-eval62.6%
Simplified62.6%
Taylor expanded in y around 0 64.7%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
associate-*r/66.6%
Simplified66.6%
Taylor expanded in t around 0 56.9%
Taylor expanded in b around 0 41.6%
Final simplification46.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b -0.015) (- (/ x (* y a)) (* x (/ b (* y a)))) (/ x (* a (+ y (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.015) {
tmp = (x / (y * a)) - (x * (b / (y * a)));
} 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 <= (-0.015d0)) then
tmp = (x / (y * a)) - (x * (b / (y * a)))
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 <= -0.015) {
tmp = (x / (y * a)) - (x * (b / (y * a)));
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -0.015: tmp = (x / (y * a)) - (x * (b / (y * a))) else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -0.015) tmp = Float64(Float64(x / Float64(y * a)) - Float64(x * Float64(b / Float64(y * a)))); 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 <= -0.015) tmp = (x / (y * a)) - (x * (b / (y * a))); else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -0.015], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(x * N[(b / N[(y * a), $MachinePrecision]), $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 -0.015:\\
\;\;\;\;\frac{x}{y \cdot a} - x \cdot \frac{b}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -0.014999999999999999Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum71.0%
associate-/l*71.0%
*-commutative71.0%
exp-to-pow71.0%
exp-diff54.8%
*-commutative54.8%
exp-to-pow54.8%
sub-neg54.8%
metadata-eval54.8%
Simplified54.8%
Taylor expanded in y around 0 58.3%
exp-to-pow58.3%
sub-neg58.3%
metadata-eval58.3%
associate-*r/61.6%
Simplified61.6%
Taylor expanded in t around 0 68.2%
Taylor expanded in b around 0 37.5%
+-commutative37.5%
mul-1-neg37.5%
unsub-neg37.5%
*-commutative37.5%
associate-/l*39.1%
Simplified39.1%
if -0.014999999999999999 < b Initial program 98.6%
associate-/l*97.0%
associate--l+97.0%
exp-sum72.2%
associate-/l*70.1%
*-commutative70.1%
exp-to-pow70.1%
exp-diff64.0%
*-commutative64.0%
exp-to-pow64.6%
sub-neg64.6%
metadata-eval64.6%
Simplified64.6%
Taylor expanded in y around 0 66.9%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
associate-*r/68.9%
Simplified68.9%
Taylor expanded in t around 0 58.2%
Taylor expanded in b around 0 43.0%
Final simplification42.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b -8.5e+79) (* (/ 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 <= -8.5e+79) {
tmp = (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 <= (-8.5d+79)) then
tmp = (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 <= -8.5e+79) {
tmp = (x / y) * -b;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -8.5e+79: tmp = (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 <= -8.5e+79) tmp = Float64(Float64(x / y) * Float64(-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 <= -8.5e+79) tmp = (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, -8.5e+79], N[(N[(x / y), $MachinePrecision] * (-b)), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.5 \cdot 10^{+79}:\\
\;\;\;\;\frac{x}{y} \cdot \left(-b\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -8.4999999999999998e79Initial program 100.0%
Taylor expanded in t around 0 93.1%
+-commutative93.1%
mul-1-neg93.1%
unsub-neg93.1%
Simplified93.1%
Taylor expanded in b around inf 79.4%
neg-mul-179.4%
Simplified79.4%
Taylor expanded in b around 0 39.3%
associate-*r*39.3%
distribute-rgt1-in39.3%
+-commutative39.3%
mul-1-neg39.3%
unsub-neg39.3%
Simplified39.3%
Taylor expanded in b around inf 39.3%
mul-1-neg39.3%
associate-*r/43.6%
*-commutative43.6%
distribute-rgt-neg-in43.6%
Simplified43.6%
if -8.4999999999999998e79 < b Initial program 98.7%
associate-/l*97.2%
associate--l+97.2%
exp-sum71.4%
associate-/l*69.5%
*-commutative69.5%
exp-to-pow69.5%
exp-diff62.0%
*-commutative62.0%
exp-to-pow62.6%
sub-neg62.6%
metadata-eval62.6%
Simplified62.6%
Taylor expanded in y around 0 64.7%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
associate-*r/66.6%
Simplified66.6%
Taylor expanded in t around 0 56.9%
Taylor expanded in b around 0 41.6%
Final simplification42.0%
(FPCore (x y z t a b) :precision binary64 (if (<= a 6.5e+142) (/ (* x (/ 1.0 a)) y) (* x (/ (/ 1.0 a) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 6.5e+142) {
tmp = (x * (1.0 / a)) / y;
} else {
tmp = x * ((1.0 / 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 (a <= 6.5d+142) then
tmp = (x * (1.0d0 / a)) / y
else
tmp = x * ((1.0d0 / 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 (a <= 6.5e+142) {
tmp = (x * (1.0 / a)) / y;
} else {
tmp = x * ((1.0 / a) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 6.5e+142: tmp = (x * (1.0 / a)) / y else: tmp = x * ((1.0 / a) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 6.5e+142) tmp = Float64(Float64(x * Float64(1.0 / a)) / y); else tmp = Float64(x * Float64(Float64(1.0 / a) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= 6.5e+142) tmp = (x * (1.0 / a)) / y; else tmp = x * ((1.0 / a) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 6.5e+142], N[(N[(x * N[(1.0 / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[(1.0 / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 6.5 \cdot 10^{+142}:\\
\;\;\;\;\frac{x \cdot \frac{1}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{\frac{1}{a}}{y}\\
\end{array}
\end{array}
if a < 6.4999999999999997e142Initial program 99.4%
associate-/l*97.3%
associate--l+97.3%
exp-sum70.6%
associate-/l*70.1%
*-commutative70.1%
exp-to-pow70.1%
exp-diff61.0%
*-commutative61.0%
exp-to-pow61.3%
sub-neg61.3%
metadata-eval61.3%
Simplified61.3%
Taylor expanded in b around 0 64.0%
*-commutative64.0%
exp-to-pow64.5%
sub-neg64.5%
metadata-eval64.5%
associate-*l*64.5%
Simplified64.5%
Taylor expanded in y around 0 57.9%
Taylor expanded in t around 0 31.7%
if 6.4999999999999997e142 < a Initial program 97.4%
Taylor expanded in t around 0 87.3%
+-commutative87.3%
mul-1-neg87.3%
unsub-neg87.3%
Simplified87.3%
Taylor expanded in b around 0 65.8%
associate-/l*65.7%
div-exp65.7%
*-commutative65.7%
exp-to-pow65.7%
rem-exp-log66.7%
Simplified66.7%
Taylor expanded in y around 0 50.0%
(FPCore (x y z t a b) :precision binary64 (if (<= a 5e+143) (/ (/ x a) y) (* x (/ (/ 1.0 a) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 5e+143) {
tmp = (x / a) / y;
} else {
tmp = x * ((1.0 / 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 (a <= 5d+143) then
tmp = (x / a) / y
else
tmp = x * ((1.0d0 / 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 (a <= 5e+143) {
tmp = (x / a) / y;
} else {
tmp = x * ((1.0 / a) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 5e+143: tmp = (x / a) / y else: tmp = x * ((1.0 / a) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 5e+143) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x * Float64(Float64(1.0 / a) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= 5e+143) tmp = (x / a) / y; else tmp = x * ((1.0 / a) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 5e+143], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[(1.0 / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 5 \cdot 10^{+143}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{\frac{1}{a}}{y}\\
\end{array}
\end{array}
if a < 5.00000000000000012e143Initial program 99.4%
associate-/l*97.3%
associate--l+97.3%
exp-sum70.6%
associate-/l*70.1%
*-commutative70.1%
exp-to-pow70.1%
exp-diff61.0%
*-commutative61.0%
exp-to-pow61.3%
sub-neg61.3%
metadata-eval61.3%
Simplified61.3%
Taylor expanded in b around 0 64.0%
*-commutative64.0%
exp-to-pow64.5%
sub-neg64.5%
metadata-eval64.5%
associate-*l*64.5%
Simplified64.5%
Taylor expanded in y around 0 57.9%
Taylor expanded in t around 0 31.7%
if 5.00000000000000012e143 < a Initial program 97.4%
Taylor expanded in t around 0 87.3%
+-commutative87.3%
mul-1-neg87.3%
unsub-neg87.3%
Simplified87.3%
Taylor expanded in b around 0 65.8%
associate-/l*65.7%
div-exp65.7%
*-commutative65.7%
exp-to-pow65.7%
rem-exp-log66.7%
Simplified66.7%
Taylor expanded in y around 0 50.0%
(FPCore (x y z t a b) :precision binary64 (if (<= a 1.2e+142) (/ (/ x a) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 1.2e+142) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (a <= 1.2d+142) then
tmp = (x / a) / y
else
tmp = x / (y * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 1.2e+142) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 1.2e+142: tmp = (x / a) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 1.2e+142) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(y * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= 1.2e+142) tmp = (x / a) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 1.2e+142], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 1.2 \cdot 10^{+142}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if a < 1.2e142Initial program 99.4%
associate-/l*97.3%
associate--l+97.3%
exp-sum70.4%
associate-/l*69.9%
*-commutative69.9%
exp-to-pow69.9%
exp-diff60.8%
*-commutative60.8%
exp-to-pow61.1%
sub-neg61.1%
metadata-eval61.1%
Simplified61.1%
Taylor expanded in b around 0 64.3%
*-commutative64.3%
exp-to-pow64.9%
sub-neg64.9%
metadata-eval64.9%
associate-*l*64.9%
Simplified64.9%
Taylor expanded in y around 0 58.2%
Taylor expanded in t around 0 31.8%
if 1.2e142 < a Initial program 97.4%
associate-/l*98.9%
associate--l+98.9%
exp-sum76.9%
associate-/l*71.8%
*-commutative71.8%
exp-to-pow71.8%
exp-diff65.0%
*-commutative65.0%
exp-to-pow66.0%
sub-neg66.0%
metadata-eval66.0%
Simplified66.0%
Taylor expanded in y around 0 60.7%
exp-to-pow61.3%
sub-neg61.3%
metadata-eval61.3%
associate-*r/69.8%
Simplified69.8%
Taylor expanded in t around 0 68.5%
Taylor expanded in b around 0 49.2%
*-commutative49.2%
Simplified49.2%
(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*97.7%
associate--l+97.7%
exp-sum71.9%
associate-/l*70.3%
*-commutative70.3%
exp-to-pow70.3%
exp-diff61.8%
*-commutative61.8%
exp-to-pow62.2%
sub-neg62.2%
metadata-eval62.2%
Simplified62.2%
Taylor expanded in y around 0 64.8%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
associate-*r/67.1%
Simplified67.1%
Taylor expanded in t around 0 60.6%
Taylor expanded in b around 0 33.8%
*-commutative33.8%
Simplified33.8%
(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%
Taylor expanded in t around 0 81.9%
+-commutative81.9%
mul-1-neg81.9%
unsub-neg81.9%
Simplified81.9%
Taylor expanded in b around inf 49.9%
neg-mul-149.9%
Simplified49.9%
Taylor expanded in b around 0 18.0%
(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 2024146
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:alt
(! :herbie-platform default (if (< t -8845848504127471/10000000000000000) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))) (if (< t 8520312288374073/10000000000) (/ (* (/ x y) (pow a (- t 1))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))