
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (+ t -1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t + (-1.0d0)) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t + -1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t + -1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t + -1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t + -1\right) \cdot \log a\right) - b}}{y}
\end{array}
Initial program 98.5%
Final simplification98.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -5e+99) (not (<= t 3e-27))) (/ (* x (exp (- (* (+ t -1.0) (log a)) 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 tmp;
if ((t <= -5e+99) || !(t <= 3e-27)) {
tmp = (x * exp((((t + -1.0) * log(a)) - 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) :: tmp
if ((t <= (-5d+99)) .or. (.not. (t <= 3d-27))) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - 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 tmp;
if ((t <= -5e+99) || !(t <= 3e-27)) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - 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): tmp = 0 if (t <= -5e+99) or not (t <= 3e-27): tmp = (x * math.exp((((t + -1.0) * math.log(a)) - 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) tmp = 0.0 if ((t <= -5e+99) || !(t <= 3e-27)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - 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) tmp = 0.0; if ((t <= -5e+99) || ~((t <= 3e-27))) tmp = (x * exp((((t + -1.0) * log(a)) - 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_] := If[Or[LessEqual[t, -5e+99], N[Not[LessEqual[t, 3e-27]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - 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}
\mathbf{if}\;t \leq -5 \cdot 10^{+99} \lor \neg \left(t \leq 3 \cdot 10^{-27}\right):\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\end{array}
\end{array}
if t < -5.00000000000000008e99 or 3.0000000000000001e-27 < t Initial program 99.9%
Taylor expanded in y around 0 91.4%
if -5.00000000000000008e99 < t < 3.0000000000000001e-27Initial program 97.4%
Taylor expanded in t around 0 95.6%
mul-1-neg95.6%
Simplified95.6%
Final simplification93.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= (+ t -1.0) -2e+67)
(* x (/ (pow a t) (* y a)))
(if (<= (+ t -1.0) 2e+69)
(* x (/ (pow z y) (* y (* a (exp b)))))
(/ (* x (/ (pow a t) a)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t + -1.0) <= -2e+67) {
tmp = x * (pow(a, t) / (y * a));
} else if ((t + -1.0) <= 2e+69) {
tmp = x * (pow(z, y) / (y * (a * exp(b))));
} else {
tmp = (x * (pow(a, t) / a)) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t + (-1.0d0)) <= (-2d+67)) then
tmp = x * ((a ** t) / (y * a))
else if ((t + (-1.0d0)) <= 2d+69) then
tmp = x * ((z ** y) / (y * (a * exp(b))))
else
tmp = (x * ((a ** t) / a)) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t + -1.0) <= -2e+67) {
tmp = x * (Math.pow(a, t) / (y * a));
} else if ((t + -1.0) <= 2e+69) {
tmp = x * (Math.pow(z, y) / (y * (a * Math.exp(b))));
} else {
tmp = (x * (Math.pow(a, t) / a)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t + -1.0) <= -2e+67: tmp = x * (math.pow(a, t) / (y * a)) elif (t + -1.0) <= 2e+69: tmp = x * (math.pow(z, y) / (y * (a * math.exp(b)))) else: tmp = (x * (math.pow(a, t) / a)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(t + -1.0) <= -2e+67) tmp = Float64(x * Float64((a ^ t) / Float64(y * a))); elseif (Float64(t + -1.0) <= 2e+69) tmp = Float64(x * Float64((z ^ y) / Float64(y * Float64(a * exp(b))))); else tmp = Float64(Float64(x * Float64((a ^ t) / a)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t + -1.0) <= -2e+67) tmp = x * ((a ^ t) / (y * a)); elseif ((t + -1.0) <= 2e+69) tmp = x * ((z ^ y) / (y * (a * exp(b)))); else tmp = (x * ((a ^ t) / a)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(t + -1.0), $MachinePrecision], -2e+67], N[(x * N[(N[Power[a, t], $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(t + -1.0), $MachinePrecision], 2e+69], N[(x * N[(N[Power[z, y], $MachinePrecision] / N[(y * N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t + -1 \leq -2 \cdot 10^{+67}:\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y \cdot a}\\
\mathbf{elif}\;t + -1 \leq 2 \cdot 10^{+69}:\\
\;\;\;\;x \cdot \frac{{z}^{y}}{y \cdot \left(a \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\
\end{array}
\end{array}
if (-.f64 t 1) < -1.99999999999999997e67Initial program 100.0%
Taylor expanded in y around 0 88.4%
Taylor expanded in b around 0 78.8%
expm1-log1p-u59.1%
expm1-udef59.1%
associate-/l*51.2%
pow-sub51.2%
pow151.2%
Applied egg-rr51.2%
expm1-def51.2%
expm1-log1p70.9%
associate-/r/78.8%
*-commutative78.8%
associate-/l/78.8%
Simplified78.8%
if -1.99999999999999997e67 < (-.f64 t 1) < 2.0000000000000001e69Initial program 97.5%
associate-*r/97.0%
sub-neg97.0%
exp-sum81.6%
associate-/l*81.6%
associate-/r/79.5%
exp-neg79.5%
associate-*r/79.5%
Simplified74.6%
Taylor expanded in t around 0 79.0%
associate-*r*77.7%
*-commutative77.7%
associate-*r*79.0%
Simplified79.0%
if 2.0000000000000001e69 < (-.f64 t 1) Initial program 100.0%
Taylor expanded in y around 0 93.0%
Taylor expanded in b around 0 75.4%
expm1-log1p-u57.4%
expm1-udef57.4%
*-commutative57.4%
pow-sub57.4%
pow157.4%
Applied egg-rr57.4%
expm1-def57.4%
expm1-log1p75.4%
Simplified75.4%
Final simplification78.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.25e+164) (not (<= y 3.9e+59))) (/ (/ x (/ a (pow z y))) 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.25e+164) || !(y <= 3.9e+59)) {
tmp = (x / (a / pow(z, y))) / 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.25d+164)) .or. (.not. (y <= 3.9d+59))) then
tmp = (x / (a / (z ** y))) / 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.25e+164) || !(y <= 3.9e+59)) {
tmp = (x / (a / Math.pow(z, y))) / 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.25e+164) or not (y <= 3.9e+59): tmp = (x / (a / math.pow(z, y))) / 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.25e+164) || !(y <= 3.9e+59)) tmp = Float64(Float64(x / Float64(a / (z ^ y))) / 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.25e+164) || ~((y <= 3.9e+59))) tmp = (x / (a / (z ^ y))) / 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.25e+164], N[Not[LessEqual[y, 3.9e+59]], $MachinePrecision]], N[(N[(x / N[(a / N[Power[z, y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.25 \cdot 10^{+164} \lor \neg \left(y \leq 3.9 \cdot 10^{+59}\right):\\
\;\;\;\;\frac{\frac{x}{\frac{a}{{z}^{y}}}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -1.24999999999999987e164 or 3.90000000000000021e59 < y Initial program 100.0%
Taylor expanded in t around 0 90.7%
mul-1-neg90.7%
Simplified90.7%
Taylor expanded in b around 0 85.5%
*-commutative85.5%
exp-diff85.5%
*-commutative85.5%
exp-to-pow85.5%
rem-exp-log85.5%
associate-*r/85.5%
associate-/l*85.5%
Simplified85.5%
if -1.24999999999999987e164 < y < 3.90000000000000021e59Initial program 97.7%
Taylor expanded in y around 0 93.4%
Final simplification90.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.55e+63) (not (<= y 1.85e+56))) (/ (/ x (/ a (pow z y))) y) (* (/ (pow a t) a) (/ x (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.55e+63) || !(y <= 1.85e+56)) {
tmp = (x / (a / pow(z, y))) / y;
} else {
tmp = (pow(a, t) / a) * (x / (y * exp(b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-1.55d+63)) .or. (.not. (y <= 1.85d+56))) then
tmp = (x / (a / (z ** y))) / y
else
tmp = ((a ** t) / a) * (x / (y * exp(b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.55e+63) || !(y <= 1.85e+56)) {
tmp = (x / (a / Math.pow(z, y))) / y;
} else {
tmp = (Math.pow(a, t) / a) * (x / (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.55e+63) or not (y <= 1.85e+56): tmp = (x / (a / math.pow(z, y))) / y else: tmp = (math.pow(a, t) / a) * (x / (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.55e+63) || !(y <= 1.85e+56)) tmp = Float64(Float64(x / Float64(a / (z ^ y))) / y); else tmp = Float64(Float64((a ^ t) / a) * Float64(x / Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.55e+63) || ~((y <= 1.85e+56))) tmp = (x / (a / (z ^ y))) / y; else tmp = ((a ^ t) / a) * (x / (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.55e+63], N[Not[LessEqual[y, 1.85e+56]], $MachinePrecision]], N[(N[(x / N[(a / N[Power[z, y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] * N[(x / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.55 \cdot 10^{+63} \lor \neg \left(y \leq 1.85 \cdot 10^{+56}\right):\\
\;\;\;\;\frac{\frac{x}{\frac{a}{{z}^{y}}}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{{a}^{t}}{a} \cdot \frac{x}{y \cdot e^{b}}\\
\end{array}
\end{array}
if y < -1.55e63 or 1.84999999999999998e56 < y Initial program 100.0%
Taylor expanded in t around 0 91.0%
mul-1-neg91.0%
Simplified91.0%
Taylor expanded in b around 0 82.8%
*-commutative82.8%
exp-diff82.8%
*-commutative82.8%
exp-to-pow82.8%
rem-exp-log82.8%
associate-*r/82.8%
associate-/l*82.8%
Simplified82.8%
if -1.55e63 < y < 1.84999999999999998e56Initial program 97.5%
associate-*r/96.9%
sub-neg96.9%
exp-sum80.6%
associate-/l*80.6%
associate-/r/78.6%
exp-neg78.6%
associate-*r/78.6%
Simplified72.9%
Taylor expanded in y around 0 78.4%
associate-*r*77.0%
*-commutative77.0%
associate-*r*78.4%
times-frac79.0%
Simplified79.0%
Final simplification80.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -4e+66) (not (<= y 1.1e+57))) (/ (/ x (/ a (pow z y))) 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 <= -4e+66) || !(y <= 1.1e+57)) {
tmp = (x / (a / pow(z, y))) / 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 <= (-4d+66)) .or. (.not. (y <= 1.1d+57))) then
tmp = (x / (a / (z ** y))) / 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 <= -4e+66) || !(y <= 1.1e+57)) {
tmp = (x / (a / Math.pow(z, y))) / 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 <= -4e+66) or not (y <= 1.1e+57): tmp = (x / (a / math.pow(z, y))) / 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 <= -4e+66) || !(y <= 1.1e+57)) tmp = Float64(Float64(x / Float64(a / (z ^ y))) / 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 <= -4e+66) || ~((y <= 1.1e+57))) tmp = (x / (a / (z ^ y))) / 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, -4e+66], N[Not[LessEqual[y, 1.1e+57]], $MachinePrecision]], N[(N[(x / N[(a / N[Power[z, y], $MachinePrecision]), $MachinePrecision]), $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 -4 \cdot 10^{+66} \lor \neg \left(y \leq 1.1 \cdot 10^{+57}\right):\\
\;\;\;\;\frac{\frac{x}{\frac{a}{{z}^{y}}}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\\
\end{array}
\end{array}
if y < -3.99999999999999978e66 or 1.1e57 < y Initial program 100.0%
Taylor expanded in t around 0 91.0%
mul-1-neg91.0%
Simplified91.0%
Taylor expanded in b around 0 82.8%
*-commutative82.8%
exp-diff82.8%
*-commutative82.8%
exp-to-pow82.8%
rem-exp-log82.8%
associate-*r/82.8%
associate-/l*82.8%
Simplified82.8%
if -3.99999999999999978e66 < y < 1.1e57Initial program 97.5%
Taylor expanded in y around 0 95.5%
exp-diff81.2%
sub-neg81.2%
metadata-eval81.2%
*-commutative81.2%
exp-to-pow82.3%
Simplified82.3%
Final simplification82.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x (/ a (pow z y))) y))
(t_2 (/ x (* a (* y (exp b)))))
(t_3 (/ (* x (/ (pow a t) a)) y)))
(if (<= b -6.8e+113)
t_2
(if (<= b -5.7e+35)
(* (/ (pow z y) a) (/ x y))
(if (<= b -5.5e-111)
t_3
(if (<= b 4.5e-301)
t_1
(if (<= b 8e-276) t_3 (if (<= b 5.2e+58) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / (a / pow(z, y))) / y;
double t_2 = x / (a * (y * exp(b)));
double t_3 = (x * (pow(a, t) / a)) / y;
double tmp;
if (b <= -6.8e+113) {
tmp = t_2;
} else if (b <= -5.7e+35) {
tmp = (pow(z, y) / a) * (x / y);
} else if (b <= -5.5e-111) {
tmp = t_3;
} else if (b <= 4.5e-301) {
tmp = t_1;
} else if (b <= 8e-276) {
tmp = t_3;
} else if (b <= 5.2e+58) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (x / (a / (z ** y))) / y
t_2 = x / (a * (y * exp(b)))
t_3 = (x * ((a ** t) / a)) / y
if (b <= (-6.8d+113)) then
tmp = t_2
else if (b <= (-5.7d+35)) then
tmp = ((z ** y) / a) * (x / y)
else if (b <= (-5.5d-111)) then
tmp = t_3
else if (b <= 4.5d-301) then
tmp = t_1
else if (b <= 8d-276) then
tmp = t_3
else if (b <= 5.2d+58) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / (a / Math.pow(z, y))) / y;
double t_2 = x / (a * (y * Math.exp(b)));
double t_3 = (x * (Math.pow(a, t) / a)) / y;
double tmp;
if (b <= -6.8e+113) {
tmp = t_2;
} else if (b <= -5.7e+35) {
tmp = (Math.pow(z, y) / a) * (x / y);
} else if (b <= -5.5e-111) {
tmp = t_3;
} else if (b <= 4.5e-301) {
tmp = t_1;
} else if (b <= 8e-276) {
tmp = t_3;
} else if (b <= 5.2e+58) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / (a / math.pow(z, y))) / y t_2 = x / (a * (y * math.exp(b))) t_3 = (x * (math.pow(a, t) / a)) / y tmp = 0 if b <= -6.8e+113: tmp = t_2 elif b <= -5.7e+35: tmp = (math.pow(z, y) / a) * (x / y) elif b <= -5.5e-111: tmp = t_3 elif b <= 4.5e-301: tmp = t_1 elif b <= 8e-276: tmp = t_3 elif b <= 5.2e+58: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / Float64(a / (z ^ y))) / y) t_2 = Float64(x / Float64(a * Float64(y * exp(b)))) t_3 = Float64(Float64(x * Float64((a ^ t) / a)) / y) tmp = 0.0 if (b <= -6.8e+113) tmp = t_2; elseif (b <= -5.7e+35) tmp = Float64(Float64((z ^ y) / a) * Float64(x / y)); elseif (b <= -5.5e-111) tmp = t_3; elseif (b <= 4.5e-301) tmp = t_1; elseif (b <= 8e-276) tmp = t_3; elseif (b <= 5.2e+58) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / (a / (z ^ y))) / y; t_2 = x / (a * (y * exp(b))); t_3 = (x * ((a ^ t) / a)) / y; tmp = 0.0; if (b <= -6.8e+113) tmp = t_2; elseif (b <= -5.7e+35) tmp = ((z ^ y) / a) * (x / y); elseif (b <= -5.5e-111) tmp = t_3; elseif (b <= 4.5e-301) tmp = t_1; elseif (b <= 8e-276) tmp = t_3; elseif (b <= 5.2e+58) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / N[(a / N[Power[z, y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -6.8e+113], t$95$2, If[LessEqual[b, -5.7e+35], N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.5e-111], t$95$3, If[LessEqual[b, 4.5e-301], t$95$1, If[LessEqual[b, 8e-276], t$95$3, If[LessEqual[b, 5.2e+58], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{\frac{a}{{z}^{y}}}}{y}\\
t_2 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
t_3 := \frac{x \cdot \frac{{a}^{t}}{a}}{y}\\
\mathbf{if}\;b \leq -6.8 \cdot 10^{+113}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -5.7 \cdot 10^{+35}:\\
\;\;\;\;\frac{{z}^{y}}{a} \cdot \frac{x}{y}\\
\mathbf{elif}\;b \leq -5.5 \cdot 10^{-111}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{-301}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 8 \cdot 10^{-276}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{+58}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -6.80000000000000038e113 or 5.19999999999999976e58 < b Initial program 100.0%
Taylor expanded in t around 0 94.1%
mul-1-neg94.1%
Simplified94.1%
Taylor expanded in y around 0 87.2%
exp-neg87.2%
associate-*l/87.2%
*-lft-identity87.2%
exp-sum87.2%
rem-exp-log87.2%
*-commutative87.2%
associate-/r*80.2%
associate-/r*80.2%
*-commutative80.2%
associate-/r*87.2%
Simplified87.2%
if -6.80000000000000038e113 < b < -5.69999999999999993e35Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
exp-sum36.8%
associate-/l*36.8%
associate-/r/36.8%
exp-neg36.8%
associate-*r/36.8%
Simplified31.6%
Taylor expanded in t around 0 42.3%
associate-*r*42.2%
*-commutative42.2%
associate-*r*42.3%
times-frac42.3%
Simplified42.3%
Taylor expanded in b around 0 75.0%
if -5.69999999999999993e35 < b < -5.4999999999999998e-111 or 4.5000000000000002e-301 < b < 8e-276Initial program 99.3%
Taylor expanded in y around 0 88.7%
Taylor expanded in b around 0 91.6%
expm1-log1p-u56.9%
expm1-udef51.7%
*-commutative51.7%
pow-sub51.7%
pow151.7%
Applied egg-rr51.7%
expm1-def56.9%
expm1-log1p91.6%
Simplified91.6%
if -5.4999999999999998e-111 < b < 4.5000000000000002e-301 or 8e-276 < b < 5.19999999999999976e58Initial program 96.5%
Taylor expanded in t around 0 79.9%
mul-1-neg79.9%
Simplified79.9%
Taylor expanded in b around 0 79.0%
*-commutative79.0%
exp-diff79.0%
*-commutative79.0%
exp-to-pow79.0%
rem-exp-log80.3%
associate-*r/80.3%
associate-/l*80.3%
Simplified80.3%
Final simplification84.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* a (+ y (* y b))))) (t_2 (/ (/ x a) y)))
(if (<= b -6e+99)
(+ (- t_2 (* (/ x a) (/ b y))) (* t_2 (* 0.5 (* b b))))
(if (<= b -1.05e+73)
t_1
(if (<= b -9.4e-20)
(/ (- x (* x b)) (* y a))
(if (<= b 9.5e-54)
(/ 1.0 (* y (/ a x)))
(if (or (<= b 125000000000.0) (not (<= b 2.8e+98)))
t_1
(* (/ (exp b) y) (/ x a)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y + (y * b)));
double t_2 = (x / a) / y;
double tmp;
if (b <= -6e+99) {
tmp = (t_2 - ((x / a) * (b / y))) + (t_2 * (0.5 * (b * b)));
} else if (b <= -1.05e+73) {
tmp = t_1;
} else if (b <= -9.4e-20) {
tmp = (x - (x * b)) / (y * a);
} else if (b <= 9.5e-54) {
tmp = 1.0 / (y * (a / x));
} else if ((b <= 125000000000.0) || !(b <= 2.8e+98)) {
tmp = t_1;
} else {
tmp = (exp(b) / y) * (x / 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (a * (y + (y * b)))
t_2 = (x / a) / y
if (b <= (-6d+99)) then
tmp = (t_2 - ((x / a) * (b / y))) + (t_2 * (0.5d0 * (b * b)))
else if (b <= (-1.05d+73)) then
tmp = t_1
else if (b <= (-9.4d-20)) then
tmp = (x - (x * b)) / (y * a)
else if (b <= 9.5d-54) then
tmp = 1.0d0 / (y * (a / x))
else if ((b <= 125000000000.0d0) .or. (.not. (b <= 2.8d+98))) then
tmp = t_1
else
tmp = (exp(b) / y) * (x / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y + (y * b)));
double t_2 = (x / a) / y;
double tmp;
if (b <= -6e+99) {
tmp = (t_2 - ((x / a) * (b / y))) + (t_2 * (0.5 * (b * b)));
} else if (b <= -1.05e+73) {
tmp = t_1;
} else if (b <= -9.4e-20) {
tmp = (x - (x * b)) / (y * a);
} else if (b <= 9.5e-54) {
tmp = 1.0 / (y * (a / x));
} else if ((b <= 125000000000.0) || !(b <= 2.8e+98)) {
tmp = t_1;
} else {
tmp = (Math.exp(b) / y) * (x / a);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a * (y + (y * b))) t_2 = (x / a) / y tmp = 0 if b <= -6e+99: tmp = (t_2 - ((x / a) * (b / y))) + (t_2 * (0.5 * (b * b))) elif b <= -1.05e+73: tmp = t_1 elif b <= -9.4e-20: tmp = (x - (x * b)) / (y * a) elif b <= 9.5e-54: tmp = 1.0 / (y * (a / x)) elif (b <= 125000000000.0) or not (b <= 2.8e+98): tmp = t_1 else: tmp = (math.exp(b) / y) * (x / a) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a * Float64(y + Float64(y * b)))) t_2 = Float64(Float64(x / a) / y) tmp = 0.0 if (b <= -6e+99) tmp = Float64(Float64(t_2 - Float64(Float64(x / a) * Float64(b / y))) + Float64(t_2 * Float64(0.5 * Float64(b * b)))); elseif (b <= -1.05e+73) tmp = t_1; elseif (b <= -9.4e-20) tmp = Float64(Float64(x - Float64(x * b)) / Float64(y * a)); elseif (b <= 9.5e-54) tmp = Float64(1.0 / Float64(y * Float64(a / x))); elseif ((b <= 125000000000.0) || !(b <= 2.8e+98)) tmp = t_1; else tmp = Float64(Float64(exp(b) / y) * Float64(x / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a * (y + (y * b))); t_2 = (x / a) / y; tmp = 0.0; if (b <= -6e+99) tmp = (t_2 - ((x / a) * (b / y))) + (t_2 * (0.5 * (b * b))); elseif (b <= -1.05e+73) tmp = t_1; elseif (b <= -9.4e-20) tmp = (x - (x * b)) / (y * a); elseif (b <= 9.5e-54) tmp = 1.0 / (y * (a / x)); elseif ((b <= 125000000000.0) || ~((b <= 2.8e+98))) tmp = t_1; else tmp = (exp(b) / y) * (x / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -6e+99], N[(N[(t$95$2 - N[(N[(x / a), $MachinePrecision] * N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 * N[(0.5 * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.05e+73], t$95$1, If[LessEqual[b, -9.4e-20], N[(N[(x - N[(x * b), $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.5e-54], N[(1.0 / N[(y * N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 125000000000.0], N[Not[LessEqual[b, 2.8e+98]], $MachinePrecision]], t$95$1, N[(N[(N[Exp[b], $MachinePrecision] / y), $MachinePrecision] * N[(x / a), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a \cdot \left(y + y \cdot b\right)}\\
t_2 := \frac{\frac{x}{a}}{y}\\
\mathbf{if}\;b \leq -6 \cdot 10^{+99}:\\
\;\;\;\;\left(t_2 - \frac{x}{a} \cdot \frac{b}{y}\right) + t_2 \cdot \left(0.5 \cdot \left(b \cdot b\right)\right)\\
\mathbf{elif}\;b \leq -1.05 \cdot 10^{+73}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -9.4 \cdot 10^{-20}:\\
\;\;\;\;\frac{x - x \cdot b}{y \cdot a}\\
\mathbf{elif}\;b \leq 9.5 \cdot 10^{-54}:\\
\;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\
\mathbf{elif}\;b \leq 125000000000 \lor \neg \left(b \leq 2.8 \cdot 10^{+98}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{e^{b}}{y} \cdot \frac{x}{a}\\
\end{array}
\end{array}
if b < -6.00000000000000029e99Initial program 100.0%
Taylor expanded in t around 0 97.9%
mul-1-neg97.9%
Simplified97.9%
Taylor expanded in y around 0 91.4%
exp-neg91.4%
associate-*l/91.4%
*-lft-identity91.4%
exp-sum91.4%
rem-exp-log91.4%
*-commutative91.4%
associate-/r*84.9%
associate-/r*84.9%
*-commutative84.9%
associate-/r*91.4%
Simplified91.4%
Taylor expanded in b around 0 54.6%
+-commutative54.6%
+-commutative54.6%
mul-1-neg54.6%
unsub-neg54.6%
*-commutative54.6%
associate-/r*54.6%
*-commutative54.6%
times-frac52.5%
mul-1-neg52.5%
*-commutative52.5%
distribute-rgt-out76.4%
metadata-eval76.4%
*-commutative76.4%
Simplified78.6%
if -6.00000000000000029e99 < b < -1.0500000000000001e73 or 9.4999999999999994e-54 < b < 1.25e11 or 2.8000000000000001e98 < b Initial program 98.6%
Taylor expanded in t around 0 89.2%
mul-1-neg89.2%
Simplified89.2%
Taylor expanded in y around 0 70.6%
exp-neg70.6%
associate-*l/70.6%
*-lft-identity70.6%
exp-sum70.6%
rem-exp-log70.6%
*-commutative70.6%
associate-/r*64.2%
associate-/r*64.2%
*-commutative64.2%
associate-/r*75.0%
Simplified75.0%
Taylor expanded in b around 0 51.6%
if -1.0500000000000001e73 < b < -9.4000000000000003e-20Initial program 99.2%
Taylor expanded in t around 0 64.4%
mul-1-neg64.4%
Simplified64.4%
Taylor expanded in y around 0 58.8%
exp-neg58.8%
associate-*l/58.8%
*-lft-identity58.8%
exp-sum58.8%
rem-exp-log59.5%
*-commutative59.5%
associate-/r*53.5%
associate-/r*53.5%
*-commutative53.5%
associate-/r*59.6%
Simplified59.6%
Taylor expanded in b around 0 65.6%
+-commutative65.6%
mul-1-neg65.6%
unsub-neg65.6%
*-commutative65.6%
associate-/r*54.5%
*-commutative54.5%
times-frac54.5%
Simplified54.5%
associate-/l/54.5%
frac-times65.6%
*-commutative65.6%
sub-div65.6%
*-commutative65.6%
Applied egg-rr65.6%
if -9.4000000000000003e-20 < b < 9.4999999999999994e-54Initial program 97.6%
associate-*r/96.1%
sub-neg96.1%
exp-sum96.1%
associate-/l*96.1%
associate-/r/96.1%
exp-neg96.1%
associate-*r/96.1%
Simplified81.8%
Taylor expanded in t around 0 68.1%
associate-*r*68.1%
*-commutative68.1%
associate-*r*68.1%
Simplified68.1%
Taylor expanded in y around 0 38.9%
associate-/r*38.1%
*-commutative38.1%
associate-/r*38.1%
associate-/r*38.1%
*-commutative38.1%
associate-/r*38.1%
exp-neg38.1%
Simplified38.1%
Taylor expanded in b around 0 38.9%
associate-/r*38.1%
Simplified38.1%
associate-*r/41.8%
div-inv41.8%
div-inv41.7%
clear-num41.8%
frac-times41.8%
metadata-eval41.8%
Applied egg-rr41.8%
if 1.25e11 < b < 2.8000000000000001e98Initial program 100.0%
Taylor expanded in t around 0 76.6%
mul-1-neg76.6%
Simplified76.6%
Taylor expanded in y around 0 53.1%
exp-neg53.1%
associate-*l/53.1%
*-lft-identity53.1%
exp-sum53.1%
rem-exp-log53.1%
*-commutative53.1%
associate-/r*53.1%
associate-/r*53.1%
*-commutative53.1%
associate-/r*53.1%
Simplified53.1%
*-un-lft-identity53.1%
*-commutative53.1%
times-frac53.1%
metadata-eval53.1%
*-commutative53.1%
frac-times53.1%
exp-neg53.1%
div-inv53.1%
add-sqr-sqrt0.0%
sqrt-unprod43.5%
sqr-neg43.5%
sqrt-unprod43.5%
add-sqr-sqrt43.5%
Applied egg-rr43.5%
Final simplification52.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* a (* y (exp b))))) (t_2 (* x (/ (pow a t) (* y a)))))
(if (<= b -7.2e+103)
t_1
(if (<= b -1.05e+73)
(/ (* x (/ (exp b) y)) a)
(if (<= b -50000.0)
t_2
(if (<= b -3.2e-13)
(/ (- (/ (* x y) y) (* a (* b (/ x a)))) (* y a))
(if (<= b 4.7e+39) t_2 t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y * exp(b)));
double t_2 = x * (pow(a, t) / (y * a));
double tmp;
if (b <= -7.2e+103) {
tmp = t_1;
} else if (b <= -1.05e+73) {
tmp = (x * (exp(b) / y)) / a;
} else if (b <= -50000.0) {
tmp = t_2;
} else if (b <= -3.2e-13) {
tmp = (((x * y) / y) - (a * (b * (x / a)))) / (y * a);
} else if (b <= 4.7e+39) {
tmp = t_2;
} 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 / (a * (y * exp(b)))
t_2 = x * ((a ** t) / (y * a))
if (b <= (-7.2d+103)) then
tmp = t_1
else if (b <= (-1.05d+73)) then
tmp = (x * (exp(b) / y)) / a
else if (b <= (-50000.0d0)) then
tmp = t_2
else if (b <= (-3.2d-13)) then
tmp = (((x * y) / y) - (a * (b * (x / a)))) / (y * a)
else if (b <= 4.7d+39) then
tmp = t_2
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 / (a * (y * Math.exp(b)));
double t_2 = x * (Math.pow(a, t) / (y * a));
double tmp;
if (b <= -7.2e+103) {
tmp = t_1;
} else if (b <= -1.05e+73) {
tmp = (x * (Math.exp(b) / y)) / a;
} else if (b <= -50000.0) {
tmp = t_2;
} else if (b <= -3.2e-13) {
tmp = (((x * y) / y) - (a * (b * (x / a)))) / (y * a);
} else if (b <= 4.7e+39) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a * (y * math.exp(b))) t_2 = x * (math.pow(a, t) / (y * a)) tmp = 0 if b <= -7.2e+103: tmp = t_1 elif b <= -1.05e+73: tmp = (x * (math.exp(b) / y)) / a elif b <= -50000.0: tmp = t_2 elif b <= -3.2e-13: tmp = (((x * y) / y) - (a * (b * (x / a)))) / (y * a) elif b <= 4.7e+39: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a * Float64(y * exp(b)))) t_2 = Float64(x * Float64((a ^ t) / Float64(y * a))) tmp = 0.0 if (b <= -7.2e+103) tmp = t_1; elseif (b <= -1.05e+73) tmp = Float64(Float64(x * Float64(exp(b) / y)) / a); elseif (b <= -50000.0) tmp = t_2; elseif (b <= -3.2e-13) tmp = Float64(Float64(Float64(Float64(x * y) / y) - Float64(a * Float64(b * Float64(x / a)))) / Float64(y * a)); elseif (b <= 4.7e+39) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a * (y * exp(b))); t_2 = x * ((a ^ t) / (y * a)); tmp = 0.0; if (b <= -7.2e+103) tmp = t_1; elseif (b <= -1.05e+73) tmp = (x * (exp(b) / y)) / a; elseif (b <= -50000.0) tmp = t_2; elseif (b <= -3.2e-13) tmp = (((x * y) / y) - (a * (b * (x / a)))) / (y * a); elseif (b <= 4.7e+39) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[Power[a, t], $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.2e+103], t$95$1, If[LessEqual[b, -1.05e+73], N[(N[(x * N[(N[Exp[b], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b, -50000.0], t$95$2, If[LessEqual[b, -3.2e-13], N[(N[(N[(N[(x * y), $MachinePrecision] / y), $MachinePrecision] - N[(a * N[(b * N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.7e+39], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
t_2 := x \cdot \frac{{a}^{t}}{y \cdot a}\\
\mathbf{if}\;b \leq -7.2 \cdot 10^{+103}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.05 \cdot 10^{+73}:\\
\;\;\;\;\frac{x \cdot \frac{e^{b}}{y}}{a}\\
\mathbf{elif}\;b \leq -50000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -3.2 \cdot 10^{-13}:\\
\;\;\;\;\frac{\frac{x \cdot y}{y} - a \cdot \left(b \cdot \frac{x}{a}\right)}{y \cdot a}\\
\mathbf{elif}\;b \leq 4.7 \cdot 10^{+39}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -7.20000000000000033e103 or 4.6999999999999999e39 < b Initial program 100.0%
Taylor expanded in t around 0 94.4%
mul-1-neg94.4%
Simplified94.4%
Taylor expanded in y around 0 87.0%
exp-neg87.0%
associate-*l/87.0%
*-lft-identity87.0%
exp-sum87.0%
rem-exp-log87.0%
*-commutative87.0%
associate-/r*80.4%
associate-/r*80.4%
*-commutative80.4%
associate-/r*87.0%
Simplified87.0%
if -7.20000000000000033e103 < b < -1.0500000000000001e73Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
exp-sum11.1%
associate-/l*11.1%
associate-/r/11.1%
exp-neg11.1%
associate-*r/11.1%
Simplified11.1%
Taylor expanded in t around 0 22.4%
associate-*r*22.2%
*-commutative22.2%
associate-*r*22.4%
Simplified22.4%
Taylor expanded in y around 0 23.4%
associate-/r*23.4%
*-commutative23.4%
associate-/r*23.4%
associate-/r*23.4%
*-commutative23.4%
associate-/r*23.4%
exp-neg23.4%
Simplified23.4%
associate-*r/23.4%
add-sqr-sqrt23.4%
sqrt-unprod23.4%
sqr-neg23.4%
sqrt-unprod0.0%
add-sqr-sqrt78.1%
Applied egg-rr78.1%
if -1.0500000000000001e73 < b < -5e4 or -3.2e-13 < b < 4.6999999999999999e39Initial program 97.4%
Taylor expanded in y around 0 72.4%
Taylor expanded in b around 0 72.1%
expm1-log1p-u48.3%
expm1-udef48.1%
associate-/l*40.3%
pow-sub40.3%
pow140.3%
Applied egg-rr40.3%
expm1-def42.0%
expm1-log1p65.0%
associate-/r/72.5%
*-commutative72.5%
associate-/l/67.3%
Simplified67.3%
if -5e4 < b < -3.2e-13Initial program 96.5%
Taylor expanded in t around 0 47.3%
mul-1-neg47.3%
Simplified47.3%
Taylor expanded in y around 0 23.3%
exp-neg23.3%
associate-*l/23.3%
*-lft-identity23.3%
exp-sum23.5%
rem-exp-log26.4%
*-commutative26.4%
associate-/r*26.4%
associate-/r*26.4%
*-commutative26.4%
associate-/r*26.7%
Simplified26.7%
Taylor expanded in b around 0 50.8%
+-commutative50.8%
mul-1-neg50.8%
unsub-neg50.8%
*-commutative50.8%
associate-/r*50.9%
*-commutative50.9%
times-frac50.9%
Simplified50.9%
associate-/l/50.9%
associate-/r*50.9%
associate-*r/50.9%
frac-sub50.8%
Applied egg-rr50.8%
associate-*l/74.6%
Simplified74.6%
Final simplification75.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (pow a t) (* y a))))
(t_2 (/ x (* a (* y (exp b)))))
(t_3 (* (/ (pow z y) a) (/ x y))))
(if (<= b -1.25e+104)
t_2
(if (<= b -5.5e-111)
t_1
(if (<= b 1.05e-301)
t_3
(if (<= b 3.8e-275) t_1 (if (<= b 3.2e+41) t_3 t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (pow(a, t) / (y * a));
double t_2 = x / (a * (y * exp(b)));
double t_3 = (pow(z, y) / a) * (x / y);
double tmp;
if (b <= -1.25e+104) {
tmp = t_2;
} else if (b <= -5.5e-111) {
tmp = t_1;
} else if (b <= 1.05e-301) {
tmp = t_3;
} else if (b <= 3.8e-275) {
tmp = t_1;
} else if (b <= 3.2e+41) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((a ** t) / (y * a))
t_2 = x / (a * (y * exp(b)))
t_3 = ((z ** y) / a) * (x / y)
if (b <= (-1.25d+104)) then
tmp = t_2
else if (b <= (-5.5d-111)) then
tmp = t_1
else if (b <= 1.05d-301) then
tmp = t_3
else if (b <= 3.8d-275) then
tmp = t_1
else if (b <= 3.2d+41) then
tmp = t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (Math.pow(a, t) / (y * a));
double t_2 = x / (a * (y * Math.exp(b)));
double t_3 = (Math.pow(z, y) / a) * (x / y);
double tmp;
if (b <= -1.25e+104) {
tmp = t_2;
} else if (b <= -5.5e-111) {
tmp = t_1;
} else if (b <= 1.05e-301) {
tmp = t_3;
} else if (b <= 3.8e-275) {
tmp = t_1;
} else if (b <= 3.2e+41) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * (math.pow(a, t) / (y * a)) t_2 = x / (a * (y * math.exp(b))) t_3 = (math.pow(z, y) / a) * (x / y) tmp = 0 if b <= -1.25e+104: tmp = t_2 elif b <= -5.5e-111: tmp = t_1 elif b <= 1.05e-301: tmp = t_3 elif b <= 3.8e-275: tmp = t_1 elif b <= 3.2e+41: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64((a ^ t) / Float64(y * a))) t_2 = Float64(x / Float64(a * Float64(y * exp(b)))) t_3 = Float64(Float64((z ^ y) / a) * Float64(x / y)) tmp = 0.0 if (b <= -1.25e+104) tmp = t_2; elseif (b <= -5.5e-111) tmp = t_1; elseif (b <= 1.05e-301) tmp = t_3; elseif (b <= 3.8e-275) tmp = t_1; elseif (b <= 3.2e+41) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * ((a ^ t) / (y * a)); t_2 = x / (a * (y * exp(b))); t_3 = ((z ^ y) / a) * (x / y); tmp = 0.0; if (b <= -1.25e+104) tmp = t_2; elseif (b <= -5.5e-111) tmp = t_1; elseif (b <= 1.05e-301) tmp = t_3; elseif (b <= 3.8e-275) tmp = t_1; elseif (b <= 3.2e+41) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[Power[a, t], $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.25e+104], t$95$2, If[LessEqual[b, -5.5e-111], t$95$1, If[LessEqual[b, 1.05e-301], t$95$3, If[LessEqual[b, 3.8e-275], t$95$1, If[LessEqual[b, 3.2e+41], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{{a}^{t}}{y \cdot a}\\
t_2 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
t_3 := \frac{{z}^{y}}{a} \cdot \frac{x}{y}\\
\mathbf{if}\;b \leq -1.25 \cdot 10^{+104}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -5.5 \cdot 10^{-111}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-301}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{-275}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{+41}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -1.2499999999999999e104 or 3.2000000000000001e41 < b Initial program 100.0%
Taylor expanded in t around 0 94.4%
mul-1-neg94.4%
Simplified94.4%
Taylor expanded in y around 0 87.0%
exp-neg87.0%
associate-*l/87.0%
*-lft-identity87.0%
exp-sum87.0%
rem-exp-log87.0%
*-commutative87.0%
associate-/r*80.4%
associate-/r*80.4%
*-commutative80.4%
associate-/r*87.0%
Simplified87.0%
if -1.2499999999999999e104 < b < -5.4999999999999998e-111 or 1.0499999999999999e-301 < b < 3.79999999999999972e-275Initial program 99.5%
Taylor expanded in y around 0 79.5%
Taylor expanded in b around 0 76.4%
expm1-log1p-u53.8%
expm1-udef55.5%
associate-/l*46.3%
pow-sub46.3%
pow146.3%
Applied egg-rr46.3%
expm1-def44.6%
expm1-log1p65.3%
associate-/r/79.9%
*-commutative79.9%
associate-/l/74.2%
Simplified74.2%
if -5.4999999999999998e-111 < b < 1.0499999999999999e-301 or 3.79999999999999972e-275 < b < 3.2000000000000001e41Initial program 96.4%
associate-*r/95.6%
sub-neg95.6%
exp-sum91.4%
associate-/l*91.4%
associate-/r/91.4%
exp-neg91.4%
associate-*r/91.4%
Simplified78.3%
Taylor expanded in t around 0 69.8%
associate-*r*69.8%
*-commutative69.8%
associate-*r*69.8%
times-frac72.1%
Simplified72.1%
Taylor expanded in b around 0 75.6%
Final simplification80.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* a (* y (exp b))))))
(if (<= b -7.5e+103)
t_1
(if (<= b -6.6e+72)
(/ (* x (/ (exp b) y)) a)
(if (<= b -1020000000.0)
(* x (/ (pow a t) (* y a)))
(if (<= b 1.25e+40) (* (/ (pow a t) a) (/ x y)) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y * exp(b)));
double tmp;
if (b <= -7.5e+103) {
tmp = t_1;
} else if (b <= -6.6e+72) {
tmp = (x * (exp(b) / y)) / a;
} else if (b <= -1020000000.0) {
tmp = x * (pow(a, t) / (y * a));
} else if (b <= 1.25e+40) {
tmp = (pow(a, t) / a) * (x / 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 * (y * exp(b)))
if (b <= (-7.5d+103)) then
tmp = t_1
else if (b <= (-6.6d+72)) then
tmp = (x * (exp(b) / y)) / a
else if (b <= (-1020000000.0d0)) then
tmp = x * ((a ** t) / (y * a))
else if (b <= 1.25d+40) then
tmp = ((a ** t) / a) * (x / 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 / (a * (y * Math.exp(b)));
double tmp;
if (b <= -7.5e+103) {
tmp = t_1;
} else if (b <= -6.6e+72) {
tmp = (x * (Math.exp(b) / y)) / a;
} else if (b <= -1020000000.0) {
tmp = x * (Math.pow(a, t) / (y * a));
} else if (b <= 1.25e+40) {
tmp = (Math.pow(a, t) / a) * (x / y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a * (y * math.exp(b))) tmp = 0 if b <= -7.5e+103: tmp = t_1 elif b <= -6.6e+72: tmp = (x * (math.exp(b) / y)) / a elif b <= -1020000000.0: tmp = x * (math.pow(a, t) / (y * a)) elif b <= 1.25e+40: tmp = (math.pow(a, t) / a) * (x / y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (b <= -7.5e+103) tmp = t_1; elseif (b <= -6.6e+72) tmp = Float64(Float64(x * Float64(exp(b) / y)) / a); elseif (b <= -1020000000.0) tmp = Float64(x * Float64((a ^ t) / Float64(y * a))); elseif (b <= 1.25e+40) tmp = Float64(Float64((a ^ t) / a) * Float64(x / y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a * (y * exp(b))); tmp = 0.0; if (b <= -7.5e+103) tmp = t_1; elseif (b <= -6.6e+72) tmp = (x * (exp(b) / y)) / a; elseif (b <= -1020000000.0) tmp = x * ((a ^ t) / (y * a)); elseif (b <= 1.25e+40) tmp = ((a ^ t) / a) * (x / y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.5e+103], t$95$1, If[LessEqual[b, -6.6e+72], N[(N[(x * N[(N[Exp[b], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b, -1020000000.0], N[(x * N[(N[Power[a, t], $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.25e+40], N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -7.5 \cdot 10^{+103}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -6.6 \cdot 10^{+72}:\\
\;\;\;\;\frac{x \cdot \frac{e^{b}}{y}}{a}\\
\mathbf{elif}\;b \leq -1020000000:\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y \cdot a}\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{+40}:\\
\;\;\;\;\frac{{a}^{t}}{a} \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -7.49999999999999922e103 or 1.25000000000000001e40 < b Initial program 100.0%
Taylor expanded in t around 0 94.4%
mul-1-neg94.4%
Simplified94.4%
Taylor expanded in y around 0 87.0%
exp-neg87.0%
associate-*l/87.0%
*-lft-identity87.0%
exp-sum87.0%
rem-exp-log87.0%
*-commutative87.0%
associate-/r*80.4%
associate-/r*80.4%
*-commutative80.4%
associate-/r*87.0%
Simplified87.0%
if -7.49999999999999922e103 < b < -6.6e72Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
exp-sum11.1%
associate-/l*11.1%
associate-/r/11.1%
exp-neg11.1%
associate-*r/11.1%
Simplified11.1%
Taylor expanded in t around 0 22.4%
associate-*r*22.2%
*-commutative22.2%
associate-*r*22.4%
Simplified22.4%
Taylor expanded in y around 0 23.4%
associate-/r*23.4%
*-commutative23.4%
associate-/r*23.4%
associate-/r*23.4%
*-commutative23.4%
associate-/r*23.4%
exp-neg23.4%
Simplified23.4%
associate-*r/23.4%
add-sqr-sqrt23.4%
sqrt-unprod23.4%
sqr-neg23.4%
sqrt-unprod0.0%
add-sqr-sqrt78.1%
Applied egg-rr78.1%
if -6.6e72 < b < -1.02e9Initial program 100.0%
Taylor expanded in y around 0 84.9%
Taylor expanded in b around 0 70.7%
expm1-log1p-u39.4%
expm1-udef54.0%
associate-/l*46.3%
pow-sub46.3%
pow146.3%
Applied egg-rr46.3%
expm1-def31.8%
expm1-log1p63.0%
associate-/r/92.5%
*-commutative92.5%
associate-/l/92.5%
Simplified92.5%
if -1.02e9 < b < 1.25000000000000001e40Initial program 97.1%
Taylor expanded in y around 0 71.1%
Taylor expanded in b around 0 73.0%
expm1-log1p-u57.2%
expm1-udef46.8%
*-commutative46.8%
pow-sub46.8%
pow146.8%
Applied egg-rr46.8%
expm1-def57.4%
expm1-log1p73.1%
Simplified73.1%
div-inv73.1%
*-commutative73.1%
associate-*l*65.6%
div-inv65.6%
Applied egg-rr65.6%
Final simplification76.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (/ (pow z y) a) (/ x y))) (t_2 (/ x (* a (* y (exp b))))))
(if (<= b -2.2e+113)
t_2
(if (<= b -6.3e+34)
t_1
(if (<= b 2.9e-274)
(/ (* x (/ (pow a t) a)) y)
(if (<= b 4.2e+39) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (pow(z, y) / a) * (x / y);
double t_2 = x / (a * (y * exp(b)));
double tmp;
if (b <= -2.2e+113) {
tmp = t_2;
} else if (b <= -6.3e+34) {
tmp = t_1;
} else if (b <= 2.9e-274) {
tmp = (x * (pow(a, t) / a)) / y;
} else if (b <= 4.2e+39) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((z ** y) / a) * (x / y)
t_2 = x / (a * (y * exp(b)))
if (b <= (-2.2d+113)) then
tmp = t_2
else if (b <= (-6.3d+34)) then
tmp = t_1
else if (b <= 2.9d-274) then
tmp = (x * ((a ** t) / a)) / y
else if (b <= 4.2d+39) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (Math.pow(z, y) / a) * (x / y);
double t_2 = x / (a * (y * Math.exp(b)));
double tmp;
if (b <= -2.2e+113) {
tmp = t_2;
} else if (b <= -6.3e+34) {
tmp = t_1;
} else if (b <= 2.9e-274) {
tmp = (x * (Math.pow(a, t) / a)) / y;
} else if (b <= 4.2e+39) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (math.pow(z, y) / a) * (x / y) t_2 = x / (a * (y * math.exp(b))) tmp = 0 if b <= -2.2e+113: tmp = t_2 elif b <= -6.3e+34: tmp = t_1 elif b <= 2.9e-274: tmp = (x * (math.pow(a, t) / a)) / y elif b <= 4.2e+39: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64((z ^ y) / a) * Float64(x / y)) t_2 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (b <= -2.2e+113) tmp = t_2; elseif (b <= -6.3e+34) tmp = t_1; elseif (b <= 2.9e-274) tmp = Float64(Float64(x * Float64((a ^ t) / a)) / y); elseif (b <= 4.2e+39) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((z ^ y) / a) * (x / y); t_2 = x / (a * (y * exp(b))); tmp = 0.0; if (b <= -2.2e+113) tmp = t_2; elseif (b <= -6.3e+34) tmp = t_1; elseif (b <= 2.9e-274) tmp = (x * ((a ^ t) / a)) / y; elseif (b <= 4.2e+39) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.2e+113], t$95$2, If[LessEqual[b, -6.3e+34], t$95$1, If[LessEqual[b, 2.9e-274], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 4.2e+39], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{{z}^{y}}{a} \cdot \frac{x}{y}\\
t_2 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -2.2 \cdot 10^{+113}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -6.3 \cdot 10^{+34}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{-274}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{+39}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -2.2000000000000001e113 or 4.1999999999999997e39 < b Initial program 100.0%
Taylor expanded in t around 0 94.3%
mul-1-neg94.3%
Simplified94.3%
Taylor expanded in y around 0 86.7%
exp-neg86.7%
associate-*l/86.7%
*-lft-identity86.7%
exp-sum86.7%
rem-exp-log86.7%
*-commutative86.7%
associate-/r*80.0%
associate-/r*80.0%
*-commutative80.0%
associate-/r*86.7%
Simplified86.7%
if -2.2000000000000001e113 < b < -6.3000000000000001e34 or 2.89999999999999976e-274 < b < 4.1999999999999997e39Initial program 97.8%
associate-*r/96.6%
sub-neg96.6%
exp-sum74.7%
associate-/l*74.7%
associate-/r/74.7%
exp-neg74.7%
associate-*r/74.7%
Simplified59.0%
Taylor expanded in t around 0 56.6%
associate-*r*56.6%
*-commutative56.6%
associate-*r*56.6%
times-frac59.7%
Simplified59.7%
Taylor expanded in b around 0 72.8%
if -6.3000000000000001e34 < b < 2.89999999999999976e-274Initial program 97.4%
Taylor expanded in y around 0 80.0%
Taylor expanded in b around 0 82.3%
expm1-log1p-u63.3%
expm1-udef51.2%
*-commutative51.2%
pow-sub51.2%
pow151.2%
Applied egg-rr51.2%
expm1-def63.4%
expm1-log1p82.3%
Simplified82.3%
Final simplification81.4%
(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 98.5%
Taylor expanded in t around 0 82.1%
mul-1-neg82.1%
Simplified82.1%
Taylor expanded in y around 0 59.3%
exp-neg59.3%
associate-*l/59.3%
*-lft-identity59.3%
exp-sum59.3%
rem-exp-log59.9%
*-commutative59.9%
associate-/r*56.7%
associate-/r*56.7%
*-commutative56.7%
associate-/r*59.8%
Simplified59.8%
Final simplification59.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* a (+ y (* y b))))) (t_2 (/ (/ x a) y)))
(if (<= b -6e+99)
(+ (- t_2 (* (/ x a) (/ b y))) (* t_2 (* 0.5 (* b b))))
(if (<= b -8.5e+72)
t_1
(if (<= b -2e-21)
(/ (- x (* x b)) (* y a))
(if (<= b 3.7e-54)
(/ 1.0 (* y (/ a x)))
(if (or (<= b 340000000000.0) (not (<= b 9.5e+61)))
t_1
(/
(- y (* (* b (/ x a)) (* a (/ y x))))
(* a (* y (/ y x)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y + (y * b)));
double t_2 = (x / a) / y;
double tmp;
if (b <= -6e+99) {
tmp = (t_2 - ((x / a) * (b / y))) + (t_2 * (0.5 * (b * b)));
} else if (b <= -8.5e+72) {
tmp = t_1;
} else if (b <= -2e-21) {
tmp = (x - (x * b)) / (y * a);
} else if (b <= 3.7e-54) {
tmp = 1.0 / (y * (a / x));
} else if ((b <= 340000000000.0) || !(b <= 9.5e+61)) {
tmp = t_1;
} else {
tmp = (y - ((b * (x / a)) * (a * (y / x)))) / (a * (y * (y / x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (a * (y + (y * b)))
t_2 = (x / a) / y
if (b <= (-6d+99)) then
tmp = (t_2 - ((x / a) * (b / y))) + (t_2 * (0.5d0 * (b * b)))
else if (b <= (-8.5d+72)) then
tmp = t_1
else if (b <= (-2d-21)) then
tmp = (x - (x * b)) / (y * a)
else if (b <= 3.7d-54) then
tmp = 1.0d0 / (y * (a / x))
else if ((b <= 340000000000.0d0) .or. (.not. (b <= 9.5d+61))) then
tmp = t_1
else
tmp = (y - ((b * (x / a)) * (a * (y / x)))) / (a * (y * (y / x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y + (y * b)));
double t_2 = (x / a) / y;
double tmp;
if (b <= -6e+99) {
tmp = (t_2 - ((x / a) * (b / y))) + (t_2 * (0.5 * (b * b)));
} else if (b <= -8.5e+72) {
tmp = t_1;
} else if (b <= -2e-21) {
tmp = (x - (x * b)) / (y * a);
} else if (b <= 3.7e-54) {
tmp = 1.0 / (y * (a / x));
} else if ((b <= 340000000000.0) || !(b <= 9.5e+61)) {
tmp = t_1;
} else {
tmp = (y - ((b * (x / a)) * (a * (y / x)))) / (a * (y * (y / x)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a * (y + (y * b))) t_2 = (x / a) / y tmp = 0 if b <= -6e+99: tmp = (t_2 - ((x / a) * (b / y))) + (t_2 * (0.5 * (b * b))) elif b <= -8.5e+72: tmp = t_1 elif b <= -2e-21: tmp = (x - (x * b)) / (y * a) elif b <= 3.7e-54: tmp = 1.0 / (y * (a / x)) elif (b <= 340000000000.0) or not (b <= 9.5e+61): tmp = t_1 else: tmp = (y - ((b * (x / a)) * (a * (y / x)))) / (a * (y * (y / x))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a * Float64(y + Float64(y * b)))) t_2 = Float64(Float64(x / a) / y) tmp = 0.0 if (b <= -6e+99) tmp = Float64(Float64(t_2 - Float64(Float64(x / a) * Float64(b / y))) + Float64(t_2 * Float64(0.5 * Float64(b * b)))); elseif (b <= -8.5e+72) tmp = t_1; elseif (b <= -2e-21) tmp = Float64(Float64(x - Float64(x * b)) / Float64(y * a)); elseif (b <= 3.7e-54) tmp = Float64(1.0 / Float64(y * Float64(a / x))); elseif ((b <= 340000000000.0) || !(b <= 9.5e+61)) tmp = t_1; else tmp = Float64(Float64(y - Float64(Float64(b * Float64(x / a)) * Float64(a * Float64(y / x)))) / Float64(a * Float64(y * Float64(y / x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a * (y + (y * b))); t_2 = (x / a) / y; tmp = 0.0; if (b <= -6e+99) tmp = (t_2 - ((x / a) * (b / y))) + (t_2 * (0.5 * (b * b))); elseif (b <= -8.5e+72) tmp = t_1; elseif (b <= -2e-21) tmp = (x - (x * b)) / (y * a); elseif (b <= 3.7e-54) tmp = 1.0 / (y * (a / x)); elseif ((b <= 340000000000.0) || ~((b <= 9.5e+61))) tmp = t_1; else tmp = (y - ((b * (x / a)) * (a * (y / x)))) / (a * (y * (y / x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -6e+99], N[(N[(t$95$2 - N[(N[(x / a), $MachinePrecision] * N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 * N[(0.5 * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8.5e+72], t$95$1, If[LessEqual[b, -2e-21], N[(N[(x - N[(x * b), $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.7e-54], N[(1.0 / N[(y * N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 340000000000.0], N[Not[LessEqual[b, 9.5e+61]], $MachinePrecision]], t$95$1, N[(N[(y - N[(N[(b * N[(x / a), $MachinePrecision]), $MachinePrecision] * N[(a * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a * N[(y * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a \cdot \left(y + y \cdot b\right)}\\
t_2 := \frac{\frac{x}{a}}{y}\\
\mathbf{if}\;b \leq -6 \cdot 10^{+99}:\\
\;\;\;\;\left(t_2 - \frac{x}{a} \cdot \frac{b}{y}\right) + t_2 \cdot \left(0.5 \cdot \left(b \cdot b\right)\right)\\
\mathbf{elif}\;b \leq -8.5 \cdot 10^{+72}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2 \cdot 10^{-21}:\\
\;\;\;\;\frac{x - x \cdot b}{y \cdot a}\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{-54}:\\
\;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\
\mathbf{elif}\;b \leq 340000000000 \lor \neg \left(b \leq 9.5 \cdot 10^{+61}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{y - \left(b \cdot \frac{x}{a}\right) \cdot \left(a \cdot \frac{y}{x}\right)}{a \cdot \left(y \cdot \frac{y}{x}\right)}\\
\end{array}
\end{array}
if b < -6.00000000000000029e99Initial program 100.0%
Taylor expanded in t around 0 97.9%
mul-1-neg97.9%
Simplified97.9%
Taylor expanded in y around 0 91.4%
exp-neg91.4%
associate-*l/91.4%
*-lft-identity91.4%
exp-sum91.4%
rem-exp-log91.4%
*-commutative91.4%
associate-/r*84.9%
associate-/r*84.9%
*-commutative84.9%
associate-/r*91.4%
Simplified91.4%
Taylor expanded in b around 0 54.6%
+-commutative54.6%
+-commutative54.6%
mul-1-neg54.6%
unsub-neg54.6%
*-commutative54.6%
associate-/r*54.6%
*-commutative54.6%
times-frac52.5%
mul-1-neg52.5%
*-commutative52.5%
distribute-rgt-out76.4%
metadata-eval76.4%
*-commutative76.4%
Simplified78.6%
if -6.00000000000000029e99 < b < -8.5000000000000004e72 or 3.7000000000000003e-54 < b < 3.4e11 or 9.49999999999999959e61 < b Initial program 98.8%
Taylor expanded in t around 0 85.5%
mul-1-neg85.5%
Simplified85.5%
Taylor expanded in y around 0 68.3%
exp-neg68.3%
associate-*l/68.3%
*-lft-identity68.3%
exp-sum68.3%
rem-exp-log68.3%
*-commutative68.3%
associate-/r*62.9%
associate-/r*62.9%
*-commutative62.9%
associate-/r*72.1%
Simplified72.1%
Taylor expanded in b around 0 44.4%
if -8.5000000000000004e72 < b < -1.99999999999999982e-21Initial program 99.2%
Taylor expanded in t around 0 64.4%
mul-1-neg64.4%
Simplified64.4%
Taylor expanded in y around 0 58.8%
exp-neg58.8%
associate-*l/58.8%
*-lft-identity58.8%
exp-sum58.8%
rem-exp-log59.5%
*-commutative59.5%
associate-/r*53.5%
associate-/r*53.5%
*-commutative53.5%
associate-/r*59.6%
Simplified59.6%
Taylor expanded in b around 0 65.6%
+-commutative65.6%
mul-1-neg65.6%
unsub-neg65.6%
*-commutative65.6%
associate-/r*54.5%
*-commutative54.5%
times-frac54.5%
Simplified54.5%
associate-/l/54.5%
frac-times65.6%
*-commutative65.6%
sub-div65.6%
*-commutative65.6%
Applied egg-rr65.6%
if -1.99999999999999982e-21 < b < 3.7000000000000003e-54Initial program 97.6%
associate-*r/96.1%
sub-neg96.1%
exp-sum96.1%
associate-/l*96.1%
associate-/r/96.1%
exp-neg96.1%
associate-*r/96.1%
Simplified81.8%
Taylor expanded in t around 0 68.1%
associate-*r*68.1%
*-commutative68.1%
associate-*r*68.1%
Simplified68.1%
Taylor expanded in y around 0 38.9%
associate-/r*38.1%
*-commutative38.1%
associate-/r*38.1%
associate-/r*38.1%
*-commutative38.1%
associate-/r*38.1%
exp-neg38.1%
Simplified38.1%
Taylor expanded in b around 0 38.9%
associate-/r*38.1%
Simplified38.1%
associate-*r/41.8%
div-inv41.8%
div-inv41.7%
clear-num41.8%
frac-times41.8%
metadata-eval41.8%
Applied egg-rr41.8%
if 3.4e11 < b < 9.49999999999999959e61Initial program 100.0%
Taylor expanded in t around 0 90.2%
mul-1-neg90.2%
Simplified90.2%
Taylor expanded in y around 0 50.8%
exp-neg50.8%
associate-*l/50.8%
*-lft-identity50.8%
exp-sum50.8%
rem-exp-log50.8%
*-commutative50.8%
associate-/r*50.6%
associate-/r*50.6%
*-commutative50.6%
associate-/r*50.8%
Simplified50.8%
Taylor expanded in b around 0 1.7%
+-commutative1.7%
mul-1-neg1.7%
unsub-neg1.7%
*-commutative1.7%
associate-/r*11.8%
*-commutative11.8%
times-frac11.7%
Simplified11.7%
clear-num11.7%
associate-*r/11.7%
frac-sub10.9%
*-un-lft-identity10.9%
clear-num10.9%
associate-/l/10.8%
clear-num10.8%
*-commutative10.8%
*-un-lft-identity10.8%
times-frac30.9%
/-rgt-identity30.9%
clear-num30.9%
associate-/l/21.5%
clear-num21.5%
*-commutative21.5%
*-un-lft-identity21.5%
times-frac21.4%
/-rgt-identity21.4%
Applied egg-rr21.4%
associate-*l*30.8%
Simplified30.8%
Final simplification50.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -7.4e+99)
(* (/ x a) (/ (- b) y))
(if (or (<= b -1.05e+73) (not (<= b 4.5e-54)))
(/ x (* a (+ y (* y b))))
(/ 1.0 (* y (/ a x))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -7.4e+99) {
tmp = (x / a) * (-b / y);
} else if ((b <= -1.05e+73) || !(b <= 4.5e-54)) {
tmp = x / (a * (y + (y * b)));
} else {
tmp = 1.0 / (y * (a / x));
}
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.4d+99)) then
tmp = (x / a) * (-b / y)
else if ((b <= (-1.05d+73)) .or. (.not. (b <= 4.5d-54))) then
tmp = x / (a * (y + (y * b)))
else
tmp = 1.0d0 / (y * (a / x))
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.4e+99) {
tmp = (x / a) * (-b / y);
} else if ((b <= -1.05e+73) || !(b <= 4.5e-54)) {
tmp = x / (a * (y + (y * b)));
} else {
tmp = 1.0 / (y * (a / x));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -7.4e+99: tmp = (x / a) * (-b / y) elif (b <= -1.05e+73) or not (b <= 4.5e-54): tmp = x / (a * (y + (y * b))) else: tmp = 1.0 / (y * (a / x)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -7.4e+99) tmp = Float64(Float64(x / a) * Float64(Float64(-b) / y)); elseif ((b <= -1.05e+73) || !(b <= 4.5e-54)) tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); else tmp = Float64(1.0 / Float64(y * Float64(a / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -7.4e+99) tmp = (x / a) * (-b / y); elseif ((b <= -1.05e+73) || ~((b <= 4.5e-54))) tmp = x / (a * (y + (y * b))); else tmp = 1.0 / (y * (a / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -7.4e+99], N[(N[(x / a), $MachinePrecision] * N[((-b) / y), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, -1.05e+73], N[Not[LessEqual[b, 4.5e-54]], $MachinePrecision]], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(y * N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.4 \cdot 10^{+99}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{-b}{y}\\
\mathbf{elif}\;b \leq -1.05 \cdot 10^{+73} \lor \neg \left(b \leq 4.5 \cdot 10^{-54}\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\
\end{array}
\end{array}
if b < -7.4000000000000002e99Initial program 100.0%
Taylor expanded in t around 0 97.9%
mul-1-neg97.9%
Simplified97.9%
Taylor expanded in y around 0 91.4%
exp-neg91.4%
associate-*l/91.4%
*-lft-identity91.4%
exp-sum91.4%
rem-exp-log91.4%
*-commutative91.4%
associate-/r*84.9%
associate-/r*84.9%
*-commutative84.9%
associate-/r*91.4%
Simplified91.4%
Taylor expanded in b around 0 49.9%
+-commutative49.9%
mul-1-neg49.9%
unsub-neg49.9%
*-commutative49.9%
associate-/r*51.9%
*-commutative51.9%
times-frac54.0%
Simplified54.0%
Taylor expanded in b around inf 49.9%
associate-*r/49.9%
*-commutative49.9%
neg-mul-149.9%
distribute-frac-neg49.9%
times-frac54.0%
distribute-rgt-neg-out54.0%
distribute-neg-frac54.0%
Simplified54.0%
if -7.4000000000000002e99 < b < -1.0500000000000001e73 or 4.4999999999999998e-54 < b Initial program 98.9%
Taylor expanded in t around 0 86.0%
mul-1-neg86.0%
Simplified86.0%
Taylor expanded in y around 0 66.2%
exp-neg66.2%
associate-*l/66.2%
*-lft-identity66.2%
exp-sum66.2%
rem-exp-log66.2%
*-commutative66.2%
associate-/r*61.4%
associate-/r*61.4%
*-commutative61.4%
associate-/r*69.5%
Simplified69.5%
Taylor expanded in b around 0 40.7%
if -1.0500000000000001e73 < b < 4.4999999999999998e-54Initial program 97.8%
associate-*r/96.5%
sub-neg96.5%
exp-sum92.6%
associate-/l*92.6%
associate-/r/92.6%
exp-neg92.6%
associate-*r/92.6%
Simplified77.1%
Taylor expanded in t around 0 65.3%
associate-*r*65.3%
*-commutative65.3%
associate-*r*65.3%
Simplified65.3%
Taylor expanded in y around 0 41.7%
associate-/r*41.0%
*-commutative41.0%
associate-/r*41.0%
associate-/r*41.0%
*-commutative41.0%
associate-/r*41.0%
exp-neg41.0%
Simplified41.0%
Taylor expanded in b around 0 41.0%
associate-/r*40.2%
Simplified40.2%
associate-*r/42.6%
div-inv42.6%
div-inv42.6%
clear-num42.6%
frac-times42.7%
metadata-eval42.7%
Applied egg-rr42.7%
Final simplification44.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -9.5e+99)
(/ (- (/ x a) (/ (* x b) a)) y)
(if (<= b -1.4e-147)
(/ (- x (* x b)) (* y a))
(if (<= b 1.9e-54) (/ 1.0 (* y (/ a x))) (/ x (* a (+ y (* y b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -9.5e+99) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else if (b <= -1.4e-147) {
tmp = (x - (x * b)) / (y * a);
} else if (b <= 1.9e-54) {
tmp = 1.0 / (y * (a / x));
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-9.5d+99)) then
tmp = ((x / a) - ((x * b) / a)) / y
else if (b <= (-1.4d-147)) then
tmp = (x - (x * b)) / (y * a)
else if (b <= 1.9d-54) then
tmp = 1.0d0 / (y * (a / x))
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -9.5e+99) {
tmp = ((x / a) - ((x * b) / a)) / y;
} else if (b <= -1.4e-147) {
tmp = (x - (x * b)) / (y * a);
} else if (b <= 1.9e-54) {
tmp = 1.0 / (y * (a / x));
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -9.5e+99: tmp = ((x / a) - ((x * b) / a)) / y elif b <= -1.4e-147: tmp = (x - (x * b)) / (y * a) elif b <= 1.9e-54: tmp = 1.0 / (y * (a / x)) else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -9.5e+99) tmp = Float64(Float64(Float64(x / a) - Float64(Float64(x * b) / a)) / y); elseif (b <= -1.4e-147) tmp = Float64(Float64(x - Float64(x * b)) / Float64(y * a)); elseif (b <= 1.9e-54) tmp = Float64(1.0 / Float64(y * Float64(a / x))); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -9.5e+99) tmp = ((x / a) - ((x * b) / a)) / y; elseif (b <= -1.4e-147) tmp = (x - (x * b)) / (y * a); elseif (b <= 1.9e-54) tmp = 1.0 / (y * (a / x)); else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -9.5e+99], N[(N[(N[(x / a), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, -1.4e-147], N[(N[(x - N[(x * b), $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.9e-54], N[(1.0 / N[(y * N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -9.5 \cdot 10^{+99}:\\
\;\;\;\;\frac{\frac{x}{a} - \frac{x \cdot b}{a}}{y}\\
\mathbf{elif}\;b \leq -1.4 \cdot 10^{-147}:\\
\;\;\;\;\frac{x - x \cdot b}{y \cdot a}\\
\mathbf{elif}\;b \leq 1.9 \cdot 10^{-54}:\\
\;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -9.49999999999999908e99Initial program 100.0%
Taylor expanded in t around 0 97.8%
mul-1-neg97.8%
Simplified97.8%
Taylor expanded in y around 0 91.3%
exp-neg91.3%
associate-*l/91.3%
*-lft-identity91.3%
exp-sum91.3%
rem-exp-log91.3%
*-commutative91.3%
associate-/r*84.5%
associate-/r*84.5%
*-commutative84.5%
associate-/r*91.3%
Simplified91.3%
Taylor expanded in b around 0 48.8%
+-commutative48.8%
mul-1-neg48.8%
unsub-neg48.8%
*-commutative48.8%
associate-/r*50.8%
*-commutative50.8%
times-frac53.0%
Simplified53.0%
Taylor expanded in y around 0 63.5%
if -9.49999999999999908e99 < b < -1.4e-147Initial program 97.7%
Taylor expanded in t around 0 71.9%
mul-1-neg71.9%
Simplified71.9%
Taylor expanded in y around 0 42.4%
exp-neg42.4%
associate-*l/42.4%
*-lft-identity42.4%
exp-sum42.5%
rem-exp-log42.9%
*-commutative42.9%
associate-/r*41.0%
associate-/r*41.0%
*-commutative41.0%
associate-/r*44.7%
Simplified44.7%
Taylor expanded in b around 0 48.7%
+-commutative48.7%
mul-1-neg48.7%
unsub-neg48.7%
*-commutative48.7%
associate-/r*43.5%
*-commutative43.5%
times-frac41.8%
Simplified41.8%
associate-/l/45.3%
frac-times48.7%
*-commutative48.7%
sub-div50.6%
*-commutative50.6%
Applied egg-rr50.6%
if -1.4e-147 < b < 1.9000000000000001e-54Initial program 98.0%
associate-*r/95.0%
sub-neg95.0%
exp-sum95.0%
associate-/l*95.0%
associate-/r/95.0%
exp-neg95.0%
associate-*r/95.0%
Simplified80.4%
Taylor expanded in t around 0 68.0%
associate-*r*68.0%
*-commutative68.0%
associate-*r*68.0%
Simplified68.0%
Taylor expanded in y around 0 38.3%
associate-/r*37.1%
*-commutative37.1%
associate-/r*37.1%
associate-/r*37.1%
*-commutative37.1%
associate-/r*37.1%
exp-neg37.1%
Simplified37.1%
Taylor expanded in b around 0 38.3%
associate-/r*37.1%
Simplified37.1%
associate-*r/43.2%
div-inv43.2%
div-inv43.1%
clear-num43.2%
frac-times43.3%
metadata-eval43.3%
Applied egg-rr43.3%
if 1.9000000000000001e-54 < b Initial program 98.8%
Taylor expanded in t around 0 86.0%
mul-1-neg86.0%
Simplified86.0%
Taylor expanded in y around 0 70.8%
exp-neg70.8%
associate-*l/70.8%
*-lft-identity70.8%
exp-sum70.8%
rem-exp-log70.8%
*-commutative70.8%
associate-/r*65.6%
associate-/r*65.6%
*-commutative65.6%
associate-/r*74.4%
Simplified74.4%
Taylor expanded in b around 0 36.6%
Final simplification46.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b -0.00043) (* x (- (/ (/ 1.0 a) y) (/ (/ b a) y))) (/ x (* a (+ y (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.00043) {
tmp = x * (((1.0 / a) / y) - ((b / a) / y));
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-0.00043d0)) then
tmp = x * (((1.0d0 / a) / y) - ((b / a) / y))
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.00043) {
tmp = x * (((1.0 / a) / y) - ((b / a) / y));
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -0.00043: tmp = x * (((1.0 / a) / y) - ((b / a) / y)) else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -0.00043) tmp = Float64(x * Float64(Float64(Float64(1.0 / a) / y) - Float64(Float64(b / a) / y))); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -0.00043) tmp = x * (((1.0 / a) / y) - ((b / a) / y)); else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -0.00043], N[(x * N[(N[(N[(1.0 / a), $MachinePrecision] / y), $MachinePrecision] - N[(N[(b / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.00043:\\
\;\;\;\;x \cdot \left(\frac{\frac{1}{a}}{y} - \frac{\frac{b}{a}}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -4.29999999999999989e-4Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
exp-sum57.4%
associate-/l*57.4%
associate-/r/57.4%
exp-neg57.4%
associate-*r/57.4%
Simplified45.6%
Taylor expanded in t around 0 61.9%
associate-*r*58.9%
*-commutative58.9%
associate-*r*61.9%
Simplified61.9%
Taylor expanded in y around 0 76.9%
associate-/r*76.9%
*-commutative76.9%
associate-/r*76.9%
associate-/r*76.9%
*-commutative76.9%
associate-/r*76.9%
exp-neg76.9%
Simplified76.9%
Taylor expanded in b around 0 57.6%
mul-1-neg57.6%
unsub-neg57.6%
*-commutative57.6%
associate-/r*57.6%
associate-/r*64.5%
Simplified64.5%
if -4.29999999999999989e-4 < b Initial program 98.0%
Taylor expanded in t around 0 79.3%
mul-1-neg79.3%
Simplified79.3%
Taylor expanded in y around 0 52.9%
exp-neg52.9%
associate-*l/52.9%
*-lft-identity52.9%
exp-sum52.9%
rem-exp-log53.8%
*-commutative53.8%
associate-/r*51.6%
associate-/r*51.6%
*-commutative51.6%
associate-/r*53.6%
Simplified53.6%
Taylor expanded in b around 0 38.1%
Final simplification45.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b -6.4e+99) (* (/ x a) (/ (- b) y)) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6.4e+99) {
tmp = (x / a) * (-b / 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 (b <= (-6.4d+99)) then
tmp = (x / a) * (-b / 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 (b <= -6.4e+99) {
tmp = (x / a) * (-b / y);
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -6.4e+99: tmp = (x / a) * (-b / y) else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -6.4e+99) tmp = Float64(Float64(x / a) * Float64(Float64(-b) / 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 (b <= -6.4e+99) tmp = (x / a) * (-b / y); else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -6.4e+99], N[(N[(x / a), $MachinePrecision] * N[((-b) / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.4 \cdot 10^{+99}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{-b}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if b < -6.39999999999999999e99Initial program 100.0%
Taylor expanded in t around 0 97.9%
mul-1-neg97.9%
Simplified97.9%
Taylor expanded in y around 0 91.4%
exp-neg91.4%
associate-*l/91.4%
*-lft-identity91.4%
exp-sum91.4%
rem-exp-log91.4%
*-commutative91.4%
associate-/r*84.9%
associate-/r*84.9%
*-commutative84.9%
associate-/r*91.4%
Simplified91.4%
Taylor expanded in b around 0 49.9%
+-commutative49.9%
mul-1-neg49.9%
unsub-neg49.9%
*-commutative49.9%
associate-/r*51.9%
*-commutative51.9%
times-frac54.0%
Simplified54.0%
Taylor expanded in b around inf 49.9%
associate-*r/49.9%
*-commutative49.9%
neg-mul-149.9%
distribute-frac-neg49.9%
times-frac54.0%
distribute-rgt-neg-out54.0%
distribute-neg-frac54.0%
Simplified54.0%
if -6.39999999999999999e99 < b Initial program 98.2%
Taylor expanded in t around 0 78.6%
mul-1-neg78.6%
Simplified78.6%
Taylor expanded in b around 0 63.9%
*-commutative63.9%
exp-diff63.9%
*-commutative63.9%
exp-to-pow63.9%
rem-exp-log64.5%
associate-*r/64.5%
associate-/l*64.5%
Simplified64.5%
Taylor expanded in y around 0 36.6%
Final simplification39.8%
(FPCore (x y z t a b) :precision binary64 (if (<= b -16.5) (* b (- (/ x (* y a)))) (/ 1.0 (* y (/ a x)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -16.5) {
tmp = b * -(x / (y * a));
} else {
tmp = 1.0 / (y * (a / x));
}
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 <= (-16.5d0)) then
tmp = b * -(x / (y * a))
else
tmp = 1.0d0 / (y * (a / x))
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 <= -16.5) {
tmp = b * -(x / (y * a));
} else {
tmp = 1.0 / (y * (a / x));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -16.5: tmp = b * -(x / (y * a)) else: tmp = 1.0 / (y * (a / x)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -16.5) tmp = Float64(b * Float64(-Float64(x / Float64(y * a)))); else tmp = Float64(1.0 / Float64(y * Float64(a / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -16.5) tmp = b * -(x / (y * a)); else tmp = 1.0 / (y * (a / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -16.5], N[(b * (-N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision])), $MachinePrecision], N[(1.0 / N[(y * N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -16.5:\\
\;\;\;\;b \cdot \left(-\frac{x}{y \cdot a}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\
\end{array}
\end{array}
if b < -16.5Initial program 100.0%
Taylor expanded in t around 0 89.9%
mul-1-neg89.9%
Simplified89.9%
Taylor expanded in y around 0 76.9%
exp-neg76.9%
associate-*l/76.9%
*-lft-identity76.9%
exp-sum76.9%
rem-exp-log76.9%
*-commutative76.9%
associate-/r*70.9%
associate-/r*70.9%
*-commutative70.9%
associate-/r*76.9%
Simplified76.9%
Taylor expanded in b around 0 53.4%
+-commutative53.4%
mul-1-neg53.4%
unsub-neg53.4%
*-commutative53.4%
associate-/r*50.6%
*-commutative50.6%
times-frac50.7%
Simplified50.7%
Taylor expanded in b around inf 53.4%
associate-*r/53.4%
*-commutative53.4%
neg-mul-153.4%
distribute-frac-neg53.4%
associate-/r*57.6%
associate-*l/53.4%
associate-*l/49.1%
associate-/r*53.4%
distribute-rgt-neg-in53.4%
Simplified53.4%
if -16.5 < b Initial program 98.0%
associate-*r/97.6%
sub-neg97.6%
exp-sum82.7%
associate-/l*82.7%
associate-/r/81.1%
exp-neg81.1%
associate-*r/81.1%
Simplified69.7%
Taylor expanded in t around 0 66.7%
associate-*r*65.1%
*-commutative65.1%
associate-*r*66.7%
Simplified66.7%
Taylor expanded in y around 0 53.6%
associate-/r*53.1%
*-commutative53.1%
associate-/r*53.1%
associate-/r*53.1%
*-commutative53.1%
associate-/r*53.1%
exp-neg53.1%
Simplified53.1%
Taylor expanded in b around 0 34.3%
associate-/r*33.8%
Simplified33.8%
associate-*r/34.8%
div-inv34.8%
div-inv34.8%
clear-num34.8%
frac-times34.8%
metadata-eval34.8%
Applied egg-rr34.8%
Final simplification39.8%
(FPCore (x y z t a b) :precision binary64 (if (<= b -0.00061) (- (/ (* x b) (* y a))) (/ 1.0 (* y (/ a x)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.00061) {
tmp = -((x * b) / (y * a));
} else {
tmp = 1.0 / (y * (a / x));
}
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.00061d0)) then
tmp = -((x * b) / (y * a))
else
tmp = 1.0d0 / (y * (a / x))
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.00061) {
tmp = -((x * b) / (y * a));
} else {
tmp = 1.0 / (y * (a / x));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -0.00061: tmp = -((x * b) / (y * a)) else: tmp = 1.0 / (y * (a / x)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -0.00061) tmp = Float64(-Float64(Float64(x * b) / Float64(y * a))); else tmp = Float64(1.0 / Float64(y * Float64(a / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -0.00061) tmp = -((x * b) / (y * a)); else tmp = 1.0 / (y * (a / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -0.00061], (-N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), N[(1.0 / N[(y * N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.00061:\\
\;\;\;\;-\frac{x \cdot b}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\
\end{array}
\end{array}
if b < -6.09999999999999974e-4Initial program 100.0%
Taylor expanded in t around 0 89.9%
mul-1-neg89.9%
Simplified89.9%
Taylor expanded in y around 0 76.9%
exp-neg76.9%
associate-*l/76.9%
*-lft-identity76.9%
exp-sum76.9%
rem-exp-log76.9%
*-commutative76.9%
associate-/r*70.9%
associate-/r*70.9%
*-commutative70.9%
associate-/r*76.9%
Simplified76.9%
Taylor expanded in b around 0 53.4%
+-commutative53.4%
mul-1-neg53.4%
unsub-neg53.4%
*-commutative53.4%
associate-/r*50.6%
*-commutative50.6%
times-frac50.7%
Simplified50.7%
Taylor expanded in b around -inf 53.4%
if -6.09999999999999974e-4 < b Initial program 98.0%
associate-*r/97.6%
sub-neg97.6%
exp-sum82.7%
associate-/l*82.7%
associate-/r/81.1%
exp-neg81.1%
associate-*r/81.1%
Simplified69.7%
Taylor expanded in t around 0 66.7%
associate-*r*65.1%
*-commutative65.1%
associate-*r*66.7%
Simplified66.7%
Taylor expanded in y around 0 53.6%
associate-/r*53.1%
*-commutative53.1%
associate-/r*53.1%
associate-/r*53.1%
*-commutative53.1%
associate-/r*53.1%
exp-neg53.1%
Simplified53.1%
Taylor expanded in b around 0 34.3%
associate-/r*33.8%
Simplified33.8%
associate-*r/34.8%
div-inv34.8%
div-inv34.8%
clear-num34.8%
frac-times34.8%
metadata-eval34.8%
Applied egg-rr34.8%
Final simplification39.8%
(FPCore (x y z t a b) :precision binary64 (if (<= a 2e-54) (* (/ x a) (/ 1.0 y)) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 2e-54) {
tmp = (x / a) * (1.0 / 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 <= 2d-54) then
tmp = (x / a) * (1.0d0 / 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 <= 2e-54) {
tmp = (x / a) * (1.0 / y);
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 2e-54: tmp = (x / a) * (1.0 / y) else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 2e-54) tmp = Float64(Float64(x / a) * Float64(1.0 / 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 <= 2e-54) tmp = (x / a) * (1.0 / y); else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 2e-54], N[(N[(x / a), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 2 \cdot 10^{-54}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if a < 2.0000000000000001e-54Initial program 99.5%
Taylor expanded in t around 0 82.4%
mul-1-neg82.4%
Simplified82.4%
Taylor expanded in b around 0 68.7%
*-commutative68.7%
exp-diff68.7%
*-commutative68.7%
exp-to-pow68.7%
rem-exp-log69.0%
associate-*r/69.0%
associate-/l*69.0%
Simplified69.0%
Taylor expanded in y around 0 30.2%
associate-/l/38.2%
div-inv38.2%
Applied egg-rr38.2%
if 2.0000000000000001e-54 < a Initial program 97.9%
Taylor expanded in t around 0 81.8%
mul-1-neg81.8%
Simplified81.8%
Taylor expanded in b around 0 58.5%
*-commutative58.5%
exp-diff58.5%
*-commutative58.5%
exp-to-pow58.5%
rem-exp-log59.3%
associate-*r/59.3%
associate-/l*59.3%
Simplified59.3%
Taylor expanded in y around 0 39.4%
Final simplification38.9%
(FPCore (x y z t a b) :precision binary64 (if (<= a 5e-8) (/ 1.0 (* y (/ a x))) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 5e-8) {
tmp = 1.0 / (y * (a / x));
} else {
tmp = x / (y * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (a <= 5d-8) then
tmp = 1.0d0 / (y * (a / x))
else
tmp = x / (y * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 5e-8) {
tmp = 1.0 / (y * (a / x));
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 5e-8: tmp = 1.0 / (y * (a / x)) else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 5e-8) tmp = Float64(1.0 / Float64(y * Float64(a / x))); else tmp = Float64(x / Float64(y * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= 5e-8) tmp = 1.0 / (y * (a / x)); else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 5e-8], N[(1.0 / N[(y * N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 5 \cdot 10^{-8}:\\
\;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if a < 4.9999999999999998e-8Initial program 99.4%
associate-*r/97.5%
sub-neg97.5%
exp-sum75.6%
associate-/l*75.6%
associate-/r/73.3%
exp-neg73.3%
associate-*r/73.3%
Simplified63.4%
Taylor expanded in t around 0 69.5%
associate-*r*67.2%
*-commutative67.2%
associate-*r*69.5%
Simplified69.5%
Taylor expanded in y around 0 57.9%
associate-/r*57.9%
*-commutative57.9%
associate-/r*57.9%
associate-/r*57.9%
*-commutative57.9%
associate-/r*57.9%
exp-neg57.9%
Simplified57.9%
Taylor expanded in b around 0 32.3%
associate-/r*32.3%
Simplified32.3%
associate-*r/39.0%
div-inv39.0%
div-inv38.9%
clear-num39.0%
frac-times39.0%
metadata-eval39.0%
Applied egg-rr39.0%
if 4.9999999999999998e-8 < a Initial program 97.7%
Taylor expanded in t around 0 81.7%
mul-1-neg81.7%
Simplified81.7%
Taylor expanded in b around 0 58.2%
*-commutative58.2%
exp-diff58.2%
*-commutative58.2%
exp-to-pow58.2%
rem-exp-log59.0%
associate-*r/59.0%
associate-/l*59.0%
Simplified59.0%
Taylor expanded in y around 0 38.9%
Final simplification38.9%
(FPCore (x y z t a b) :precision binary64 (if (<= a 2.2e-57) (/ (/ 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.2e-57) {
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.2d-57) 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.2e-57) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 2.2e-57: 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.2e-57) 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.2e-57) 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.2e-57], 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.2 \cdot 10^{-57}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if a < 2.19999999999999999e-57Initial program 99.5%
Taylor expanded in t around 0 82.4%
mul-1-neg82.4%
Simplified82.4%
Taylor expanded in b around 0 68.7%
*-commutative68.7%
exp-diff68.7%
*-commutative68.7%
exp-to-pow68.7%
rem-exp-log69.0%
associate-*r/69.0%
associate-/l*69.0%
Simplified69.0%
Taylor expanded in y around 0 30.2%
*-commutative30.2%
associate-/r*38.2%
Simplified38.2%
if 2.19999999999999999e-57 < a Initial program 97.9%
Taylor expanded in t around 0 81.8%
mul-1-neg81.8%
Simplified81.8%
Taylor expanded in b around 0 58.5%
*-commutative58.5%
exp-diff58.5%
*-commutative58.5%
exp-to-pow58.5%
rem-exp-log59.3%
associate-*r/59.3%
associate-/l*59.3%
Simplified59.3%
Taylor expanded in y around 0 39.4%
Final simplification38.9%
(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.5%
Taylor expanded in t around 0 82.1%
mul-1-neg82.1%
Simplified82.1%
Taylor expanded in b around 0 62.8%
*-commutative62.8%
exp-diff62.8%
*-commutative62.8%
exp-to-pow62.8%
rem-exp-log63.3%
associate-*r/63.3%
associate-/l*63.3%
Simplified63.3%
Taylor expanded in y around 0 35.6%
Final simplification35.6%
(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 2023238
(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))