
(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.2%
Final simplification98.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1950000000000.0) (not (<= y 5.7e-18))) (/ (* x (exp (- (- (* y (log z)) (log a)) b))) y) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1950000000000.0) || !(y <= 5.7e-18)) {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
} else {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-1950000000000.0d0)) .or. (.not. (y <= 5.7d-18))) then
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y
else
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1950000000000.0) || !(y <= 5.7e-18)) {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
} else {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1950000000000.0) or not (y <= 5.7e-18): tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y else: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1950000000000.0) || !(y <= 5.7e-18)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1950000000000.0) || ~((y <= 5.7e-18))) tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; else tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1950000000000.0], N[Not[LessEqual[y, 5.7e-18]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1950000000000 \lor \neg \left(y \leq 5.7 \cdot 10^{-18}\right):\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -1.95e12 or 5.69999999999999971e-18 < y Initial program 99.9%
Taylor expanded in t around 0 91.8%
+-commutative91.8%
mul-1-neg91.8%
unsub-neg91.8%
Simplified91.8%
if -1.95e12 < y < 5.69999999999999971e-18Initial program 96.8%
Taylor expanded in y around 0 96.8%
Final simplification94.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -5.5e+166) (not (<= y 6e+64))) (/ (/ (* x (pow z y)) a) y) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -5.5e+166) || !(y <= 6e+64)) {
tmp = ((x * pow(z, y)) / a) / y;
} else {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-5.5d+166)) .or. (.not. (y <= 6d+64))) then
tmp = ((x * (z ** y)) / a) / y
else
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -5.5e+166) || !(y <= 6e+64)) {
tmp = ((x * Math.pow(z, y)) / a) / y;
} else {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -5.5e+166) or not (y <= 6e+64): tmp = ((x * math.pow(z, y)) / a) / y else: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -5.5e+166) || !(y <= 6e+64)) tmp = Float64(Float64(Float64(x * (z ^ y)) / a) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -5.5e+166) || ~((y <= 6e+64))) tmp = ((x * (z ^ y)) / a) / y; else tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -5.5e+166], N[Not[LessEqual[y, 6e+64]], $MachinePrecision]], N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.5 \cdot 10^{+166} \lor \neg \left(y \leq 6 \cdot 10^{+64}\right):\\
\;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -5.50000000000000008e166 or 6.0000000000000004e64 < y Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum66.2%
associate-/l*64.8%
*-commutative64.8%
exp-to-pow64.8%
exp-diff56.3%
*-commutative56.3%
exp-to-pow56.3%
sub-neg56.3%
metadata-eval56.3%
Simplified56.3%
Taylor expanded in b around 0 70.4%
*-commutative70.4%
exp-to-pow70.4%
sub-neg70.4%
metadata-eval70.4%
associate-*l*70.4%
Simplified70.4%
Taylor expanded in t around 0 90.3%
if -5.50000000000000008e166 < y < 6.0000000000000004e64Initial program 97.6%
Taylor expanded in y around 0 90.9%
Final simplification90.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -2e+99) (not (<= y 1.95e+64))) (/ (/ (* x (pow z y)) a) y) (* x (/ (pow a (+ t -1.0)) (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2e+99) || !(y <= 1.95e+64)) {
tmp = ((x * pow(z, y)) / a) / y;
} else {
tmp = x * (pow(a, (t + -1.0)) / (y * exp(b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-2d+99)) .or. (.not. (y <= 1.95d+64))) then
tmp = ((x * (z ** y)) / a) / y
else
tmp = x * ((a ** (t + (-1.0d0))) / (y * exp(b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2e+99) || !(y <= 1.95e+64)) {
tmp = ((x * Math.pow(z, y)) / a) / y;
} else {
tmp = x * (Math.pow(a, (t + -1.0)) / (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -2e+99) or not (y <= 1.95e+64): tmp = ((x * math.pow(z, y)) / a) / y else: tmp = x * (math.pow(a, (t + -1.0)) / (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -2e+99) || !(y <= 1.95e+64)) tmp = Float64(Float64(Float64(x * (z ^ y)) / a) / y); else tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) / Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -2e+99) || ~((y <= 1.95e+64))) tmp = ((x * (z ^ y)) / a) / y; else tmp = x * ((a ^ (t + -1.0)) / (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -2e+99], N[Not[LessEqual[y, 1.95e+64]], $MachinePrecision]], N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2 \cdot 10^{+99} \lor \neg \left(y \leq 1.95 \cdot 10^{+64}\right):\\
\;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y \cdot e^{b}}\\
\end{array}
\end{array}
if y < -1.9999999999999999e99 or 1.9499999999999999e64 < y Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum65.5%
associate-/l*64.3%
*-commutative64.3%
exp-to-pow64.3%
exp-diff54.8%
*-commutative54.8%
exp-to-pow54.8%
sub-neg54.8%
metadata-eval54.8%
Simplified54.8%
Taylor expanded in b around 0 66.7%
*-commutative66.7%
exp-to-pow66.7%
sub-neg66.7%
metadata-eval66.7%
associate-*l*66.7%
Simplified66.7%
Taylor expanded in t around 0 87.1%
if -1.9999999999999999e99 < y < 1.9499999999999999e64Initial program 97.4%
associate-/l*97.3%
associate--l+97.3%
exp-sum90.4%
associate-/l*90.4%
*-commutative90.4%
exp-to-pow90.4%
exp-diff79.3%
*-commutative79.3%
exp-to-pow80.3%
sub-neg80.3%
metadata-eval80.3%
Simplified80.3%
Taylor expanded in y around 0 78.0%
exp-to-pow78.8%
sub-neg78.8%
metadata-eval78.8%
associate-*r/81.7%
Simplified81.7%
Final simplification83.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.25e+100) (not (<= y 3.6e+65))) (/ (/ (* x (pow z y)) a) y) (* x (/ (pow a t) (* a (* y (exp b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.25e+100) || !(y <= 3.6e+65)) {
tmp = ((x * pow(z, y)) / a) / y;
} else {
tmp = x * (pow(a, t) / (a * (y * exp(b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-1.25d+100)) .or. (.not. (y <= 3.6d+65))) then
tmp = ((x * (z ** y)) / a) / y
else
tmp = x * ((a ** t) / (a * (y * exp(b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.25e+100) || !(y <= 3.6e+65)) {
tmp = ((x * Math.pow(z, y)) / a) / y;
} else {
tmp = x * (Math.pow(a, t) / (a * (y * Math.exp(b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.25e+100) or not (y <= 3.6e+65): tmp = ((x * math.pow(z, y)) / a) / y else: tmp = x * (math.pow(a, t) / (a * (y * math.exp(b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.25e+100) || !(y <= 3.6e+65)) tmp = Float64(Float64(Float64(x * (z ^ y)) / a) / y); else tmp = Float64(x * Float64((a ^ t) / Float64(a * Float64(y * exp(b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.25e+100) || ~((y <= 3.6e+65))) tmp = ((x * (z ^ y)) / a) / y; else tmp = x * ((a ^ t) / (a * (y * exp(b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.25e+100], N[Not[LessEqual[y, 3.6e+65]], $MachinePrecision]], N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[Power[a, t], $MachinePrecision] / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.25 \cdot 10^{+100} \lor \neg \left(y \leq 3.6 \cdot 10^{+65}\right):\\
\;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{a}^{t}}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if y < -1.25e100 or 3.59999999999999978e65 < y Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum65.5%
associate-/l*64.3%
*-commutative64.3%
exp-to-pow64.3%
exp-diff54.8%
*-commutative54.8%
exp-to-pow54.8%
sub-neg54.8%
metadata-eval54.8%
Simplified54.8%
Taylor expanded in b around 0 66.7%
*-commutative66.7%
exp-to-pow66.7%
sub-neg66.7%
metadata-eval66.7%
associate-*l*66.7%
Simplified66.7%
Taylor expanded in t around 0 87.1%
if -1.25e100 < y < 3.59999999999999978e65Initial program 97.4%
associate-/l*97.3%
associate--l+97.3%
exp-sum90.4%
associate-/l*90.4%
*-commutative90.4%
exp-to-pow90.4%
exp-diff79.3%
*-commutative79.3%
exp-to-pow80.3%
sub-neg80.3%
metadata-eval80.3%
Simplified80.3%
associate-/l/80.3%
unpow-prod-up80.3%
associate-/l*77.4%
unpow-177.4%
Applied egg-rr77.4%
associate-*r/80.3%
associate-*r/80.3%
*-rgt-identity80.3%
Simplified80.3%
Taylor expanded in y around 0 78.8%
associate-/l*78.8%
Simplified78.8%
Final simplification81.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (pow a t) y))))
(if (<= t -1.55e+200)
t_1
(if (<= t 8.2e-290)
(/ x (* a (* y (exp b))))
(if (<= t 1.3e+15) (/ (/ (* x (pow z y)) a) y) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (pow(a, t) / y);
double tmp;
if (t <= -1.55e+200) {
tmp = t_1;
} else if (t <= 8.2e-290) {
tmp = x / (a * (y * exp(b)));
} else if (t <= 1.3e+15) {
tmp = ((x * pow(z, y)) / a) / y;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((a ** t) / y)
if (t <= (-1.55d+200)) then
tmp = t_1
else if (t <= 8.2d-290) then
tmp = x / (a * (y * exp(b)))
else if (t <= 1.3d+15) then
tmp = ((x * (z ** y)) / a) / y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (Math.pow(a, t) / y);
double tmp;
if (t <= -1.55e+200) {
tmp = t_1;
} else if (t <= 8.2e-290) {
tmp = x / (a * (y * Math.exp(b)));
} else if (t <= 1.3e+15) {
tmp = ((x * Math.pow(z, y)) / a) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * (math.pow(a, t) / y) tmp = 0 if t <= -1.55e+200: tmp = t_1 elif t <= 8.2e-290: tmp = x / (a * (y * math.exp(b))) elif t <= 1.3e+15: tmp = ((x * math.pow(z, y)) / a) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64((a ^ t) / y)) tmp = 0.0 if (t <= -1.55e+200) tmp = t_1; elseif (t <= 8.2e-290) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); elseif (t <= 1.3e+15) tmp = Float64(Float64(Float64(x * (z ^ y)) / a) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * ((a ^ t) / y); tmp = 0.0; if (t <= -1.55e+200) tmp = t_1; elseif (t <= 8.2e-290) tmp = x / (a * (y * exp(b))); elseif (t <= 1.3e+15) tmp = ((x * (z ^ y)) / a) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.55e+200], t$95$1, If[LessEqual[t, 8.2e-290], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.3e+15], N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{{a}^{t}}{y}\\
\mathbf{if}\;t \leq -1.55 \cdot 10^{+200}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{-290}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{+15}:\\
\;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.54999999999999997e200 or 1.3e15 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum83.0%
associate-/l*83.0%
*-commutative83.0%
exp-to-pow83.0%
exp-diff66.0%
*-commutative66.0%
exp-to-pow66.0%
sub-neg66.0%
metadata-eval66.0%
Simplified66.0%
Taylor expanded in y around 0 75.1%
exp-to-pow75.1%
sub-neg75.1%
metadata-eval75.1%
associate-*r/75.1%
Simplified75.1%
Taylor expanded in b around 0 86.2%
Taylor expanded in t around inf 86.2%
if -1.54999999999999997e200 < t < 8.2000000000000005e-290Initial program 96.5%
associate-/l*99.0%
associate--l+99.0%
exp-sum80.8%
associate-/l*80.8%
*-commutative80.8%
exp-to-pow80.8%
exp-diff70.6%
*-commutative70.6%
exp-to-pow71.4%
sub-neg71.4%
metadata-eval71.4%
Simplified71.4%
Taylor expanded in y around 0 63.2%
exp-to-pow63.6%
sub-neg63.6%
metadata-eval63.6%
associate-*r/70.9%
Simplified70.9%
Taylor expanded in t around 0 75.7%
if 8.2000000000000005e-290 < t < 1.3e15Initial program 97.9%
associate-/l*94.6%
associate--l+94.6%
exp-sum82.8%
associate-/l*81.4%
*-commutative81.4%
exp-to-pow81.4%
exp-diff79.9%
*-commutative79.9%
exp-to-pow81.2%
sub-neg81.2%
metadata-eval81.2%
Simplified81.2%
Taylor expanded in b around 0 78.9%
*-commutative78.9%
exp-to-pow80.5%
sub-neg80.5%
metadata-eval80.5%
associate-*l*80.5%
Simplified80.5%
Taylor expanded in t around 0 82.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -245000000.0) (not (<= b 2.7e+45))) (/ x (* a (* y (exp b)))) (* x (/ (pow a (+ t -1.0)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -245000000.0) || !(b <= 2.7e+45)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = x * (pow(a, (t + -1.0)) / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-245000000.0d0)) .or. (.not. (b <= 2.7d+45))) then
tmp = x / (a * (y * exp(b)))
else
tmp = x * ((a ** (t + (-1.0d0))) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -245000000.0) || !(b <= 2.7e+45)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = x * (Math.pow(a, (t + -1.0)) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -245000000.0) or not (b <= 2.7e+45): tmp = x / (a * (y * math.exp(b))) else: tmp = x * (math.pow(a, (t + -1.0)) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -245000000.0) || !(b <= 2.7e+45)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -245000000.0) || ~((b <= 2.7e+45))) tmp = x / (a * (y * exp(b))); else tmp = x * ((a ^ (t + -1.0)) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -245000000.0], N[Not[LessEqual[b, 2.7e+45]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -245000000 \lor \neg \left(b \leq 2.7 \cdot 10^{+45}\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\end{array}
\end{array}
if b < -2.45e8 or 2.69999999999999984e45 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum76.7%
associate-/l*76.7%
*-commutative76.7%
exp-to-pow76.7%
exp-diff56.0%
*-commutative56.0%
exp-to-pow56.0%
sub-neg56.0%
metadata-eval56.0%
Simplified56.0%
Taylor expanded in y around 0 60.4%
exp-to-pow60.4%
sub-neg60.4%
metadata-eval60.4%
associate-*r/67.3%
Simplified67.3%
Taylor expanded in t around 0 86.4%
if -2.45e8 < b < 2.69999999999999984e45Initial program 96.8%
associate-/l*96.7%
associate--l+96.7%
exp-sum86.7%
associate-/l*86.0%
*-commutative86.0%
exp-to-pow86.0%
exp-diff83.9%
*-commutative83.9%
exp-to-pow85.0%
sub-neg85.0%
metadata-eval85.0%
Simplified85.0%
Taylor expanded in y around 0 71.2%
exp-to-pow72.3%
sub-neg72.3%
metadata-eval72.3%
associate-*r/71.6%
Simplified71.6%
Taylor expanded in b around 0 72.7%
Final simplification78.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -202000000.0) (not (<= b 1.9e+45))) (/ x (* a (* y (exp b)))) (* x (/ (pow a t) (* y a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -202000000.0) || !(b <= 1.9e+45)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = x * (pow(a, t) / (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 <= (-202000000.0d0)) .or. (.not. (b <= 1.9d+45))) then
tmp = x / (a * (y * exp(b)))
else
tmp = x * ((a ** t) / (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 <= -202000000.0) || !(b <= 1.9e+45)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = x * (Math.pow(a, t) / (y * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -202000000.0) or not (b <= 1.9e+45): tmp = x / (a * (y * math.exp(b))) else: tmp = x * (math.pow(a, t) / (y * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -202000000.0) || !(b <= 1.9e+45)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(x * Float64((a ^ t) / Float64(y * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -202000000.0) || ~((b <= 1.9e+45))) tmp = x / (a * (y * exp(b))); else tmp = x * ((a ^ t) / (y * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -202000000.0], N[Not[LessEqual[b, 1.9e+45]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Power[a, t], $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -202000000 \lor \neg \left(b \leq 1.9 \cdot 10^{+45}\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y \cdot a}\\
\end{array}
\end{array}
if b < -2.02e8 or 1.9000000000000001e45 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum76.7%
associate-/l*76.7%
*-commutative76.7%
exp-to-pow76.7%
exp-diff56.0%
*-commutative56.0%
exp-to-pow56.0%
sub-neg56.0%
metadata-eval56.0%
Simplified56.0%
Taylor expanded in y around 0 60.4%
exp-to-pow60.4%
sub-neg60.4%
metadata-eval60.4%
associate-*r/67.3%
Simplified67.3%
Taylor expanded in t around 0 86.4%
if -2.02e8 < b < 1.9000000000000001e45Initial program 96.8%
associate-/l*96.7%
associate--l+96.7%
exp-sum86.7%
associate-/l*86.0%
*-commutative86.0%
exp-to-pow86.0%
exp-diff83.9%
*-commutative83.9%
exp-to-pow85.0%
sub-neg85.0%
metadata-eval85.0%
Simplified85.0%
Taylor expanded in y around 0 71.2%
exp-to-pow72.3%
sub-neg72.3%
metadata-eval72.3%
associate-*r/71.6%
Simplified71.6%
Taylor expanded in b around 0 72.7%
unpow-prod-up72.7%
inv-pow72.7%
associate-/l*67.7%
associate-/r*67.7%
*-commutative67.7%
Applied egg-rr67.7%
associate-*r/67.7%
*-rgt-identity67.7%
*-commutative67.7%
Simplified67.7%
Final simplification76.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1.55e+200) (not (<= t 5.5e+18))) (* x (/ (pow a t) y)) (/ x (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.55e+200) || !(t <= 5.5e+18)) {
tmp = x * (pow(a, t) / y);
} else {
tmp = x / (a * (y * exp(b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-1.55d+200)) .or. (.not. (t <= 5.5d+18))) then
tmp = x * ((a ** t) / y)
else
tmp = x / (a * (y * exp(b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.55e+200) || !(t <= 5.5e+18)) {
tmp = x * (Math.pow(a, t) / y);
} else {
tmp = x / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.55e+200) or not (t <= 5.5e+18): tmp = x * (math.pow(a, t) / y) else: tmp = x / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.55e+200) || !(t <= 5.5e+18)) tmp = Float64(x * Float64((a ^ t) / y)); else tmp = Float64(x / Float64(a * Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.55e+200) || ~((t <= 5.5e+18))) tmp = x * ((a ^ t) / y); else tmp = x / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.55e+200], N[Not[LessEqual[t, 5.5e+18]], $MachinePrecision]], N[(x * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.55 \cdot 10^{+200} \lor \neg \left(t \leq 5.5 \cdot 10^{+18}\right):\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if t < -1.54999999999999997e200 or 5.5e18 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum83.0%
associate-/l*83.0%
*-commutative83.0%
exp-to-pow83.0%
exp-diff66.0%
*-commutative66.0%
exp-to-pow66.0%
sub-neg66.0%
metadata-eval66.0%
Simplified66.0%
Taylor expanded in y around 0 75.1%
exp-to-pow75.1%
sub-neg75.1%
metadata-eval75.1%
associate-*r/75.1%
Simplified75.1%
Taylor expanded in b around 0 86.2%
Taylor expanded in t around inf 86.2%
if -1.54999999999999997e200 < t < 5.5e18Initial program 97.1%
associate-/l*97.1%
associate--l+97.1%
exp-sum81.7%
associate-/l*81.0%
*-commutative81.0%
exp-to-pow81.0%
exp-diff74.6%
*-commutative74.6%
exp-to-pow75.7%
sub-neg75.7%
metadata-eval75.7%
Simplified75.7%
Taylor expanded in y around 0 60.7%
exp-to-pow61.7%
sub-neg61.7%
metadata-eval61.7%
associate-*r/66.2%
Simplified66.2%
Taylor expanded in t around 0 69.5%
Final simplification76.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -5.2e+104)
(+ t_1 (* b (- (* b (- t_1 (/ (* x b) (* y a)))) t_1)))
(if (<= b 2.4e+93)
(* x (/ (pow a t) y))
(/
x
(*
a
(*
y
(- 1.0 (* b (- -1.0 (* b (+ 0.5 (* b 0.16666666666666666)))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -5.2e+104) {
tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1));
} else if (b <= 2.4e+93) {
tmp = x * (pow(a, t) / y);
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (y * a)
if (b <= (-5.2d+104)) then
tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1))
else if (b <= 2.4d+93) then
tmp = x * ((a ** t) / y)
else
tmp = x / (a * (y * (1.0d0 - (b * ((-1.0d0) - (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -5.2e+104) {
tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1));
} else if (b <= 2.4e+93) {
tmp = x * (Math.pow(a, t) / y);
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -5.2e+104: tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1)) elif b <= 2.4e+93: tmp = x * (math.pow(a, t) / y) else: tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -5.2e+104) tmp = Float64(t_1 + Float64(b * Float64(Float64(b * Float64(t_1 - Float64(Float64(x * b) / Float64(y * a)))) - t_1))); elseif (b <= 2.4e+93) tmp = Float64(x * Float64((a ^ t) / y)); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -5.2e+104) tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1)); elseif (b <= 2.4e+93) tmp = x * ((a ^ t) / y); else tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.2e+104], N[(t$95$1 + N[(b * N[(N[(b * N[(t$95$1 - N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.4e+93], N[(x * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 - N[(b * N[(-1.0 - N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot a}\\
\mathbf{if}\;b \leq -5.2 \cdot 10^{+104}:\\
\;\;\;\;t\_1 + b \cdot \left(b \cdot \left(t\_1 - \frac{x \cdot b}{y \cdot a}\right) - t\_1\right)\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{+93}:\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 - b \cdot \left(-1 - b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -5.20000000000000001e104Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum77.5%
associate-/l*77.5%
*-commutative77.5%
exp-to-pow77.5%
exp-diff52.5%
*-commutative52.5%
exp-to-pow52.5%
sub-neg52.5%
metadata-eval52.5%
Simplified52.5%
Taylor expanded in y around 0 60.1%
exp-to-pow60.1%
sub-neg60.1%
metadata-eval60.1%
associate-*r/67.6%
Simplified67.6%
Taylor expanded in t around 0 90.2%
Taylor expanded in b around 0 11.0%
distribute-rgt1-in11.0%
Simplified11.0%
Taylor expanded in b around 0 75.6%
if -5.20000000000000001e104 < b < 2.4000000000000001e93Initial program 97.4%
associate-/l*97.4%
associate--l+97.4%
exp-sum84.2%
associate-/l*83.6%
*-commutative83.6%
exp-to-pow83.6%
exp-diff79.0%
*-commutative79.0%
exp-to-pow79.9%
sub-neg79.9%
metadata-eval79.9%
Simplified79.9%
Taylor expanded in y around 0 68.3%
exp-to-pow69.1%
sub-neg69.1%
metadata-eval69.1%
associate-*r/69.7%
Simplified69.7%
Taylor expanded in b around 0 66.8%
Taylor expanded in t around inf 57.5%
if 2.4000000000000001e93 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum78.6%
associate-/l*78.6%
*-commutative78.6%
exp-to-pow78.6%
exp-diff57.1%
*-commutative57.1%
exp-to-pow57.1%
sub-neg57.1%
metadata-eval57.1%
Simplified57.1%
Taylor expanded in y around 0 64.3%
exp-to-pow64.3%
sub-neg64.3%
metadata-eval64.3%
associate-*r/71.5%
Simplified71.5%
Taylor expanded in t around 0 90.6%
Taylor expanded in b around 0 88.3%
Final simplification65.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -1.5e+55)
(+ t_1 (* b (- (* b (- t_1 (/ (* x b) (* y a)))) t_1)))
(if (<= b -7e-296)
(/ x (* b (* a (+ y (/ y b)))))
(if (<= b 16000000000.0)
(* (/ -1.0 (* a (- -1.0 b))) (/ x y))
(/
x
(*
a
(*
y
(-
1.0
(* b (- -1.0 (* b (+ 0.5 (* b 0.16666666666666666))))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -1.5e+55) {
tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1));
} else if (b <= -7e-296) {
tmp = x / (b * (a * (y + (y / b))));
} else if (b <= 16000000000.0) {
tmp = (-1.0 / (a * (-1.0 - b))) * (x / y);
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (y * a)
if (b <= (-1.5d+55)) then
tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1))
else if (b <= (-7d-296)) then
tmp = x / (b * (a * (y + (y / b))))
else if (b <= 16000000000.0d0) then
tmp = ((-1.0d0) / (a * ((-1.0d0) - b))) * (x / y)
else
tmp = x / (a * (y * (1.0d0 - (b * ((-1.0d0) - (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -1.5e+55) {
tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1));
} else if (b <= -7e-296) {
tmp = x / (b * (a * (y + (y / b))));
} else if (b <= 16000000000.0) {
tmp = (-1.0 / (a * (-1.0 - b))) * (x / y);
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -1.5e+55: tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1)) elif b <= -7e-296: tmp = x / (b * (a * (y + (y / b)))) elif b <= 16000000000.0: tmp = (-1.0 / (a * (-1.0 - b))) * (x / y) else: tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -1.5e+55) tmp = Float64(t_1 + Float64(b * Float64(Float64(b * Float64(t_1 - Float64(Float64(x * b) / Float64(y * a)))) - t_1))); elseif (b <= -7e-296) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); elseif (b <= 16000000000.0) tmp = Float64(Float64(-1.0 / Float64(a * Float64(-1.0 - b))) * Float64(x / y)); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -1.5e+55) tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1)); elseif (b <= -7e-296) tmp = x / (b * (a * (y + (y / b)))); elseif (b <= 16000000000.0) tmp = (-1.0 / (a * (-1.0 - b))) * (x / y); else tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.5e+55], N[(t$95$1 + N[(b * N[(N[(b * N[(t$95$1 - N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -7e-296], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 16000000000.0], N[(N[(-1.0 / N[(a * N[(-1.0 - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 - N[(b * N[(-1.0 - N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot a}\\
\mathbf{if}\;b \leq -1.5 \cdot 10^{+55}:\\
\;\;\;\;t\_1 + b \cdot \left(b \cdot \left(t\_1 - \frac{x \cdot b}{y \cdot a}\right) - t\_1\right)\\
\mathbf{elif}\;b \leq -7 \cdot 10^{-296}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{elif}\;b \leq 16000000000:\\
\;\;\;\;\frac{-1}{a \cdot \left(-1 - b\right)} \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 - b \cdot \left(-1 - b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -1.50000000000000008e55Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum80.0%
associate-/l*80.0%
*-commutative80.0%
exp-to-pow80.0%
exp-diff54.5%
*-commutative54.5%
exp-to-pow54.5%
sub-neg54.5%
metadata-eval54.5%
Simplified54.5%
Taylor expanded in y around 0 60.1%
exp-to-pow60.1%
sub-neg60.1%
metadata-eval60.1%
associate-*r/67.4%
Simplified67.4%
Taylor expanded in t around 0 89.3%
Taylor expanded in b around 0 10.0%
distribute-rgt1-in10.0%
Simplified10.0%
Taylor expanded in b around 0 70.0%
if -1.50000000000000008e55 < b < -6.9999999999999998e-296Initial program 97.7%
associate-/l*99.1%
associate--l+99.1%
exp-sum85.2%
associate-/l*85.2%
*-commutative85.2%
exp-to-pow85.2%
exp-diff81.8%
*-commutative81.8%
exp-to-pow82.7%
sub-neg82.7%
metadata-eval82.7%
Simplified82.7%
Taylor expanded in y around 0 64.5%
exp-to-pow65.0%
sub-neg65.0%
metadata-eval65.0%
associate-*r/66.6%
Simplified66.6%
Taylor expanded in t around 0 35.0%
Taylor expanded in b around 0 25.4%
distribute-rgt1-in25.4%
Simplified25.4%
Taylor expanded in b around inf 28.6%
associate-/l*28.6%
distribute-lft-out30.4%
Simplified30.4%
if -6.9999999999999998e-296 < b < 1.6e10Initial program 96.3%
associate-/l*95.3%
associate--l+95.3%
exp-sum87.1%
associate-/l*85.9%
*-commutative85.9%
exp-to-pow85.9%
exp-diff84.7%
*-commutative84.7%
exp-to-pow86.0%
sub-neg86.0%
metadata-eval86.0%
Simplified86.0%
Taylor expanded in y around 0 76.9%
exp-to-pow78.2%
sub-neg78.2%
metadata-eval78.2%
associate-*r/74.8%
Simplified74.8%
Taylor expanded in t around 0 41.7%
Taylor expanded in b around 0 40.2%
distribute-rgt1-in40.2%
Simplified40.2%
*-un-lft-identity40.2%
associate-*r*40.2%
times-frac50.1%
Applied egg-rr50.1%
if 1.6e10 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum74.1%
associate-/l*74.1%
*-commutative74.1%
exp-to-pow74.1%
exp-diff56.9%
*-commutative56.9%
exp-to-pow56.9%
sub-neg56.9%
metadata-eval56.9%
Simplified56.9%
Taylor expanded in y around 0 58.7%
exp-to-pow58.7%
sub-neg58.7%
metadata-eval58.7%
associate-*r/67.4%
Simplified67.4%
Taylor expanded in t around 0 83.0%
Taylor expanded in b around 0 71.6%
Final simplification54.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= b -1.5e+55)
(+ t_1 (* b (- (/ (* x b) (* y a)) t_1)))
(if (<= b -8.2e-299)
(/ x (* b (* a (+ y (/ y b)))))
(if (<= b 105000000000.0)
(* (/ -1.0 (* a (- -1.0 b))) (/ x y))
(/
x
(*
a
(*
y
(-
1.0
(* b (- -1.0 (* b (+ 0.5 (* b 0.16666666666666666))))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -1.5e+55) {
tmp = t_1 + (b * (((x * b) / (y * a)) - t_1));
} else if (b <= -8.2e-299) {
tmp = x / (b * (a * (y + (y / b))));
} else if (b <= 105000000000.0) {
tmp = (-1.0 / (a * (-1.0 - b))) * (x / y);
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (y * a)
if (b <= (-1.5d+55)) then
tmp = t_1 + (b * (((x * b) / (y * a)) - t_1))
else if (b <= (-8.2d-299)) then
tmp = x / (b * (a * (y + (y / b))))
else if (b <= 105000000000.0d0) then
tmp = ((-1.0d0) / (a * ((-1.0d0) - b))) * (x / y)
else
tmp = x / (a * (y * (1.0d0 - (b * ((-1.0d0) - (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (b <= -1.5e+55) {
tmp = t_1 + (b * (((x * b) / (y * a)) - t_1));
} else if (b <= -8.2e-299) {
tmp = x / (b * (a * (y + (y / b))));
} else if (b <= 105000000000.0) {
tmp = (-1.0 / (a * (-1.0 - b))) * (x / y);
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if b <= -1.5e+55: tmp = t_1 + (b * (((x * b) / (y * a)) - t_1)) elif b <= -8.2e-299: tmp = x / (b * (a * (y + (y / b)))) elif b <= 105000000000.0: tmp = (-1.0 / (a * (-1.0 - b))) * (x / y) else: tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (b <= -1.5e+55) tmp = Float64(t_1 + Float64(b * Float64(Float64(Float64(x * b) / Float64(y * a)) - t_1))); elseif (b <= -8.2e-299) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); elseif (b <= 105000000000.0) tmp = Float64(Float64(-1.0 / Float64(a * Float64(-1.0 - b))) * Float64(x / y)); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (b <= -1.5e+55) tmp = t_1 + (b * (((x * b) / (y * a)) - t_1)); elseif (b <= -8.2e-299) tmp = x / (b * (a * (y + (y / b)))); elseif (b <= 105000000000.0) tmp = (-1.0 / (a * (-1.0 - b))) * (x / y); else tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.5e+55], N[(t$95$1 + N[(b * N[(N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8.2e-299], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 105000000000.0], N[(N[(-1.0 / N[(a * N[(-1.0 - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 - N[(b * N[(-1.0 - N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot a}\\
\mathbf{if}\;b \leq -1.5 \cdot 10^{+55}:\\
\;\;\;\;t\_1 + b \cdot \left(\frac{x \cdot b}{y \cdot a} - t\_1\right)\\
\mathbf{elif}\;b \leq -8.2 \cdot 10^{-299}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{elif}\;b \leq 105000000000:\\
\;\;\;\;\frac{-1}{a \cdot \left(-1 - b\right)} \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 - b \cdot \left(-1 - b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -1.50000000000000008e55Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum80.0%
associate-/l*80.0%
*-commutative80.0%
exp-to-pow80.0%
exp-diff54.5%
*-commutative54.5%
exp-to-pow54.5%
sub-neg54.5%
metadata-eval54.5%
Simplified54.5%
Taylor expanded in y around 0 60.1%
exp-to-pow60.1%
sub-neg60.1%
metadata-eval60.1%
associate-*r/67.4%
Simplified67.4%
Taylor expanded in t around 0 89.3%
Taylor expanded in b around 0 10.0%
distribute-rgt1-in10.0%
Simplified10.0%
Taylor expanded in b around 0 64.7%
if -1.50000000000000008e55 < b < -8.2000000000000002e-299Initial program 97.7%
associate-/l*99.1%
associate--l+99.1%
exp-sum85.2%
associate-/l*85.2%
*-commutative85.2%
exp-to-pow85.2%
exp-diff81.8%
*-commutative81.8%
exp-to-pow82.7%
sub-neg82.7%
metadata-eval82.7%
Simplified82.7%
Taylor expanded in y around 0 64.5%
exp-to-pow65.0%
sub-neg65.0%
metadata-eval65.0%
associate-*r/66.6%
Simplified66.6%
Taylor expanded in t around 0 35.0%
Taylor expanded in b around 0 25.4%
distribute-rgt1-in25.4%
Simplified25.4%
Taylor expanded in b around inf 28.6%
associate-/l*28.6%
distribute-lft-out30.4%
Simplified30.4%
if -8.2000000000000002e-299 < b < 1.05e11Initial program 96.3%
associate-/l*95.3%
associate--l+95.3%
exp-sum87.1%
associate-/l*85.9%
*-commutative85.9%
exp-to-pow85.9%
exp-diff84.7%
*-commutative84.7%
exp-to-pow86.0%
sub-neg86.0%
metadata-eval86.0%
Simplified86.0%
Taylor expanded in y around 0 76.9%
exp-to-pow78.2%
sub-neg78.2%
metadata-eval78.2%
associate-*r/74.8%
Simplified74.8%
Taylor expanded in t around 0 41.7%
Taylor expanded in b around 0 40.2%
distribute-rgt1-in40.2%
Simplified40.2%
*-un-lft-identity40.2%
associate-*r*40.2%
times-frac50.1%
Applied egg-rr50.1%
if 1.05e11 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum74.1%
associate-/l*74.1%
*-commutative74.1%
exp-to-pow74.1%
exp-diff56.9%
*-commutative56.9%
exp-to-pow56.9%
sub-neg56.9%
metadata-eval56.9%
Simplified56.9%
Taylor expanded in y around 0 58.7%
exp-to-pow58.7%
sub-neg58.7%
metadata-eval58.7%
associate-*r/67.4%
Simplified67.4%
Taylor expanded in t around 0 83.0%
Taylor expanded in b around 0 71.6%
Final simplification53.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -5.2e-41)
(/ (- (/ x y) (/ (* x b) y)) a)
(if (<= b -2.5e-298)
(/ x (* b (* a (+ y (/ y b)))))
(if (<= b 1.95e+45)
(* (/ -1.0 (* a (- -1.0 b))) (/ x y))
(/ x (* a (* y (+ 1.0 (* b (+ 1.0 (* b 0.5)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5.2e-41) {
tmp = ((x / y) - ((x * b) / y)) / a;
} else if (b <= -2.5e-298) {
tmp = x / (b * (a * (y + (y / b))));
} else if (b <= 1.95e+45) {
tmp = (-1.0 / (a * (-1.0 - b))) * (x / y);
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-5.2d-41)) then
tmp = ((x / y) - ((x * b) / y)) / a
else if (b <= (-2.5d-298)) then
tmp = x / (b * (a * (y + (y / b))))
else if (b <= 1.95d+45) then
tmp = ((-1.0d0) / (a * ((-1.0d0) - b))) * (x / y)
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * 0.5d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5.2e-41) {
tmp = ((x / y) - ((x * b) / y)) / a;
} else if (b <= -2.5e-298) {
tmp = x / (b * (a * (y + (y / b))));
} else if (b <= 1.95e+45) {
tmp = (-1.0 / (a * (-1.0 - b))) * (x / y);
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -5.2e-41: tmp = ((x / y) - ((x * b) / y)) / a elif b <= -2.5e-298: tmp = x / (b * (a * (y + (y / b)))) elif b <= 1.95e+45: tmp = (-1.0 / (a * (-1.0 - b))) * (x / y) else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -5.2e-41) tmp = Float64(Float64(Float64(x / y) - Float64(Float64(x * b) / y)) / a); elseif (b <= -2.5e-298) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); elseif (b <= 1.95e+45) tmp = Float64(Float64(-1.0 / Float64(a * Float64(-1.0 - b))) * Float64(x / y)); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * 0.5))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -5.2e-41) tmp = ((x / y) - ((x * b) / y)) / a; elseif (b <= -2.5e-298) tmp = x / (b * (a * (y + (y / b)))); elseif (b <= 1.95e+45) tmp = (-1.0 / (a * (-1.0 - b))) * (x / y); else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -5.2e-41], N[(N[(N[(x / y), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b, -2.5e-298], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.95e+45], N[(N[(-1.0 / N[(a * N[(-1.0 - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.2 \cdot 10^{-41}:\\
\;\;\;\;\frac{\frac{x}{y} - \frac{x \cdot b}{y}}{a}\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-298}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{elif}\;b \leq 1.95 \cdot 10^{+45}:\\
\;\;\;\;\frac{-1}{a \cdot \left(-1 - b\right)} \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -5.1999999999999999e-41Initial program 98.7%
associate-/l*99.9%
associate--l+99.9%
exp-sum77.9%
associate-/l*77.9%
*-commutative77.9%
exp-to-pow77.9%
exp-diff56.0%
*-commutative56.0%
exp-to-pow56.2%
sub-neg56.2%
metadata-eval56.2%
Simplified56.2%
Taylor expanded in y around 0 55.1%
exp-to-pow55.1%
sub-neg55.1%
metadata-eval55.1%
associate-*r/61.9%
Simplified61.9%
Taylor expanded in t around 0 78.5%
Taylor expanded in b around 0 45.6%
Taylor expanded in a around 0 50.8%
if -5.1999999999999999e-41 < b < -2.5000000000000001e-298Initial program 98.9%
associate-/l*98.9%
associate--l+98.9%
exp-sum91.3%
associate-/l*91.3%
*-commutative91.3%
exp-to-pow91.3%
exp-diff91.3%
*-commutative91.3%
exp-to-pow92.4%
sub-neg92.4%
metadata-eval92.4%
Simplified92.4%
Taylor expanded in y around 0 75.5%
exp-to-pow76.3%
sub-neg76.3%
metadata-eval76.3%
associate-*r/76.3%
Simplified76.3%
Taylor expanded in t around 0 30.1%
Taylor expanded in b around 0 30.1%
distribute-rgt1-in30.1%
Simplified30.1%
Taylor expanded in b around inf 34.9%
associate-/l*34.8%
distribute-lft-out37.4%
Simplified37.4%
if -2.5000000000000001e-298 < b < 1.95e45Initial program 96.5%
associate-/l*95.5%
associate--l+95.5%
exp-sum84.4%
associate-/l*83.3%
*-commutative83.3%
exp-to-pow83.3%
exp-diff82.2%
*-commutative82.2%
exp-to-pow83.4%
sub-neg83.4%
metadata-eval83.4%
Simplified83.4%
Taylor expanded in y around 0 73.7%
exp-to-pow75.0%
sub-neg75.0%
metadata-eval75.0%
associate-*r/72.9%
Simplified72.9%
Taylor expanded in t around 0 41.7%
Taylor expanded in b around 0 38.1%
distribute-rgt1-in38.1%
Simplified38.1%
*-un-lft-identity38.1%
associate-*r*38.1%
times-frac47.5%
Applied egg-rr47.5%
if 1.95e45 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum77.4%
associate-/l*77.4%
*-commutative77.4%
exp-to-pow77.4%
exp-diff58.5%
*-commutative58.5%
exp-to-pow58.5%
sub-neg58.5%
metadata-eval58.5%
Simplified58.5%
Taylor expanded in y around 0 62.4%
exp-to-pow62.4%
sub-neg62.4%
metadata-eval62.4%
associate-*r/69.9%
Simplified69.9%
Taylor expanded in t around 0 87.0%
Taylor expanded in b around 0 59.0%
Final simplification49.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.15e-296)
(- (/ x (* y a)) (* (/ 1.0 a) (/ (* x b) y)))
(if (<= b 4800000000.0)
(* (/ -1.0 (* a (- -1.0 b))) (/ x y))
(/
x
(*
a
(*
y
(- 1.0 (* b (- -1.0 (* b (+ 0.5 (* b 0.16666666666666666))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.15e-296) {
tmp = (x / (y * a)) - ((1.0 / a) * ((x * b) / y));
} else if (b <= 4800000000.0) {
tmp = (-1.0 / (a * (-1.0 - b))) * (x / y);
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.15d-296)) then
tmp = (x / (y * a)) - ((1.0d0 / a) * ((x * b) / y))
else if (b <= 4800000000.0d0) then
tmp = ((-1.0d0) / (a * ((-1.0d0) - b))) * (x / y)
else
tmp = x / (a * (y * (1.0d0 - (b * ((-1.0d0) - (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.15e-296) {
tmp = (x / (y * a)) - ((1.0 / a) * ((x * b) / y));
} else if (b <= 4800000000.0) {
tmp = (-1.0 / (a * (-1.0 - b))) * (x / y);
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.15e-296: tmp = (x / (y * a)) - ((1.0 / a) * ((x * b) / y)) elif b <= 4800000000.0: tmp = (-1.0 / (a * (-1.0 - b))) * (x / y) else: tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.15e-296) tmp = Float64(Float64(x / Float64(y * a)) - Float64(Float64(1.0 / a) * Float64(Float64(x * b) / y))); elseif (b <= 4800000000.0) tmp = Float64(Float64(-1.0 / Float64(a * Float64(-1.0 - b))) * Float64(x / y)); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.15e-296) tmp = (x / (y * a)) - ((1.0 / a) * ((x * b) / y)); elseif (b <= 4800000000.0) tmp = (-1.0 / (a * (-1.0 - b))) * (x / y); else tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.15e-296], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(1.0 / a), $MachinePrecision] * N[(N[(x * b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4800000000.0], N[(N[(-1.0 / N[(a * N[(-1.0 - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 - N[(b * N[(-1.0 - N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.15 \cdot 10^{-296}:\\
\;\;\;\;\frac{x}{y \cdot a} - \frac{1}{a} \cdot \frac{x \cdot b}{y}\\
\mathbf{elif}\;b \leq 4800000000:\\
\;\;\;\;\frac{-1}{a \cdot \left(-1 - b\right)} \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 - b \cdot \left(-1 - b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -1.15000000000000002e-296Initial program 98.8%
associate-/l*99.5%
associate--l+99.5%
exp-sum82.7%
associate-/l*82.7%
*-commutative82.7%
exp-to-pow82.7%
exp-diff68.5%
*-commutative68.5%
exp-to-pow69.0%
sub-neg69.0%
metadata-eval69.0%
Simplified69.0%
Taylor expanded in y around 0 62.3%
exp-to-pow62.6%
sub-neg62.6%
metadata-eval62.6%
associate-*r/67.0%
Simplified67.0%
Taylor expanded in t around 0 61.4%
Taylor expanded in b around 0 39.3%
*-un-lft-identity39.3%
times-frac43.5%
*-commutative43.5%
Applied egg-rr43.5%
if -1.15000000000000002e-296 < b < 4.8e9Initial program 96.3%
associate-/l*95.3%
associate--l+95.3%
exp-sum87.1%
associate-/l*85.9%
*-commutative85.9%
exp-to-pow85.9%
exp-diff84.7%
*-commutative84.7%
exp-to-pow86.0%
sub-neg86.0%
metadata-eval86.0%
Simplified86.0%
Taylor expanded in y around 0 76.9%
exp-to-pow78.2%
sub-neg78.2%
metadata-eval78.2%
associate-*r/74.8%
Simplified74.8%
Taylor expanded in t around 0 41.7%
Taylor expanded in b around 0 40.2%
distribute-rgt1-in40.2%
Simplified40.2%
*-un-lft-identity40.2%
associate-*r*40.2%
times-frac50.1%
Applied egg-rr50.1%
if 4.8e9 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum74.1%
associate-/l*74.1%
*-commutative74.1%
exp-to-pow74.1%
exp-diff56.9%
*-commutative56.9%
exp-to-pow56.9%
sub-neg56.9%
metadata-eval56.9%
Simplified56.9%
Taylor expanded in y around 0 58.7%
exp-to-pow58.7%
sub-neg58.7%
metadata-eval58.7%
associate-*r/67.4%
Simplified67.4%
Taylor expanded in t around 0 83.0%
Taylor expanded in b around 0 71.6%
Final simplification52.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -9e-297)
(- (/ x (* y a)) (* (/ 1.0 a) (/ (* x b) y)))
(if (<= b 1.9e+45)
(* (/ -1.0 (* a (- -1.0 b))) (/ x y))
(/ x (* a (* y (+ 1.0 (* b (+ 1.0 (* b 0.5))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -9e-297) {
tmp = (x / (y * a)) - ((1.0 / a) * ((x * b) / y));
} else if (b <= 1.9e+45) {
tmp = (-1.0 / (a * (-1.0 - b))) * (x / y);
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-9d-297)) then
tmp = (x / (y * a)) - ((1.0d0 / a) * ((x * b) / y))
else if (b <= 1.9d+45) then
tmp = ((-1.0d0) / (a * ((-1.0d0) - b))) * (x / y)
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * 0.5d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -9e-297) {
tmp = (x / (y * a)) - ((1.0 / a) * ((x * b) / y));
} else if (b <= 1.9e+45) {
tmp = (-1.0 / (a * (-1.0 - b))) * (x / y);
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -9e-297: tmp = (x / (y * a)) - ((1.0 / a) * ((x * b) / y)) elif b <= 1.9e+45: tmp = (-1.0 / (a * (-1.0 - b))) * (x / y) else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -9e-297) tmp = Float64(Float64(x / Float64(y * a)) - Float64(Float64(1.0 / a) * Float64(Float64(x * b) / y))); elseif (b <= 1.9e+45) tmp = Float64(Float64(-1.0 / Float64(a * Float64(-1.0 - b))) * Float64(x / y)); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * 0.5))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -9e-297) tmp = (x / (y * a)) - ((1.0 / a) * ((x * b) / y)); elseif (b <= 1.9e+45) tmp = (-1.0 / (a * (-1.0 - b))) * (x / y); else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -9e-297], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(1.0 / a), $MachinePrecision] * N[(N[(x * b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.9e+45], N[(N[(-1.0 / N[(a * N[(-1.0 - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -9 \cdot 10^{-297}:\\
\;\;\;\;\frac{x}{y \cdot a} - \frac{1}{a} \cdot \frac{x \cdot b}{y}\\
\mathbf{elif}\;b \leq 1.9 \cdot 10^{+45}:\\
\;\;\;\;\frac{-1}{a \cdot \left(-1 - b\right)} \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -8.99999999999999951e-297Initial program 98.8%
associate-/l*99.5%
associate--l+99.5%
exp-sum82.7%
associate-/l*82.7%
*-commutative82.7%
exp-to-pow82.7%
exp-diff68.5%
*-commutative68.5%
exp-to-pow69.0%
sub-neg69.0%
metadata-eval69.0%
Simplified69.0%
Taylor expanded in y around 0 62.3%
exp-to-pow62.6%
sub-neg62.6%
metadata-eval62.6%
associate-*r/67.0%
Simplified67.0%
Taylor expanded in t around 0 61.4%
Taylor expanded in b around 0 39.3%
*-un-lft-identity39.3%
times-frac43.5%
*-commutative43.5%
Applied egg-rr43.5%
if -8.99999999999999951e-297 < b < 1.9000000000000001e45Initial program 96.5%
associate-/l*95.5%
associate--l+95.5%
exp-sum84.4%
associate-/l*83.3%
*-commutative83.3%
exp-to-pow83.3%
exp-diff82.2%
*-commutative82.2%
exp-to-pow83.4%
sub-neg83.4%
metadata-eval83.4%
Simplified83.4%
Taylor expanded in y around 0 73.7%
exp-to-pow75.0%
sub-neg75.0%
metadata-eval75.0%
associate-*r/72.9%
Simplified72.9%
Taylor expanded in t around 0 41.7%
Taylor expanded in b around 0 38.1%
distribute-rgt1-in38.1%
Simplified38.1%
*-un-lft-identity38.1%
associate-*r*38.1%
times-frac47.5%
Applied egg-rr47.5%
if 1.9000000000000001e45 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum77.4%
associate-/l*77.4%
*-commutative77.4%
exp-to-pow77.4%
exp-diff58.5%
*-commutative58.5%
exp-to-pow58.5%
sub-neg58.5%
metadata-eval58.5%
Simplified58.5%
Taylor expanded in y around 0 62.4%
exp-to-pow62.4%
sub-neg62.4%
metadata-eval62.4%
associate-*r/69.9%
Simplified69.9%
Taylor expanded in t around 0 87.0%
Taylor expanded in b around 0 59.0%
Final simplification48.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.1e-39)
(/ (- (/ x y) (/ (* x b) y)) a)
(if (<= b -3.5e-296)
(/ x (* b (* a (+ y (/ y b)))))
(/ -1.0 (* a (/ (* y (- -1.0 b)) x))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.1e-39) {
tmp = ((x / y) - ((x * b) / y)) / a;
} else if (b <= -3.5e-296) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = -1.0 / (a * ((y * (-1.0 - b)) / 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 <= (-1.1d-39)) then
tmp = ((x / y) - ((x * b) / y)) / a
else if (b <= (-3.5d-296)) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = (-1.0d0) / (a * ((y * ((-1.0d0) - b)) / 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 <= -1.1e-39) {
tmp = ((x / y) - ((x * b) / y)) / a;
} else if (b <= -3.5e-296) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = -1.0 / (a * ((y * (-1.0 - b)) / x));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.1e-39: tmp = ((x / y) - ((x * b) / y)) / a elif b <= -3.5e-296: tmp = x / (b * (a * (y + (y / b)))) else: tmp = -1.0 / (a * ((y * (-1.0 - b)) / x)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.1e-39) tmp = Float64(Float64(Float64(x / y) - Float64(Float64(x * b) / y)) / a); elseif (b <= -3.5e-296) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(-1.0 / Float64(a * Float64(Float64(y * Float64(-1.0 - b)) / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.1e-39) tmp = ((x / y) - ((x * b) / y)) / a; elseif (b <= -3.5e-296) tmp = x / (b * (a * (y + (y / b)))); else tmp = -1.0 / (a * ((y * (-1.0 - b)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.1e-39], N[(N[(N[(x / y), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b, -3.5e-296], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-1.0 / N[(a * N[(N[(y * N[(-1.0 - b), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.1 \cdot 10^{-39}:\\
\;\;\;\;\frac{\frac{x}{y} - \frac{x \cdot b}{y}}{a}\\
\mathbf{elif}\;b \leq -3.5 \cdot 10^{-296}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{-1}{a \cdot \frac{y \cdot \left(-1 - b\right)}{x}}\\
\end{array}
\end{array}
if b < -1.1e-39Initial program 98.7%
associate-/l*99.9%
associate--l+99.9%
exp-sum77.9%
associate-/l*77.9%
*-commutative77.9%
exp-to-pow77.9%
exp-diff56.0%
*-commutative56.0%
exp-to-pow56.2%
sub-neg56.2%
metadata-eval56.2%
Simplified56.2%
Taylor expanded in y around 0 55.1%
exp-to-pow55.1%
sub-neg55.1%
metadata-eval55.1%
associate-*r/61.9%
Simplified61.9%
Taylor expanded in t around 0 78.5%
Taylor expanded in b around 0 45.6%
Taylor expanded in a around 0 50.8%
if -1.1e-39 < b < -3.4999999999999999e-296Initial program 98.9%
associate-/l*98.9%
associate--l+98.9%
exp-sum91.3%
associate-/l*91.3%
*-commutative91.3%
exp-to-pow91.3%
exp-diff91.3%
*-commutative91.3%
exp-to-pow92.4%
sub-neg92.4%
metadata-eval92.4%
Simplified92.4%
Taylor expanded in y around 0 75.5%
exp-to-pow76.3%
sub-neg76.3%
metadata-eval76.3%
associate-*r/76.3%
Simplified76.3%
Taylor expanded in t around 0 30.1%
Taylor expanded in b around 0 30.1%
distribute-rgt1-in30.1%
Simplified30.1%
Taylor expanded in b around inf 34.9%
associate-/l*34.8%
distribute-lft-out37.4%
Simplified37.4%
if -3.4999999999999999e-296 < b Initial program 97.8%
associate-/l*97.2%
associate--l+97.2%
exp-sum81.8%
associate-/l*81.1%
*-commutative81.1%
exp-to-pow81.1%
exp-diff73.4%
*-commutative73.4%
exp-to-pow74.2%
sub-neg74.2%
metadata-eval74.2%
Simplified74.2%
Taylor expanded in y around 0 69.5%
exp-to-pow70.3%
sub-neg70.3%
metadata-eval70.3%
associate-*r/71.8%
Simplified71.8%
Taylor expanded in t around 0 58.5%
Taylor expanded in b around 0 38.0%
distribute-rgt1-in38.0%
Simplified38.0%
clear-num37.9%
inv-pow37.9%
*-commutative37.9%
Applied egg-rr37.9%
unpow-137.9%
associate-/l*44.6%
+-commutative44.6%
Simplified44.6%
Final simplification45.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b -4.5e-151) (* x (- (/ (/ b a) y))) (if (<= b 2.5e+78) (* (/ x y) (/ 1.0 a)) (/ x (* a (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.5e-151) {
tmp = x * -((b / a) / y);
} else if (b <= 2.5e+78) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-4.5d-151)) then
tmp = x * -((b / a) / y)
else if (b <= 2.5d+78) then
tmp = (x / y) * (1.0d0 / a)
else
tmp = x / (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.5e-151) {
tmp = x * -((b / a) / y);
} else if (b <= 2.5e+78) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -4.5e-151: tmp = x * -((b / a) / y) elif b <= 2.5e+78: tmp = (x / y) * (1.0 / a) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -4.5e-151) tmp = Float64(x * Float64(-Float64(Float64(b / a) / y))); elseif (b <= 2.5e+78) tmp = Float64(Float64(x / y) * Float64(1.0 / a)); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -4.5e-151) tmp = x * -((b / a) / y); elseif (b <= 2.5e+78) tmp = (x / y) * (1.0 / a); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -4.5e-151], N[(x * (-N[(N[(b / a), $MachinePrecision] / y), $MachinePrecision])), $MachinePrecision], If[LessEqual[b, 2.5e+78], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.5 \cdot 10^{-151}:\\
\;\;\;\;x \cdot \left(-\frac{\frac{b}{a}}{y}\right)\\
\mathbf{elif}\;b \leq 2.5 \cdot 10^{+78}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < -4.5000000000000002e-151Initial program 98.9%
associate-/l*99.8%
associate--l+99.8%
exp-sum81.5%
associate-/l*81.5%
*-commutative81.5%
exp-to-pow81.5%
exp-diff64.3%
*-commutative64.3%
exp-to-pow64.5%
sub-neg64.5%
metadata-eval64.5%
Simplified64.5%
Taylor expanded in y around 0 59.5%
exp-to-pow59.6%
sub-neg59.6%
metadata-eval59.6%
associate-*r/64.9%
Simplified64.9%
Taylor expanded in t around 0 66.5%
Taylor expanded in b around 0 40.7%
Taylor expanded in b around inf 38.8%
associate-*r/38.8%
*-commutative38.8%
neg-mul-138.8%
distribute-rgt-neg-in38.8%
associate-*r/37.8%
distribute-neg-frac37.8%
associate-/r*44.0%
distribute-neg-frac44.0%
Simplified44.0%
if -4.5000000000000002e-151 < b < 2.49999999999999992e78Initial program 97.1%
associate-/l*96.3%
associate--l+96.3%
exp-sum83.7%
associate-/l*82.9%
*-commutative82.9%
exp-to-pow82.9%
exp-diff81.2%
*-commutative81.2%
exp-to-pow82.4%
sub-neg82.4%
metadata-eval82.4%
Simplified82.4%
Taylor expanded in y around 0 71.9%
exp-to-pow73.0%
sub-neg73.0%
metadata-eval73.0%
associate-*r/72.3%
Simplified72.3%
Taylor expanded in t around 0 42.9%
Taylor expanded in b around 0 36.8%
*-un-lft-identity36.8%
times-frac41.6%
Applied egg-rr41.6%
if 2.49999999999999992e78 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum79.5%
associate-/l*79.5%
*-commutative79.5%
exp-to-pow79.5%
exp-diff59.1%
*-commutative59.1%
exp-to-pow59.1%
sub-neg59.1%
metadata-eval59.1%
Simplified59.1%
Taylor expanded in y around 0 65.9%
exp-to-pow65.9%
sub-neg65.9%
metadata-eval65.9%
associate-*r/72.8%
Simplified72.8%
Taylor expanded in t around 0 91.1%
Taylor expanded in b around 0 40.4%
distribute-rgt1-in40.4%
Simplified40.4%
Taylor expanded in b around inf 40.4%
*-commutative40.4%
Simplified40.4%
Final simplification42.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.4e-150) (* x (- (/ (/ b a) y))) (/ -1.0 (* a (/ (* y (- -1.0 b)) x)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.4e-150) {
tmp = x * -((b / a) / y);
} else {
tmp = -1.0 / (a * ((y * (-1.0 - b)) / 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 <= (-2.4d-150)) then
tmp = x * -((b / a) / y)
else
tmp = (-1.0d0) / (a * ((y * ((-1.0d0) - b)) / 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 <= -2.4e-150) {
tmp = x * -((b / a) / y);
} else {
tmp = -1.0 / (a * ((y * (-1.0 - b)) / x));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.4e-150: tmp = x * -((b / a) / y) else: tmp = -1.0 / (a * ((y * (-1.0 - b)) / x)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.4e-150) tmp = Float64(x * Float64(-Float64(Float64(b / a) / y))); else tmp = Float64(-1.0 / Float64(a * Float64(Float64(y * Float64(-1.0 - b)) / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.4e-150) tmp = x * -((b / a) / y); else tmp = -1.0 / (a * ((y * (-1.0 - b)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.4e-150], N[(x * (-N[(N[(b / a), $MachinePrecision] / y), $MachinePrecision])), $MachinePrecision], N[(-1.0 / N[(a * N[(N[(y * N[(-1.0 - b), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.4 \cdot 10^{-150}:\\
\;\;\;\;x \cdot \left(-\frac{\frac{b}{a}}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{-1}{a \cdot \frac{y \cdot \left(-1 - b\right)}{x}}\\
\end{array}
\end{array}
if b < -2.4e-150Initial program 98.9%
associate-/l*99.8%
associate--l+99.8%
exp-sum81.5%
associate-/l*81.5%
*-commutative81.5%
exp-to-pow81.5%
exp-diff64.3%
*-commutative64.3%
exp-to-pow64.5%
sub-neg64.5%
metadata-eval64.5%
Simplified64.5%
Taylor expanded in y around 0 59.5%
exp-to-pow59.6%
sub-neg59.6%
metadata-eval59.6%
associate-*r/64.9%
Simplified64.9%
Taylor expanded in t around 0 66.5%
Taylor expanded in b around 0 40.7%
Taylor expanded in b around inf 38.8%
associate-*r/38.8%
*-commutative38.8%
neg-mul-138.8%
distribute-rgt-neg-in38.8%
associate-*r/37.8%
distribute-neg-frac37.8%
associate-/r*44.0%
distribute-neg-frac44.0%
Simplified44.0%
if -2.4e-150 < b Initial program 97.9%
associate-/l*97.3%
associate--l+97.3%
exp-sum82.6%
associate-/l*82.0%
*-commutative82.0%
exp-to-pow82.0%
exp-diff75.3%
*-commutative75.3%
exp-to-pow76.1%
sub-neg76.1%
metadata-eval76.1%
Simplified76.1%
Taylor expanded in y around 0 70.3%
exp-to-pow71.1%
sub-neg71.1%
metadata-eval71.1%
associate-*r/72.4%
Simplified72.4%
Taylor expanded in t around 0 55.9%
Taylor expanded in b around 0 37.9%
distribute-rgt1-in37.9%
Simplified37.9%
clear-num37.9%
inv-pow37.9%
*-commutative37.9%
Applied egg-rr37.9%
unpow-137.9%
associate-/l*42.0%
+-commutative42.0%
Simplified42.0%
Final simplification42.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -3.4e-151) (* x (- (/ (/ b a) y))) (* (/ -1.0 (* a (- -1.0 b))) (/ x y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.4e-151) {
tmp = x * -((b / a) / y);
} else {
tmp = (-1.0 / (a * (-1.0 - b))) * (x / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-3.4d-151)) then
tmp = x * -((b / a) / y)
else
tmp = ((-1.0d0) / (a * ((-1.0d0) - b))) * (x / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.4e-151) {
tmp = x * -((b / a) / y);
} else {
tmp = (-1.0 / (a * (-1.0 - b))) * (x / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3.4e-151: tmp = x * -((b / a) / y) else: tmp = (-1.0 / (a * (-1.0 - b))) * (x / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3.4e-151) tmp = Float64(x * Float64(-Float64(Float64(b / a) / y))); else tmp = Float64(Float64(-1.0 / Float64(a * Float64(-1.0 - b))) * Float64(x / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -3.4e-151) tmp = x * -((b / a) / y); else tmp = (-1.0 / (a * (-1.0 - b))) * (x / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.4e-151], N[(x * (-N[(N[(b / a), $MachinePrecision] / y), $MachinePrecision])), $MachinePrecision], N[(N[(-1.0 / N[(a * N[(-1.0 - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.4 \cdot 10^{-151}:\\
\;\;\;\;x \cdot \left(-\frac{\frac{b}{a}}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{-1}{a \cdot \left(-1 - b\right)} \cdot \frac{x}{y}\\
\end{array}
\end{array}
if b < -3.4000000000000003e-151Initial program 98.9%
associate-/l*99.8%
associate--l+99.8%
exp-sum81.5%
associate-/l*81.5%
*-commutative81.5%
exp-to-pow81.5%
exp-diff64.3%
*-commutative64.3%
exp-to-pow64.5%
sub-neg64.5%
metadata-eval64.5%
Simplified64.5%
Taylor expanded in y around 0 59.5%
exp-to-pow59.6%
sub-neg59.6%
metadata-eval59.6%
associate-*r/64.9%
Simplified64.9%
Taylor expanded in t around 0 66.5%
Taylor expanded in b around 0 40.7%
Taylor expanded in b around inf 38.8%
associate-*r/38.8%
*-commutative38.8%
neg-mul-138.8%
distribute-rgt-neg-in38.8%
associate-*r/37.8%
distribute-neg-frac37.8%
associate-/r*44.0%
distribute-neg-frac44.0%
Simplified44.0%
if -3.4000000000000003e-151 < b Initial program 97.9%
associate-/l*97.3%
associate--l+97.3%
exp-sum82.6%
associate-/l*82.0%
*-commutative82.0%
exp-to-pow82.0%
exp-diff75.3%
*-commutative75.3%
exp-to-pow76.1%
sub-neg76.1%
metadata-eval76.1%
Simplified76.1%
Taylor expanded in y around 0 70.3%
exp-to-pow71.1%
sub-neg71.1%
metadata-eval71.1%
associate-*r/72.4%
Simplified72.4%
Taylor expanded in t around 0 55.9%
Taylor expanded in b around 0 37.9%
distribute-rgt1-in37.9%
Simplified37.9%
*-un-lft-identity37.9%
associate-*r*38.5%
times-frac42.0%
Applied egg-rr42.0%
Final simplification42.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b 0.038) (/ (* (/ x y) (+ b -1.0)) (- a)) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 0.038) {
tmp = ((x / y) * (b + -1.0)) / -a;
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 0.038d0) then
tmp = ((x / y) * (b + (-1.0d0))) / -a
else
tmp = x / (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 0.038) {
tmp = ((x / y) * (b + -1.0)) / -a;
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 0.038: tmp = ((x / y) * (b + -1.0)) / -a else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 0.038) tmp = Float64(Float64(Float64(x / y) * Float64(b + -1.0)) / Float64(-a)); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 0.038) tmp = ((x / y) * (b + -1.0)) / -a; else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 0.038], N[(N[(N[(x / y), $MachinePrecision] * N[(b + -1.0), $MachinePrecision]), $MachinePrecision] / (-a)), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 0.038:\\
\;\;\;\;\frac{\frac{x}{y} \cdot \left(b + -1\right)}{-a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 0.0379999999999999991Initial program 97.7%
associate-/l*97.6%
associate--l+97.6%
exp-sum84.2%
associate-/l*83.7%
*-commutative83.7%
exp-to-pow83.7%
exp-diff75.5%
*-commutative75.5%
exp-to-pow76.3%
sub-neg76.3%
metadata-eval76.3%
Simplified76.3%
Taylor expanded in y around 0 68.4%
exp-to-pow69.2%
sub-neg69.2%
metadata-eval69.2%
associate-*r/70.7%
Simplified70.7%
Taylor expanded in t around 0 53.0%
Taylor expanded in b around 0 35.1%
Taylor expanded in a around -inf 42.2%
mul-1-neg42.2%
distribute-neg-frac242.2%
+-commutative42.2%
associate-/l*35.0%
distribute-rgt-out42.8%
Simplified42.8%
if 0.0379999999999999991 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum75.8%
associate-/l*75.8%
*-commutative75.8%
exp-to-pow75.8%
exp-diff58.1%
*-commutative58.1%
exp-to-pow58.1%
sub-neg58.1%
metadata-eval58.1%
Simplified58.1%
Taylor expanded in y around 0 59.8%
exp-to-pow59.8%
sub-neg59.8%
metadata-eval59.8%
associate-*r/66.3%
Simplified66.3%
Taylor expanded in t around 0 81.0%
Taylor expanded in b around 0 34.3%
distribute-rgt1-in34.3%
Simplified34.3%
Taylor expanded in b around inf 34.3%
*-commutative34.3%
Simplified34.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b 2.7e+78) (* (/ x y) (/ 1.0 a)) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 2.7e+78) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 2.7d+78) then
tmp = (x / y) * (1.0d0 / a)
else
tmp = x / (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 2.7e+78) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 2.7e+78: tmp = (x / y) * (1.0 / a) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 2.7e+78) tmp = Float64(Float64(x / y) * Float64(1.0 / a)); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 2.7e+78) tmp = (x / y) * (1.0 / a); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 2.7e+78], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2.7 \cdot 10^{+78}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 2.70000000000000004e78Initial program 97.9%
associate-/l*97.8%
associate--l+97.8%
exp-sum82.7%
associate-/l*82.3%
*-commutative82.3%
exp-to-pow82.3%
exp-diff73.8%
*-commutative73.8%
exp-to-pow74.6%
sub-neg74.6%
metadata-eval74.6%
Simplified74.6%
Taylor expanded in y around 0 66.4%
exp-to-pow67.1%
sub-neg67.1%
metadata-eval67.1%
associate-*r/69.0%
Simplified69.0%
Taylor expanded in t around 0 53.3%
Taylor expanded in b around 0 30.8%
*-un-lft-identity30.8%
times-frac35.7%
Applied egg-rr35.7%
if 2.70000000000000004e78 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum79.5%
associate-/l*79.5%
*-commutative79.5%
exp-to-pow79.5%
exp-diff59.1%
*-commutative59.1%
exp-to-pow59.1%
sub-neg59.1%
metadata-eval59.1%
Simplified59.1%
Taylor expanded in y around 0 65.9%
exp-to-pow65.9%
sub-neg65.9%
metadata-eval65.9%
associate-*r/72.8%
Simplified72.8%
Taylor expanded in t around 0 91.1%
Taylor expanded in b around 0 40.4%
distribute-rgt1-in40.4%
Simplified40.4%
Taylor expanded in b around inf 40.4%
*-commutative40.4%
Simplified40.4%
Final simplification36.5%
(FPCore (x y z t a b) :precision binary64 (if (<= z 1e-151) (/ (/ x a) y) (* (/ x y) (/ 1.0 a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= 1e-151) {
tmp = (x / a) / y;
} else {
tmp = (x / y) * (1.0 / 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 (z <= 1d-151) then
tmp = (x / a) / y
else
tmp = (x / y) * (1.0d0 / 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 (z <= 1e-151) {
tmp = (x / a) / y;
} else {
tmp = (x / y) * (1.0 / a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= 1e-151: tmp = (x / a) / y else: tmp = (x / y) * (1.0 / a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= 1e-151) tmp = Float64(Float64(x / a) / y); else tmp = Float64(Float64(x / y) * Float64(1.0 / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= 1e-151) tmp = (x / a) / y; else tmp = (x / y) * (1.0 / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, 1e-151], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 10^{-151}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\end{array}
\end{array}
if z < 9.9999999999999994e-152Initial program 98.9%
associate-/l*98.9%
associate--l+98.9%
exp-sum88.9%
associate-/l*88.9%
*-commutative88.9%
exp-to-pow88.9%
exp-diff80.6%
*-commutative80.6%
exp-to-pow81.6%
sub-neg81.6%
metadata-eval81.6%
Simplified81.6%
Taylor expanded in b around 0 74.3%
*-commutative74.3%
exp-to-pow75.4%
sub-neg75.4%
metadata-eval75.4%
associate-*l*75.4%
Simplified75.4%
Taylor expanded in t around 0 57.8%
Taylor expanded in y around 0 38.4%
if 9.9999999999999994e-152 < z Initial program 98.0%
associate-/l*98.0%
associate--l+98.0%
exp-sum80.1%
associate-/l*79.6%
*-commutative79.6%
exp-to-pow79.6%
exp-diff68.4%
*-commutative68.4%
exp-to-pow68.9%
sub-neg68.9%
metadata-eval68.9%
Simplified68.9%
Taylor expanded in y around 0 63.9%
exp-to-pow64.3%
sub-neg64.3%
metadata-eval64.3%
associate-*r/68.9%
Simplified68.9%
Taylor expanded in t around 0 56.4%
Taylor expanded in b around 0 26.6%
*-un-lft-identity26.6%
times-frac33.3%
Applied egg-rr33.3%
Final simplification34.5%
(FPCore (x y z t a b) :precision binary64 (/ (/ x a) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x / a) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x / a) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x / a) / y;
}
def code(x, y, z, t, a, b): return (x / a) / y
function code(x, y, z, t, a, b) return Float64(Float64(x / a) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x / a) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{x}{a}}{y}
\end{array}
Initial program 98.2%
associate-/l*98.2%
associate--l+98.2%
exp-sum82.2%
associate-/l*81.8%
*-commutative81.8%
exp-to-pow81.8%
exp-diff71.3%
*-commutative71.3%
exp-to-pow71.9%
sub-neg71.9%
metadata-eval71.9%
Simplified71.9%
Taylor expanded in b around 0 70.0%
*-commutative70.0%
exp-to-pow70.6%
sub-neg70.6%
metadata-eval70.6%
associate-*l*70.6%
Simplified70.6%
Taylor expanded in t around 0 57.0%
Taylor expanded in y around 0 29.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.2%
associate-/l*98.2%
associate--l+98.2%
exp-sum82.2%
associate-/l*81.8%
*-commutative81.8%
exp-to-pow81.8%
exp-diff71.3%
*-commutative71.3%
exp-to-pow71.9%
sub-neg71.9%
metadata-eval71.9%
Simplified71.9%
Taylor expanded in y around 0 66.3%
exp-to-pow66.9%
sub-neg66.9%
metadata-eval66.9%
associate-*r/69.7%
Simplified69.7%
Taylor expanded in t around 0 59.8%
Taylor expanded in b around 0 28.6%
Final simplification28.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 2024145
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:alt
(! :herbie-platform default (if (< t -8845848504127471/10000000000000000) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))) (if (< t 8520312288374073/10000000000) (/ (* (/ x y) (pow a (- t 1))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))