
(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 23 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 99.2%
Final simplification99.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (+ t -1.0) (log a))))
(if (or (<= t_1 -1000000.0) (not (<= t_1 2e+85)))
(/ (* x (exp (- t_1 b))) y)
(/ (* x (exp (- (- (* y (log z)) (log a)) b))) y))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + -1.0) * log(a);
double tmp;
if ((t_1 <= -1000000.0) || !(t_1 <= 2e+85)) {
tmp = (x * exp((t_1 - b))) / y;
} else {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (t + (-1.0d0)) * log(a)
if ((t_1 <= (-1000000.0d0)) .or. (.not. (t_1 <= 2d+85))) then
tmp = (x * exp((t_1 - b))) / y
else
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + -1.0) * Math.log(a);
double tmp;
if ((t_1 <= -1000000.0) || !(t_1 <= 2e+85)) {
tmp = (x * Math.exp((t_1 - b))) / y;
} else {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t + -1.0) * math.log(a) tmp = 0 if (t_1 <= -1000000.0) or not (t_1 <= 2e+85): tmp = (x * math.exp((t_1 - b))) / y else: tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t + -1.0) * log(a)) tmp = 0.0 if ((t_1 <= -1000000.0) || !(t_1 <= 2e+85)) tmp = Float64(Float64(x * exp(Float64(t_1 - b))) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t + -1.0) * log(a); tmp = 0.0; if ((t_1 <= -1000000.0) || ~((t_1 <= 2e+85))) tmp = (x * exp((t_1 - b))) / y; else tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -1000000.0], N[Not[LessEqual[t$95$1, 2e+85]], $MachinePrecision]], N[(N[(x * N[Exp[N[(t$95$1 - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t + -1\right) \cdot \log a\\
\mathbf{if}\;t_1 \leq -1000000 \lor \neg \left(t_1 \leq 2 \cdot 10^{+85}\right):\\
\;\;\;\;\frac{x \cdot e^{t_1 - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\end{array}
\end{array}
if (*.f64 (-.f64 t 1) (log.f64 a)) < -1e6 or 2e85 < (*.f64 (-.f64 t 1) (log.f64 a)) Initial program 100.0%
Taylor expanded in y around 0 89.1%
if -1e6 < (*.f64 (-.f64 t 1) (log.f64 a)) < 2e85Initial program 98.6%
Taylor expanded in t around 0 96.3%
mul-1-neg96.3%
Simplified96.3%
Final simplification93.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.95e+149) (not (<= y 1.45e+85))) (/ (/ (* x (pow z y)) a) y) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.95e+149) || !(y <= 1.45e+85)) {
tmp = ((x * pow(z, y)) / a) / y;
} else {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-1.95d+149)) .or. (.not. (y <= 1.45d+85))) then
tmp = ((x * (z ** y)) / a) / y
else
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.95e+149) || !(y <= 1.45e+85)) {
tmp = ((x * Math.pow(z, y)) / a) / y;
} else {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.95e+149) or not (y <= 1.45e+85): tmp = ((x * math.pow(z, y)) / a) / y else: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.95e+149) || !(y <= 1.45e+85)) 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 <= -1.95e+149) || ~((y <= 1.45e+85))) tmp = ((x * (z ^ y)) / a) / y; else tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.95e+149], N[Not[LessEqual[y, 1.45e+85]], $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 -1.95 \cdot 10^{+149} \lor \neg \left(y \leq 1.45 \cdot 10^{+85}\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 < -1.95e149 or 1.44999999999999999e85 < y Initial program 100.0%
Taylor expanded in b around 0 97.9%
sub-neg97.9%
metadata-eval97.9%
log-pow90.7%
*-commutative90.7%
distribute-rgt-in90.7%
mul-1-neg90.7%
sub-neg90.7%
log-pow70.5%
log-div70.5%
log-prod70.5%
*-commutative70.5%
rem-exp-log70.5%
associate-*l/70.5%
*-commutative70.5%
associate-/l*70.5%
Simplified70.5%
Taylor expanded in t around 0 90.7%
if -1.95e149 < y < 1.44999999999999999e85Initial program 98.7%
Taylor expanded in y around 0 92.7%
Final simplification92.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -3.2e+96) (not (<= y 5.4e+20))) (/ (/ (* x (pow z y)) a) y) (* x (/ (pow a t) (* y (* a (exp b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -3.2e+96) || !(y <= 5.4e+20)) {
tmp = ((x * pow(z, y)) / a) / y;
} else {
tmp = x * (pow(a, t) / (y * (a * 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 <= (-3.2d+96)) .or. (.not. (y <= 5.4d+20))) then
tmp = ((x * (z ** y)) / a) / y
else
tmp = x * ((a ** t) / (y * (a * 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 <= -3.2e+96) || !(y <= 5.4e+20)) {
tmp = ((x * Math.pow(z, y)) / a) / y;
} else {
tmp = x * (Math.pow(a, t) / (y * (a * Math.exp(b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -3.2e+96) or not (y <= 5.4e+20): tmp = ((x * math.pow(z, y)) / a) / y else: tmp = x * (math.pow(a, t) / (y * (a * math.exp(b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -3.2e+96) || !(y <= 5.4e+20)) tmp = Float64(Float64(Float64(x * (z ^ y)) / a) / y); else tmp = Float64(x * Float64((a ^ t) / Float64(y * Float64(a * exp(b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -3.2e+96) || ~((y <= 5.4e+20))) tmp = ((x * (z ^ y)) / a) / y; else tmp = x * ((a ^ t) / (y * (a * exp(b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -3.2e+96], N[Not[LessEqual[y, 5.4e+20]], $MachinePrecision]], N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[Power[a, t], $MachinePrecision] / N[(y * N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.2 \cdot 10^{+96} \lor \neg \left(y \leq 5.4 \cdot 10^{+20}\right):\\
\;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y \cdot \left(a \cdot e^{b}\right)}\\
\end{array}
\end{array}
if y < -3.20000000000000006e96 or 5.4e20 < y Initial program 100.0%
Taylor expanded in b around 0 96.6%
sub-neg96.6%
metadata-eval96.6%
log-pow88.2%
*-commutative88.2%
distribute-rgt-in88.2%
mul-1-neg88.2%
sub-neg88.2%
log-pow71.0%
log-div71.0%
log-prod71.0%
*-commutative71.0%
rem-exp-log71.0%
associate-*l/71.0%
*-commutative71.0%
associate-/l*71.0%
Simplified71.0%
Taylor expanded in t around 0 88.2%
if -3.20000000000000006e96 < y < 5.4e20Initial program 98.5%
associate-*r/96.7%
sub-neg96.7%
exp-sum82.3%
associate-/l*82.3%
associate-/r/79.4%
exp-neg79.4%
associate-*r/79.4%
Simplified72.1%
Taylor expanded in y around 0 82.4%
Final simplification85.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -3.7e+96) (not (<= y 5.5e+21))) (/ (/ (* 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 <= -3.7e+96) || !(y <= 5.5e+21)) {
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 <= (-3.7d+96)) .or. (.not. (y <= 5.5d+21))) 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 <= -3.7e+96) || !(y <= 5.5e+21)) {
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 <= -3.7e+96) or not (y <= 5.5e+21): 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 <= -3.7e+96) || !(y <= 5.5e+21)) 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 <= -3.7e+96) || ~((y <= 5.5e+21))) 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, -3.7e+96], N[Not[LessEqual[y, 5.5e+21]], $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 -3.7 \cdot 10^{+96} \lor \neg \left(y \leq 5.5 \cdot 10^{+21}\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 < -3.69999999999999991e96 or 5.5e21 < y Initial program 100.0%
Taylor expanded in b around 0 96.6%
sub-neg96.6%
metadata-eval96.6%
log-pow88.2%
*-commutative88.2%
distribute-rgt-in88.2%
mul-1-neg88.2%
sub-neg88.2%
log-pow71.0%
log-div71.0%
log-prod71.0%
*-commutative71.0%
rem-exp-log71.0%
associate-*l/71.0%
*-commutative71.0%
associate-/l*71.0%
Simplified71.0%
Taylor expanded in t around 0 88.2%
if -3.69999999999999991e96 < y < 5.5e21Initial program 98.5%
Taylor expanded in y around 0 93.7%
exp-diff84.3%
sub-neg84.3%
metadata-eval84.3%
*-commutative84.3%
exp-to-pow84.9%
Simplified84.9%
Final simplification86.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (pow a t) a))
(t_2 (/ (/ (* x (pow z y)) a) y))
(t_3 (* x (/ t_1 y)))
(t_4 (* y (exp b))))
(if (<= y -1.15e+97)
t_2
(if (<= y -8.5e+51)
t_3
(if (<= y -2.3e+37)
(* (/ (pow z y) a) (/ x y))
(if (<= y -3450.0)
(/ x (* a t_4))
(if (<= y -2.08e-157)
t_3
(if (<= y 3.7e-302)
(/ (/ x (* a (exp b))) y)
(if (<= y 4.4e-251)
t_3
(if (<= y 1.85e-158)
(/ (/ x a) t_4)
(if (<= y 1.05e+20) (/ (* x t_1) y) t_2)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = pow(a, t) / a;
double t_2 = ((x * pow(z, y)) / a) / y;
double t_3 = x * (t_1 / y);
double t_4 = y * exp(b);
double tmp;
if (y <= -1.15e+97) {
tmp = t_2;
} else if (y <= -8.5e+51) {
tmp = t_3;
} else if (y <= -2.3e+37) {
tmp = (pow(z, y) / a) * (x / y);
} else if (y <= -3450.0) {
tmp = x / (a * t_4);
} else if (y <= -2.08e-157) {
tmp = t_3;
} else if (y <= 3.7e-302) {
tmp = (x / (a * exp(b))) / y;
} else if (y <= 4.4e-251) {
tmp = t_3;
} else if (y <= 1.85e-158) {
tmp = (x / a) / t_4;
} else if (y <= 1.05e+20) {
tmp = (x * t_1) / 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) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (a ** t) / a
t_2 = ((x * (z ** y)) / a) / y
t_3 = x * (t_1 / y)
t_4 = y * exp(b)
if (y <= (-1.15d+97)) then
tmp = t_2
else if (y <= (-8.5d+51)) then
tmp = t_3
else if (y <= (-2.3d+37)) then
tmp = ((z ** y) / a) * (x / y)
else if (y <= (-3450.0d0)) then
tmp = x / (a * t_4)
else if (y <= (-2.08d-157)) then
tmp = t_3
else if (y <= 3.7d-302) then
tmp = (x / (a * exp(b))) / y
else if (y <= 4.4d-251) then
tmp = t_3
else if (y <= 1.85d-158) then
tmp = (x / a) / t_4
else if (y <= 1.05d+20) then
tmp = (x * t_1) / 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) / a;
double t_2 = ((x * Math.pow(z, y)) / a) / y;
double t_3 = x * (t_1 / y);
double t_4 = y * Math.exp(b);
double tmp;
if (y <= -1.15e+97) {
tmp = t_2;
} else if (y <= -8.5e+51) {
tmp = t_3;
} else if (y <= -2.3e+37) {
tmp = (Math.pow(z, y) / a) * (x / y);
} else if (y <= -3450.0) {
tmp = x / (a * t_4);
} else if (y <= -2.08e-157) {
tmp = t_3;
} else if (y <= 3.7e-302) {
tmp = (x / (a * Math.exp(b))) / y;
} else if (y <= 4.4e-251) {
tmp = t_3;
} else if (y <= 1.85e-158) {
tmp = (x / a) / t_4;
} else if (y <= 1.05e+20) {
tmp = (x * t_1) / y;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, t) / a t_2 = ((x * math.pow(z, y)) / a) / y t_3 = x * (t_1 / y) t_4 = y * math.exp(b) tmp = 0 if y <= -1.15e+97: tmp = t_2 elif y <= -8.5e+51: tmp = t_3 elif y <= -2.3e+37: tmp = (math.pow(z, y) / a) * (x / y) elif y <= -3450.0: tmp = x / (a * t_4) elif y <= -2.08e-157: tmp = t_3 elif y <= 3.7e-302: tmp = (x / (a * math.exp(b))) / y elif y <= 4.4e-251: tmp = t_3 elif y <= 1.85e-158: tmp = (x / a) / t_4 elif y <= 1.05e+20: tmp = (x * t_1) / y else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64((a ^ t) / a) t_2 = Float64(Float64(Float64(x * (z ^ y)) / a) / y) t_3 = Float64(x * Float64(t_1 / y)) t_4 = Float64(y * exp(b)) tmp = 0.0 if (y <= -1.15e+97) tmp = t_2; elseif (y <= -8.5e+51) tmp = t_3; elseif (y <= -2.3e+37) tmp = Float64(Float64((z ^ y) / a) * Float64(x / y)); elseif (y <= -3450.0) tmp = Float64(x / Float64(a * t_4)); elseif (y <= -2.08e-157) tmp = t_3; elseif (y <= 3.7e-302) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); elseif (y <= 4.4e-251) tmp = t_3; elseif (y <= 1.85e-158) tmp = Float64(Float64(x / a) / t_4); elseif (y <= 1.05e+20) tmp = Float64(Float64(x * t_1) / y); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (a ^ t) / a; t_2 = ((x * (z ^ y)) / a) / y; t_3 = x * (t_1 / y); t_4 = y * exp(b); tmp = 0.0; if (y <= -1.15e+97) tmp = t_2; elseif (y <= -8.5e+51) tmp = t_3; elseif (y <= -2.3e+37) tmp = ((z ^ y) / a) * (x / y); elseif (y <= -3450.0) tmp = x / (a * t_4); elseif (y <= -2.08e-157) tmp = t_3; elseif (y <= 3.7e-302) tmp = (x / (a * exp(b))) / y; elseif (y <= 4.4e-251) tmp = t_3; elseif (y <= 1.85e-158) tmp = (x / a) / t_4; elseif (y <= 1.05e+20) tmp = (x * t_1) / y; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.15e+97], t$95$2, If[LessEqual[y, -8.5e+51], t$95$3, If[LessEqual[y, -2.3e+37], N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3450.0], N[(x / N[(a * t$95$4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.08e-157], t$95$3, If[LessEqual[y, 3.7e-302], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 4.4e-251], t$95$3, If[LessEqual[y, 1.85e-158], N[(N[(x / a), $MachinePrecision] / t$95$4), $MachinePrecision], If[LessEqual[y, 1.05e+20], N[(N[(x * t$95$1), $MachinePrecision] / y), $MachinePrecision], t$95$2]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{{a}^{t}}{a}\\
t_2 := \frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
t_3 := x \cdot \frac{t_1}{y}\\
t_4 := y \cdot e^{b}\\
\mathbf{if}\;y \leq -1.15 \cdot 10^{+97}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -8.5 \cdot 10^{+51}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -2.3 \cdot 10^{+37}:\\
\;\;\;\;\frac{{z}^{y}}{a} \cdot \frac{x}{y}\\
\mathbf{elif}\;y \leq -3450:\\
\;\;\;\;\frac{x}{a \cdot t_4}\\
\mathbf{elif}\;y \leq -2.08 \cdot 10^{-157}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq 3.7 \cdot 10^{-302}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{-251}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq 1.85 \cdot 10^{-158}:\\
\;\;\;\;\frac{\frac{x}{a}}{t_4}\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{+20}:\\
\;\;\;\;\frac{x \cdot t_1}{y}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -1.15000000000000003e97 or 1.05e20 < y Initial program 100.0%
Taylor expanded in b around 0 96.6%
sub-neg96.6%
metadata-eval96.6%
log-pow88.2%
*-commutative88.2%
distribute-rgt-in88.2%
mul-1-neg88.2%
sub-neg88.2%
log-pow71.0%
log-div71.0%
log-prod71.0%
*-commutative71.0%
rem-exp-log71.0%
associate-*l/71.0%
*-commutative71.0%
associate-/l*71.0%
Simplified71.0%
Taylor expanded in t around 0 88.2%
if -1.15000000000000003e97 < y < -8.4999999999999999e51 or -3450 < y < -2.08e-157 or 3.7e-302 < y < 4.4e-251Initial program 97.1%
associate-*r/98.9%
sub-neg98.9%
exp-sum86.2%
associate-/l*86.2%
associate-/r/86.2%
exp-neg86.2%
associate-*r/86.2%
Simplified74.4%
Taylor expanded in y around 0 85.2%
Taylor expanded in b around 0 81.3%
*-commutative81.3%
associate-/r*83.5%
Simplified83.5%
if -8.4999999999999999e51 < y < -2.30000000000000002e37Initial program 100.0%
Taylor expanded in t around 0 100.0%
mul-1-neg100.0%
Simplified100.0%
Taylor expanded in b around 0 100.0%
div-exp100.0%
*-commutative100.0%
exp-to-pow100.0%
rem-exp-log100.0%
associate-*r/100.0%
Simplified100.0%
if -2.30000000000000002e37 < y < -3450Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
exp-sum37.5%
associate-/l*37.5%
associate-/r/37.5%
exp-neg37.5%
associate-*r/37.5%
Simplified12.5%
Taylor expanded in y around 0 75.3%
Taylor expanded in t around 0 87.8%
if -2.08e-157 < y < 3.7e-302Initial program 99.3%
Taylor expanded in y around 0 99.3%
exp-diff90.3%
sub-neg90.3%
metadata-eval90.3%
*-commutative90.3%
exp-to-pow90.9%
Simplified90.9%
Taylor expanded in t around 0 79.6%
if 4.4e-251 < y < 1.85e-158Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
exp-sum87.5%
associate-/l*87.5%
associate-/r/87.5%
exp-neg87.5%
associate-*r/87.5%
Simplified87.5%
Taylor expanded in y around 0 87.5%
Taylor expanded in t around 0 94.0%
associate-/r*94.0%
Simplified94.0%
if 1.85e-158 < y < 1.05e20Initial program 98.4%
Taylor expanded in y around 0 95.2%
exp-diff85.2%
sub-neg85.2%
metadata-eval85.2%
*-commutative85.2%
exp-to-pow86.4%
Simplified86.4%
Taylor expanded in b around 0 80.1%
Simplified80.3%
Final simplification85.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (/ (pow a t) a) y))))
(if (<= t -1.6e+25)
t_1
(if (<= t -1.65e-266)
(* (/ (pow z y) a) (/ x y))
(if (<= t 3.5e-26) (/ (/ x (* a (exp b))) y) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * ((pow(a, t) / a) / y);
double tmp;
if (t <= -1.6e+25) {
tmp = t_1;
} else if (t <= -1.65e-266) {
tmp = (pow(z, y) / a) * (x / y);
} else if (t <= 3.5e-26) {
tmp = (x / (a * exp(b))) / y;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x * (((a ** t) / a) / y)
if (t <= (-1.6d+25)) then
tmp = t_1
else if (t <= (-1.65d-266)) then
tmp = ((z ** y) / a) * (x / y)
else if (t <= 3.5d-26) then
tmp = (x / (a * exp(b))) / y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * ((Math.pow(a, t) / a) / y);
double tmp;
if (t <= -1.6e+25) {
tmp = t_1;
} else if (t <= -1.65e-266) {
tmp = (Math.pow(z, y) / a) * (x / y);
} else if (t <= 3.5e-26) {
tmp = (x / (a * Math.exp(b))) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * ((math.pow(a, t) / a) / y) tmp = 0 if t <= -1.6e+25: tmp = t_1 elif t <= -1.65e-266: tmp = (math.pow(z, y) / a) * (x / y) elif t <= 3.5e-26: tmp = (x / (a * math.exp(b))) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(Float64((a ^ t) / a) / y)) tmp = 0.0 if (t <= -1.6e+25) tmp = t_1; elseif (t <= -1.65e-266) tmp = Float64(Float64((z ^ y) / a) * Float64(x / y)); elseif (t <= 3.5e-26) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (((a ^ t) / a) / y); tmp = 0.0; if (t <= -1.6e+25) tmp = t_1; elseif (t <= -1.65e-266) tmp = ((z ^ y) / a) * (x / y); elseif (t <= 3.5e-26) tmp = (x / (a * exp(b))) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.6e+25], t$95$1, If[LessEqual[t, -1.65e-266], N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e-26], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{\frac{{a}^{t}}{a}}{y}\\
\mathbf{if}\;t \leq -1.6 \cdot 10^{+25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.65 \cdot 10^{-266}:\\
\;\;\;\;\frac{{z}^{y}}{a} \cdot \frac{x}{y}\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-26}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.6e25 or 3.49999999999999985e-26 < t Initial program 99.9%
associate-*r/99.9%
sub-neg99.9%
exp-sum80.3%
associate-/l*80.3%
associate-/r/80.3%
exp-neg80.3%
associate-*r/80.3%
Simplified53.5%
Taylor expanded in y around 0 68.7%
Taylor expanded in b around 0 74.3%
*-commutative74.3%
associate-/r*79.9%
Simplified79.9%
if -1.6e25 < t < -1.6500000000000001e-266Initial program 99.1%
Taylor expanded in t around 0 96.5%
mul-1-neg96.5%
Simplified96.5%
Taylor expanded in b around 0 73.8%
div-exp73.8%
*-commutative73.8%
exp-to-pow73.8%
rem-exp-log74.2%
associate-*r/69.5%
Simplified69.5%
if -1.6500000000000001e-266 < t < 3.49999999999999985e-26Initial program 97.9%
Taylor expanded in y around 0 67.8%
exp-diff67.8%
sub-neg67.8%
metadata-eval67.8%
*-commutative67.8%
exp-to-pow68.6%
Simplified68.6%
Taylor expanded in t around 0 68.6%
Final simplification74.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (pow a t) a)))
(if (<= t -1.3e+25)
(* x (/ t_1 y))
(if (<= t -1.7e-266)
(* (/ (pow z y) a) (/ x y))
(if (<= t 3.5e-26) (/ (/ x (* a (exp b))) y) (/ (* x t_1) y))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = pow(a, t) / a;
double tmp;
if (t <= -1.3e+25) {
tmp = x * (t_1 / y);
} else if (t <= -1.7e-266) {
tmp = (pow(z, y) / a) * (x / y);
} else if (t <= 3.5e-26) {
tmp = (x / (a * exp(b))) / y;
} else {
tmp = (x * 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 = (a ** t) / a
if (t <= (-1.3d+25)) then
tmp = x * (t_1 / y)
else if (t <= (-1.7d-266)) then
tmp = ((z ** y) / a) * (x / y)
else if (t <= 3.5d-26) then
tmp = (x / (a * exp(b))) / y
else
tmp = (x * 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 = Math.pow(a, t) / a;
double tmp;
if (t <= -1.3e+25) {
tmp = x * (t_1 / y);
} else if (t <= -1.7e-266) {
tmp = (Math.pow(z, y) / a) * (x / y);
} else if (t <= 3.5e-26) {
tmp = (x / (a * Math.exp(b))) / y;
} else {
tmp = (x * t_1) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, t) / a tmp = 0 if t <= -1.3e+25: tmp = x * (t_1 / y) elif t <= -1.7e-266: tmp = (math.pow(z, y) / a) * (x / y) elif t <= 3.5e-26: tmp = (x / (a * math.exp(b))) / y else: tmp = (x * t_1) / y return tmp
function code(x, y, z, t, a, b) t_1 = Float64((a ^ t) / a) tmp = 0.0 if (t <= -1.3e+25) tmp = Float64(x * Float64(t_1 / y)); elseif (t <= -1.7e-266) tmp = Float64(Float64((z ^ y) / a) * Float64(x / y)); elseif (t <= 3.5e-26) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); else tmp = Float64(Float64(x * t_1) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (a ^ t) / a; tmp = 0.0; if (t <= -1.3e+25) tmp = x * (t_1 / y); elseif (t <= -1.7e-266) tmp = ((z ^ y) / a) * (x / y); elseif (t <= 3.5e-26) tmp = (x / (a * exp(b))) / y; else tmp = (x * t_1) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[t, -1.3e+25], N[(x * N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.7e-266], N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e-26], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * t$95$1), $MachinePrecision] / y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{{a}^{t}}{a}\\
\mathbf{if}\;t \leq -1.3 \cdot 10^{+25}:\\
\;\;\;\;x \cdot \frac{t_1}{y}\\
\mathbf{elif}\;t \leq -1.7 \cdot 10^{-266}:\\
\;\;\;\;\frac{{z}^{y}}{a} \cdot \frac{x}{y}\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-26}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot t_1}{y}\\
\end{array}
\end{array}
if t < -1.2999999999999999e25Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
exp-sum86.4%
associate-/l*86.4%
associate-/r/86.4%
exp-neg86.4%
associate-*r/86.4%
Simplified61.0%
Taylor expanded in y around 0 74.8%
Taylor expanded in b around 0 80.0%
*-commutative80.0%
associate-/r*80.0%
Simplified80.0%
if -1.2999999999999999e25 < t < -1.69999999999999997e-266Initial program 99.1%
Taylor expanded in t around 0 96.5%
mul-1-neg96.5%
Simplified96.5%
Taylor expanded in b around 0 73.8%
div-exp73.8%
*-commutative73.8%
exp-to-pow73.8%
rem-exp-log74.2%
associate-*r/69.5%
Simplified69.5%
if -1.69999999999999997e-266 < t < 3.49999999999999985e-26Initial program 97.9%
Taylor expanded in y around 0 67.8%
exp-diff67.8%
sub-neg67.8%
metadata-eval67.8%
*-commutative67.8%
exp-to-pow68.6%
Simplified68.6%
Taylor expanded in t around 0 68.6%
if 3.49999999999999985e-26 < t Initial program 99.9%
Taylor expanded in y around 0 89.8%
exp-diff67.7%
sub-neg67.7%
metadata-eval67.7%
*-commutative67.7%
exp-to-pow67.8%
Simplified67.8%
Taylor expanded in b around 0 79.8%
Simplified79.8%
Final simplification74.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -7.5e-5) (not (<= t 3.4e-26))) (* x (/ (/ (pow a t) a) y)) (/ (/ x (* a (exp b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -7.5e-5) || !(t <= 3.4e-26)) {
tmp = x * ((pow(a, t) / a) / 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 <= (-7.5d-5)) .or. (.not. (t <= 3.4d-26))) then
tmp = x * (((a ** t) / a) / 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 <= -7.5e-5) || !(t <= 3.4e-26)) {
tmp = x * ((Math.pow(a, t) / a) / y);
} else {
tmp = (x / (a * Math.exp(b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -7.5e-5) or not (t <= 3.4e-26): tmp = x * ((math.pow(a, t) / a) / y) else: tmp = (x / (a * math.exp(b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -7.5e-5) || !(t <= 3.4e-26)) tmp = Float64(x * Float64(Float64((a ^ t) / a) / y)); else tmp = Float64(Float64(x / Float64(a * exp(b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -7.5e-5) || ~((t <= 3.4e-26))) tmp = x * (((a ^ t) / a) / y); else tmp = (x / (a * exp(b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -7.5e-5], N[Not[LessEqual[t, 3.4e-26]], $MachinePrecision]], N[(x * N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.5 \cdot 10^{-5} \lor \neg \left(t \leq 3.4 \cdot 10^{-26}\right):\\
\;\;\;\;x \cdot \frac{\frac{{a}^{t}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\end{array}
\end{array}
if t < -7.49999999999999934e-5 or 3.40000000000000013e-26 < t Initial program 99.9%
associate-*r/99.9%
sub-neg99.9%
exp-sum81.0%
associate-/l*81.0%
associate-/r/81.0%
exp-neg81.0%
associate-*r/81.0%
Simplified53.8%
Taylor expanded in y around 0 68.4%
Taylor expanded in b around 0 73.8%
*-commutative73.8%
associate-/r*79.1%
Simplified79.1%
if -7.49999999999999934e-5 < t < 3.40000000000000013e-26Initial program 98.5%
Taylor expanded in y around 0 64.8%
exp-diff64.8%
sub-neg64.8%
metadata-eval64.8%
*-commutative64.8%
exp-to-pow65.4%
Simplified65.4%
Taylor expanded in t around 0 65.4%
Final simplification72.5%
(FPCore (x y z t a b) :precision binary64 (/ x (* a (* y (exp b)))))
double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y * exp(b)));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / (a * (y * exp(b)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y * Math.exp(b)));
}
def code(x, y, z, t, a, b): return x / (a * (y * math.exp(b)))
function code(x, y, z, t, a, b) return Float64(x / Float64(a * Float64(y * exp(b)))) end
function tmp = code(x, y, z, t, a, b) tmp = x / (a * (y * exp(b))); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{a \cdot \left(y \cdot e^{b}\right)}
\end{array}
Initial program 99.2%
associate-*r/98.2%
sub-neg98.2%
exp-sum80.6%
associate-/l*80.6%
associate-/r/79.0%
exp-neg79.0%
associate-*r/79.0%
Simplified65.3%
Taylor expanded in y around 0 65.6%
Taylor expanded in t around 0 52.6%
Final simplification52.6%
(FPCore (x y z t a b) :precision binary64 (/ (/ x (* a (exp b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x / (a * exp(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 / (a * exp(b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x / (a * Math.exp(b))) / y;
}
def code(x, y, z, t, a, b): return (x / (a * math.exp(b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x / Float64(a * exp(b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x / (a * exp(b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{x}{a \cdot e^{b}}}{y}
\end{array}
Initial program 99.2%
Taylor expanded in y around 0 75.6%
exp-diff67.8%
sub-neg67.8%
metadata-eval67.8%
*-commutative67.8%
exp-to-pow68.1%
Simplified68.1%
Taylor expanded in t around 0 53.0%
Final simplification53.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.15e+168)
(* (/ x a) (/ (- b) y))
(if (or (<= b 4e-300) (and (not (<= b 7e-185)) (<= b 3.4e+72)))
(/ 1.0 (/ a (/ x y)))
(/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.15e+168) {
tmp = (x / a) * (-b / y);
} else if ((b <= 4e-300) || (!(b <= 7e-185) && (b <= 3.4e+72))) {
tmp = 1.0 / (a / (x / 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.15d+168)) then
tmp = (x / a) * (-b / y)
else if ((b <= 4d-300) .or. (.not. (b <= 7d-185)) .and. (b <= 3.4d+72)) then
tmp = 1.0d0 / (a / (x / 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.15e+168) {
tmp = (x / a) * (-b / y);
} else if ((b <= 4e-300) || (!(b <= 7e-185) && (b <= 3.4e+72))) {
tmp = 1.0 / (a / (x / y));
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.15e+168: tmp = (x / a) * (-b / y) elif (b <= 4e-300) or (not (b <= 7e-185) and (b <= 3.4e+72)): tmp = 1.0 / (a / (x / y)) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.15e+168) tmp = Float64(Float64(x / a) * Float64(Float64(-b) / y)); elseif ((b <= 4e-300) || (!(b <= 7e-185) && (b <= 3.4e+72))) tmp = Float64(1.0 / Float64(a / Float64(x / 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.15e+168) tmp = (x / a) * (-b / y); elseif ((b <= 4e-300) || (~((b <= 7e-185)) && (b <= 3.4e+72))) tmp = 1.0 / (a / (x / y)); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.15e+168], N[(N[(x / a), $MachinePrecision] * N[((-b) / y), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 4e-300], And[N[Not[LessEqual[b, 7e-185]], $MachinePrecision], LessEqual[b, 3.4e+72]]], N[(1.0 / N[(a / N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.15 \cdot 10^{+168}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{-b}{y}\\
\mathbf{elif}\;b \leq 4 \cdot 10^{-300} \lor \neg \left(b \leq 7 \cdot 10^{-185}\right) \land b \leq 3.4 \cdot 10^{+72}:\\
\;\;\;\;\frac{1}{\frac{a}{\frac{x}{y}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.15e168Initial program 100.0%
Taylor expanded in y around 0 100.0%
exp-diff73.1%
sub-neg73.1%
metadata-eval73.1%
*-commutative73.1%
exp-to-pow73.1%
Simplified73.1%
Taylor expanded in t around 0 96.2%
Taylor expanded in b around 0 59.8%
+-commutative59.8%
mul-1-neg59.8%
unsub-neg59.8%
*-commutative59.8%
associate-/l*59.6%
Simplified59.6%
Taylor expanded in b around inf 62.8%
mul-1-neg62.8%
times-frac55.9%
Simplified55.9%
if -1.15e168 < b < 4.0000000000000001e-300 or 6.9999999999999996e-185 < b < 3.3999999999999998e72Initial program 98.8%
Taylor expanded in b around 0 89.9%
sub-neg89.9%
metadata-eval89.9%
log-pow80.3%
*-commutative80.3%
distribute-rgt-in80.3%
mul-1-neg80.3%
sub-neg80.3%
log-pow72.1%
log-div72.1%
log-prod72.1%
*-commutative72.1%
rem-exp-log72.6%
associate-*l/72.6%
*-commutative72.6%
associate-/l*72.6%
Simplified72.6%
Taylor expanded in t around 0 63.7%
Taylor expanded in y around 0 28.6%
clear-num29.3%
inv-pow29.3%
*-commutative29.3%
Applied egg-rr29.3%
unpow-129.3%
associate-/l*34.1%
Simplified34.1%
if 4.0000000000000001e-300 < b < 6.9999999999999996e-185 or 3.3999999999999998e72 < b Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
exp-sum75.0%
associate-/l*75.0%
associate-/r/69.6%
exp-neg69.6%
associate-*r/69.6%
Simplified62.5%
Taylor expanded in y around 0 64.9%
Taylor expanded in t around 0 62.0%
Taylor expanded in b around 0 37.1%
+-commutative37.1%
distribute-lft-out37.1%
Simplified37.1%
Taylor expanded in b around -inf 45.5%
Final simplification38.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -7.5e+44)
(* (/ x y) (- (/ b a)))
(if (<= b 4.1e-300)
(/ (/ 1.0 a) (/ y x))
(if (or (<= b 1.55e-193) (not (<= b 9e+71)))
(/ x (* y (* a b)))
(/ 1.0 (/ a (/ x y)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -7.5e+44) {
tmp = (x / y) * -(b / a);
} else if (b <= 4.1e-300) {
tmp = (1.0 / a) / (y / x);
} else if ((b <= 1.55e-193) || !(b <= 9e+71)) {
tmp = x / (y * (a * b));
} else {
tmp = 1.0 / (a / (x / 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 <= (-7.5d+44)) then
tmp = (x / y) * -(b / a)
else if (b <= 4.1d-300) then
tmp = (1.0d0 / a) / (y / x)
else if ((b <= 1.55d-193) .or. (.not. (b <= 9d+71))) then
tmp = x / (y * (a * b))
else
tmp = 1.0d0 / (a / (x / 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 <= -7.5e+44) {
tmp = (x / y) * -(b / a);
} else if (b <= 4.1e-300) {
tmp = (1.0 / a) / (y / x);
} else if ((b <= 1.55e-193) || !(b <= 9e+71)) {
tmp = x / (y * (a * b));
} else {
tmp = 1.0 / (a / (x / y));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -7.5e+44: tmp = (x / y) * -(b / a) elif b <= 4.1e-300: tmp = (1.0 / a) / (y / x) elif (b <= 1.55e-193) or not (b <= 9e+71): tmp = x / (y * (a * b)) else: tmp = 1.0 / (a / (x / y)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -7.5e+44) tmp = Float64(Float64(x / y) * Float64(-Float64(b / a))); elseif (b <= 4.1e-300) tmp = Float64(Float64(1.0 / a) / Float64(y / x)); elseif ((b <= 1.55e-193) || !(b <= 9e+71)) tmp = Float64(x / Float64(y * Float64(a * b))); else tmp = Float64(1.0 / Float64(a / Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -7.5e+44) tmp = (x / y) * -(b / a); elseif (b <= 4.1e-300) tmp = (1.0 / a) / (y / x); elseif ((b <= 1.55e-193) || ~((b <= 9e+71))) tmp = x / (y * (a * b)); else tmp = 1.0 / (a / (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -7.5e+44], N[(N[(x / y), $MachinePrecision] * (-N[(b / a), $MachinePrecision])), $MachinePrecision], If[LessEqual[b, 4.1e-300], N[(N[(1.0 / a), $MachinePrecision] / N[(y / x), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 1.55e-193], N[Not[LessEqual[b, 9e+71]], $MachinePrecision]], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(a / N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.5 \cdot 10^{+44}:\\
\;\;\;\;\frac{x}{y} \cdot \left(-\frac{b}{a}\right)\\
\mathbf{elif}\;b \leq 4.1 \cdot 10^{-300}:\\
\;\;\;\;\frac{\frac{1}{a}}{\frac{y}{x}}\\
\mathbf{elif}\;b \leq 1.55 \cdot 10^{-193} \lor \neg \left(b \leq 9 \cdot 10^{+71}\right):\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{a}{\frac{x}{y}}}\\
\end{array}
\end{array}
if b < -7.50000000000000027e44Initial program 100.0%
Taylor expanded in y around 0 85.4%
exp-diff72.4%
sub-neg72.4%
metadata-eval72.4%
*-commutative72.4%
exp-to-pow72.4%
Simplified72.4%
Taylor expanded in t around 0 85.4%
Taylor expanded in b around 0 48.7%
+-commutative48.7%
mul-1-neg48.7%
unsub-neg48.7%
*-commutative48.7%
associate-/l*48.7%
Simplified48.7%
Taylor expanded in b around inf 51.9%
associate-*r/51.9%
associate-*r*51.9%
neg-mul-151.9%
*-commutative51.9%
times-frac51.9%
distribute-frac-neg51.9%
Simplified51.9%
if -7.50000000000000027e44 < b < 4.1000000000000001e-300Initial program 98.1%
Taylor expanded in y around 0 65.6%
associate-/l*56.5%
exp-diff54.0%
sub-neg54.0%
metadata-eval54.0%
*-commutative54.0%
exp-to-pow54.6%
Simplified54.6%
Taylor expanded in t around 0 33.8%
Taylor expanded in b around 0 31.5%
if 4.1000000000000001e-300 < b < 1.5500000000000001e-193 or 9.00000000000000087e71 < b Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
exp-sum75.0%
associate-/l*75.0%
associate-/r/69.6%
exp-neg69.6%
associate-*r/69.6%
Simplified62.5%
Taylor expanded in y around 0 64.9%
Taylor expanded in t around 0 62.0%
Taylor expanded in b around 0 37.1%
+-commutative37.1%
distribute-lft-out37.1%
Simplified37.1%
Taylor expanded in b around -inf 45.5%
if 1.5500000000000001e-193 < b < 9.00000000000000087e71Initial program 99.1%
Taylor expanded in b around 0 91.9%
sub-neg91.9%
metadata-eval91.9%
log-pow83.2%
*-commutative83.2%
distribute-rgt-in83.2%
mul-1-neg83.2%
sub-neg83.2%
log-pow80.1%
log-div80.1%
log-prod80.1%
*-commutative80.1%
rem-exp-log80.9%
associate-*l/80.9%
*-commutative80.9%
associate-/l*80.9%
Simplified80.9%
Taylor expanded in t around 0 65.5%
Taylor expanded in y around 0 27.0%
clear-num28.7%
inv-pow28.7%
*-commutative28.7%
Applied egg-rr28.7%
unpow-128.7%
associate-/l*32.8%
Simplified32.8%
Final simplification39.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -7.8e+93)
(/ (* x (- (/ b a))) y)
(if (<= b 4.1e-300)
(/ (/ 1.0 a) (/ y x))
(if (or (<= b 3.5e-182) (not (<= b 9e+71)))
(/ x (* y (* a b)))
(/ 1.0 (/ a (/ x y)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -7.8e+93) {
tmp = (x * -(b / a)) / y;
} else if (b <= 4.1e-300) {
tmp = (1.0 / a) / (y / x);
} else if ((b <= 3.5e-182) || !(b <= 9e+71)) {
tmp = x / (y * (a * b));
} else {
tmp = 1.0 / (a / (x / 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 <= (-7.8d+93)) then
tmp = (x * -(b / a)) / y
else if (b <= 4.1d-300) then
tmp = (1.0d0 / a) / (y / x)
else if ((b <= 3.5d-182) .or. (.not. (b <= 9d+71))) then
tmp = x / (y * (a * b))
else
tmp = 1.0d0 / (a / (x / 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 <= -7.8e+93) {
tmp = (x * -(b / a)) / y;
} else if (b <= 4.1e-300) {
tmp = (1.0 / a) / (y / x);
} else if ((b <= 3.5e-182) || !(b <= 9e+71)) {
tmp = x / (y * (a * b));
} else {
tmp = 1.0 / (a / (x / y));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -7.8e+93: tmp = (x * -(b / a)) / y elif b <= 4.1e-300: tmp = (1.0 / a) / (y / x) elif (b <= 3.5e-182) or not (b <= 9e+71): tmp = x / (y * (a * b)) else: tmp = 1.0 / (a / (x / y)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -7.8e+93) tmp = Float64(Float64(x * Float64(-Float64(b / a))) / y); elseif (b <= 4.1e-300) tmp = Float64(Float64(1.0 / a) / Float64(y / x)); elseif ((b <= 3.5e-182) || !(b <= 9e+71)) tmp = Float64(x / Float64(y * Float64(a * b))); else tmp = Float64(1.0 / Float64(a / Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -7.8e+93) tmp = (x * -(b / a)) / y; elseif (b <= 4.1e-300) tmp = (1.0 / a) / (y / x); elseif ((b <= 3.5e-182) || ~((b <= 9e+71))) tmp = x / (y * (a * b)); else tmp = 1.0 / (a / (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -7.8e+93], N[(N[(x * (-N[(b / a), $MachinePrecision])), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 4.1e-300], N[(N[(1.0 / a), $MachinePrecision] / N[(y / x), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 3.5e-182], N[Not[LessEqual[b, 9e+71]], $MachinePrecision]], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(a / N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.8 \cdot 10^{+93}:\\
\;\;\;\;\frac{x \cdot \left(-\frac{b}{a}\right)}{y}\\
\mathbf{elif}\;b \leq 4.1 \cdot 10^{-300}:\\
\;\;\;\;\frac{\frac{1}{a}}{\frac{y}{x}}\\
\mathbf{elif}\;b \leq 3.5 \cdot 10^{-182} \lor \neg \left(b \leq 9 \cdot 10^{+71}\right):\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{a}{\frac{x}{y}}}\\
\end{array}
\end{array}
if b < -7.8000000000000005e93Initial program 100.0%
Taylor expanded in y around 0 88.0%
exp-diff70.9%
sub-neg70.9%
metadata-eval70.9%
*-commutative70.9%
exp-to-pow70.9%
Simplified70.9%
Taylor expanded in t around 0 85.6%
Taylor expanded in b around 0 53.3%
+-commutative53.3%
mul-1-neg53.3%
unsub-neg53.3%
*-commutative53.3%
associate-/l*57.8%
Simplified57.8%
Taylor expanded in b around inf 53.3%
associate-/l*41.7%
associate-/r/57.8%
associate-*r*57.8%
*-lft-identity57.8%
associate-*l/57.8%
associate-/r/57.8%
neg-mul-157.8%
distribute-lft-neg-in57.8%
*-commutative57.8%
distribute-rgt-neg-in57.8%
neg-mul-157.8%
associate-/r/57.8%
associate-*l/57.8%
*-lft-identity57.8%
mul-1-neg57.8%
Simplified57.8%
if -7.8000000000000005e93 < b < 4.1000000000000001e-300Initial program 98.4%
Taylor expanded in y around 0 67.3%
associate-/l*59.5%
exp-diff57.3%
sub-neg57.3%
metadata-eval57.3%
*-commutative57.3%
exp-to-pow57.8%
Simplified57.8%
Taylor expanded in t around 0 41.1%
Taylor expanded in b around 0 32.9%
if 4.1000000000000001e-300 < b < 3.49999999999999983e-182 or 9.00000000000000087e71 < b Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
exp-sum75.0%
associate-/l*75.0%
associate-/r/69.6%
exp-neg69.6%
associate-*r/69.6%
Simplified62.5%
Taylor expanded in y around 0 64.9%
Taylor expanded in t around 0 62.0%
Taylor expanded in b around 0 37.1%
+-commutative37.1%
distribute-lft-out37.1%
Simplified37.1%
Taylor expanded in b around -inf 45.5%
if 3.49999999999999983e-182 < b < 9.00000000000000087e71Initial program 99.1%
Taylor expanded in b around 0 91.9%
sub-neg91.9%
metadata-eval91.9%
log-pow83.2%
*-commutative83.2%
distribute-rgt-in83.2%
mul-1-neg83.2%
sub-neg83.2%
log-pow80.1%
log-div80.1%
log-prod80.1%
*-commutative80.1%
rem-exp-log80.9%
associate-*l/80.9%
*-commutative80.9%
associate-/l*80.9%
Simplified80.9%
Taylor expanded in t around 0 65.5%
Taylor expanded in y around 0 27.0%
clear-num28.7%
inv-pow28.7%
*-commutative28.7%
Applied egg-rr28.7%
unpow-128.7%
associate-/l*32.8%
Simplified32.8%
Final simplification39.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.7e+94)
(/ (* x (- (/ b a))) y)
(if (<= b 3.8e-300)
(/ (/ 1.0 a) (/ y x))
(if (<= b 1.8e-186) (/ x (* y (* a b))) (/ (/ x (+ a (* a b))) y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.7e+94) {
tmp = (x * -(b / a)) / y;
} else if (b <= 3.8e-300) {
tmp = (1.0 / a) / (y / x);
} else if (b <= 1.8e-186) {
tmp = x / (y * (a * b));
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.7d+94)) then
tmp = (x * -(b / a)) / y
else if (b <= 3.8d-300) then
tmp = (1.0d0 / a) / (y / x)
else if (b <= 1.8d-186) then
tmp = x / (y * (a * b))
else
tmp = (x / (a + (a * b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.7e+94) {
tmp = (x * -(b / a)) / y;
} else if (b <= 3.8e-300) {
tmp = (1.0 / a) / (y / x);
} else if (b <= 1.8e-186) {
tmp = x / (y * (a * b));
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.7e+94: tmp = (x * -(b / a)) / y elif b <= 3.8e-300: tmp = (1.0 / a) / (y / x) elif b <= 1.8e-186: tmp = x / (y * (a * b)) else: tmp = (x / (a + (a * b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.7e+94) tmp = Float64(Float64(x * Float64(-Float64(b / a))) / y); elseif (b <= 3.8e-300) tmp = Float64(Float64(1.0 / a) / Float64(y / x)); elseif (b <= 1.8e-186) tmp = Float64(x / Float64(y * Float64(a * b))); else tmp = Float64(Float64(x / Float64(a + Float64(a * b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.7e+94) tmp = (x * -(b / a)) / y; elseif (b <= 3.8e-300) tmp = (1.0 / a) / (y / x); elseif (b <= 1.8e-186) tmp = x / (y * (a * b)); else tmp = (x / (a + (a * b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.7e+94], N[(N[(x * (-N[(b / a), $MachinePrecision])), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 3.8e-300], N[(N[(1.0 / a), $MachinePrecision] / N[(y / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.8e-186], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.7 \cdot 10^{+94}:\\
\;\;\;\;\frac{x \cdot \left(-\frac{b}{a}\right)}{y}\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{-300}:\\
\;\;\;\;\frac{\frac{1}{a}}{\frac{y}{x}}\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{-186}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a + a \cdot b}}{y}\\
\end{array}
\end{array}
if b < -1.7000000000000001e94Initial program 100.0%
Taylor expanded in y around 0 88.0%
exp-diff70.9%
sub-neg70.9%
metadata-eval70.9%
*-commutative70.9%
exp-to-pow70.9%
Simplified70.9%
Taylor expanded in t around 0 85.6%
Taylor expanded in b around 0 53.3%
+-commutative53.3%
mul-1-neg53.3%
unsub-neg53.3%
*-commutative53.3%
associate-/l*57.8%
Simplified57.8%
Taylor expanded in b around inf 53.3%
associate-/l*41.7%
associate-/r/57.8%
associate-*r*57.8%
*-lft-identity57.8%
associate-*l/57.8%
associate-/r/57.8%
neg-mul-157.8%
distribute-lft-neg-in57.8%
*-commutative57.8%
distribute-rgt-neg-in57.8%
neg-mul-157.8%
associate-/r/57.8%
associate-*l/57.8%
*-lft-identity57.8%
mul-1-neg57.8%
Simplified57.8%
if -1.7000000000000001e94 < b < 3.80000000000000013e-300Initial program 98.4%
Taylor expanded in y around 0 67.3%
associate-/l*59.5%
exp-diff57.3%
sub-neg57.3%
metadata-eval57.3%
*-commutative57.3%
exp-to-pow57.8%
Simplified57.8%
Taylor expanded in t around 0 41.1%
Taylor expanded in b around 0 32.9%
if 3.80000000000000013e-300 < b < 1.7999999999999999e-186Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
exp-sum100.0%
associate-/l*100.0%
associate-/r/100.0%
exp-neg100.0%
associate-*r/100.0%
Simplified81.3%
Taylor expanded in y around 0 57.8%
Taylor expanded in t around 0 22.4%
Taylor expanded in b around 0 22.4%
+-commutative22.4%
distribute-lft-out22.4%
Simplified22.4%
Taylor expanded in b around -inf 46.1%
if 1.7999999999999999e-186 < b Initial program 99.4%
Taylor expanded in y around 0 78.9%
exp-diff69.6%
sub-neg69.6%
metadata-eval69.6%
*-commutative69.6%
exp-to-pow70.1%
Simplified70.1%
Taylor expanded in t around 0 56.9%
Taylor expanded in b around 0 37.3%
Final simplification39.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -6.8e+93)
(/ (- (/ x a) (/ x (/ a b))) y)
(if (<= b 3.8e-300)
(/ (/ 1.0 a) (/ y x))
(if (<= b 2.6e-194) (/ x (* y (* a b))) (/ (/ x (+ a (* a b))) y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6.8e+93) {
tmp = ((x / a) - (x / (a / b))) / y;
} else if (b <= 3.8e-300) {
tmp = (1.0 / a) / (y / x);
} else if (b <= 2.6e-194) {
tmp = x / (y * (a * b));
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-6.8d+93)) then
tmp = ((x / a) - (x / (a / b))) / y
else if (b <= 3.8d-300) then
tmp = (1.0d0 / a) / (y / x)
else if (b <= 2.6d-194) then
tmp = x / (y * (a * b))
else
tmp = (x / (a + (a * b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6.8e+93) {
tmp = ((x / a) - (x / (a / b))) / y;
} else if (b <= 3.8e-300) {
tmp = (1.0 / a) / (y / x);
} else if (b <= 2.6e-194) {
tmp = x / (y * (a * b));
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -6.8e+93: tmp = ((x / a) - (x / (a / b))) / y elif b <= 3.8e-300: tmp = (1.0 / a) / (y / x) elif b <= 2.6e-194: tmp = x / (y * (a * b)) else: tmp = (x / (a + (a * b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -6.8e+93) tmp = Float64(Float64(Float64(x / a) - Float64(x / Float64(a / b))) / y); elseif (b <= 3.8e-300) tmp = Float64(Float64(1.0 / a) / Float64(y / x)); elseif (b <= 2.6e-194) tmp = Float64(x / Float64(y * Float64(a * b))); else tmp = Float64(Float64(x / Float64(a + Float64(a * b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -6.8e+93) tmp = ((x / a) - (x / (a / b))) / y; elseif (b <= 3.8e-300) tmp = (1.0 / a) / (y / x); elseif (b <= 2.6e-194) tmp = x / (y * (a * b)); else tmp = (x / (a + (a * b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -6.8e+93], N[(N[(N[(x / a), $MachinePrecision] - N[(x / N[(a / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 3.8e-300], N[(N[(1.0 / a), $MachinePrecision] / N[(y / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.6e-194], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.8 \cdot 10^{+93}:\\
\;\;\;\;\frac{\frac{x}{a} - \frac{x}{\frac{a}{b}}}{y}\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{-300}:\\
\;\;\;\;\frac{\frac{1}{a}}{\frac{y}{x}}\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{-194}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a + a \cdot b}}{y}\\
\end{array}
\end{array}
if b < -6.8000000000000001e93Initial program 100.0%
Taylor expanded in y around 0 88.0%
exp-diff70.9%
sub-neg70.9%
metadata-eval70.9%
*-commutative70.9%
exp-to-pow70.9%
Simplified70.9%
Taylor expanded in t around 0 85.6%
Taylor expanded in b around 0 53.3%
+-commutative53.3%
mul-1-neg53.3%
unsub-neg53.3%
*-commutative53.3%
associate-/l*57.8%
Simplified57.8%
if -6.8000000000000001e93 < b < 3.80000000000000013e-300Initial program 98.4%
Taylor expanded in y around 0 67.3%
associate-/l*59.5%
exp-diff57.3%
sub-neg57.3%
metadata-eval57.3%
*-commutative57.3%
exp-to-pow57.8%
Simplified57.8%
Taylor expanded in t around 0 41.1%
Taylor expanded in b around 0 32.9%
if 3.80000000000000013e-300 < b < 2.60000000000000002e-194Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
exp-sum100.0%
associate-/l*100.0%
associate-/r/100.0%
exp-neg100.0%
associate-*r/100.0%
Simplified81.3%
Taylor expanded in y around 0 57.8%
Taylor expanded in t around 0 22.4%
Taylor expanded in b around 0 22.4%
+-commutative22.4%
distribute-lft-out22.4%
Simplified22.4%
Taylor expanded in b around -inf 46.1%
if 2.60000000000000002e-194 < b Initial program 99.4%
Taylor expanded in y around 0 78.9%
exp-diff69.6%
sub-neg69.6%
metadata-eval69.6%
*-commutative69.6%
exp-to-pow70.1%
Simplified70.1%
Taylor expanded in t around 0 56.9%
Taylor expanded in b around 0 37.3%
Final simplification39.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b 3.6e-300) (and (not (<= b 3.4e-185)) (<= b 7.6e+71))) (/ 1.0 (/ a (/ x y))) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= 3.6e-300) || (!(b <= 3.4e-185) && (b <= 7.6e+71))) {
tmp = 1.0 / (a / (x / 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 <= 3.6d-300) .or. (.not. (b <= 3.4d-185)) .and. (b <= 7.6d+71)) then
tmp = 1.0d0 / (a / (x / 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 <= 3.6e-300) || (!(b <= 3.4e-185) && (b <= 7.6e+71))) {
tmp = 1.0 / (a / (x / y));
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= 3.6e-300) or (not (b <= 3.4e-185) and (b <= 7.6e+71)): tmp = 1.0 / (a / (x / y)) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= 3.6e-300) || (!(b <= 3.4e-185) && (b <= 7.6e+71))) tmp = Float64(1.0 / Float64(a / Float64(x / 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 <= 3.6e-300) || (~((b <= 3.4e-185)) && (b <= 7.6e+71))) tmp = 1.0 / (a / (x / y)); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, 3.6e-300], And[N[Not[LessEqual[b, 3.4e-185]], $MachinePrecision], LessEqual[b, 7.6e+71]]], N[(1.0 / N[(a / N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 3.6 \cdot 10^{-300} \lor \neg \left(b \leq 3.4 \cdot 10^{-185}\right) \land b \leq 7.6 \cdot 10^{+71}:\\
\;\;\;\;\frac{1}{\frac{a}{\frac{x}{y}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 3.60000000000000016e-300 or 3.3999999999999998e-185 < b < 7.6000000000000001e71Initial program 99.0%
Taylor expanded in b around 0 85.4%
sub-neg85.4%
metadata-eval85.4%
log-pow75.0%
*-commutative75.0%
distribute-rgt-in75.0%
mul-1-neg75.0%
sub-neg75.0%
log-pow66.8%
log-div66.9%
log-prod66.9%
*-commutative66.9%
rem-exp-log67.3%
associate-*l/67.3%
*-commutative67.3%
associate-/l*67.3%
Simplified67.3%
Taylor expanded in t around 0 61.1%
Taylor expanded in y around 0 28.7%
clear-num29.2%
inv-pow29.2%
*-commutative29.2%
Applied egg-rr29.2%
unpow-129.2%
associate-/l*32.5%
Simplified32.5%
if 3.60000000000000016e-300 < b < 3.3999999999999998e-185 or 7.6000000000000001e71 < b Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
exp-sum75.0%
associate-/l*75.0%
associate-/r/69.6%
exp-neg69.6%
associate-*r/69.6%
Simplified62.5%
Taylor expanded in y around 0 64.9%
Taylor expanded in t around 0 62.0%
Taylor expanded in b around 0 37.1%
+-commutative37.1%
distribute-lft-out37.1%
Simplified37.1%
Taylor expanded in b around inf 42.0%
Final simplification34.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b 4e-300) (and (not (<= b 3.6e-186)) (<= b 1e+73))) (/ 1.0 (/ a (/ x y))) (/ x (* y (* a b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= 4e-300) || (!(b <= 3.6e-186) && (b <= 1e+73))) {
tmp = 1.0 / (a / (x / 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 <= 4d-300) .or. (.not. (b <= 3.6d-186)) .and. (b <= 1d+73)) then
tmp = 1.0d0 / (a / (x / 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 <= 4e-300) || (!(b <= 3.6e-186) && (b <= 1e+73))) {
tmp = 1.0 / (a / (x / y));
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= 4e-300) or (not (b <= 3.6e-186) and (b <= 1e+73)): tmp = 1.0 / (a / (x / y)) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= 4e-300) || (!(b <= 3.6e-186) && (b <= 1e+73))) tmp = Float64(1.0 / Float64(a / Float64(x / 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 <= 4e-300) || (~((b <= 3.6e-186)) && (b <= 1e+73))) tmp = 1.0 / (a / (x / y)); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, 4e-300], And[N[Not[LessEqual[b, 3.6e-186]], $MachinePrecision], LessEqual[b, 1e+73]]], N[(1.0 / N[(a / N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 4 \cdot 10^{-300} \lor \neg \left(b \leq 3.6 \cdot 10^{-186}\right) \land b \leq 10^{+73}:\\
\;\;\;\;\frac{1}{\frac{a}{\frac{x}{y}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < 4.0000000000000001e-300 or 3.5999999999999998e-186 < b < 9.99999999999999983e72Initial program 99.0%
Taylor expanded in b around 0 85.4%
sub-neg85.4%
metadata-eval85.4%
log-pow75.0%
*-commutative75.0%
distribute-rgt-in75.0%
mul-1-neg75.0%
sub-neg75.0%
log-pow66.8%
log-div66.9%
log-prod66.9%
*-commutative66.9%
rem-exp-log67.3%
associate-*l/67.3%
*-commutative67.3%
associate-/l*67.3%
Simplified67.3%
Taylor expanded in t around 0 61.1%
Taylor expanded in y around 0 28.7%
clear-num29.2%
inv-pow29.2%
*-commutative29.2%
Applied egg-rr29.2%
unpow-129.2%
associate-/l*32.5%
Simplified32.5%
if 4.0000000000000001e-300 < b < 3.5999999999999998e-186 or 9.99999999999999983e72 < b Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
exp-sum75.0%
associate-/l*75.0%
associate-/r/69.6%
exp-neg69.6%
associate-*r/69.6%
Simplified62.5%
Taylor expanded in y around 0 64.9%
Taylor expanded in t around 0 62.0%
Taylor expanded in b around 0 37.1%
+-commutative37.1%
distribute-lft-out37.1%
Simplified37.1%
Taylor expanded in b around -inf 45.5%
Final simplification35.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b 3.6e-300) (/ (- (/ 1.0 a) (/ b a)) (/ y x)) (if (<= b 8.6e-194) (/ x (* y (* a b))) (/ (/ x (+ a (* a b))) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 3.6e-300) {
tmp = ((1.0 / a) - (b / a)) / (y / x);
} else if (b <= 8.6e-194) {
tmp = x / (y * (a * b));
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 3.6d-300) then
tmp = ((1.0d0 / a) - (b / a)) / (y / x)
else if (b <= 8.6d-194) then
tmp = x / (y * (a * b))
else
tmp = (x / (a + (a * b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 3.6e-300) {
tmp = ((1.0 / a) - (b / a)) / (y / x);
} else if (b <= 8.6e-194) {
tmp = x / (y * (a * b));
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 3.6e-300: tmp = ((1.0 / a) - (b / a)) / (y / x) elif b <= 8.6e-194: tmp = x / (y * (a * b)) else: tmp = (x / (a + (a * b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 3.6e-300) tmp = Float64(Float64(Float64(1.0 / a) - Float64(b / a)) / Float64(y / x)); elseif (b <= 8.6e-194) tmp = Float64(x / Float64(y * Float64(a * b))); else tmp = Float64(Float64(x / Float64(a + Float64(a * b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 3.6e-300) tmp = ((1.0 / a) - (b / a)) / (y / x); elseif (b <= 8.6e-194) tmp = x / (y * (a * b)); else tmp = (x / (a + (a * b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 3.6e-300], N[(N[(N[(1.0 / a), $MachinePrecision] - N[(b / a), $MachinePrecision]), $MachinePrecision] / N[(y / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.6e-194], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 3.6 \cdot 10^{-300}:\\
\;\;\;\;\frac{\frac{1}{a} - \frac{b}{a}}{\frac{y}{x}}\\
\mathbf{elif}\;b \leq 8.6 \cdot 10^{-194}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a + a \cdot b}}{y}\\
\end{array}
\end{array}
if b < 3.60000000000000016e-300Initial program 98.9%
Taylor expanded in y around 0 73.7%
associate-/l*66.0%
exp-diff59.2%
sub-neg59.2%
metadata-eval59.2%
*-commutative59.2%
exp-to-pow59.6%
Simplified59.6%
Taylor expanded in t around 0 52.6%
Taylor expanded in b around 0 39.1%
mul-1-neg39.1%
Simplified39.1%
if 3.60000000000000016e-300 < b < 8.60000000000000012e-194Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
exp-sum100.0%
associate-/l*100.0%
associate-/r/100.0%
exp-neg100.0%
associate-*r/100.0%
Simplified81.3%
Taylor expanded in y around 0 57.8%
Taylor expanded in t around 0 22.4%
Taylor expanded in b around 0 22.4%
+-commutative22.4%
distribute-lft-out22.4%
Simplified22.4%
Taylor expanded in b around -inf 46.1%
if 8.60000000000000012e-194 < b Initial program 99.4%
Taylor expanded in y around 0 78.9%
exp-diff69.6%
sub-neg69.6%
metadata-eval69.6%
*-commutative69.6%
exp-to-pow70.1%
Simplified70.1%
Taylor expanded in t around 0 56.9%
Taylor expanded in b around 0 37.3%
Final simplification38.8%
(FPCore (x y z t a b) :precision binary64 (if (<= a 2.15e+171) (/ (/ x a) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 2.15e+171) {
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 <= 2.15d+171) 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 <= 2.15e+171) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 2.15e+171: tmp = (x / a) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 2.15e+171) 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 <= 2.15e+171) tmp = (x / a) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 2.15e+171], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 2.15 \cdot 10^{+171}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if a < 2.15000000000000004e171Initial program 99.7%
Taylor expanded in b around 0 85.6%
sub-neg85.6%
metadata-eval85.6%
log-pow76.3%
*-commutative76.3%
distribute-rgt-in76.3%
mul-1-neg76.3%
sub-neg76.3%
log-pow68.2%
log-div68.2%
log-prod68.2%
*-commutative68.2%
rem-exp-log68.5%
associate-*l/68.5%
*-commutative68.5%
associate-/l*68.5%
Simplified68.5%
Taylor expanded in t around 0 60.4%
Taylor expanded in y around 0 23.8%
*-commutative23.8%
associate-/r*27.2%
Simplified27.2%
if 2.15000000000000004e171 < a Initial program 97.4%
Taylor expanded in b around 0 74.4%
sub-neg74.4%
metadata-eval74.4%
log-pow70.9%
*-commutative70.9%
distribute-rgt-in70.9%
mul-1-neg70.9%
sub-neg70.9%
log-pow61.7%
log-div61.7%
log-prod61.7%
*-commutative61.7%
rem-exp-log62.2%
associate-*l/62.2%
*-commutative62.2%
associate-/l*62.2%
Simplified62.2%
Taylor expanded in t around 0 57.2%
Taylor expanded in y around 0 43.2%
Final simplification30.6%
(FPCore (x y z t a b) :precision binary64 (/ 1.0 (/ a (/ x y))))
double code(double x, double y, double z, double t, double a, double b) {
return 1.0 / (a / (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 = 1.0d0 / (a / (x / y))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return 1.0 / (a / (x / y));
}
def code(x, y, z, t, a, b): return 1.0 / (a / (x / y))
function code(x, y, z, t, a, b) return Float64(1.0 / Float64(a / Float64(x / y))) end
function tmp = code(x, y, z, t, a, b) tmp = 1.0 / (a / (x / y)); end
code[x_, y_, z_, t_, a_, b_] := N[(1.0 / N[(a / N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{\frac{a}{\frac{x}{y}}}
\end{array}
Initial program 99.2%
Taylor expanded in b around 0 83.2%
sub-neg83.2%
metadata-eval83.2%
log-pow75.1%
*-commutative75.1%
distribute-rgt-in75.1%
mul-1-neg75.1%
sub-neg75.1%
log-pow66.8%
log-div66.8%
log-prod66.8%
*-commutative66.8%
rem-exp-log67.1%
associate-*l/67.1%
*-commutative67.1%
associate-/l*67.1%
Simplified67.1%
Taylor expanded in t around 0 59.7%
Taylor expanded in y around 0 28.0%
clear-num28.4%
inv-pow28.4%
*-commutative28.4%
Applied egg-rr28.4%
unpow-128.4%
associate-/l*29.6%
Simplified29.6%
Final simplification29.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 99.2%
Taylor expanded in b around 0 83.2%
sub-neg83.2%
metadata-eval83.2%
log-pow75.1%
*-commutative75.1%
distribute-rgt-in75.1%
mul-1-neg75.1%
sub-neg75.1%
log-pow66.8%
log-div66.8%
log-prod66.8%
*-commutative66.8%
rem-exp-log67.1%
associate-*l/67.1%
*-commutative67.1%
associate-/l*67.1%
Simplified67.1%
Taylor expanded in t around 0 59.7%
Taylor expanded in y around 0 28.0%
Final simplification28.0%
(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(Float64(x / 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[(N[(x / y), $MachinePrecision] / a), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{x}{y}}{a}
\end{array}
Initial program 99.2%
Taylor expanded in y around 0 75.6%
exp-diff67.8%
sub-neg67.8%
metadata-eval67.8%
*-commutative67.8%
exp-to-pow68.1%
Simplified68.1%
Taylor expanded in b around 0 58.0%
Simplified58.0%
Taylor expanded in t around 0 28.0%
associate-/r*29.3%
Simplified29.3%
Final simplification29.3%
(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 2023257
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:herbie-target
(if (< t -0.8845848504127471) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z)))) (if (< t 852031.2288374073) (/ (* (/ x y) (pow a (- t 1.0))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))