
(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 22 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)) (* (log a) (+ t -1.0))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + (log(a) * (t + -1.0))) - 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)) + (log(a) * (t + (-1.0d0)))) - 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)) + (Math.log(a) * (t + -1.0))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + (math.log(a) * (t + -1.0))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(log(a) * Float64(t + -1.0))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + (log(a) * (t + -1.0))) - 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[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \log a \cdot \left(t + -1\right)\right) - b}}{y}
\end{array}
Initial program 98.7%
Final simplification98.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -6.2e+20) (not (<= y 1.22e+50))) (/ (* x (exp (- (- (* y (log z)) (log a)) b))) y) (/ (* x (exp (- (* (log a) (+ t -1.0)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -6.2e+20) || !(y <= 1.22e+50)) {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
} else {
tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-6.2d+20)) .or. (.not. (y <= 1.22d+50))) then
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y
else
tmp = (x * exp(((log(a) * (t + (-1.0d0))) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -6.2e+20) || !(y <= 1.22e+50)) {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
} else {
tmp = (x * Math.exp(((Math.log(a) * (t + -1.0)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -6.2e+20) or not (y <= 1.22e+50): tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y else: tmp = (x * math.exp(((math.log(a) * (t + -1.0)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -6.2e+20) || !(y <= 1.22e+50)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * Float64(t + -1.0)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -6.2e+20) || ~((y <= 1.22e+50))) tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; else tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -6.2e+20], N[Not[LessEqual[y, 1.22e+50]], $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[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.2 \cdot 10^{+20} \lor \neg \left(y \leq 1.22 \cdot 10^{+50}\right):\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t + -1\right) - b}}{y}\\
\end{array}
\end{array}
if y < -6.2e20 or 1.21999999999999993e50 < y Initial program 100.0%
Taylor expanded in t around 0 95.3%
+-commutative95.3%
mul-1-neg95.3%
unsub-neg95.3%
Simplified95.3%
if -6.2e20 < y < 1.21999999999999993e50Initial program 97.4%
Taylor expanded in y around 0 96.0%
Final simplification95.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (/ (pow z y) a)) y)) (t_2 (pow a (+ t -1.0))))
(if (<= y -3.2e+16)
t_1
(if (<= y -8.8e-108)
(/ (/ x (* a (exp b))) y)
(if (<= y -7.5e-166)
(/ (* x t_2) y)
(if (<= y 3.8e+55) (/ (* x (/ t_2 (exp b))) y) t_1))))))
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 = pow(a, (t + -1.0));
double tmp;
if (y <= -3.2e+16) {
tmp = t_1;
} else if (y <= -8.8e-108) {
tmp = (x / (a * exp(b))) / y;
} else if (y <= -7.5e-166) {
tmp = (x * t_2) / y;
} else if (y <= 3.8e+55) {
tmp = (x * (t_2 / 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) :: t_2
real(8) :: tmp
t_1 = (x * ((z ** y) / a)) / y
t_2 = a ** (t + (-1.0d0))
if (y <= (-3.2d+16)) then
tmp = t_1
else if (y <= (-8.8d-108)) then
tmp = (x / (a * exp(b))) / y
else if (y <= (-7.5d-166)) then
tmp = (x * t_2) / y
else if (y <= 3.8d+55) then
tmp = (x * (t_2 / 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(z, y) / a)) / y;
double t_2 = Math.pow(a, (t + -1.0));
double tmp;
if (y <= -3.2e+16) {
tmp = t_1;
} else if (y <= -8.8e-108) {
tmp = (x / (a * Math.exp(b))) / y;
} else if (y <= -7.5e-166) {
tmp = (x * t_2) / y;
} else if (y <= 3.8e+55) {
tmp = (x * (t_2 / Math.exp(b))) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * (math.pow(z, y) / a)) / y t_2 = math.pow(a, (t + -1.0)) tmp = 0 if y <= -3.2e+16: tmp = t_1 elif y <= -8.8e-108: tmp = (x / (a * math.exp(b))) / y elif y <= -7.5e-166: tmp = (x * t_2) / y elif y <= 3.8e+55: tmp = (x * (t_2 / math.exp(b))) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * Float64((z ^ y) / a)) / y) t_2 = a ^ Float64(t + -1.0) tmp = 0.0 if (y <= -3.2e+16) tmp = t_1; elseif (y <= -8.8e-108) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); elseif (y <= -7.5e-166) tmp = Float64(Float64(x * t_2) / y); elseif (y <= 3.8e+55) tmp = Float64(Float64(x * Float64(t_2 / exp(b))) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * ((z ^ y) / a)) / y; t_2 = a ^ (t + -1.0); tmp = 0.0; if (y <= -3.2e+16) tmp = t_1; elseif (y <= -8.8e-108) tmp = (x / (a * exp(b))) / y; elseif (y <= -7.5e-166) tmp = (x * t_2) / y; elseif (y <= 3.8e+55) tmp = (x * (t_2 / 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[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y, -3.2e+16], t$95$1, If[LessEqual[y, -8.8e-108], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, -7.5e-166], N[(N[(x * t$95$2), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 3.8e+55], N[(N[(x * N[(t$95$2 / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
t_2 := {a}^{\left(t + -1\right)}\\
\mathbf{if}\;y \leq -3.2 \cdot 10^{+16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -8.8 \cdot 10^{-108}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{-166}:\\
\;\;\;\;\frac{x \cdot t\_2}{y}\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{+55}:\\
\;\;\;\;\frac{x \cdot \frac{t\_2}{e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.2e16 or 3.8e55 < y Initial program 100.0%
Taylor expanded in t around 0 95.2%
+-commutative95.2%
mul-1-neg95.2%
unsub-neg95.2%
Simplified95.2%
Taylor expanded in b around 0 86.3%
div-exp86.3%
*-commutative86.3%
exp-to-pow86.3%
rem-exp-log86.3%
Simplified86.3%
if -3.2e16 < y < -8.8000000000000005e-108Initial program 98.7%
Taylor expanded in t around 0 82.4%
+-commutative82.4%
mul-1-neg82.4%
unsub-neg82.4%
Simplified82.4%
add-sqr-sqrt52.1%
pow252.1%
*-commutative52.1%
exp-diff39.0%
div-exp39.0%
*-commutative39.0%
pow-to-exp39.0%
add-exp-log39.5%
Applied egg-rr39.5%
Taylor expanded in y around 0 83.6%
if -8.8000000000000005e-108 < y < -7.49999999999999947e-166Initial program 97.8%
Taylor expanded in y around 0 97.8%
Taylor expanded in b around 0 88.8%
exp-to-pow91.1%
sub-neg91.1%
metadata-eval91.1%
+-commutative91.1%
Simplified91.1%
if -7.49999999999999947e-166 < y < 3.8e55Initial program 97.2%
Taylor expanded in y around 0 94.3%
div-exp85.3%
exp-to-pow86.2%
sub-neg86.2%
metadata-eval86.2%
Simplified86.2%
Final simplification86.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -3.6e+57) (not (<= y 2.02e+62))) (/ (* x (/ (pow z y) a)) y) (/ (* x (exp (- (* (log a) (+ t -1.0)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -3.6e+57) || !(y <= 2.02e+62)) {
tmp = (x * (pow(z, y) / a)) / y;
} else {
tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-3.6d+57)) .or. (.not. (y <= 2.02d+62))) then
tmp = (x * ((z ** y) / a)) / y
else
tmp = (x * exp(((log(a) * (t + (-1.0d0))) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -3.6e+57) || !(y <= 2.02e+62)) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else {
tmp = (x * Math.exp(((Math.log(a) * (t + -1.0)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -3.6e+57) or not (y <= 2.02e+62): tmp = (x * (math.pow(z, y) / a)) / y else: tmp = (x * math.exp(((math.log(a) * (t + -1.0)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -3.6e+57) || !(y <= 2.02e+62)) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * Float64(t + -1.0)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -3.6e+57) || ~((y <= 2.02e+62))) tmp = (x * ((z ^ y) / a)) / y; else tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -3.6e+57], N[Not[LessEqual[y, 2.02e+62]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.6 \cdot 10^{+57} \lor \neg \left(y \leq 2.02 \cdot 10^{+62}\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t + -1\right) - b}}{y}\\
\end{array}
\end{array}
if y < -3.6000000000000002e57 or 2.0200000000000001e62 < y Initial program 100.0%
Taylor expanded in t around 0 95.6%
+-commutative95.6%
mul-1-neg95.6%
unsub-neg95.6%
Simplified95.6%
Taylor expanded in b around 0 88.7%
div-exp88.7%
*-commutative88.7%
exp-to-pow88.7%
rem-exp-log88.7%
Simplified88.7%
if -3.6000000000000002e57 < y < 2.0200000000000001e62Initial program 97.6%
Taylor expanded in y around 0 93.6%
Final simplification91.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1.15e+75) (not (<= t 1.48e+171))) (/ (* x (pow a (+ t -1.0))) y) (* x (/ (/ (pow z y) a) (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.15e+75) || !(t <= 1.48e+171)) {
tmp = (x * pow(a, (t + -1.0))) / y;
} else {
tmp = x * ((pow(z, y) / a) / (y * exp(b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-1.15d+75)) .or. (.not. (t <= 1.48d+171))) then
tmp = (x * (a ** (t + (-1.0d0)))) / y
else
tmp = x * (((z ** y) / a) / (y * exp(b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.15e+75) || !(t <= 1.48e+171)) {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
} else {
tmp = x * ((Math.pow(z, y) / a) / (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.15e+75) or not (t <= 1.48e+171): tmp = (x * math.pow(a, (t + -1.0))) / y else: tmp = x * ((math.pow(z, y) / a) / (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.15e+75) || !(t <= 1.48e+171)) tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); else tmp = Float64(x * Float64(Float64((z ^ y) / a) / Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.15e+75) || ~((t <= 1.48e+171))) tmp = (x * (a ^ (t + -1.0))) / y; else tmp = x * (((z ^ y) / a) / (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.15e+75], N[Not[LessEqual[t, 1.48e+171]], $MachinePrecision]], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.15 \cdot 10^{+75} \lor \neg \left(t \leq 1.48 \cdot 10^{+171}\right):\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y \cdot e^{b}}\\
\end{array}
\end{array}
if t < -1.1499999999999999e75 or 1.47999999999999995e171 < t Initial program 100.0%
Taylor expanded in y around 0 93.3%
Taylor expanded in b around 0 87.9%
exp-to-pow87.9%
sub-neg87.9%
metadata-eval87.9%
+-commutative87.9%
Simplified87.9%
if -1.1499999999999999e75 < t < 1.47999999999999995e171Initial program 98.2%
associate-/l*97.7%
associate--l+97.7%
exp-sum78.0%
associate-/l*72.5%
*-commutative72.5%
exp-to-pow72.5%
exp-diff67.1%
*-commutative67.1%
exp-to-pow67.8%
sub-neg67.8%
metadata-eval67.8%
Simplified67.8%
Taylor expanded in t around 0 72.9%
associate-/r*79.4%
Simplified79.4%
Final simplification81.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (/ (pow z y) a)) y)))
(if (<= y -3.1e+17)
t_1
(if (<= y -4.1e-107)
(/ (/ x (* a (exp b))) y)
(if (<= y -3.8e-262)
(/ (* x (pow a (+ t -1.0))) y)
(if (<= y 1.32e+33) (/ x (* a (* y (exp b)))) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * (pow(z, y) / a)) / y;
double tmp;
if (y <= -3.1e+17) {
tmp = t_1;
} else if (y <= -4.1e-107) {
tmp = (x / (a * exp(b))) / y;
} else if (y <= -3.8e-262) {
tmp = (x * pow(a, (t + -1.0))) / y;
} else if (y <= 1.32e+33) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x * ((z ** y) / a)) / y
if (y <= (-3.1d+17)) then
tmp = t_1
else if (y <= (-4.1d-107)) then
tmp = (x / (a * exp(b))) / y
else if (y <= (-3.8d-262)) then
tmp = (x * (a ** (t + (-1.0d0)))) / y
else if (y <= 1.32d+33) then
tmp = x / (a * (y * exp(b)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * (Math.pow(z, y) / a)) / y;
double tmp;
if (y <= -3.1e+17) {
tmp = t_1;
} else if (y <= -4.1e-107) {
tmp = (x / (a * Math.exp(b))) / y;
} else if (y <= -3.8e-262) {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
} else if (y <= 1.32e+33) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * (math.pow(z, y) / a)) / y tmp = 0 if y <= -3.1e+17: tmp = t_1 elif y <= -4.1e-107: tmp = (x / (a * math.exp(b))) / y elif y <= -3.8e-262: tmp = (x * math.pow(a, (t + -1.0))) / y elif y <= 1.32e+33: tmp = x / (a * (y * math.exp(b))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * Float64((z ^ y) / a)) / y) tmp = 0.0 if (y <= -3.1e+17) tmp = t_1; elseif (y <= -4.1e-107) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); elseif (y <= -3.8e-262) tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); elseif (y <= 1.32e+33) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * ((z ^ y) / a)) / y; tmp = 0.0; if (y <= -3.1e+17) tmp = t_1; elseif (y <= -4.1e-107) tmp = (x / (a * exp(b))) / y; elseif (y <= -3.8e-262) tmp = (x * (a ^ (t + -1.0))) / y; elseif (y <= 1.32e+33) tmp = x / (a * (y * exp(b))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -3.1e+17], t$95$1, If[LessEqual[y, -4.1e-107], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, -3.8e-262], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 1.32e+33], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -3.1 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -4.1 \cdot 10^{-107}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{elif}\;y \leq -3.8 \cdot 10^{-262}:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{elif}\;y \leq 1.32 \cdot 10^{+33}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.1e17 or 1.32000000000000008e33 < y Initial program 100.0%
Taylor expanded in t around 0 93.2%
+-commutative93.2%
mul-1-neg93.2%
unsub-neg93.2%
Simplified93.2%
Taylor expanded in b around 0 84.1%
div-exp84.1%
*-commutative84.1%
exp-to-pow84.1%
rem-exp-log84.1%
Simplified84.1%
if -3.1e17 < y < -4.0999999999999999e-107Initial program 98.7%
Taylor expanded in t around 0 82.4%
+-commutative82.4%
mul-1-neg82.4%
unsub-neg82.4%
Simplified82.4%
add-sqr-sqrt52.1%
pow252.1%
*-commutative52.1%
exp-diff39.0%
div-exp39.0%
*-commutative39.0%
pow-to-exp39.0%
add-exp-log39.5%
Applied egg-rr39.5%
Taylor expanded in y around 0 83.6%
if -4.0999999999999999e-107 < y < -3.8000000000000002e-262Initial program 98.8%
Taylor expanded in y around 0 98.8%
Taylor expanded in b around 0 83.2%
exp-to-pow84.3%
sub-neg84.3%
metadata-eval84.3%
+-commutative84.3%
Simplified84.3%
if -3.8000000000000002e-262 < y < 1.32000000000000008e33Initial program 96.2%
associate-/l*97.4%
associate--l+97.4%
exp-sum91.8%
associate-/l*91.8%
*-commutative91.8%
exp-to-pow91.8%
exp-diff83.5%
*-commutative83.5%
exp-to-pow84.7%
sub-neg84.7%
metadata-eval84.7%
Simplified84.7%
Taylor expanded in t around 0 78.4%
associate-/r*78.3%
Simplified78.3%
Taylor expanded in y around 0 79.8%
Final simplification82.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -7.8e+54) (not (<= y 1.32e+33))) (/ (* x (/ (pow z y) a)) y) (/ x (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -7.8e+54) || !(y <= 1.32e+33)) {
tmp = (x * (pow(z, y) / a)) / y;
} else {
tmp = x / (a * (y * exp(b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-7.8d+54)) .or. (.not. (y <= 1.32d+33))) then
tmp = (x * ((z ** y) / a)) / y
else
tmp = x / (a * (y * exp(b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -7.8e+54) || !(y <= 1.32e+33)) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else {
tmp = x / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -7.8e+54) or not (y <= 1.32e+33): tmp = (x * (math.pow(z, y) / a)) / y else: tmp = x / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -7.8e+54) || !(y <= 1.32e+33)) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = Float64(x / Float64(a * Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -7.8e+54) || ~((y <= 1.32e+33))) tmp = (x * ((z ^ y) / a)) / y; else tmp = x / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -7.8e+54], N[Not[LessEqual[y, 1.32e+33]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.8 \cdot 10^{+54} \lor \neg \left(y \leq 1.32 \cdot 10^{+33}\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if y < -7.8000000000000005e54 or 1.32000000000000008e33 < y Initial program 100.0%
Taylor expanded in t around 0 93.6%
+-commutative93.6%
mul-1-neg93.6%
unsub-neg93.6%
Simplified93.6%
Taylor expanded in b around 0 85.6%
div-exp85.6%
*-commutative85.6%
exp-to-pow85.6%
rem-exp-log85.6%
Simplified85.6%
if -7.8000000000000005e54 < y < 1.32000000000000008e33Initial program 97.5%
associate-/l*96.8%
associate--l+96.8%
exp-sum88.5%
associate-/l*88.5%
*-commutative88.5%
exp-to-pow88.5%
exp-diff74.3%
*-commutative74.3%
exp-to-pow75.3%
sub-neg75.3%
metadata-eval75.3%
Simplified75.3%
Taylor expanded in t around 0 71.3%
associate-/r*71.3%
Simplified71.3%
Taylor expanded in y around 0 75.2%
Final simplification80.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -2.35e-94)
(/ x (* a (* y (exp b))))
(if (<= b 3.8e-87)
(/ x (* b (* a (+ y (/ y b)))))
(/ (/ x (* a (exp b))) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.35e-94) {
tmp = x / (a * (y * exp(b)));
} else if (b <= 3.8e-87) {
tmp = x / (b * (a * (y + (y / b))));
} 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 (b <= (-2.35d-94)) then
tmp = x / (a * (y * exp(b)))
else if (b <= 3.8d-87) then
tmp = x / (b * (a * (y + (y / b))))
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 (b <= -2.35e-94) {
tmp = x / (a * (y * Math.exp(b)));
} else if (b <= 3.8e-87) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = (x / (a * Math.exp(b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.35e-94: tmp = x / (a * (y * math.exp(b))) elif b <= 3.8e-87: tmp = x / (b * (a * (y + (y / b)))) else: tmp = (x / (a * math.exp(b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.35e-94) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); elseif (b <= 3.8e-87) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(Float64(x / Float64(a * exp(b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.35e-94) tmp = x / (a * (y * exp(b))); elseif (b <= 3.8e-87) tmp = x / (b * (a * (y + (y / b)))); else tmp = (x / (a * exp(b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.35e-94], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.8e-87], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.35 \cdot 10^{-94}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{-87}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\end{array}
\end{array}
if b < -2.35000000000000002e-94Initial program 99.6%
associate-/l*99.6%
associate--l+99.6%
exp-sum73.6%
associate-/l*72.3%
*-commutative72.3%
exp-to-pow72.3%
exp-diff63.2%
*-commutative63.2%
exp-to-pow63.6%
sub-neg63.6%
metadata-eval63.6%
Simplified63.6%
Taylor expanded in t around 0 66.4%
associate-/r*67.8%
Simplified67.8%
Taylor expanded in y around 0 79.7%
if -2.35000000000000002e-94 < b < 3.8e-87Initial program 98.2%
associate-/l*98.1%
associate--l+98.1%
exp-sum83.3%
associate-/l*76.5%
*-commutative76.5%
exp-to-pow76.5%
exp-diff76.5%
*-commutative76.5%
exp-to-pow77.3%
sub-neg77.3%
metadata-eval77.3%
Simplified77.3%
Taylor expanded in t around 0 68.7%
associate-/r*78.9%
Simplified78.9%
Taylor expanded in y around 0 37.6%
associate-*r*37.6%
*-commutative37.6%
Simplified37.6%
Taylor expanded in b around 0 35.3%
distribute-lft-out37.6%
*-commutative37.6%
Simplified37.6%
Taylor expanded in b around inf 43.5%
associate-/l*46.6%
distribute-lft-out48.9%
Simplified48.9%
if 3.8e-87 < b Initial program 98.4%
Taylor expanded in t around 0 89.7%
+-commutative89.7%
mul-1-neg89.7%
unsub-neg89.7%
Simplified89.7%
add-sqr-sqrt71.4%
pow271.4%
*-commutative71.4%
exp-diff57.1%
div-exp57.1%
*-commutative57.1%
pow-to-exp57.1%
add-exp-log57.3%
Applied egg-rr57.3%
Taylor expanded in y around 0 65.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.4) (not (<= b 1.4e+19))) (/ (/ x (exp b)) y) (/ x (* b (* a (+ y (/ y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.4) || !(b <= 1.4e+19)) {
tmp = (x / exp(b)) / y;
} else {
tmp = x / (b * (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.4d0)) .or. (.not. (b <= 1.4d+19))) then
tmp = (x / exp(b)) / y
else
tmp = x / (b * (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.4) || !(b <= 1.4e+19)) {
tmp = (x / Math.exp(b)) / y;
} else {
tmp = x / (b * (a * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.4) or not (b <= 1.4e+19): tmp = (x / math.exp(b)) / y else: tmp = x / (b * (a * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.4) || !(b <= 1.4e+19)) tmp = Float64(Float64(x / exp(b)) / y); else tmp = Float64(x / Float64(b * 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.4) || ~((b <= 1.4e+19))) tmp = (x / exp(b)) / y; else tmp = x / (b * (a * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.4], N[Not[LessEqual[b, 1.4e+19]], $MachinePrecision]], N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.4 \lor \neg \left(b \leq 1.4 \cdot 10^{+19}\right):\\
\;\;\;\;\frac{\frac{x}{e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < -1.3999999999999999 or 1.4e19 < b Initial program 100.0%
Taylor expanded in y around 0 85.8%
Taylor expanded in b around inf 80.3%
neg-mul-180.3%
Simplified80.3%
Taylor expanded in b around -inf 80.3%
rem-exp-log44.6%
mul-1-neg44.6%
exp-sum44.6%
sub-neg44.6%
exp-diff44.6%
rem-exp-log80.3%
Simplified80.3%
if -1.3999999999999999 < b < 1.4e19Initial program 97.5%
associate-/l*96.8%
associate--l+96.8%
exp-sum83.1%
associate-/l*75.6%
*-commutative75.6%
exp-to-pow75.6%
exp-diff73.3%
*-commutative73.3%
exp-to-pow74.3%
sub-neg74.3%
metadata-eval74.3%
Simplified74.3%
Taylor expanded in t around 0 66.5%
associate-/r*77.1%
Simplified77.1%
Taylor expanded in y around 0 39.3%
associate-*r*39.3%
*-commutative39.3%
Simplified39.3%
Taylor expanded in b around 0 36.6%
distribute-lft-out38.9%
*-commutative38.9%
Simplified38.9%
Taylor expanded in b around inf 39.7%
associate-/l*41.8%
distribute-lft-out47.1%
Simplified47.1%
Final simplification63.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b -4e-94) (/ x (* a (* y (exp b)))) (if (<= b 1.4e+19) (/ x (* b (* a (+ y (/ y b))))) (/ (/ x (exp b)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4e-94) {
tmp = x / (a * (y * exp(b)));
} else if (b <= 1.4e+19) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = (x / exp(b)) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-4d-94)) then
tmp = x / (a * (y * exp(b)))
else if (b <= 1.4d+19) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = (x / exp(b)) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4e-94) {
tmp = x / (a * (y * Math.exp(b)));
} else if (b <= 1.4e+19) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = (x / Math.exp(b)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -4e-94: tmp = x / (a * (y * math.exp(b))) elif b <= 1.4e+19: tmp = x / (b * (a * (y + (y / b)))) else: tmp = (x / math.exp(b)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -4e-94) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); elseif (b <= 1.4e+19) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(Float64(x / exp(b)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -4e-94) tmp = x / (a * (y * exp(b))); elseif (b <= 1.4e+19) tmp = x / (b * (a * (y + (y / b)))); else tmp = (x / exp(b)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -4e-94], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.4e+19], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4 \cdot 10^{-94}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{+19}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{e^{b}}}{y}\\
\end{array}
\end{array}
if b < -3.9999999999999998e-94Initial program 99.6%
associate-/l*99.6%
associate--l+99.6%
exp-sum73.6%
associate-/l*72.3%
*-commutative72.3%
exp-to-pow72.3%
exp-diff63.2%
*-commutative63.2%
exp-to-pow63.6%
sub-neg63.6%
metadata-eval63.6%
Simplified63.6%
Taylor expanded in t around 0 66.4%
associate-/r*67.8%
Simplified67.8%
Taylor expanded in y around 0 79.7%
if -3.9999999999999998e-94 < b < 1.4e19Initial program 97.4%
associate-/l*96.7%
associate--l+96.7%
exp-sum84.0%
associate-/l*76.3%
*-commutative76.3%
exp-to-pow76.3%
exp-diff73.8%
*-commutative73.8%
exp-to-pow74.7%
sub-neg74.7%
metadata-eval74.7%
Simplified74.7%
Taylor expanded in t around 0 67.5%
associate-/r*78.5%
Simplified78.5%
Taylor expanded in y around 0 36.2%
associate-*r*36.2%
*-commutative36.2%
Simplified36.2%
Taylor expanded in b around 0 34.5%
distribute-lft-out36.3%
*-commutative36.3%
Simplified36.3%
Taylor expanded in b around inf 41.4%
associate-/l*43.8%
distribute-lft-out45.5%
Simplified45.5%
if 1.4e19 < b Initial program 100.0%
Taylor expanded in y around 0 82.2%
Taylor expanded in b around inf 77.4%
neg-mul-177.4%
Simplified77.4%
Taylor expanded in b around -inf 77.4%
rem-exp-log41.2%
mul-1-neg41.2%
exp-sum41.2%
sub-neg41.2%
exp-diff41.2%
rem-exp-log77.4%
Simplified77.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -0.95)
(/ (* x (+ 1.0 (* b (+ -1.0 (* b (+ 0.5 (* b -0.16666666666666666))))))) y)
(if (<= b 4e-63)
(/ x (* b (* a (+ y (/ y b)))))
(/
x
(+
(* y a)
(*
b
(+
(* y a)
(* b (+ (* 0.16666666666666666 (* a (* y b))) (* 0.5 (* y a)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.95) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else if (b <= 4e-63) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / ((y * a) + (b * ((y * a) + (b * ((0.16666666666666666 * (a * (y * b))) + (0.5 * (y * a)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-0.95d0)) then
tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * (0.5d0 + (b * (-0.16666666666666666d0)))))))) / y
else if (b <= 4d-63) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / ((y * a) + (b * ((y * a) + (b * ((0.16666666666666666d0 * (a * (y * b))) + (0.5d0 * (y * a)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.95) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else if (b <= 4e-63) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / ((y * a) + (b * ((y * a) + (b * ((0.16666666666666666 * (a * (y * b))) + (0.5 * (y * a)))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -0.95: tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y elif b <= 4e-63: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / ((y * a) + (b * ((y * a) + (b * ((0.16666666666666666 * (a * (y * b))) + (0.5 * (y * a))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -0.95) 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-63) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(Float64(y * a) + Float64(b * Float64(Float64(y * a) + Float64(b * Float64(Float64(0.16666666666666666 * Float64(a * Float64(y * b))) + Float64(0.5 * Float64(y * a)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -0.95) tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y; elseif (b <= 4e-63) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / ((y * a) + (b * ((y * a) + (b * ((0.16666666666666666 * (a * (y * b))) + (0.5 * (y * a))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -0.95], 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-63], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(N[(y * a), $MachinePrecision] + N[(b * N[(N[(y * a), $MachinePrecision] + N[(b * N[(N[(0.16666666666666666 * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.5 * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.95:\\
\;\;\;\;\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^{-63}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a + b \cdot \left(y \cdot a + b \cdot \left(0.16666666666666666 \cdot \left(a \cdot \left(y \cdot b\right)\right) + 0.5 \cdot \left(y \cdot a\right)\right)\right)}\\
\end{array}
\end{array}
if b < -0.94999999999999996Initial program 100.0%
Taylor expanded in y around 0 89.2%
Taylor expanded in b around inf 83.0%
neg-mul-183.0%
Simplified83.0%
Taylor expanded in b around 0 73.3%
Taylor expanded in x around 0 76.3%
if -0.94999999999999996 < b < 4.00000000000000027e-63Initial program 98.0%
associate-/l*96.4%
associate--l+96.4%
exp-sum81.9%
associate-/l*75.5%
*-commutative75.5%
exp-to-pow75.5%
exp-diff75.5%
*-commutative75.5%
exp-to-pow76.5%
sub-neg76.5%
metadata-eval76.5%
Simplified76.5%
Taylor expanded in t around 0 66.2%
associate-/r*76.2%
Simplified76.2%
Taylor expanded in y around 0 40.5%
associate-*r*40.5%
*-commutative40.5%
Simplified40.5%
Taylor expanded in b around 0 37.2%
distribute-lft-out40.0%
*-commutative40.0%
Simplified40.0%
Taylor expanded in b around inf 40.9%
associate-/l*43.4%
distribute-lft-out49.8%
Simplified49.8%
if 4.00000000000000027e-63 < b Initial program 98.6%
associate-/l*99.6%
associate--l+99.6%
exp-sum74.3%
associate-/l*70.7%
*-commutative70.7%
exp-to-pow70.7%
exp-diff52.6%
*-commutative52.6%
exp-to-pow52.9%
sub-neg52.9%
metadata-eval52.9%
Simplified52.9%
Taylor expanded in t around 0 65.2%
associate-/r*68.7%
Simplified68.7%
Taylor expanded in y around 0 65.7%
associate-*r*56.1%
*-commutative56.1%
Simplified56.1%
Taylor expanded in b around 0 54.1%
Final simplification57.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -2.0)
(/ (* x (+ 1.0 (* b (+ -1.0 (* b (+ 0.5 (* b -0.16666666666666666))))))) y)
(if (<= b 1e-62)
(/ x (* b (* a (+ y (/ y b)))))
(/ x (+ (* y a) (* b (+ (* y a) (* 0.5 (* a (* y b))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.0) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else if (b <= 1e-62) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / ((y * a) + (b * ((y * a) + (0.5 * (a * (y * b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-2.0d0)) then
tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * (0.5d0 + (b * (-0.16666666666666666d0)))))))) / y
else if (b <= 1d-62) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / ((y * a) + (b * ((y * a) + (0.5d0 * (a * (y * b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.0) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else if (b <= 1e-62) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / ((y * a) + (b * ((y * a) + (0.5 * (a * (y * b))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.0: tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y elif b <= 1e-62: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / ((y * a) + (b * ((y * a) + (0.5 * (a * (y * b)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.0) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(-1.0 + Float64(b * Float64(0.5 + Float64(b * -0.16666666666666666))))))) / y); elseif (b <= 1e-62) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(Float64(y * a) + Float64(b * Float64(Float64(y * a) + Float64(0.5 * Float64(a * Float64(y * b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.0) tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y; elseif (b <= 1e-62) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / ((y * a) + (b * ((y * a) + (0.5 * (a * (y * b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.0], 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, 1e-62], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(N[(y * a), $MachinePrecision] + N[(b * N[(N[(y * a), $MachinePrecision] + N[(0.5 * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2:\\
\;\;\;\;\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 10^{-62}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a + b \cdot \left(y \cdot a + 0.5 \cdot \left(a \cdot \left(y \cdot b\right)\right)\right)}\\
\end{array}
\end{array}
if b < -2Initial program 100.0%
Taylor expanded in y around 0 89.2%
Taylor expanded in b around inf 83.0%
neg-mul-183.0%
Simplified83.0%
Taylor expanded in b around 0 73.3%
Taylor expanded in x around 0 76.3%
if -2 < b < 1e-62Initial program 98.0%
associate-/l*96.4%
associate--l+96.4%
exp-sum81.9%
associate-/l*75.5%
*-commutative75.5%
exp-to-pow75.5%
exp-diff75.5%
*-commutative75.5%
exp-to-pow76.5%
sub-neg76.5%
metadata-eval76.5%
Simplified76.5%
Taylor expanded in t around 0 66.2%
associate-/r*76.2%
Simplified76.2%
Taylor expanded in y around 0 40.5%
associate-*r*40.5%
*-commutative40.5%
Simplified40.5%
Taylor expanded in b around 0 37.2%
distribute-lft-out40.0%
*-commutative40.0%
Simplified40.0%
Taylor expanded in b around inf 40.9%
associate-/l*43.4%
distribute-lft-out49.8%
Simplified49.8%
if 1e-62 < b Initial program 98.6%
associate-/l*99.6%
associate--l+99.6%
exp-sum74.3%
associate-/l*70.7%
*-commutative70.7%
exp-to-pow70.7%
exp-diff52.6%
*-commutative52.6%
exp-to-pow52.9%
sub-neg52.9%
metadata-eval52.9%
Simplified52.9%
Taylor expanded in t around 0 65.2%
associate-/r*68.7%
Simplified68.7%
Taylor expanded in y around 0 65.7%
associate-*r*56.1%
*-commutative56.1%
Simplified56.1%
Taylor expanded in b around 0 45.2%
Final simplification54.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -6.6e+74)
(/ (- x (* x b)) y)
(if (<= b 1.7e-170)
(/ x (* y a))
(if (<= b 1.8e+43) (/ (/ x a) y) (/ x (* y (* a b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6.6e+74) {
tmp = (x - (x * b)) / y;
} else if (b <= 1.7e-170) {
tmp = x / (y * a);
} else if (b <= 1.8e+43) {
tmp = (x / a) / y;
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-6.6d+74)) then
tmp = (x - (x * b)) / y
else if (b <= 1.7d-170) then
tmp = x / (y * a)
else if (b <= 1.8d+43) then
tmp = (x / a) / y
else
tmp = x / (y * (a * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6.6e+74) {
tmp = (x - (x * b)) / y;
} else if (b <= 1.7e-170) {
tmp = x / (y * a);
} else if (b <= 1.8e+43) {
tmp = (x / a) / y;
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -6.6e+74: tmp = (x - (x * b)) / y elif b <= 1.7e-170: tmp = x / (y * a) elif b <= 1.8e+43: tmp = (x / a) / y else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -6.6e+74) tmp = Float64(Float64(x - Float64(x * b)) / y); elseif (b <= 1.7e-170) tmp = Float64(x / Float64(y * a)); elseif (b <= 1.8e+43) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -6.6e+74) tmp = (x - (x * b)) / y; elseif (b <= 1.7e-170) tmp = x / (y * a); elseif (b <= 1.8e+43) tmp = (x / a) / y; else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -6.6e+74], N[(N[(x - N[(x * b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 1.7e-170], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.8e+43], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.6 \cdot 10^{+74}:\\
\;\;\;\;\frac{x - x \cdot b}{y}\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{-170}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{+43}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -6.6000000000000004e74Initial program 100.0%
Taylor expanded in y around 0 94.1%
Taylor expanded in b around inf 90.2%
neg-mul-190.2%
Simplified90.2%
Taylor expanded in b around 0 51.9%
mul-1-neg51.9%
unsub-neg51.9%
*-commutative51.9%
Simplified51.9%
if -6.6000000000000004e74 < b < 1.70000000000000006e-170Initial program 98.1%
associate-/l*98.0%
associate--l+98.0%
exp-sum83.0%
associate-/l*78.0%
*-commutative78.0%
exp-to-pow78.0%
exp-diff77.0%
*-commutative77.0%
exp-to-pow78.0%
sub-neg78.0%
metadata-eval78.0%
Simplified78.0%
Taylor expanded in t around 0 67.5%
associate-/r*74.6%
Simplified74.6%
Taylor expanded in y around 0 46.1%
associate-*r*46.0%
*-commutative46.0%
Simplified46.0%
Taylor expanded in b around 0 42.6%
*-commutative42.6%
Simplified42.6%
if 1.70000000000000006e-170 < b < 1.80000000000000005e43Initial program 97.1%
Taylor expanded in y around 0 62.5%
Taylor expanded in b around 0 58.2%
exp-to-pow59.0%
sub-neg59.0%
metadata-eval59.0%
+-commutative59.0%
Simplified59.0%
Taylor expanded in t around 0 38.0%
if 1.80000000000000005e43 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum67.3%
associate-/l*67.3%
*-commutative67.3%
exp-to-pow67.3%
exp-diff45.5%
*-commutative45.5%
exp-to-pow45.5%
sub-neg45.5%
metadata-eval45.5%
Simplified45.5%
Taylor expanded in t around 0 61.9%
associate-/r*61.9%
Simplified61.9%
Taylor expanded in y around 0 76.7%
associate-*r*63.9%
*-commutative63.9%
Simplified63.9%
Taylor expanded in b around 0 34.7%
distribute-lft-out34.7%
*-commutative34.7%
Simplified34.7%
Taylor expanded in b around inf 34.7%
*-commutative34.7%
*-commutative34.7%
associate-*l*38.3%
Simplified38.3%
Final simplification42.6%
(FPCore (x y z t a b) :precision binary64 (if (<= b -0.84) (/ (* x (+ 1.0 (* b (+ -1.0 (* b (+ 0.5 (* b -0.16666666666666666))))))) y) (/ x (* b (* a (+ y (/ y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.84) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else {
tmp = x / (b * (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.84d0)) then
tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * (0.5d0 + (b * (-0.16666666666666666d0)))))))) / y
else
tmp = x / (b * (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.84) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else {
tmp = x / (b * (a * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -0.84: tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y else: tmp = x / (b * (a * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -0.84) 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(b * 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.84) tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y; else tmp = x / (b * (a * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -0.84], 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[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.84:\\
\;\;\;\;\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}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < -0.839999999999999969Initial program 100.0%
Taylor expanded in y around 0 89.2%
Taylor expanded in b around inf 83.0%
neg-mul-183.0%
Simplified83.0%
Taylor expanded in b around 0 73.3%
Taylor expanded in x around 0 76.3%
if -0.839999999999999969 < b Initial program 98.3%
associate-/l*97.8%
associate--l+97.8%
exp-sum78.6%
associate-/l*73.4%
*-commutative73.4%
exp-to-pow73.4%
exp-diff65.7%
*-commutative65.7%
exp-to-pow66.4%
sub-neg66.4%
metadata-eval66.4%
Simplified66.4%
Taylor expanded in t around 0 65.7%
associate-/r*73.0%
Simplified73.0%
Taylor expanded in y around 0 51.3%
associate-*r*47.2%
*-commutative47.2%
Simplified47.2%
Taylor expanded in b around 0 35.5%
distribute-lft-out37.1%
*-commutative37.1%
Simplified37.1%
Taylor expanded in b around inf 37.1%
associate-/l*38.5%
distribute-lft-out42.2%
Simplified42.2%
Final simplification50.6%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.6) (/ (+ x (* b (+ x (* x (* b 0.5))))) y) (/ x (* b (* a (+ y (/ y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.6) {
tmp = (x + (b * (x + (x * (b * 0.5))))) / y;
} else {
tmp = x / (b * (a * (y + (y / b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-2.6d0)) then
tmp = (x + (b * (x + (x * (b * 0.5d0))))) / y
else
tmp = x / (b * (a * (y + (y / b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.6) {
tmp = (x + (b * (x + (x * (b * 0.5))))) / y;
} else {
tmp = x / (b * (a * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.6: tmp = (x + (b * (x + (x * (b * 0.5))))) / y else: tmp = x / (b * (a * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.6) tmp = Float64(Float64(x + Float64(b * Float64(x + Float64(x * Float64(b * 0.5))))) / y); else tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.6) tmp = (x + (b * (x + (x * (b * 0.5))))) / y; else tmp = x / (b * (a * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.6], N[(N[(x + N[(b * N[(x + N[(x * N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.6:\\
\;\;\;\;\frac{x + b \cdot \left(x + x \cdot \left(b \cdot 0.5\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < -2.60000000000000009Initial program 100.0%
Taylor expanded in y around 0 89.2%
Taylor expanded in b around inf 83.0%
neg-mul-183.0%
Simplified83.0%
*-commutative83.0%
pow183.0%
add-sqr-sqrt83.0%
sqrt-unprod83.0%
sqr-neg83.0%
sqrt-unprod0.0%
add-sqr-sqrt17.2%
Applied egg-rr17.2%
unpow117.2%
*-commutative17.2%
Simplified17.2%
Taylor expanded in b around 0 62.8%
*-commutative62.8%
associate-*r*62.8%
*-commutative62.8%
associate-*l*62.8%
Simplified62.8%
if -2.60000000000000009 < b Initial program 98.3%
associate-/l*97.8%
associate--l+97.8%
exp-sum78.6%
associate-/l*73.4%
*-commutative73.4%
exp-to-pow73.4%
exp-diff65.7%
*-commutative65.7%
exp-to-pow66.4%
sub-neg66.4%
metadata-eval66.4%
Simplified66.4%
Taylor expanded in t around 0 65.7%
associate-/r*73.0%
Simplified73.0%
Taylor expanded in y around 0 51.3%
associate-*r*47.2%
*-commutative47.2%
Simplified47.2%
Taylor expanded in b around 0 35.5%
distribute-lft-out37.1%
*-commutative37.1%
Simplified37.1%
Taylor expanded in b around inf 37.1%
associate-/l*38.5%
distribute-lft-out42.2%
Simplified42.2%
Final simplification47.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b 1.7e-170) (* (/ x (* y a)) (- (- b) -1.0)) (if (<= b 6.8e+43) (/ (/ x a) y) (/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.7e-170) {
tmp = (x / (y * a)) * (-b - -1.0);
} else if (b <= 6.8e+43) {
tmp = (x / a) / y;
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 1.7d-170) then
tmp = (x / (y * a)) * (-b - (-1.0d0))
else if (b <= 6.8d+43) then
tmp = (x / a) / y
else
tmp = x / (y * (a * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.7e-170) {
tmp = (x / (y * a)) * (-b - -1.0);
} else if (b <= 6.8e+43) {
tmp = (x / a) / y;
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 1.7e-170: tmp = (x / (y * a)) * (-b - -1.0) elif b <= 6.8e+43: tmp = (x / a) / y else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 1.7e-170) tmp = Float64(Float64(x / Float64(y * a)) * Float64(Float64(-b) - -1.0)); elseif (b <= 6.8e+43) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 1.7e-170) tmp = (x / (y * a)) * (-b - -1.0); elseif (b <= 6.8e+43) tmp = (x / a) / y; else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.7e-170], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] * N[((-b) - -1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.8e+43], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.7 \cdot 10^{-170}:\\
\;\;\;\;\frac{x}{y \cdot a} \cdot \left(\left(-b\right) - -1\right)\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{+43}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < 1.70000000000000006e-170Initial program 98.7%
associate-/l*98.7%
associate--l+98.7%
exp-sum80.0%
associate-/l*76.7%
*-commutative76.7%
exp-to-pow76.7%
exp-diff72.0%
*-commutative72.0%
exp-to-pow72.6%
sub-neg72.6%
metadata-eval72.6%
Simplified72.6%
Taylor expanded in t around 0 68.4%
associate-/r*73.1%
Simplified73.1%
Taylor expanded in y around 0 60.8%
associate-*r*58.7%
*-commutative58.7%
Simplified58.7%
Taylor expanded in b around 0 26.0%
distribute-lft-out30.0%
*-commutative30.0%
Simplified30.0%
Taylor expanded in b around 0 44.9%
mul-1-neg44.9%
remove-double-neg44.9%
distribute-neg-out44.9%
associate-/l*41.1%
mul-1-neg41.1%
distribute-rgt-out44.4%
*-commutative44.4%
Simplified44.4%
if 1.70000000000000006e-170 < b < 6.80000000000000024e43Initial program 97.1%
Taylor expanded in y around 0 62.5%
Taylor expanded in b around 0 58.2%
exp-to-pow59.0%
sub-neg59.0%
metadata-eval59.0%
+-commutative59.0%
Simplified59.0%
Taylor expanded in t around 0 38.0%
if 6.80000000000000024e43 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum67.3%
associate-/l*67.3%
*-commutative67.3%
exp-to-pow67.3%
exp-diff45.5%
*-commutative45.5%
exp-to-pow45.5%
sub-neg45.5%
metadata-eval45.5%
Simplified45.5%
Taylor expanded in t around 0 61.9%
associate-/r*61.9%
Simplified61.9%
Taylor expanded in y around 0 76.7%
associate-*r*63.9%
*-commutative63.9%
Simplified63.9%
Taylor expanded in b around 0 34.7%
distribute-lft-out34.7%
*-commutative34.7%
Simplified34.7%
Taylor expanded in b around inf 34.7%
*-commutative34.7%
*-commutative34.7%
associate-*l*38.3%
Simplified38.3%
Final simplification41.8%
(FPCore (x y z t a b) :precision binary64 (if (<= b 1.7e-170) (/ x (* y a)) (if (<= b 1.16e+42) (/ (/ x a) y) (/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.7e-170) {
tmp = x / (y * a);
} else if (b <= 1.16e+42) {
tmp = (x / a) / y;
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 1.7d-170) then
tmp = x / (y * a)
else if (b <= 1.16d+42) then
tmp = (x / a) / y
else
tmp = x / (y * (a * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.7e-170) {
tmp = x / (y * a);
} else if (b <= 1.16e+42) {
tmp = (x / a) / y;
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 1.7e-170: tmp = x / (y * a) elif b <= 1.16e+42: tmp = (x / a) / y else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 1.7e-170) tmp = Float64(x / Float64(y * a)); elseif (b <= 1.16e+42) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 1.7e-170) tmp = x / (y * a); elseif (b <= 1.16e+42) tmp = (x / a) / y; else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.7e-170], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.16e+42], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.7 \cdot 10^{-170}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{elif}\;b \leq 1.16 \cdot 10^{+42}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < 1.70000000000000006e-170Initial program 98.7%
associate-/l*98.7%
associate--l+98.7%
exp-sum80.0%
associate-/l*76.7%
*-commutative76.7%
exp-to-pow76.7%
exp-diff72.0%
*-commutative72.0%
exp-to-pow72.6%
sub-neg72.6%
metadata-eval72.6%
Simplified72.6%
Taylor expanded in t around 0 68.4%
associate-/r*73.1%
Simplified73.1%
Taylor expanded in y around 0 60.8%
associate-*r*58.7%
*-commutative58.7%
Simplified58.7%
Taylor expanded in b around 0 36.5%
*-commutative36.5%
Simplified36.5%
if 1.70000000000000006e-170 < b < 1.15999999999999995e42Initial program 97.1%
Taylor expanded in y around 0 62.5%
Taylor expanded in b around 0 58.2%
exp-to-pow59.0%
sub-neg59.0%
metadata-eval59.0%
+-commutative59.0%
Simplified59.0%
Taylor expanded in t around 0 38.0%
if 1.15999999999999995e42 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum67.3%
associate-/l*67.3%
*-commutative67.3%
exp-to-pow67.3%
exp-diff45.5%
*-commutative45.5%
exp-to-pow45.5%
sub-neg45.5%
metadata-eval45.5%
Simplified45.5%
Taylor expanded in t around 0 61.9%
associate-/r*61.9%
Simplified61.9%
Taylor expanded in y around 0 76.7%
associate-*r*63.9%
*-commutative63.9%
Simplified63.9%
Taylor expanded in b around 0 34.7%
distribute-lft-out34.7%
*-commutative34.7%
Simplified34.7%
Taylor expanded in b around inf 34.7%
*-commutative34.7%
*-commutative34.7%
associate-*l*38.3%
Simplified38.3%
Final simplification37.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b 1.7e-170) (/ x (* y a)) (if (<= b 9e+45) (/ (/ x a) y) (/ x (* a (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.7e-170) {
tmp = x / (y * a);
} else if (b <= 9e+45) {
tmp = (x / a) / y;
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 1.7d-170) then
tmp = x / (y * a)
else if (b <= 9d+45) then
tmp = (x / a) / y
else
tmp = x / (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.7e-170) {
tmp = x / (y * a);
} else if (b <= 9e+45) {
tmp = (x / a) / y;
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 1.7e-170: tmp = x / (y * a) elif b <= 9e+45: tmp = (x / a) / y else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 1.7e-170) tmp = Float64(x / Float64(y * a)); elseif (b <= 9e+45) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 1.7e-170) tmp = x / (y * a); elseif (b <= 9e+45) tmp = (x / a) / y; else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.7e-170], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9e+45], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.7 \cdot 10^{-170}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{elif}\;b \leq 9 \cdot 10^{+45}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 1.70000000000000006e-170Initial program 98.7%
associate-/l*98.7%
associate--l+98.7%
exp-sum80.0%
associate-/l*76.7%
*-commutative76.7%
exp-to-pow76.7%
exp-diff72.0%
*-commutative72.0%
exp-to-pow72.6%
sub-neg72.6%
metadata-eval72.6%
Simplified72.6%
Taylor expanded in t around 0 68.4%
associate-/r*73.1%
Simplified73.1%
Taylor expanded in y around 0 60.8%
associate-*r*58.7%
*-commutative58.7%
Simplified58.7%
Taylor expanded in b around 0 36.5%
*-commutative36.5%
Simplified36.5%
if 1.70000000000000006e-170 < b < 8.9999999999999997e45Initial program 97.2%
Taylor expanded in y around 0 61.4%
Taylor expanded in b around 0 57.1%
exp-to-pow57.9%
sub-neg57.9%
metadata-eval57.9%
+-commutative57.9%
Simplified57.9%
Taylor expanded in t around 0 37.3%
if 8.9999999999999997e45 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum68.5%
associate-/l*68.5%
*-commutative68.5%
exp-to-pow68.5%
exp-diff46.3%
*-commutative46.3%
exp-to-pow46.3%
sub-neg46.3%
metadata-eval46.3%
Simplified46.3%
Taylor expanded in t around 0 63.1%
associate-/r*63.1%
Simplified63.1%
Taylor expanded in y around 0 78.1%
associate-*r*65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in b around 0 35.3%
distribute-lft-out35.3%
*-commutative35.3%
Simplified35.3%
Taylor expanded in b around inf 35.3%
*-commutative35.3%
Simplified35.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.0) (/ (- x (* x b)) y) (/ x (* b (* a (+ y (/ y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.0) {
tmp = (x - (x * b)) / y;
} else {
tmp = x / (b * (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.0d0)) then
tmp = (x - (x * b)) / y
else
tmp = x / (b * (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.0) {
tmp = (x - (x * b)) / y;
} else {
tmp = x / (b * (a * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.0: tmp = (x - (x * b)) / y else: tmp = x / (b * (a * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.0) tmp = Float64(Float64(x - Float64(x * b)) / y); else tmp = Float64(x / Float64(b * 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.0) tmp = (x - (x * b)) / y; else tmp = x / (b * (a * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.0], N[(N[(x - N[(x * b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1:\\
\;\;\;\;\frac{x - x \cdot b}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < -1Initial program 100.0%
Taylor expanded in y around 0 89.2%
Taylor expanded in b around inf 83.0%
neg-mul-183.0%
Simplified83.0%
Taylor expanded in b around 0 47.8%
mul-1-neg47.8%
unsub-neg47.8%
*-commutative47.8%
Simplified47.8%
if -1 < b Initial program 98.3%
associate-/l*97.8%
associate--l+97.8%
exp-sum78.6%
associate-/l*73.4%
*-commutative73.4%
exp-to-pow73.4%
exp-diff65.7%
*-commutative65.7%
exp-to-pow66.4%
sub-neg66.4%
metadata-eval66.4%
Simplified66.4%
Taylor expanded in t around 0 65.7%
associate-/r*73.0%
Simplified73.0%
Taylor expanded in y around 0 51.3%
associate-*r*47.2%
*-commutative47.2%
Simplified47.2%
Taylor expanded in b around 0 35.5%
distribute-lft-out37.1%
*-commutative37.1%
Simplified37.1%
Taylor expanded in b around inf 37.1%
associate-/l*38.5%
distribute-lft-out42.2%
Simplified42.2%
(FPCore (x y z t a b) :precision binary64 (if (<= a 8e-167) (/ (/ x a) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 8e-167) {
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 <= 8d-167) 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 <= 8e-167) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 8e-167: tmp = (x / a) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 8e-167) 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 <= 8e-167) tmp = (x / a) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 8e-167], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 8 \cdot 10^{-167}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if a < 8.00000000000000002e-167Initial program 99.2%
Taylor expanded in y around 0 83.1%
Taylor expanded in b around 0 63.3%
exp-to-pow63.9%
sub-neg63.9%
metadata-eval63.9%
+-commutative63.9%
Simplified63.9%
Taylor expanded in t around 0 42.6%
if 8.00000000000000002e-167 < a Initial program 98.5%
associate-/l*99.3%
associate--l+99.3%
exp-sum76.6%
associate-/l*71.3%
*-commutative71.3%
exp-to-pow71.3%
exp-diff62.3%
*-commutative62.3%
exp-to-pow62.9%
sub-neg62.9%
metadata-eval62.9%
Simplified62.9%
Taylor expanded in t around 0 63.2%
associate-/r*70.6%
Simplified70.6%
Taylor expanded in y around 0 58.9%
associate-*r*56.8%
*-commutative56.8%
Simplified56.8%
Taylor expanded in b around 0 29.6%
*-commutative29.6%
Simplified29.6%
(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%
associate-/l*98.3%
associate--l+98.3%
exp-sum77.2%
associate-/l*73.3%
*-commutative73.3%
exp-to-pow73.3%
exp-diff64.8%
*-commutative64.8%
exp-to-pow65.3%
sub-neg65.3%
metadata-eval65.3%
Simplified65.3%
Taylor expanded in t around 0 66.4%
associate-/r*71.8%
Simplified71.8%
Taylor expanded in y around 0 59.1%
associate-*r*54.8%
*-commutative54.8%
Simplified54.8%
Taylor expanded in b around 0 30.3%
*-commutative30.3%
Simplified30.3%
(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 y around 0 75.8%
Taylor expanded in b around inf 46.7%
neg-mul-146.7%
Simplified46.7%
Taylor expanded in b around 0 15.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (- t 1.0)))
(t_2 (/ (* x (/ t_1 y)) (- (+ b 1.0) (* y (log z))))))
(if (< t -0.8845848504127471)
t_2
(if (< t 852031.2288374073)
(/ (* (/ x y) t_1) (exp (- b (* (log z) y))))
t_2))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a ** (t - 1.0d0)
t_2 = (x * (t_1 / y)) / ((b + 1.0d0) - (y * log(z)))
if (t < (-0.8845848504127471d0)) then
tmp = t_2
else if (t < 852031.2288374073d0) then
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = Math.pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * Math.log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / Math.exp((b - (Math.log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, (t - 1.0)) t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * math.log(z))) tmp = 0 if t < -0.8845848504127471: tmp = t_2 elif t < 852031.2288374073: tmp = ((x / y) * t_1) / math.exp((b - (math.log(z) * y))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = a ^ Float64(t - 1.0) t_2 = Float64(Float64(x * Float64(t_1 / y)) / Float64(Float64(b + 1.0) - Float64(y * log(z)))) tmp = 0.0 if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = Float64(Float64(Float64(x / y) * t_1) / exp(Float64(b - Float64(log(z) * y)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a ^ (t - 1.0); t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z))); tmp = 0.0; if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = ((x / y) * t_1) / exp((b - (log(z) * y))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision] / N[(N[(b + 1.0), $MachinePrecision] - N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -0.8845848504127471], t$95$2, If[Less[t, 852031.2288374073], N[(N[(N[(x / y), $MachinePrecision] * t$95$1), $MachinePrecision] / N[Exp[N[(b - N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {a}^{\left(t - 1\right)}\\
t_2 := \frac{x \cdot \frac{t\_1}{y}}{\left(b + 1\right) - y \cdot \log z}\\
\mathbf{if}\;t < -0.8845848504127471:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 852031.2288374073:\\
\;\;\;\;\frac{\frac{x}{y} \cdot t\_1}{e^{b - \log z \cdot y}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024085
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:alt
(if (< t -0.8845848504127471) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z)))) (if (< t 852031.2288374073) (/ (* (/ x y) (pow a (- t 1.0))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))