
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 26 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (+ t -1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t + (-1.0d0)) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t + -1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t + -1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t + -1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t + -1\right) \cdot \log a\right) - b}}{y}
\end{array}
Initial program 98.7%
Final simplification98.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -10500000.0) (not (<= y 1.65e+109))) (/ (* 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 <= -10500000.0) || !(y <= 1.65e+109)) {
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 <= (-10500000.0d0)) .or. (.not. (y <= 1.65d+109))) 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 <= -10500000.0) || !(y <= 1.65e+109)) {
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 <= -10500000.0) or not (y <= 1.65e+109): 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 <= -10500000.0) || !(y <= 1.65e+109)) 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 <= -10500000.0) || ~((y <= 1.65e+109))) 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, -10500000.0], N[Not[LessEqual[y, 1.65e+109]], $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 -10500000 \lor \neg \left(y \leq 1.65 \cdot 10^{+109}\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 < -1.05e7 or 1.6499999999999999e109 < y Initial program 100.0%
Taylor expanded in t around 0 94.3%
+-commutative94.3%
mul-1-neg94.3%
unsub-neg94.3%
Simplified94.3%
if -1.05e7 < y < 1.6499999999999999e109Initial program 97.8%
Taylor expanded in y around 0 95.4%
Final simplification94.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -2.6e+178) (not (<= y 2.1e+109))) (/ (/ (* 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 <= -2.6e+178) || !(y <= 2.1e+109)) {
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 <= (-2.6d+178)) .or. (.not. (y <= 2.1d+109))) 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 <= -2.6e+178) || !(y <= 2.1e+109)) {
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 <= -2.6e+178) or not (y <= 2.1e+109): 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 <= -2.6e+178) || !(y <= 2.1e+109)) tmp = Float64(Float64(Float64(x * (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 <= -2.6e+178) || ~((y <= 2.1e+109))) 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, -2.6e+178], N[Not[LessEqual[y, 2.1e+109]], $MachinePrecision]], N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $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.6 \cdot 10^{+178} \lor \neg \left(y \leq 2.1 \cdot 10^{+109}\right):\\
\;\;\;\;\frac{\frac{x \cdot {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 < -2.6000000000000001e178 or 2.1000000000000001e109 < y Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum54.4%
associate-/l*50.0%
*-commutative50.0%
exp-to-pow50.0%
exp-diff47.1%
*-commutative47.1%
exp-to-pow47.1%
sub-neg47.1%
metadata-eval47.1%
Simplified47.1%
Taylor expanded in b around 0 69.2%
*-commutative69.2%
exp-to-pow69.2%
sub-neg69.2%
metadata-eval69.2%
associate-*r*69.2%
Simplified69.2%
Taylor expanded in t around 0 88.4%
if -2.6000000000000001e178 < y < 2.1000000000000001e109Initial program 98.2%
Taylor expanded in y around 0 92.1%
Final simplification91.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -850.0) (not (<= y 1.65e+109))) (/ (/ (* 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 <= -850.0) || !(y <= 1.65e+109)) {
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 <= (-850.0d0)) .or. (.not. (y <= 1.65d+109))) 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 <= -850.0) || !(y <= 1.65e+109)) {
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 <= -850.0) or not (y <= 1.65e+109): 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 <= -850.0) || !(y <= 1.65e+109)) tmp = Float64(Float64(Float64(x * (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 <= -850.0) || ~((y <= 1.65e+109))) 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, -850.0], N[Not[LessEqual[y, 1.65e+109]], $MachinePrecision]], N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $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 -850 \lor \neg \left(y \leq 1.65 \cdot 10^{+109}\right):\\
\;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\\
\end{array}
\end{array}
if y < -850 or 1.6499999999999999e109 < y Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum61.5%
associate-/l*58.7%
*-commutative58.7%
exp-to-pow58.7%
exp-diff53.8%
*-commutative53.8%
exp-to-pow53.8%
sub-neg53.8%
metadata-eval53.8%
Simplified53.8%
Taylor expanded in b around 0 69.3%
*-commutative69.3%
exp-to-pow69.3%
sub-neg69.3%
metadata-eval69.3%
associate-*r*69.3%
Simplified69.3%
Taylor expanded in t around 0 83.9%
if -850 < y < 1.6499999999999999e109Initial program 97.8%
Taylor expanded in y around 0 95.3%
div-exp87.5%
exp-to-pow88.3%
sub-neg88.3%
metadata-eval88.3%
Simplified88.3%
Final simplification86.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -2.6e+27) (not (<= t 12000.0))) (/ (* x (pow a t)) y) (* (/ (pow z y) a) (/ x (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -2.6e+27) || !(t <= 12000.0)) {
tmp = (x * pow(a, t)) / y;
} else {
tmp = (pow(z, y) / a) * (x / (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 <= (-2.6d+27)) .or. (.not. (t <= 12000.0d0))) then
tmp = (x * (a ** t)) / y
else
tmp = ((z ** y) / a) * (x / (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 <= -2.6e+27) || !(t <= 12000.0)) {
tmp = (x * Math.pow(a, t)) / y;
} else {
tmp = (Math.pow(z, y) / a) * (x / (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -2.6e+27) or not (t <= 12000.0): tmp = (x * math.pow(a, t)) / y else: tmp = (math.pow(z, y) / a) * (x / (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -2.6e+27) || !(t <= 12000.0)) tmp = Float64(Float64(x * (a ^ t)) / y); else tmp = Float64(Float64((z ^ y) / a) * Float64(x / Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -2.6e+27) || ~((t <= 12000.0))) tmp = (x * (a ^ t)) / y; else tmp = ((z ^ y) / a) * (x / (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -2.6e+27], N[Not[LessEqual[t, 12000.0]], $MachinePrecision]], N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] * N[(x / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.6 \cdot 10^{+27} \lor \neg \left(t \leq 12000\right):\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{{z}^{y}}{a} \cdot \frac{x}{y \cdot e^{b}}\\
\end{array}
\end{array}
if t < -2.60000000000000009e27 or 12000 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum75.9%
associate-/l*75.9%
*-commutative75.9%
exp-to-pow75.9%
exp-diff64.3%
*-commutative64.3%
exp-to-pow64.3%
sub-neg64.3%
metadata-eval64.3%
Simplified64.3%
Taylor expanded in b around 0 70.6%
*-commutative70.6%
exp-to-pow70.6%
sub-neg70.6%
metadata-eval70.6%
associate-*r*70.6%
Simplified70.6%
Taylor expanded in y around 0 84.2%
Taylor expanded in t around inf 84.2%
if -2.60000000000000009e27 < t < 12000Initial program 97.7%
associate-/l*97.7%
associate--l+97.7%
exp-sum82.4%
associate-/l*80.3%
*-commutative80.3%
exp-to-pow80.3%
exp-diff78.3%
*-commutative78.3%
exp-to-pow79.2%
sub-neg79.2%
metadata-eval79.2%
Simplified79.2%
Taylor expanded in t around 0 80.0%
*-commutative80.0%
times-frac81.2%
Applied egg-rr81.2%
Final simplification82.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ (* x (pow z y)) a) y)) (t_2 (/ (* x (pow a t)) y)))
(if (<= t -2.8e+28)
t_2
(if (<= t 1.35e-225)
t_1
(if (<= t 2.15e-38)
(/ (/ (/ x a) (exp b)) y)
(if (<= t 11000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((x * pow(z, y)) / a) / y;
double t_2 = (x * pow(a, t)) / y;
double tmp;
if (t <= -2.8e+28) {
tmp = t_2;
} else if (t <= 1.35e-225) {
tmp = t_1;
} else if (t <= 2.15e-38) {
tmp = ((x / a) / exp(b)) / y;
} else if (t <= 11000.0) {
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 * (z ** y)) / a) / y
t_2 = (x * (a ** t)) / y
if (t <= (-2.8d+28)) then
tmp = t_2
else if (t <= 1.35d-225) then
tmp = t_1
else if (t <= 2.15d-38) then
tmp = ((x / a) / exp(b)) / y
else if (t <= 11000.0d0) 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.pow(z, y)) / a) / y;
double t_2 = (x * Math.pow(a, t)) / y;
double tmp;
if (t <= -2.8e+28) {
tmp = t_2;
} else if (t <= 1.35e-225) {
tmp = t_1;
} else if (t <= 2.15e-38) {
tmp = ((x / a) / Math.exp(b)) / y;
} else if (t <= 11000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((x * math.pow(z, y)) / a) / y t_2 = (x * math.pow(a, t)) / y tmp = 0 if t <= -2.8e+28: tmp = t_2 elif t <= 1.35e-225: tmp = t_1 elif t <= 2.15e-38: tmp = ((x / a) / math.exp(b)) / y elif t <= 11000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(x * (z ^ y)) / a) / y) t_2 = Float64(Float64(x * (a ^ t)) / y) tmp = 0.0 if (t <= -2.8e+28) tmp = t_2; elseif (t <= 1.35e-225) tmp = t_1; elseif (t <= 2.15e-38) tmp = Float64(Float64(Float64(x / a) / exp(b)) / y); elseif (t <= 11000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((x * (z ^ y)) / a) / y; t_2 = (x * (a ^ t)) / y; tmp = 0.0; if (t <= -2.8e+28) tmp = t_2; elseif (t <= 1.35e-225) tmp = t_1; elseif (t <= 2.15e-38) tmp = ((x / a) / exp(b)) / y; elseif (t <= 11000.0) 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[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t, -2.8e+28], t$95$2, If[LessEqual[t, 1.35e-225], t$95$1, If[LessEqual[t, 2.15e-38], N[(N[(N[(x / a), $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t, 11000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
t_2 := \frac{x \cdot {a}^{t}}{y}\\
\mathbf{if}\;t \leq -2.8 \cdot 10^{+28}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{-225}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.15 \cdot 10^{-38}:\\
\;\;\;\;\frac{\frac{\frac{x}{a}}{e^{b}}}{y}\\
\mathbf{elif}\;t \leq 11000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -2.8000000000000001e28 or 11000 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum75.9%
associate-/l*75.9%
*-commutative75.9%
exp-to-pow75.9%
exp-diff64.3%
*-commutative64.3%
exp-to-pow64.3%
sub-neg64.3%
metadata-eval64.3%
Simplified64.3%
Taylor expanded in b around 0 70.6%
*-commutative70.6%
exp-to-pow70.6%
sub-neg70.6%
metadata-eval70.6%
associate-*r*70.6%
Simplified70.6%
Taylor expanded in y around 0 84.2%
Taylor expanded in t around inf 84.2%
if -2.8000000000000001e28 < t < 1.34999999999999996e-225 or 2.1500000000000001e-38 < t < 11000Initial program 98.0%
associate-/l*97.2%
associate--l+97.2%
exp-sum81.0%
associate-/l*78.0%
*-commutative78.0%
exp-to-pow78.0%
exp-diff75.0%
*-commutative75.0%
exp-to-pow75.9%
sub-neg75.9%
metadata-eval75.9%
Simplified75.9%
Taylor expanded in b around 0 80.4%
*-commutative80.4%
exp-to-pow81.3%
sub-neg81.3%
metadata-eval81.3%
associate-*r*81.3%
Simplified81.3%
Taylor expanded in t around 0 82.3%
if 1.34999999999999996e-225 < t < 2.1500000000000001e-38Initial program 96.9%
Taylor expanded in y around 0 83.8%
div-exp83.8%
exp-to-pow84.7%
sub-neg84.7%
metadata-eval84.7%
Simplified84.7%
Taylor expanded in t around 0 84.8%
associate-/r*80.3%
Simplified80.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (/ (pow z y) a) (/ x y))) (t_2 (/ (* x (pow a t)) y)))
(if (<= t -2.4e+28)
t_2
(if (<= t 2.9e-249)
t_1
(if (<= t 7.2e-37)
(/ (/ (/ x a) (exp b)) y)
(if (<= t 10000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (pow(z, y) / a) * (x / y);
double t_2 = (x * pow(a, t)) / y;
double tmp;
if (t <= -2.4e+28) {
tmp = t_2;
} else if (t <= 2.9e-249) {
tmp = t_1;
} else if (t <= 7.2e-37) {
tmp = ((x / a) / exp(b)) / y;
} else if (t <= 10000.0) {
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 = ((z ** y) / a) * (x / y)
t_2 = (x * (a ** t)) / y
if (t <= (-2.4d+28)) then
tmp = t_2
else if (t <= 2.9d-249) then
tmp = t_1
else if (t <= 7.2d-37) then
tmp = ((x / a) / exp(b)) / y
else if (t <= 10000.0d0) 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 = (Math.pow(z, y) / a) * (x / y);
double t_2 = (x * Math.pow(a, t)) / y;
double tmp;
if (t <= -2.4e+28) {
tmp = t_2;
} else if (t <= 2.9e-249) {
tmp = t_1;
} else if (t <= 7.2e-37) {
tmp = ((x / a) / Math.exp(b)) / y;
} else if (t <= 10000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (math.pow(z, y) / a) * (x / y) t_2 = (x * math.pow(a, t)) / y tmp = 0 if t <= -2.4e+28: tmp = t_2 elif t <= 2.9e-249: tmp = t_1 elif t <= 7.2e-37: tmp = ((x / a) / math.exp(b)) / y elif t <= 10000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64((z ^ y) / a) * Float64(x / y)) t_2 = Float64(Float64(x * (a ^ t)) / y) tmp = 0.0 if (t <= -2.4e+28) tmp = t_2; elseif (t <= 2.9e-249) tmp = t_1; elseif (t <= 7.2e-37) tmp = Float64(Float64(Float64(x / a) / exp(b)) / y); elseif (t <= 10000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((z ^ y) / a) * (x / y); t_2 = (x * (a ^ t)) / y; tmp = 0.0; if (t <= -2.4e+28) tmp = t_2; elseif (t <= 2.9e-249) tmp = t_1; elseif (t <= 7.2e-37) tmp = ((x / a) / exp(b)) / y; elseif (t <= 10000.0) 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[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t, -2.4e+28], t$95$2, If[LessEqual[t, 2.9e-249], t$95$1, If[LessEqual[t, 7.2e-37], N[(N[(N[(x / a), $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t, 10000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{{z}^{y}}{a} \cdot \frac{x}{y}\\
t_2 := \frac{x \cdot {a}^{t}}{y}\\
\mathbf{if}\;t \leq -2.4 \cdot 10^{+28}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{-249}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 7.2 \cdot 10^{-37}:\\
\;\;\;\;\frac{\frac{\frac{x}{a}}{e^{b}}}{y}\\
\mathbf{elif}\;t \leq 10000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -2.39999999999999981e28 or 1e4 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum75.9%
associate-/l*75.9%
*-commutative75.9%
exp-to-pow75.9%
exp-diff64.3%
*-commutative64.3%
exp-to-pow64.3%
sub-neg64.3%
metadata-eval64.3%
Simplified64.3%
Taylor expanded in b around 0 70.6%
*-commutative70.6%
exp-to-pow70.6%
sub-neg70.6%
metadata-eval70.6%
associate-*r*70.6%
Simplified70.6%
Taylor expanded in y around 0 84.2%
Taylor expanded in t around inf 84.2%
if -2.39999999999999981e28 < t < 2.90000000000000022e-249 or 7.20000000000000014e-37 < t < 1e4Initial program 97.9%
associate-/l*97.1%
associate--l+97.1%
exp-sum80.2%
associate-/l*77.1%
*-commutative77.1%
exp-to-pow77.1%
exp-diff74.0%
*-commutative74.0%
exp-to-pow74.8%
sub-neg74.8%
metadata-eval74.8%
Simplified74.8%
Taylor expanded in t around 0 77.0%
*-commutative77.0%
times-frac79.0%
Applied egg-rr79.0%
Taylor expanded in b around 0 73.8%
if 2.90000000000000022e-249 < t < 7.20000000000000014e-37Initial program 97.2%
Taylor expanded in y around 0 81.2%
div-exp81.2%
exp-to-pow82.1%
sub-neg82.1%
metadata-eval82.1%
Simplified82.1%
Taylor expanded in t around 0 82.1%
associate-/r*78.0%
Simplified78.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x (exp b)) y)))
(if (<= b -0.000216)
t_1
(if (<= b 2.2e-279)
(/ (* b (- (/ x (* a b)) (/ x a))) y)
(if (<= b 4.3e-13) (/ (/ (- (* x a) (* a (* x b))) (* a a)) y) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / exp(b)) / y;
double tmp;
if (b <= -0.000216) {
tmp = t_1;
} else if (b <= 2.2e-279) {
tmp = (b * ((x / (a * b)) - (x / a))) / y;
} else if (b <= 4.3e-13) {
tmp = (((x * a) - (a * (x * b))) / (a * a)) / y;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x / exp(b)) / y
if (b <= (-0.000216d0)) then
tmp = t_1
else if (b <= 2.2d-279) then
tmp = (b * ((x / (a * b)) - (x / a))) / y
else if (b <= 4.3d-13) then
tmp = (((x * a) - (a * (x * b))) / (a * a)) / y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / Math.exp(b)) / y;
double tmp;
if (b <= -0.000216) {
tmp = t_1;
} else if (b <= 2.2e-279) {
tmp = (b * ((x / (a * b)) - (x / a))) / y;
} else if (b <= 4.3e-13) {
tmp = (((x * a) - (a * (x * b))) / (a * a)) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / math.exp(b)) / y tmp = 0 if b <= -0.000216: tmp = t_1 elif b <= 2.2e-279: tmp = (b * ((x / (a * b)) - (x / a))) / y elif b <= 4.3e-13: tmp = (((x * a) - (a * (x * b))) / (a * a)) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / exp(b)) / y) tmp = 0.0 if (b <= -0.000216) tmp = t_1; elseif (b <= 2.2e-279) tmp = Float64(Float64(b * Float64(Float64(x / Float64(a * b)) - Float64(x / a))) / y); elseif (b <= 4.3e-13) tmp = Float64(Float64(Float64(Float64(x * a) - Float64(a * Float64(x * b))) / Float64(a * a)) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / exp(b)) / y; tmp = 0.0; if (b <= -0.000216) tmp = t_1; elseif (b <= 2.2e-279) tmp = (b * ((x / (a * b)) - (x / a))) / y; elseif (b <= 4.3e-13) tmp = (((x * a) - (a * (x * b))) / (a * a)) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -0.000216], t$95$1, If[LessEqual[b, 2.2e-279], N[(N[(b * N[(N[(x / N[(a * b), $MachinePrecision]), $MachinePrecision] - N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 4.3e-13], N[(N[(N[(N[(x * a), $MachinePrecision] - N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{e^{b}}}{y}\\
\mathbf{if}\;b \leq -0.000216:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{-279}:\\
\;\;\;\;\frac{b \cdot \left(\frac{x}{a \cdot b} - \frac{x}{a}\right)}{y}\\
\mathbf{elif}\;b \leq 4.3 \cdot 10^{-13}:\\
\;\;\;\;\frac{\frac{x \cdot a - a \cdot \left(x \cdot b\right)}{a \cdot a}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.1599999999999999e-4 or 4.2999999999999999e-13 < b Initial program 99.9%
Taylor expanded in t around 0 92.0%
+-commutative92.0%
mul-1-neg92.0%
unsub-neg92.0%
Simplified92.0%
Taylor expanded in b around inf 79.0%
neg-mul-179.0%
Simplified79.0%
Taylor expanded in b around -inf 79.0%
mul-1-neg79.0%
rec-exp79.0%
associate-*r/79.0%
*-rgt-identity79.0%
Simplified79.0%
if -2.1599999999999999e-4 < b < 2.2e-279Initial program 97.2%
Taylor expanded in y around 0 76.3%
div-exp76.3%
exp-to-pow77.6%
sub-neg77.6%
metadata-eval77.6%
Simplified77.6%
Taylor expanded in t around 0 40.4%
associate-/r*40.4%
Simplified40.4%
Taylor expanded in b around 0 40.4%
+-commutative40.4%
mul-1-neg40.4%
unsub-neg40.4%
*-commutative40.4%
Simplified40.4%
Taylor expanded in b around inf 44.8%
if 2.2e-279 < b < 4.2999999999999999e-13Initial program 97.4%
Taylor expanded in y around 0 69.8%
div-exp69.8%
exp-to-pow70.6%
sub-neg70.6%
metadata-eval70.6%
Simplified70.6%
Taylor expanded in t around 0 41.0%
associate-/r*41.0%
Simplified41.0%
Taylor expanded in b around 0 39.2%
+-commutative39.2%
mul-1-neg39.2%
unsub-neg39.2%
*-commutative39.2%
Simplified39.2%
frac-2neg39.2%
frac-sub46.9%
Applied egg-rr46.9%
Final simplification63.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -3.6e+25) (not (<= b 2.55e+49))) (/ (/ x (exp b)) y) (/ (* x (pow a (+ t -1.0))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -3.6e+25) || !(b <= 2.55e+49)) {
tmp = (x / exp(b)) / y;
} else {
tmp = (x * pow(a, (t + -1.0))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-3.6d+25)) .or. (.not. (b <= 2.55d+49))) then
tmp = (x / exp(b)) / y
else
tmp = (x * (a ** (t + (-1.0d0)))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -3.6e+25) || !(b <= 2.55e+49)) {
tmp = (x / Math.exp(b)) / y;
} else {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -3.6e+25) or not (b <= 2.55e+49): tmp = (x / math.exp(b)) / y else: tmp = (x * math.pow(a, (t + -1.0))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -3.6e+25) || !(b <= 2.55e+49)) tmp = Float64(Float64(x / exp(b)) / y); else tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -3.6e+25) || ~((b <= 2.55e+49))) tmp = (x / exp(b)) / y; else tmp = (x * (a ^ (t + -1.0))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -3.6e+25], N[Not[LessEqual[b, 2.55e+49]], $MachinePrecision]], N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.6 \cdot 10^{+25} \lor \neg \left(b \leq 2.55 \cdot 10^{+49}\right):\\
\;\;\;\;\frac{\frac{x}{e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\end{array}
\end{array}
if b < -3.60000000000000015e25 or 2.54999999999999978e49 < b 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 inf 84.2%
neg-mul-184.2%
Simplified84.2%
Taylor expanded in b around -inf 84.2%
mul-1-neg84.2%
rec-exp84.2%
associate-*r/84.2%
*-rgt-identity84.2%
Simplified84.2%
if -3.60000000000000015e25 < b < 2.54999999999999978e49Initial program 97.6%
associate-/l*97.6%
associate--l+97.6%
exp-sum83.8%
associate-/l*81.6%
*-commutative81.6%
exp-to-pow81.6%
exp-diff80.2%
*-commutative80.2%
exp-to-pow81.2%
sub-neg81.2%
metadata-eval81.2%
Simplified81.2%
Taylor expanded in b around 0 82.5%
*-commutative82.5%
exp-to-pow83.4%
sub-neg83.4%
metadata-eval83.4%
associate-*r*83.4%
Simplified83.4%
Taylor expanded in y around 0 73.3%
Final simplification78.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -4.4e+27) (not (<= t 9000.0))) (/ (* x (pow a t)) y) (/ (/ (/ x a) (exp b)) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -4.4e+27) || !(t <= 9000.0)) {
tmp = (x * pow(a, t)) / y;
} else {
tmp = ((x / a) / exp(b)) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-4.4d+27)) .or. (.not. (t <= 9000.0d0))) then
tmp = (x * (a ** t)) / y
else
tmp = ((x / a) / exp(b)) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -4.4e+27) || !(t <= 9000.0)) {
tmp = (x * Math.pow(a, t)) / y;
} else {
tmp = ((x / a) / Math.exp(b)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -4.4e+27) or not (t <= 9000.0): tmp = (x * math.pow(a, t)) / y else: tmp = ((x / a) / math.exp(b)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -4.4e+27) || !(t <= 9000.0)) tmp = Float64(Float64(x * (a ^ t)) / y); else tmp = Float64(Float64(Float64(x / a) / exp(b)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -4.4e+27) || ~((t <= 9000.0))) tmp = (x * (a ^ t)) / y; else tmp = ((x / a) / exp(b)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -4.4e+27], N[Not[LessEqual[t, 9000.0]], $MachinePrecision]], N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(N[(x / a), $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.4 \cdot 10^{+27} \lor \neg \left(t \leq 9000\right):\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\frac{x}{a}}{e^{b}}}{y}\\
\end{array}
\end{array}
if t < -4.3999999999999997e27 or 9e3 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum75.9%
associate-/l*75.9%
*-commutative75.9%
exp-to-pow75.9%
exp-diff64.3%
*-commutative64.3%
exp-to-pow64.3%
sub-neg64.3%
metadata-eval64.3%
Simplified64.3%
Taylor expanded in b around 0 70.6%
*-commutative70.6%
exp-to-pow70.6%
sub-neg70.6%
metadata-eval70.6%
associate-*r*70.6%
Simplified70.6%
Taylor expanded in y around 0 84.2%
Taylor expanded in t around inf 84.2%
if -4.3999999999999997e27 < t < 9e3Initial program 97.7%
Taylor expanded in y around 0 73.4%
div-exp71.4%
exp-to-pow72.3%
sub-neg72.3%
metadata-eval72.3%
Simplified72.3%
Taylor expanded in t around 0 73.7%
associate-/r*68.1%
Simplified68.1%
Final simplification75.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1.9e+28) (not (<= t 9000.0))) (/ (* x (pow a t)) y) (/ x (* (exp b) (* y a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.9e+28) || !(t <= 9000.0)) {
tmp = (x * pow(a, t)) / y;
} else {
tmp = x / (exp(b) * (y * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-1.9d+28)) .or. (.not. (t <= 9000.0d0))) then
tmp = (x * (a ** t)) / y
else
tmp = x / (exp(b) * (y * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.9e+28) || !(t <= 9000.0)) {
tmp = (x * Math.pow(a, t)) / y;
} else {
tmp = x / (Math.exp(b) * (y * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.9e+28) or not (t <= 9000.0): tmp = (x * math.pow(a, t)) / y else: tmp = x / (math.exp(b) * (y * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.9e+28) || !(t <= 9000.0)) tmp = Float64(Float64(x * (a ^ t)) / y); else tmp = Float64(x / Float64(exp(b) * Float64(y * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.9e+28) || ~((t <= 9000.0))) tmp = (x * (a ^ t)) / y; else tmp = x / (exp(b) * (y * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.9e+28], N[Not[LessEqual[t, 9000.0]], $MachinePrecision]], N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(N[Exp[b], $MachinePrecision] * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.9 \cdot 10^{+28} \lor \neg \left(t \leq 9000\right):\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{e^{b} \cdot \left(y \cdot a\right)}\\
\end{array}
\end{array}
if t < -1.8999999999999999e28 or 9e3 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum75.9%
associate-/l*75.9%
*-commutative75.9%
exp-to-pow75.9%
exp-diff64.3%
*-commutative64.3%
exp-to-pow64.3%
sub-neg64.3%
metadata-eval64.3%
Simplified64.3%
Taylor expanded in b around 0 70.6%
*-commutative70.6%
exp-to-pow70.6%
sub-neg70.6%
metadata-eval70.6%
associate-*r*70.6%
Simplified70.6%
Taylor expanded in y around 0 84.2%
Taylor expanded in t around inf 84.2%
if -1.8999999999999999e28 < t < 9e3Initial program 97.7%
Taylor expanded in y around 0 73.4%
div-exp71.4%
exp-to-pow72.3%
sub-neg72.3%
metadata-eval72.3%
Simplified72.3%
Taylor expanded in t around 0 72.4%
associate-*r*65.5%
*-commutative65.5%
*-commutative65.5%
Simplified65.5%
Final simplification73.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.82e+31) (not (<= b 2.55e+49))) (/ (/ x (exp b)) y) (/ (* x (pow a t)) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.82e+31) || !(b <= 2.55e+49)) {
tmp = (x / exp(b)) / y;
} else {
tmp = (x * pow(a, t)) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-1.82d+31)) .or. (.not. (b <= 2.55d+49))) then
tmp = (x / exp(b)) / y
else
tmp = (x * (a ** t)) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.82e+31) || !(b <= 2.55e+49)) {
tmp = (x / Math.exp(b)) / y;
} else {
tmp = (x * Math.pow(a, t)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.82e+31) or not (b <= 2.55e+49): tmp = (x / math.exp(b)) / y else: tmp = (x * math.pow(a, t)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.82e+31) || !(b <= 2.55e+49)) tmp = Float64(Float64(x / exp(b)) / y); else tmp = Float64(Float64(x * (a ^ t)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -1.82e+31) || ~((b <= 2.55e+49))) tmp = (x / exp(b)) / y; else tmp = (x * (a ^ t)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.82e+31], N[Not[LessEqual[b, 2.55e+49]], $MachinePrecision]], N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.82 \cdot 10^{+31} \lor \neg \left(b \leq 2.55 \cdot 10^{+49}\right):\\
\;\;\;\;\frac{\frac{x}{e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y}\\
\end{array}
\end{array}
if b < -1.8200000000000001e31 or 2.54999999999999978e49 < b 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 inf 84.2%
neg-mul-184.2%
Simplified84.2%
Taylor expanded in b around -inf 84.2%
mul-1-neg84.2%
rec-exp84.2%
associate-*r/84.2%
*-rgt-identity84.2%
Simplified84.2%
if -1.8200000000000001e31 < b < 2.54999999999999978e49Initial program 97.6%
associate-/l*97.6%
associate--l+97.6%
exp-sum83.8%
associate-/l*81.6%
*-commutative81.6%
exp-to-pow81.6%
exp-diff80.2%
*-commutative80.2%
exp-to-pow81.2%
sub-neg81.2%
metadata-eval81.2%
Simplified81.2%
Taylor expanded in b around 0 82.5%
*-commutative82.5%
exp-to-pow83.4%
sub-neg83.4%
metadata-eval83.4%
associate-*r*83.4%
Simplified83.4%
Taylor expanded in y around 0 73.3%
Taylor expanded in t around inf 53.4%
Final simplification67.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -2.7e+37)
(/ (* x (+ 1.0 (* b (+ -1.0 (* b (+ 0.5 (* b -0.16666666666666666))))))) y)
(if (<= b 6.6e-280)
(/ (* b (- (/ x (* a b)) (/ x a))) y)
(if (<= b 2.3e-23)
(/ (/ (- (* x a) (* a (* x b))) (* a a)) 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 <= -2.7e+37) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else if (b <= 6.6e-280) {
tmp = (b * ((x / (a * b)) - (x / a))) / y;
} else if (b <= 2.3e-23) {
tmp = (((x * a) - (a * (x * b))) / (a * a)) / 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 <= (-2.7d+37)) then
tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * (0.5d0 + (b * (-0.16666666666666666d0)))))))) / y
else if (b <= 6.6d-280) then
tmp = (b * ((x / (a * b)) - (x / a))) / y
else if (b <= 2.3d-23) then
tmp = (((x * a) - (a * (x * b))) / (a * a)) / 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 <= -2.7e+37) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else if (b <= 6.6e-280) {
tmp = (b * ((x / (a * b)) - (x / a))) / y;
} else if (b <= 2.3e-23) {
tmp = (((x * a) - (a * (x * b))) / (a * a)) / 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 <= -2.7e+37: tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y elif b <= 6.6e-280: tmp = (b * ((x / (a * b)) - (x / a))) / y elif b <= 2.3e-23: tmp = (((x * a) - (a * (x * b))) / (a * a)) / 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 <= -2.7e+37) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(-1.0 + Float64(b * Float64(0.5 + Float64(b * -0.16666666666666666))))))) / y); elseif (b <= 6.6e-280) tmp = Float64(Float64(b * Float64(Float64(x / Float64(a * b)) - Float64(x / a))) / y); elseif (b <= 2.3e-23) tmp = Float64(Float64(Float64(Float64(x * a) - Float64(a * Float64(x * b))) / Float64(a * a)) / 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 <= -2.7e+37) tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y; elseif (b <= 6.6e-280) tmp = (b * ((x / (a * b)) - (x / a))) / y; elseif (b <= 2.3e-23) tmp = (((x * a) - (a * (x * b))) / (a * a)) / 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, -2.7e+37], 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, 6.6e-280], N[(N[(b * N[(N[(x / N[(a * b), $MachinePrecision]), $MachinePrecision] - N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 2.3e-23], N[(N[(N[(N[(x * a), $MachinePrecision] - N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a * a), $MachinePrecision]), $MachinePrecision] / y), $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 -2.7 \cdot 10^{+37}:\\
\;\;\;\;\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 6.6 \cdot 10^{-280}:\\
\;\;\;\;\frac{b \cdot \left(\frac{x}{a \cdot b} - \frac{x}{a}\right)}{y}\\
\mathbf{elif}\;b \leq 2.3 \cdot 10^{-23}:\\
\;\;\;\;\frac{\frac{x \cdot a - a \cdot \left(x \cdot b\right)}{a \cdot a}}{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 < -2.69999999999999986e37Initial program 100.0%
Taylor expanded in t around 0 96.5%
+-commutative96.5%
mul-1-neg96.5%
unsub-neg96.5%
Simplified96.5%
Taylor expanded in b around inf 84.5%
neg-mul-184.5%
Simplified84.5%
Taylor expanded in b around 0 76.2%
if -2.69999999999999986e37 < b < 6.59999999999999982e-280Initial program 97.5%
Taylor expanded in y around 0 77.3%
div-exp75.9%
exp-to-pow77.0%
sub-neg77.0%
metadata-eval77.0%
Simplified77.0%
Taylor expanded in t around 0 42.1%
associate-/r*40.7%
Simplified40.7%
Taylor expanded in b around 0 40.7%
+-commutative40.7%
mul-1-neg40.7%
unsub-neg40.7%
*-commutative40.7%
Simplified40.7%
Taylor expanded in b around inf 44.8%
if 6.59999999999999982e-280 < b < 2.3000000000000001e-23Initial program 97.3%
Taylor expanded in y around 0 70.5%
div-exp70.5%
exp-to-pow71.3%
sub-neg71.3%
metadata-eval71.3%
Simplified71.3%
Taylor expanded in t around 0 42.4%
associate-/r*42.4%
Simplified42.4%
Taylor expanded in b around 0 40.5%
+-commutative40.5%
mul-1-neg40.5%
unsub-neg40.5%
*-commutative40.5%
Simplified40.5%
frac-2neg40.5%
frac-sub48.6%
Applied egg-rr48.6%
if 2.3000000000000001e-23 < b Initial program 99.9%
Taylor expanded in y around 0 86.4%
div-exp71.4%
exp-to-pow71.5%
sub-neg71.5%
metadata-eval71.5%
Simplified71.5%
Taylor expanded in t around 0 75.8%
associate-*r*63.5%
*-commutative63.5%
*-commutative63.5%
Simplified63.5%
Taylor expanded in b around 0 57.2%
*-commutative57.2%
Simplified57.2%
Taylor expanded in y around 0 61.3%
Final simplification57.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ 1.0 (* b (+ 1.0 (* b 0.5))))))
(if (<= b -1.7e+63)
(/ (* x t_1) y)
(if (<= b 1.1e-279)
(/ (* b (- (/ x (* a b)) (/ x a))) y)
(/ x (* (* y a) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 1.0 + (b * (1.0 + (b * 0.5)));
double tmp;
if (b <= -1.7e+63) {
tmp = (x * t_1) / y;
} else if (b <= 1.1e-279) {
tmp = (b * ((x / (a * b)) - (x / a))) / y;
} else {
tmp = x / ((y * a) * 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 = 1.0d0 + (b * (1.0d0 + (b * 0.5d0)))
if (b <= (-1.7d+63)) then
tmp = (x * t_1) / y
else if (b <= 1.1d-279) then
tmp = (b * ((x / (a * b)) - (x / a))) / y
else
tmp = x / ((y * a) * 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 = 1.0 + (b * (1.0 + (b * 0.5)));
double tmp;
if (b <= -1.7e+63) {
tmp = (x * t_1) / y;
} else if (b <= 1.1e-279) {
tmp = (b * ((x / (a * b)) - (x / a))) / y;
} else {
tmp = x / ((y * a) * t_1);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = 1.0 + (b * (1.0 + (b * 0.5))) tmp = 0 if b <= -1.7e+63: tmp = (x * t_1) / y elif b <= 1.1e-279: tmp = (b * ((x / (a * b)) - (x / a))) / y else: tmp = x / ((y * a) * t_1) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * 0.5)))) tmp = 0.0 if (b <= -1.7e+63) tmp = Float64(Float64(x * t_1) / y); elseif (b <= 1.1e-279) tmp = Float64(Float64(b * Float64(Float64(x / Float64(a * b)) - Float64(x / a))) / y); else tmp = Float64(x / Float64(Float64(y * a) * t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = 1.0 + (b * (1.0 + (b * 0.5))); tmp = 0.0; if (b <= -1.7e+63) tmp = (x * t_1) / y; elseif (b <= 1.1e-279) tmp = (b * ((x / (a * b)) - (x / a))) / y; else tmp = x / ((y * a) * t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(1.0 + N[(b * N[(1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.7e+63], N[(N[(x * t$95$1), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 1.1e-279], N[(N[(b * N[(N[(x / N[(a * b), $MachinePrecision]), $MachinePrecision] - N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(N[(y * a), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 1 + b \cdot \left(1 + b \cdot 0.5\right)\\
\mathbf{if}\;b \leq -1.7 \cdot 10^{+63}:\\
\;\;\;\;\frac{x \cdot t\_1}{y}\\
\mathbf{elif}\;b \leq 1.1 \cdot 10^{-279}:\\
\;\;\;\;\frac{b \cdot \left(\frac{x}{a \cdot b} - \frac{x}{a}\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\left(y \cdot a\right) \cdot t\_1}\\
\end{array}
\end{array}
if b < -1.6999999999999999e63Initial program 100.0%
Taylor expanded in t around 0 98.1%
+-commutative98.1%
mul-1-neg98.1%
unsub-neg98.1%
Simplified98.1%
Taylor expanded in b around inf 83.0%
neg-mul-183.0%
Simplified83.0%
pow183.0%
add-sqr-sqrt83.0%
sqrt-unprod83.0%
sqr-neg83.0%
sqrt-unprod0.0%
add-sqr-sqrt18.6%
Applied egg-rr18.6%
unpow118.6%
Simplified18.6%
Taylor expanded in b around 0 71.0%
*-commutative17.0%
Simplified71.0%
if -1.6999999999999999e63 < b < 1.1e-279Initial program 97.7%
Taylor expanded in y around 0 77.5%
div-exp76.1%
exp-to-pow77.2%
sub-neg77.2%
metadata-eval77.2%
Simplified77.2%
Taylor expanded in t around 0 45.8%
associate-/r*44.5%
Simplified44.5%
Taylor expanded in b around 0 40.8%
+-commutative40.8%
mul-1-neg40.8%
unsub-neg40.8%
*-commutative40.8%
Simplified40.8%
Taylor expanded in b around inf 44.6%
if 1.1e-279 < b Initial program 98.8%
Taylor expanded in y around 0 79.6%
div-exp71.0%
exp-to-pow71.4%
sub-neg71.4%
metadata-eval71.4%
Simplified71.4%
Taylor expanded in t around 0 60.9%
associate-*r*53.8%
*-commutative53.8%
*-commutative53.8%
Simplified53.8%
Taylor expanded in b around 0 47.1%
*-commutative50.1%
Simplified47.1%
Final simplification51.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.7e+63)
(/ (* x (+ 1.0 (* b (+ 1.0 (* b 0.5))))) y)
(if (<= b 1.3e-279)
(/ (* b (- (/ x (* a b)) (/ 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.7e+63) {
tmp = (x * (1.0 + (b * (1.0 + (b * 0.5))))) / y;
} else if (b <= 1.3e-279) {
tmp = (b * ((x / (a * b)) - (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.7d+63)) then
tmp = (x * (1.0d0 + (b * (1.0d0 + (b * 0.5d0))))) / y
else if (b <= 1.3d-279) then
tmp = (b * ((x / (a * b)) - (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.7e+63) {
tmp = (x * (1.0 + (b * (1.0 + (b * 0.5))))) / y;
} else if (b <= 1.3e-279) {
tmp = (b * ((x / (a * b)) - (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.7e+63: tmp = (x * (1.0 + (b * (1.0 + (b * 0.5))))) / y elif b <= 1.3e-279: tmp = (b * ((x / (a * b)) - (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.7e+63) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * 0.5))))) / y); elseif (b <= 1.3e-279) tmp = Float64(Float64(b * Float64(Float64(x / Float64(a * b)) - 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.7e+63) tmp = (x * (1.0 + (b * (1.0 + (b * 0.5))))) / y; elseif (b <= 1.3e-279) tmp = (b * ((x / (a * b)) - (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.7e+63], N[(N[(x * N[(1.0 + N[(b * N[(1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 1.3e-279], N[(N[(b * N[(N[(x / N[(a * b), $MachinePrecision]), $MachinePrecision] - N[(x / a), $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.7 \cdot 10^{+63}:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(1 + b \cdot 0.5\right)\right)}{y}\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{-279}:\\
\;\;\;\;\frac{b \cdot \left(\frac{x}{a \cdot b} - \frac{x}{a}\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.6999999999999999e63Initial program 100.0%
Taylor expanded in t around 0 98.1%
+-commutative98.1%
mul-1-neg98.1%
unsub-neg98.1%
Simplified98.1%
Taylor expanded in b around inf 83.0%
neg-mul-183.0%
Simplified83.0%
pow183.0%
add-sqr-sqrt83.0%
sqrt-unprod83.0%
sqr-neg83.0%
sqrt-unprod0.0%
add-sqr-sqrt18.6%
Applied egg-rr18.6%
unpow118.6%
Simplified18.6%
Taylor expanded in b around 0 71.0%
*-commutative17.0%
Simplified71.0%
if -1.6999999999999999e63 < b < 1.3000000000000001e-279Initial program 97.7%
Taylor expanded in y around 0 77.5%
div-exp76.1%
exp-to-pow77.2%
sub-neg77.2%
metadata-eval77.2%
Simplified77.2%
Taylor expanded in t around 0 45.8%
associate-/r*44.5%
Simplified44.5%
Taylor expanded in b around 0 40.8%
+-commutative40.8%
mul-1-neg40.8%
unsub-neg40.8%
*-commutative40.8%
Simplified40.8%
Taylor expanded in b around inf 44.6%
if 1.3000000000000001e-279 < b Initial program 98.8%
Taylor expanded in y around 0 79.6%
div-exp71.0%
exp-to-pow71.4%
sub-neg71.4%
metadata-eval71.4%
Simplified71.4%
Taylor expanded in t around 0 60.9%
associate-*r*53.8%
*-commutative53.8%
*-commutative53.8%
Simplified53.8%
Taylor expanded in b around 0 42.7%
distribute-lft-out42.7%
*-commutative42.7%
Simplified42.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.4e+37) (/ (* x (+ 1.0 (* b (+ -1.0 (* b (+ 0.5 (* b -0.16666666666666666))))))) y) (/ (/ (/ x a) (+ 1.0 (* b (+ 1.0 (* b 0.5))))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.4e+37) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else {
tmp = ((x / a) / (1.0 + (b * (1.0 + (b * 0.5))))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-2.4d+37)) then
tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * (0.5d0 + (b * (-0.16666666666666666d0)))))))) / y
else
tmp = ((x / a) / (1.0d0 + (b * (1.0d0 + (b * 0.5d0))))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.4e+37) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else {
tmp = ((x / a) / (1.0 + (b * (1.0 + (b * 0.5))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.4e+37: tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y else: tmp = ((x / a) / (1.0 + (b * (1.0 + (b * 0.5))))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.4e+37) 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(Float64(Float64(x / a) / Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * 0.5))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.4e+37) tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y; else tmp = ((x / a) / (1.0 + (b * (1.0 + (b * 0.5))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.4e+37], 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[(N[(N[(x / a), $MachinePrecision] / N[(1.0 + N[(b * N[(1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.4 \cdot 10^{+37}:\\
\;\;\;\;\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{\frac{\frac{x}{a}}{1 + b \cdot \left(1 + b \cdot 0.5\right)}}{y}\\
\end{array}
\end{array}
if b < -2.4e37Initial program 100.0%
Taylor expanded in t around 0 96.5%
+-commutative96.5%
mul-1-neg96.5%
unsub-neg96.5%
Simplified96.5%
Taylor expanded in b around inf 84.5%
neg-mul-184.5%
Simplified84.5%
Taylor expanded in b around 0 76.2%
if -2.4e37 < b Initial program 98.3%
Taylor expanded in y around 0 78.8%
div-exp72.8%
exp-to-pow73.4%
sub-neg73.4%
metadata-eval73.4%
Simplified73.4%
Taylor expanded in t around 0 54.5%
associate-/r*51.0%
Simplified51.0%
Taylor expanded in b around 0 46.3%
*-commutative46.3%
Simplified46.3%
Final simplification52.9%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (+ 1.0 (* b (+ 1.0 (* b 0.5)))))) (if (<= b -1.15e+38) (/ (* x t_1) y) (/ (/ (/ x a) t_1) y))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 1.0 + (b * (1.0 + (b * 0.5)));
double tmp;
if (b <= -1.15e+38) {
tmp = (x * t_1) / y;
} else {
tmp = ((x / a) / t_1) / 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 = 1.0d0 + (b * (1.0d0 + (b * 0.5d0)))
if (b <= (-1.15d+38)) then
tmp = (x * t_1) / y
else
tmp = ((x / a) / t_1) / 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 = 1.0 + (b * (1.0 + (b * 0.5)));
double tmp;
if (b <= -1.15e+38) {
tmp = (x * t_1) / y;
} else {
tmp = ((x / a) / t_1) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = 1.0 + (b * (1.0 + (b * 0.5))) tmp = 0 if b <= -1.15e+38: tmp = (x * t_1) / y else: tmp = ((x / a) / t_1) / y return tmp
function code(x, y, z, t, a, b) t_1 = Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * 0.5)))) tmp = 0.0 if (b <= -1.15e+38) tmp = Float64(Float64(x * t_1) / y); else tmp = Float64(Float64(Float64(x / a) / t_1) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = 1.0 + (b * (1.0 + (b * 0.5))); tmp = 0.0; if (b <= -1.15e+38) tmp = (x * t_1) / y; else tmp = ((x / a) / t_1) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(1.0 + N[(b * N[(1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.15e+38], N[(N[(x * t$95$1), $MachinePrecision] / y), $MachinePrecision], N[(N[(N[(x / a), $MachinePrecision] / t$95$1), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 1 + b \cdot \left(1 + b \cdot 0.5\right)\\
\mathbf{if}\;b \leq -1.15 \cdot 10^{+38}:\\
\;\;\;\;\frac{x \cdot t\_1}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\frac{x}{a}}{t\_1}}{y}\\
\end{array}
\end{array}
if b < -1.1500000000000001e38Initial program 100.0%
Taylor expanded in t around 0 96.5%
+-commutative96.5%
mul-1-neg96.5%
unsub-neg96.5%
Simplified96.5%
Taylor expanded in b around inf 84.5%
neg-mul-184.5%
Simplified84.5%
pow184.5%
add-sqr-sqrt84.5%
sqrt-unprod84.5%
sqr-neg84.5%
sqrt-unprod0.0%
add-sqr-sqrt17.1%
Applied egg-rr17.1%
unpow117.1%
Simplified17.1%
Taylor expanded in b around 0 68.5%
*-commutative16.0%
Simplified68.5%
if -1.1500000000000001e38 < b Initial program 98.3%
Taylor expanded in y around 0 78.8%
div-exp72.8%
exp-to-pow73.4%
sub-neg73.4%
metadata-eval73.4%
Simplified73.4%
Taylor expanded in t around 0 54.5%
associate-/r*51.0%
Simplified51.0%
Taylor expanded in b around 0 46.3%
*-commutative46.3%
Simplified46.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b -4.3e-12) (* x (/ (- (/ 1.0 a) (/ b a)) y)) (if (<= b 4e+125) (/ (/ (/ x a) (+ 1.0 b)) y) (/ x (* a (+ y (* y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.3e-12) {
tmp = x * (((1.0 / a) - (b / a)) / y);
} else if (b <= 4e+125) {
tmp = ((x / a) / (1.0 + b)) / 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 <= (-4.3d-12)) then
tmp = x * (((1.0d0 / a) - (b / a)) / y)
else if (b <= 4d+125) then
tmp = ((x / a) / (1.0d0 + b)) / 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 <= -4.3e-12) {
tmp = x * (((1.0 / a) - (b / a)) / y);
} else if (b <= 4e+125) {
tmp = ((x / a) / (1.0 + b)) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -4.3e-12: tmp = x * (((1.0 / a) - (b / a)) / y) elif b <= 4e+125: tmp = ((x / a) / (1.0 + b)) / y else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -4.3e-12) tmp = Float64(x * Float64(Float64(Float64(1.0 / a) - Float64(b / a)) / y)); elseif (b <= 4e+125) tmp = Float64(Float64(Float64(x / a) / Float64(1.0 + b)) / 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 <= -4.3e-12) tmp = x * (((1.0 / a) - (b / a)) / y); elseif (b <= 4e+125) tmp = ((x / a) / (1.0 + b)) / y; else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -4.3e-12], N[(x * N[(N[(N[(1.0 / a), $MachinePrecision] - N[(b / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4e+125], N[(N[(N[(x / a), $MachinePrecision] / N[(1.0 + b), $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 -4.3 \cdot 10^{-12}:\\
\;\;\;\;x \cdot \frac{\frac{1}{a} - \frac{b}{a}}{y}\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+125}:\\
\;\;\;\;\frac{\frac{\frac{x}{a}}{1 + b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -4.29999999999999985e-12Initial program 100.0%
Taylor expanded in y around 0 86.2%
div-exp75.2%
exp-to-pow75.2%
sub-neg75.2%
metadata-eval75.2%
Simplified75.2%
Taylor expanded in t around 0 81.6%
associate-/r*72.2%
Simplified72.2%
Taylor expanded in b around 0 50.0%
+-commutative50.0%
mul-1-neg50.0%
unsub-neg50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in x around 0 48.5%
associate-/l*51.4%
Simplified51.4%
if -4.29999999999999985e-12 < b < 3.9999999999999997e125Initial program 97.8%
Taylor expanded in y around 0 75.8%
div-exp71.9%
exp-to-pow72.7%
sub-neg72.7%
metadata-eval72.7%
Simplified72.7%
Taylor expanded in t around 0 47.0%
associate-/r*45.0%
Simplified45.0%
Taylor expanded in b around 0 38.9%
+-commutative38.9%
Simplified38.9%
if 3.9999999999999997e125 < b Initial program 100.0%
Taylor expanded in y around 0 89.6%
div-exp76.5%
exp-to-pow76.5%
sub-neg76.5%
metadata-eval76.5%
Simplified76.5%
Taylor expanded in t around 0 84.5%
associate-*r*76.6%
*-commutative76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in b around 0 59.1%
distribute-lft-out59.1%
*-commutative59.1%
Simplified59.1%
Final simplification45.0%
(FPCore (x y z t a b) :precision binary64 (if (<= b 9.2e-88) (* (/ (- x (* x b)) a) (/ 1.0 y)) (/ x (* a (+ y (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 9.2e-88) {
tmp = ((x - (x * b)) / a) * (1.0 / 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 <= 9.2d-88) then
tmp = ((x - (x * b)) / a) * (1.0d0 / 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 <= 9.2e-88) {
tmp = ((x - (x * b)) / a) * (1.0 / y);
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 9.2e-88: tmp = ((x - (x * b)) / a) * (1.0 / y) else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 9.2e-88) tmp = Float64(Float64(Float64(x - Float64(x * b)) / a) * Float64(1.0 / 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 <= 9.2e-88) tmp = ((x - (x * b)) / a) * (1.0 / y); else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 9.2e-88], N[(N[(N[(x - N[(x * b), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] * N[(1.0 / 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 9.2 \cdot 10^{-88}:\\
\;\;\;\;\frac{x - x \cdot b}{a} \cdot \frac{1}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < 9.19999999999999945e-88Initial program 98.2%
Taylor expanded in y around 0 78.9%
div-exp74.9%
exp-to-pow75.5%
sub-neg75.5%
metadata-eval75.5%
Simplified75.5%
Taylor expanded in t around 0 56.4%
associate-/r*52.9%
Simplified52.9%
Taylor expanded in b around 0 44.1%
+-commutative44.1%
mul-1-neg44.1%
unsub-neg44.1%
*-commutative44.1%
Simplified44.1%
div-inv44.1%
sub-div44.7%
Applied egg-rr44.7%
if 9.19999999999999945e-88 < b Initial program 99.6%
Taylor expanded in y around 0 83.5%
div-exp70.4%
exp-to-pow70.7%
sub-neg70.7%
metadata-eval70.7%
Simplified70.7%
Taylor expanded in t around 0 72.0%
associate-*r*61.3%
*-commutative61.3%
*-commutative61.3%
Simplified61.3%
Taylor expanded in b around 0 44.5%
distribute-lft-out44.5%
*-commutative44.5%
Simplified44.5%
(FPCore (x y z t a b) :precision binary64 (if (<= b -6e-94) (/ (/ (* 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 <= -6e-94) {
tmp = ((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 <= (-6d-94)) then
tmp = ((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 <= -6e-94) {
tmp = ((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 <= -6e-94: tmp = ((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 <= -6e-94) tmp = Float64(Float64(Float64(x * b) / a) / Float64(-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 <= -6e-94) tmp = ((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, -6e-94], N[(N[(N[(x * b), $MachinePrecision] / 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 -6 \cdot 10^{-94}:\\
\;\;\;\;\frac{\frac{x \cdot b}{a}}{-y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -6.0000000000000003e-94Initial program 99.7%
Taylor expanded in y around 0 86.9%
div-exp78.5%
exp-to-pow78.8%
sub-neg78.8%
metadata-eval78.8%
Simplified78.8%
Taylor expanded in t around 0 76.7%
associate-/r*69.6%
Simplified69.6%
Taylor expanded in b around 0 52.7%
+-commutative52.7%
mul-1-neg52.7%
unsub-neg52.7%
*-commutative52.7%
Simplified52.7%
Taylor expanded in b around inf 50.6%
if -6.0000000000000003e-94 < b Initial program 98.2%
Taylor expanded in y around 0 77.3%
div-exp70.9%
exp-to-pow71.5%
sub-neg71.5%
metadata-eval71.5%
Simplified71.5%
Taylor expanded in t around 0 53.1%
associate-*r*47.9%
*-commutative47.9%
*-commutative47.9%
Simplified47.9%
Taylor expanded in b around 0 39.1%
distribute-lft-out39.7%
*-commutative39.7%
Simplified39.7%
Final simplification43.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.2e-44) (* (/ x (- a)) (/ b 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.2e-44) {
tmp = (x / -a) * (b / 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.2d-44)) then
tmp = (x / -a) * (b / 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.2e-44) {
tmp = (x / -a) * (b / y);
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.2e-44: tmp = (x / -a) * (b / y) else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.2e-44) tmp = Float64(Float64(x / Float64(-a)) * Float64(b / 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.2e-44) tmp = (x / -a) * (b / y); else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.2e-44], N[(N[(x / (-a)), $MachinePrecision] * N[(b / 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 -1.2 \cdot 10^{-44}:\\
\;\;\;\;\frac{x}{-a} \cdot \frac{b}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.20000000000000004e-44Initial program 99.9%
Taylor expanded in y around 0 86.3%
div-exp76.5%
exp-to-pow76.6%
sub-neg76.6%
metadata-eval76.6%
Simplified76.6%
Taylor expanded in t around 0 80.9%
associate-/r*72.6%
Simplified72.6%
Taylor expanded in b around 0 52.9%
+-commutative52.9%
mul-1-neg52.9%
unsub-neg52.9%
*-commutative52.9%
Simplified52.9%
Taylor expanded in b around inf 47.6%
associate-*r/47.6%
mul-1-neg47.6%
*-commutative47.6%
distribute-rgt-neg-in47.6%
times-frac51.6%
Simplified51.6%
if -1.20000000000000004e-44 < b Initial program 98.2%
Taylor expanded in y around 0 78.1%
div-exp72.2%
exp-to-pow72.8%
sub-neg72.8%
metadata-eval72.8%
Simplified72.8%
Taylor expanded in t around 0 52.5%
associate-*r*47.6%
*-commutative47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in b around 0 39.3%
distribute-lft-out39.9%
*-commutative39.9%
Simplified39.9%
Final simplification43.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b -0.000104) (* (/ x (- a)) (/ b y)) (/ (/ x a) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.000104) {
tmp = (x / -a) * (b / y);
} 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 (b <= (-0.000104d0)) then
tmp = (x / -a) * (b / y)
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 (b <= -0.000104) {
tmp = (x / -a) * (b / y);
} else {
tmp = (x / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -0.000104: tmp = (x / -a) * (b / y) else: tmp = (x / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -0.000104) tmp = Float64(Float64(x / Float64(-a)) * Float64(b / y)); 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 (b <= -0.000104) tmp = (x / -a) * (b / y); else tmp = (x / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -0.000104], N[(N[(x / (-a)), $MachinePrecision] * N[(b / y), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.000104:\\
\;\;\;\;\frac{x}{-a} \cdot \frac{b}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\end{array}
\end{array}
if b < -1.03999999999999994e-4Initial program 100.0%
Taylor expanded in y around 0 86.2%
div-exp75.2%
exp-to-pow75.2%
sub-neg75.2%
metadata-eval75.2%
Simplified75.2%
Taylor expanded in t around 0 81.6%
associate-/r*72.2%
Simplified72.2%
Taylor expanded in b around 0 50.0%
+-commutative50.0%
mul-1-neg50.0%
unsub-neg50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in b around inf 47.0%
associate-*r/47.0%
mul-1-neg47.0%
*-commutative47.0%
distribute-rgt-neg-in47.0%
times-frac50.0%
Simplified50.0%
if -1.03999999999999994e-4 < b Initial program 98.2%
Taylor expanded in y around 0 78.5%
div-exp72.8%
exp-to-pow73.5%
sub-neg73.5%
metadata-eval73.5%
Simplified73.5%
Taylor expanded in t around 0 54.4%
associate-/r*51.3%
Simplified51.3%
Taylor expanded in b around 0 35.3%
Final simplification39.0%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.8e+64) (/ (* x (- 1.0 b)) y) (/ (/ x a) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.8e+64) {
tmp = (x * (1.0 - b)) / y;
} 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 (b <= (-2.8d+64)) then
tmp = (x * (1.0d0 - b)) / y
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 (b <= -2.8e+64) {
tmp = (x * (1.0 - b)) / y;
} else {
tmp = (x / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.8e+64: tmp = (x * (1.0 - b)) / y else: tmp = (x / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.8e+64) tmp = Float64(Float64(x * Float64(1.0 - b)) / y); 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 (b <= -2.8e+64) tmp = (x * (1.0 - b)) / y; else tmp = (x / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.8e+64], N[(N[(x * N[(1.0 - b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.8 \cdot 10^{+64}:\\
\;\;\;\;\frac{x \cdot \left(1 - b\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\end{array}
\end{array}
if b < -2.80000000000000024e64Initial program 100.0%
Taylor expanded in t around 0 98.1%
+-commutative98.1%
mul-1-neg98.1%
unsub-neg98.1%
Simplified98.1%
Taylor expanded in b around inf 83.0%
neg-mul-183.0%
Simplified83.0%
Taylor expanded in b around 0 40.8%
*-lft-identity40.8%
associate-*r*40.8%
mul-1-neg40.8%
distribute-rgt-out40.8%
unsub-neg40.8%
Simplified40.8%
if -2.80000000000000024e64 < b Initial program 98.4%
Taylor expanded in y around 0 78.8%
div-exp73.0%
exp-to-pow73.6%
sub-neg73.6%
metadata-eval73.6%
Simplified73.6%
Taylor expanded in t around 0 55.6%
associate-/r*52.2%
Simplified52.2%
Taylor expanded in b around 0 35.3%
(FPCore (x y z t a b) :precision binary64 (if (<= a 5e-21) (/ (/ x a) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 5e-21) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (a <= 5d-21) then
tmp = (x / a) / y
else
tmp = x / (y * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 5e-21) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 5e-21: tmp = (x / a) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 5e-21) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(y * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= 5e-21) tmp = (x / a) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 5e-21], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 5 \cdot 10^{-21}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if a < 4.99999999999999973e-21Initial program 99.5%
Taylor expanded in y around 0 82.2%
div-exp76.1%
exp-to-pow76.6%
sub-neg76.6%
metadata-eval76.6%
Simplified76.6%
Taylor expanded in t around 0 59.5%
associate-/r*54.8%
Simplified54.8%
Taylor expanded in b around 0 29.8%
if 4.99999999999999973e-21 < a Initial program 97.8%
Taylor expanded in y around 0 78.5%
div-exp70.7%
exp-to-pow71.2%
sub-neg71.2%
metadata-eval71.2%
Simplified71.2%
Taylor expanded in t around 0 64.5%
associate-*r*59.7%
*-commutative59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in b around 0 40.4%
*-commutative40.4%
Simplified40.4%
(FPCore (x y z t a b) :precision binary64 (/ x (* y a)))
double code(double x, double y, double z, double t, double a, double b) {
return x / (y * a);
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / (y * a)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (y * a);
}
def code(x, y, z, t, a, b): return x / (y * a)
function code(x, y, z, t, a, b) return Float64(x / Float64(y * a)) end
function tmp = code(x, y, z, t, a, b) tmp = x / (y * a); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y \cdot a}
\end{array}
Initial program 98.7%
Taylor expanded in y around 0 80.4%
div-exp73.4%
exp-to-pow73.9%
sub-neg73.9%
metadata-eval73.9%
Simplified73.9%
Taylor expanded in t around 0 59.8%
associate-*r*53.9%
*-commutative53.9%
*-commutative53.9%
Simplified53.9%
Taylor expanded in b around 0 33.2%
*-commutative33.2%
Simplified33.2%
(FPCore (x y z t a b) :precision binary64 (/ x y))
double code(double x, double y, double z, double t, double a, double b) {
return x / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / y;
}
def code(x, y, z, t, a, b): return x / y
function code(x, y, z, t, a, b) return Float64(x / y) end
function tmp = code(x, y, z, t, a, b) tmp = x / y; end
code[x_, y_, z_, t_, a_, b_] := N[(x / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y}
\end{array}
Initial program 98.7%
Taylor expanded in t around 0 81.5%
+-commutative81.5%
mul-1-neg81.5%
unsub-neg81.5%
Simplified81.5%
Taylor expanded in b around inf 47.2%
neg-mul-147.2%
Simplified47.2%
Taylor expanded in b around 0 14.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 2024186
(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))