
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (+ t -1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t + (-1.0d0)) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t + -1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t + -1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t + -1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t + -1\right) \cdot \log a\right) - b}}{y}
\end{array}
Initial program 98.3%
Final simplification98.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -6.2e+34) (not (<= y 3.8e-32))) (/ (* 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 <= -6.2e+34) || !(y <= 3.8e-32)) {
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 <= (-6.2d+34)) .or. (.not. (y <= 3.8d-32))) 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 <= -6.2e+34) || !(y <= 3.8e-32)) {
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 <= -6.2e+34) or not (y <= 3.8e-32): 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 <= -6.2e+34) || !(y <= 3.8e-32)) 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 <= -6.2e+34) || ~((y <= 3.8e-32))) 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, -6.2e+34], N[Not[LessEqual[y, 3.8e-32]], $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 -6.2 \cdot 10^{+34} \lor \neg \left(y \leq 3.8 \cdot 10^{-32}\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 < -6.19999999999999955e34 or 3.80000000000000008e-32 < y Initial program 99.9%
Taylor expanded in t around 0 93.8%
+-commutative93.8%
mul-1-neg93.8%
unsub-neg93.8%
Simplified93.8%
if -6.19999999999999955e34 < y < 3.80000000000000008e-32Initial program 96.7%
Taylor expanded in y around 0 96.7%
Final simplification95.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -7.5e+36) (not (<= y 1.02))) (* 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 <= -7.5e+36) || !(y <= 1.02)) {
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 <= (-7.5d+36)) .or. (.not. (y <= 1.02d0))) 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 <= -7.5e+36) || !(y <= 1.02)) {
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 <= -7.5e+36) or not (y <= 1.02): 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 <= -7.5e+36) || !(y <= 1.02)) tmp = Float64(x * Float64(Float64((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 <= -7.5e+36) || ~((y <= 1.02))) 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, -7.5e+36], N[Not[LessEqual[y, 1.02]], $MachinePrecision]], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $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 -7.5 \cdot 10^{+36} \lor \neg \left(y \leq 1.02\right):\\
\;\;\;\;x \cdot \frac{\frac{{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 < -7.50000000000000054e36 or 1.02 < y Initial program 99.9%
Taylor expanded in t around 0 93.5%
+-commutative93.5%
mul-1-neg93.5%
unsub-neg93.5%
Simplified93.5%
Taylor expanded in b around 0 87.9%
associate-/l*87.9%
div-exp87.9%
*-commutative87.9%
exp-to-pow87.9%
rem-exp-log88.0%
Simplified88.0%
if -7.50000000000000054e36 < y < 1.02Initial program 96.8%
Taylor expanded in y around 0 96.8%
Final simplification92.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.12e+33) (not (<= y 1.02))) (* 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.12e+33) || !(y <= 1.02)) {
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.12d+33)) .or. (.not. (y <= 1.02d0))) 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.12e+33) || !(y <= 1.02)) {
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.12e+33) or not (y <= 1.02): 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.12e+33) || !(y <= 1.02)) tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); else tmp = Float64(x * Float64(Float64((a ^ t) / 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.12e+33) || ~((y <= 1.02))) 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.12e+33], N[Not[LessEqual[y, 1.02]], $MachinePrecision]], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.12 \cdot 10^{+33} \lor \neg \left(y \leq 1.02\right):\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{\frac{{a}^{t}}{a}}{y \cdot e^{b}}\\
\end{array}
\end{array}
if y < -1.12e33 or 1.02 < y Initial program 99.9%
Taylor expanded in t around 0 93.5%
+-commutative93.5%
mul-1-neg93.5%
unsub-neg93.5%
Simplified93.5%
Taylor expanded in b around 0 87.9%
associate-/l*87.9%
div-exp87.9%
*-commutative87.9%
exp-to-pow87.9%
rem-exp-log88.0%
Simplified88.0%
if -1.12e33 < y < 1.02Initial program 96.8%
associate-/l*96.3%
associate--l+96.3%
exp-sum95.6%
associate-/l*95.6%
*-commutative95.6%
exp-to-pow95.6%
exp-diff87.3%
*-commutative87.3%
exp-to-pow88.1%
sub-neg88.1%
metadata-eval88.1%
Simplified88.1%
Taylor expanded in y around 0 85.5%
exp-to-pow86.4%
sub-neg86.4%
metadata-eval86.4%
associate-*r/88.9%
Simplified88.9%
unpow-prod-up88.9%
unpow-188.9%
Applied egg-rr88.9%
associate-*r/88.9%
*-rgt-identity88.9%
Simplified88.9%
Final simplification88.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (/ (pow z y) a) y))))
(if (<= y -5.5e+33)
t_1
(if (<= y -3e-88)
(/ (/ (/ x y) (exp b)) a)
(if (<= y 4.4e-122)
(* x (/ (/ (pow a t) a) y))
(if (<= y 1.02) (/ x (* a (* y (exp b)))) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * ((pow(z, y) / a) / y);
double tmp;
if (y <= -5.5e+33) {
tmp = t_1;
} else if (y <= -3e-88) {
tmp = ((x / y) / exp(b)) / a;
} else if (y <= 4.4e-122) {
tmp = x * ((pow(a, t) / a) / y);
} else if (y <= 1.02) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x * (((z ** y) / a) / y)
if (y <= (-5.5d+33)) then
tmp = t_1
else if (y <= (-3d-88)) then
tmp = ((x / y) / exp(b)) / a
else if (y <= 4.4d-122) then
tmp = x * (((a ** t) / a) / y)
else if (y <= 1.02d0) then
tmp = x / (a * (y * exp(b)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * ((Math.pow(z, y) / a) / y);
double tmp;
if (y <= -5.5e+33) {
tmp = t_1;
} else if (y <= -3e-88) {
tmp = ((x / y) / Math.exp(b)) / a;
} else if (y <= 4.4e-122) {
tmp = x * ((Math.pow(a, t) / a) / y);
} else if (y <= 1.02) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * ((math.pow(z, y) / a) / y) tmp = 0 if y <= -5.5e+33: tmp = t_1 elif y <= -3e-88: tmp = ((x / y) / math.exp(b)) / a elif y <= 4.4e-122: tmp = x * ((math.pow(a, t) / a) / y) elif y <= 1.02: tmp = x / (a * (y * math.exp(b))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(Float64((z ^ y) / a) / y)) tmp = 0.0 if (y <= -5.5e+33) tmp = t_1; elseif (y <= -3e-88) tmp = Float64(Float64(Float64(x / y) / exp(b)) / a); elseif (y <= 4.4e-122) tmp = Float64(x * Float64(Float64((a ^ t) / a) / y)); elseif (y <= 1.02) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (((z ^ y) / a) / y); tmp = 0.0; if (y <= -5.5e+33) tmp = t_1; elseif (y <= -3e-88) tmp = ((x / y) / exp(b)) / a; elseif (y <= 4.4e-122) tmp = x * (((a ^ t) / a) / y); elseif (y <= 1.02) tmp = x / (a * (y * exp(b))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.5e+33], t$95$1, If[LessEqual[y, -3e-88], N[(N[(N[(x / y), $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[y, 4.4e-122], N[(x * N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.02], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -5.5 \cdot 10^{+33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3 \cdot 10^{-88}:\\
\;\;\;\;\frac{\frac{\frac{x}{y}}{e^{b}}}{a}\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{-122}:\\
\;\;\;\;x \cdot \frac{\frac{{a}^{t}}{a}}{y}\\
\mathbf{elif}\;y \leq 1.02:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.5000000000000006e33 or 1.02 < y Initial program 99.9%
Taylor expanded in t around 0 93.5%
+-commutative93.5%
mul-1-neg93.5%
unsub-neg93.5%
Simplified93.5%
Taylor expanded in b around 0 87.9%
associate-/l*87.9%
div-exp87.9%
*-commutative87.9%
exp-to-pow87.9%
rem-exp-log88.0%
Simplified88.0%
if -5.5000000000000006e33 < y < -2.9999999999999999e-88Initial program 98.7%
associate-/l*95.1%
associate--l+95.1%
exp-sum90.5%
associate-/l*90.5%
*-commutative90.5%
exp-to-pow90.5%
exp-diff81.4%
*-commutative81.4%
exp-to-pow82.1%
sub-neg82.1%
metadata-eval82.1%
Simplified82.1%
Taylor expanded in y around 0 80.5%
exp-to-pow81.7%
sub-neg81.7%
metadata-eval81.7%
associate-*r/86.7%
Simplified86.7%
unpow-prod-up86.7%
unpow-186.7%
Applied egg-rr86.7%
associate-*r/86.7%
*-rgt-identity86.7%
Simplified86.7%
Taylor expanded in t around 0 78.2%
*-lft-identity78.2%
times-frac86.7%
associate-*l/86.7%
*-lft-identity86.7%
associate-/r*86.7%
Simplified86.7%
if -2.9999999999999999e-88 < y < 4.4e-122Initial program 95.8%
associate-/l*95.9%
associate--l+95.9%
exp-sum95.9%
associate-/l*95.9%
*-commutative95.9%
exp-to-pow95.9%
exp-diff91.3%
*-commutative91.3%
exp-to-pow92.2%
sub-neg92.2%
metadata-eval92.2%
Simplified92.2%
Taylor expanded in y around 0 88.9%
exp-to-pow89.7%
sub-neg89.7%
metadata-eval89.7%
associate-*r/92.2%
Simplified92.2%
unpow-prod-up92.2%
unpow-192.2%
Applied egg-rr92.2%
associate-*r/92.2%
*-rgt-identity92.2%
Simplified92.2%
Taylor expanded in b around 0 76.9%
if 4.4e-122 < y < 1.02Initial program 98.9%
associate-/l*98.9%
associate--l+98.9%
exp-sum98.9%
associate-/l*98.9%
*-commutative98.9%
exp-to-pow98.9%
exp-diff78.1%
*-commutative78.1%
exp-to-pow78.7%
sub-neg78.7%
metadata-eval78.7%
Simplified78.7%
Taylor expanded in y around 0 78.1%
exp-to-pow78.7%
sub-neg78.7%
metadata-eval78.7%
associate-*r/78.7%
Simplified78.7%
Taylor expanded in t around 0 89.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* b (* a (+ y (/ y b)))))) (t_2 (/ x (* a (* y (exp b))))))
(if (<= b -0.0031)
t_2
(if (<= b -8.5e-289)
t_1
(if (<= b 1.65e-201) (/ (/ x a) y) (if (<= b 5e-34) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (b * (a * (y + (y / b))));
double t_2 = x / (a * (y * exp(b)));
double tmp;
if (b <= -0.0031) {
tmp = t_2;
} else if (b <= -8.5e-289) {
tmp = t_1;
} else if (b <= 1.65e-201) {
tmp = (x / a) / y;
} else if (b <= 5e-34) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (b * (a * (y + (y / b))))
t_2 = x / (a * (y * exp(b)))
if (b <= (-0.0031d0)) then
tmp = t_2
else if (b <= (-8.5d-289)) then
tmp = t_1
else if (b <= 1.65d-201) then
tmp = (x / a) / y
else if (b <= 5d-34) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (b * (a * (y + (y / b))));
double t_2 = x / (a * (y * Math.exp(b)));
double tmp;
if (b <= -0.0031) {
tmp = t_2;
} else if (b <= -8.5e-289) {
tmp = t_1;
} else if (b <= 1.65e-201) {
tmp = (x / a) / y;
} else if (b <= 5e-34) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (b * (a * (y + (y / b)))) t_2 = x / (a * (y * math.exp(b))) tmp = 0 if b <= -0.0031: tmp = t_2 elif b <= -8.5e-289: tmp = t_1 elif b <= 1.65e-201: tmp = (x / a) / y elif b <= 5e-34: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))) t_2 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (b <= -0.0031) tmp = t_2; elseif (b <= -8.5e-289) tmp = t_1; elseif (b <= 1.65e-201) tmp = Float64(Float64(x / a) / y); elseif (b <= 5e-34) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (b * (a * (y + (y / b)))); t_2 = x / (a * (y * exp(b))); tmp = 0.0; if (b <= -0.0031) tmp = t_2; elseif (b <= -8.5e-289) tmp = t_1; elseif (b <= 1.65e-201) tmp = (x / a) / y; elseif (b <= 5e-34) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -0.0031], t$95$2, If[LessEqual[b, -8.5e-289], t$95$1, If[LessEqual[b, 1.65e-201], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 5e-34], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
t_2 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -0.0031:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -8.5 \cdot 10^{-289}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.65 \cdot 10^{-201}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{elif}\;b \leq 5 \cdot 10^{-34}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -0.00309999999999999989 or 5.0000000000000003e-34 < b Initial program 99.9%
associate-/l*99.2%
associate--l+99.2%
exp-sum78.3%
associate-/l*78.3%
*-commutative78.3%
exp-to-pow78.3%
exp-diff65.7%
*-commutative65.7%
exp-to-pow65.7%
sub-neg65.7%
metadata-eval65.7%
Simplified65.7%
Taylor expanded in y around 0 70.2%
exp-to-pow70.3%
sub-neg70.3%
metadata-eval70.3%
associate-*r/74.8%
Simplified74.8%
Taylor expanded in t around 0 80.3%
if -0.00309999999999999989 < b < -8.49999999999999931e-289 or 1.6500000000000002e-201 < b < 5.0000000000000003e-34Initial program 96.2%
associate-/l*98.3%
associate--l+98.3%
exp-sum91.4%
associate-/l*89.2%
*-commutative89.2%
exp-to-pow89.2%
exp-diff89.2%
*-commutative89.2%
exp-to-pow89.9%
sub-neg89.9%
metadata-eval89.9%
Simplified89.9%
Taylor expanded in y around 0 63.3%
exp-to-pow63.8%
sub-neg63.8%
metadata-eval63.8%
associate-*r/66.1%
Simplified66.1%
Taylor expanded in t around 0 33.2%
Taylor expanded in b around 0 31.9%
distribute-lft-out33.2%
*-commutative33.2%
Simplified33.2%
Taylor expanded in b around inf 29.4%
associate-/l*41.5%
distribute-lft-out47.2%
Simplified47.2%
if -8.49999999999999931e-289 < b < 1.6500000000000002e-201Initial program 97.4%
Taylor expanded in y around 0 74.8%
Taylor expanded in b around 0 74.8%
exp-to-pow76.6%
sub-neg76.6%
metadata-eval76.6%
+-commutative76.6%
Simplified76.6%
Taylor expanded in t around 0 49.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -52000000.0) (not (<= b 112.0))) (/ x (* a (* y (exp b)))) (* x (/ (/ (pow a t) a) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -52000000.0) || !(b <= 112.0)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = x * ((pow(a, t) / a) / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-52000000.0d0)) .or. (.not. (b <= 112.0d0))) then
tmp = x / (a * (y * exp(b)))
else
tmp = x * (((a ** t) / a) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -52000000.0) || !(b <= 112.0)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = x * ((Math.pow(a, t) / a) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -52000000.0) or not (b <= 112.0): tmp = x / (a * (y * math.exp(b))) else: tmp = x * ((math.pow(a, t) / a) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -52000000.0) || !(b <= 112.0)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(x * Float64(Float64((a ^ t) / a) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -52000000.0) || ~((b <= 112.0))) tmp = x / (a * (y * exp(b))); else tmp = x * (((a ^ t) / a) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -52000000.0], N[Not[LessEqual[b, 112.0]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -52000000 \lor \neg \left(b \leq 112\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{\frac{{a}^{t}}{a}}{y}\\
\end{array}
\end{array}
if b < -5.2e7 or 112 < 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-diff66.4%
*-commutative66.4%
exp-to-pow66.4%
sub-neg66.4%
metadata-eval66.4%
Simplified66.4%
Taylor expanded in y around 0 69.0%
exp-to-pow69.0%
sub-neg69.0%
metadata-eval69.0%
associate-*r/74.8%
Simplified74.8%
Taylor expanded in t around 0 85.5%
if -5.2e7 < b < 112Initial program 96.7%
associate-/l*96.2%
associate--l+96.2%
exp-sum88.8%
associate-/l*85.8%
*-commutative85.8%
exp-to-pow85.8%
exp-diff85.1%
*-commutative85.1%
exp-to-pow86.0%
sub-neg86.0%
metadata-eval86.0%
Simplified86.0%
Taylor expanded in y around 0 67.9%
exp-to-pow68.8%
sub-neg68.8%
metadata-eval68.8%
associate-*r/66.9%
Simplified66.9%
unpow-prod-up66.9%
unpow-166.9%
Applied egg-rr66.9%
associate-*r/66.9%
*-rgt-identity66.9%
Simplified66.9%
Taylor expanded in b around 0 67.1%
Final simplification75.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* b (* a (+ y (/ y b))))))
(t_2 (- (* (/ x y) 0.5) (/ x y))))
(if (<= b -0.0058)
(/
(-
(/ x y)
(*
b
(+
(/ x y)
(*
b
(-
t_2
(*
b
(- t_2 (+ (* (/ x y) -0.5) (* (/ x y) 0.16666666666666666)))))))))
a)
(if (<= b -2.4e-281)
t_1
(if (<= b 1.8e-201)
(/ (/ x a) y)
(if (<= b 2e-56)
t_1
(/
x
(*
a
(+
y
(*
b
(+ y (* b (* y (+ 0.5 (* b 0.16666666666666666)))))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (b * (a * (y + (y / b))));
double t_2 = ((x / y) * 0.5) - (x / y);
double tmp;
if (b <= -0.0058) {
tmp = ((x / y) - (b * ((x / y) + (b * (t_2 - (b * (t_2 - (((x / y) * -0.5) + ((x / y) * 0.16666666666666666))))))))) / a;
} else if (b <= -2.4e-281) {
tmp = t_1;
} else if (b <= 1.8e-201) {
tmp = (x / a) / y;
} else if (b <= 2e-56) {
tmp = t_1;
} else {
tmp = x / (a * (y + (b * (y + (b * (y * (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) :: t_2
real(8) :: tmp
t_1 = x / (b * (a * (y + (y / b))))
t_2 = ((x / y) * 0.5d0) - (x / y)
if (b <= (-0.0058d0)) then
tmp = ((x / y) - (b * ((x / y) + (b * (t_2 - (b * (t_2 - (((x / y) * (-0.5d0)) + ((x / y) * 0.16666666666666666d0))))))))) / a
else if (b <= (-2.4d-281)) then
tmp = t_1
else if (b <= 1.8d-201) then
tmp = (x / a) / y
else if (b <= 2d-56) then
tmp = t_1
else
tmp = x / (a * (y + (b * (y + (b * (y * (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 / (b * (a * (y + (y / b))));
double t_2 = ((x / y) * 0.5) - (x / y);
double tmp;
if (b <= -0.0058) {
tmp = ((x / y) - (b * ((x / y) + (b * (t_2 - (b * (t_2 - (((x / y) * -0.5) + ((x / y) * 0.16666666666666666))))))))) / a;
} else if (b <= -2.4e-281) {
tmp = t_1;
} else if (b <= 1.8e-201) {
tmp = (x / a) / y;
} else if (b <= 2e-56) {
tmp = t_1;
} else {
tmp = x / (a * (y + (b * (y + (b * (y * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (b * (a * (y + (y / b)))) t_2 = ((x / y) * 0.5) - (x / y) tmp = 0 if b <= -0.0058: tmp = ((x / y) - (b * ((x / y) + (b * (t_2 - (b * (t_2 - (((x / y) * -0.5) + ((x / y) * 0.16666666666666666))))))))) / a elif b <= -2.4e-281: tmp = t_1 elif b <= 1.8e-201: tmp = (x / a) / y elif b <= 2e-56: tmp = t_1 else: tmp = x / (a * (y + (b * (y + (b * (y * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))) t_2 = Float64(Float64(Float64(x / y) * 0.5) - Float64(x / y)) tmp = 0.0 if (b <= -0.0058) tmp = Float64(Float64(Float64(x / y) - Float64(b * Float64(Float64(x / y) + Float64(b * Float64(t_2 - Float64(b * Float64(t_2 - Float64(Float64(Float64(x / y) * -0.5) + Float64(Float64(x / y) * 0.16666666666666666))))))))) / a); elseif (b <= -2.4e-281) tmp = t_1; elseif (b <= 1.8e-201) tmp = Float64(Float64(x / a) / y); elseif (b <= 2e-56) tmp = t_1; else tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(y + Float64(b * Float64(y * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (b * (a * (y + (y / b)))); t_2 = ((x / y) * 0.5) - (x / y); tmp = 0.0; if (b <= -0.0058) tmp = ((x / y) - (b * ((x / y) + (b * (t_2 - (b * (t_2 - (((x / y) * -0.5) + ((x / y) * 0.16666666666666666))))))))) / a; elseif (b <= -2.4e-281) tmp = t_1; elseif (b <= 1.8e-201) tmp = (x / a) / y; elseif (b <= 2e-56) tmp = t_1; else tmp = x / (a * (y + (b * (y + (b * (y * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x / y), $MachinePrecision] * 0.5), $MachinePrecision] - N[(x / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -0.0058], N[(N[(N[(x / y), $MachinePrecision] - N[(b * N[(N[(x / y), $MachinePrecision] + N[(b * N[(t$95$2 - N[(b * N[(t$95$2 - N[(N[(N[(x / y), $MachinePrecision] * -0.5), $MachinePrecision] + N[(N[(x / y), $MachinePrecision] * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b, -2.4e-281], t$95$1, If[LessEqual[b, 1.8e-201], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 2e-56], t$95$1, N[(x / N[(a * N[(y + N[(b * N[(y + N[(b * N[(y * 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}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
t_2 := \frac{x}{y} \cdot 0.5 - \frac{x}{y}\\
\mathbf{if}\;b \leq -0.0058:\\
\;\;\;\;\frac{\frac{x}{y} - b \cdot \left(\frac{x}{y} + b \cdot \left(t\_2 - b \cdot \left(t\_2 - \left(\frac{x}{y} \cdot -0.5 + \frac{x}{y} \cdot 0.16666666666666666\right)\right)\right)\right)}{a}\\
\mathbf{elif}\;b \leq -2.4 \cdot 10^{-281}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{-201}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{elif}\;b \leq 2 \cdot 10^{-56}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(y + b \cdot \left(y \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -0.0058Initial program 99.9%
associate-/l*99.9%
associate--l+99.9%
exp-sum84.3%
associate-/l*84.3%
*-commutative84.3%
exp-to-pow84.3%
exp-diff68.7%
*-commutative68.7%
exp-to-pow68.7%
sub-neg68.7%
metadata-eval68.7%
Simplified68.7%
Taylor expanded in y around 0 73.4%
exp-to-pow73.5%
sub-neg73.5%
metadata-eval73.5%
associate-*r/78.2%
Simplified78.2%
unpow-prod-up78.2%
unpow-178.2%
Applied egg-rr78.2%
associate-*r/78.2%
*-rgt-identity78.2%
Simplified78.2%
Taylor expanded in t around 0 89.2%
*-lft-identity89.2%
times-frac89.2%
associate-*l/89.2%
*-lft-identity89.2%
associate-/r*79.8%
Simplified79.8%
Taylor expanded in b around 0 57.9%
if -0.0058 < b < -2.4e-281 or 1.80000000000000016e-201 < b < 2.0000000000000001e-56Initial program 96.0%
associate-/l*98.2%
associate--l+98.2%
exp-sum91.0%
associate-/l*88.6%
*-commutative88.6%
exp-to-pow88.6%
exp-diff88.6%
*-commutative88.6%
exp-to-pow89.4%
sub-neg89.4%
metadata-eval89.4%
Simplified89.4%
Taylor expanded in y around 0 61.5%
exp-to-pow62.1%
sub-neg62.1%
metadata-eval62.1%
associate-*r/64.5%
Simplified64.5%
Taylor expanded in t around 0 32.3%
Taylor expanded in b around 0 31.0%
distribute-lft-out32.3%
*-commutative32.3%
Simplified32.3%
Taylor expanded in b around inf 28.4%
associate-/l*41.0%
distribute-lft-out47.0%
Simplified47.0%
if -2.4e-281 < b < 1.80000000000000016e-201Initial program 97.4%
Taylor expanded in y around 0 74.8%
Taylor expanded in b around 0 74.8%
exp-to-pow76.6%
sub-neg76.6%
metadata-eval76.6%
+-commutative76.6%
Simplified76.6%
Taylor expanded in t around 0 49.7%
if 2.0000000000000001e-56 < b Initial program 99.9%
associate-/l*98.7%
associate--l+98.7%
exp-sum74.4%
associate-/l*74.4%
*-commutative74.4%
exp-to-pow74.4%
exp-diff64.9%
*-commutative64.9%
exp-to-pow64.9%
sub-neg64.9%
metadata-eval64.9%
Simplified64.9%
Taylor expanded in y around 0 69.0%
exp-to-pow69.2%
sub-neg69.2%
metadata-eval69.2%
associate-*r/73.3%
Simplified73.3%
Taylor expanded in t around 0 71.0%
Taylor expanded in b around 0 58.0%
associate-*r*58.0%
distribute-rgt-out58.0%
Simplified58.0%
Final simplification53.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* b (* a (+ y (/ y b)))))))
(if (<= b -1.55e-16)
(/ (* x (+ (/ 1.0 a) (* b (+ (* 0.5 (/ b a)) (/ -1.0 a))))) y)
(if (<= b -3.6e-289)
t_1
(if (<= b 1.5e-202)
(/ (/ x a) y)
(if (<= b 1.6e-54)
t_1
(/
x
(*
a
(+
y
(*
b
(+ y (* b (* y (+ 0.5 (* b 0.16666666666666666)))))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (b * (a * (y + (y / b))));
double tmp;
if (b <= -1.55e-16) {
tmp = (x * ((1.0 / a) + (b * ((0.5 * (b / a)) + (-1.0 / a))))) / y;
} else if (b <= -3.6e-289) {
tmp = t_1;
} else if (b <= 1.5e-202) {
tmp = (x / a) / y;
} else if (b <= 1.6e-54) {
tmp = t_1;
} else {
tmp = x / (a * (y + (b * (y + (b * (y * (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 / (b * (a * (y + (y / b))))
if (b <= (-1.55d-16)) then
tmp = (x * ((1.0d0 / a) + (b * ((0.5d0 * (b / a)) + ((-1.0d0) / a))))) / y
else if (b <= (-3.6d-289)) then
tmp = t_1
else if (b <= 1.5d-202) then
tmp = (x / a) / y
else if (b <= 1.6d-54) then
tmp = t_1
else
tmp = x / (a * (y + (b * (y + (b * (y * (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 / (b * (a * (y + (y / b))));
double tmp;
if (b <= -1.55e-16) {
tmp = (x * ((1.0 / a) + (b * ((0.5 * (b / a)) + (-1.0 / a))))) / y;
} else if (b <= -3.6e-289) {
tmp = t_1;
} else if (b <= 1.5e-202) {
tmp = (x / a) / y;
} else if (b <= 1.6e-54) {
tmp = t_1;
} else {
tmp = x / (a * (y + (b * (y + (b * (y * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (b * (a * (y + (y / b)))) tmp = 0 if b <= -1.55e-16: tmp = (x * ((1.0 / a) + (b * ((0.5 * (b / a)) + (-1.0 / a))))) / y elif b <= -3.6e-289: tmp = t_1 elif b <= 1.5e-202: tmp = (x / a) / y elif b <= 1.6e-54: tmp = t_1 else: tmp = x / (a * (y + (b * (y + (b * (y * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))) tmp = 0.0 if (b <= -1.55e-16) tmp = Float64(Float64(x * Float64(Float64(1.0 / a) + Float64(b * Float64(Float64(0.5 * Float64(b / a)) + Float64(-1.0 / a))))) / y); elseif (b <= -3.6e-289) tmp = t_1; elseif (b <= 1.5e-202) tmp = Float64(Float64(x / a) / y); elseif (b <= 1.6e-54) tmp = t_1; else tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(y + Float64(b * Float64(y * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (b * (a * (y + (y / b)))); tmp = 0.0; if (b <= -1.55e-16) tmp = (x * ((1.0 / a) + (b * ((0.5 * (b / a)) + (-1.0 / a))))) / y; elseif (b <= -3.6e-289) tmp = t_1; elseif (b <= 1.5e-202) tmp = (x / a) / y; elseif (b <= 1.6e-54) tmp = t_1; else tmp = x / (a * (y + (b * (y + (b * (y * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.55e-16], N[(N[(x * N[(N[(1.0 / a), $MachinePrecision] + N[(b * N[(N[(0.5 * N[(b / a), $MachinePrecision]), $MachinePrecision] + N[(-1.0 / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, -3.6e-289], t$95$1, If[LessEqual[b, 1.5e-202], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 1.6e-54], t$95$1, N[(x / N[(a * N[(y + N[(b * N[(y + N[(b * N[(y * 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}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{if}\;b \leq -1.55 \cdot 10^{-16}:\\
\;\;\;\;\frac{x \cdot \left(\frac{1}{a} + b \cdot \left(0.5 \cdot \frac{b}{a} + \frac{-1}{a}\right)\right)}{y}\\
\mathbf{elif}\;b \leq -3.6 \cdot 10^{-289}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{-202}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{elif}\;b \leq 1.6 \cdot 10^{-54}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(y + b \cdot \left(y \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -1.55e-16Initial program 99.9%
Taylor expanded in t around 0 91.1%
+-commutative91.1%
mul-1-neg91.1%
unsub-neg91.1%
Simplified91.1%
Taylor expanded in y around 0 86.7%
+-commutative86.7%
distribute-neg-in86.7%
neg-mul-186.7%
sub-neg86.7%
exp-diff86.7%
neg-mul-186.7%
log-rec86.7%
rem-exp-log86.8%
Simplified86.8%
Taylor expanded in b around 0 41.0%
Taylor expanded in x around 0 53.8%
if -1.55e-16 < b < -3.6e-289 or 1.50000000000000005e-202 < b < 1.59999999999999999e-54Initial program 95.9%
associate-/l*98.1%
associate--l+98.1%
exp-sum90.7%
associate-/l*88.2%
*-commutative88.2%
exp-to-pow88.2%
exp-diff88.2%
*-commutative88.2%
exp-to-pow89.0%
sub-neg89.0%
metadata-eval89.0%
Simplified89.0%
Taylor expanded in y around 0 62.5%
exp-to-pow63.1%
sub-neg63.1%
metadata-eval63.1%
associate-*r/65.6%
Simplified65.6%
Taylor expanded in t around 0 33.3%
Taylor expanded in b around 0 31.9%
distribute-lft-out33.3%
*-commutative33.3%
Simplified33.3%
Taylor expanded in b around inf 29.2%
associate-/l*42.3%
distribute-lft-out48.5%
Simplified48.5%
if -3.6e-289 < b < 1.50000000000000005e-202Initial program 97.4%
Taylor expanded in y around 0 74.8%
Taylor expanded in b around 0 74.8%
exp-to-pow76.6%
sub-neg76.6%
metadata-eval76.6%
+-commutative76.6%
Simplified76.6%
Taylor expanded in t around 0 49.7%
if 1.59999999999999999e-54 < b Initial program 99.9%
associate-/l*98.7%
associate--l+98.7%
exp-sum74.4%
associate-/l*74.4%
*-commutative74.4%
exp-to-pow74.4%
exp-diff64.9%
*-commutative64.9%
exp-to-pow64.9%
sub-neg64.9%
metadata-eval64.9%
Simplified64.9%
Taylor expanded in y around 0 69.0%
exp-to-pow69.2%
sub-neg69.2%
metadata-eval69.2%
associate-*r/73.3%
Simplified73.3%
Taylor expanded in t around 0 71.0%
Taylor expanded in b around 0 58.0%
associate-*r*58.0%
distribute-rgt-out58.0%
Simplified58.0%
Final simplification52.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* b (* a (+ y (/ y b)))))))
(if (<= b -7e-18)
(/ (- (/ x a) (* b (/ (+ x (* x (* b -0.5))) a))) y)
(if (<= b -1.05e-282)
t_1
(if (<= b 1.45e-201)
(/ (/ x a) y)
(if (<= b 2e-56)
t_1
(/
x
(*
a
(+
y
(*
b
(+ y (* b (* y (+ 0.5 (* b 0.16666666666666666)))))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (b * (a * (y + (y / b))));
double tmp;
if (b <= -7e-18) {
tmp = ((x / a) - (b * ((x + (x * (b * -0.5))) / a))) / y;
} else if (b <= -1.05e-282) {
tmp = t_1;
} else if (b <= 1.45e-201) {
tmp = (x / a) / y;
} else if (b <= 2e-56) {
tmp = t_1;
} else {
tmp = x / (a * (y + (b * (y + (b * (y * (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 / (b * (a * (y + (y / b))))
if (b <= (-7d-18)) then
tmp = ((x / a) - (b * ((x + (x * (b * (-0.5d0)))) / a))) / y
else if (b <= (-1.05d-282)) then
tmp = t_1
else if (b <= 1.45d-201) then
tmp = (x / a) / y
else if (b <= 2d-56) then
tmp = t_1
else
tmp = x / (a * (y + (b * (y + (b * (y * (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 / (b * (a * (y + (y / b))));
double tmp;
if (b <= -7e-18) {
tmp = ((x / a) - (b * ((x + (x * (b * -0.5))) / a))) / y;
} else if (b <= -1.05e-282) {
tmp = t_1;
} else if (b <= 1.45e-201) {
tmp = (x / a) / y;
} else if (b <= 2e-56) {
tmp = t_1;
} else {
tmp = x / (a * (y + (b * (y + (b * (y * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (b * (a * (y + (y / b)))) tmp = 0 if b <= -7e-18: tmp = ((x / a) - (b * ((x + (x * (b * -0.5))) / a))) / y elif b <= -1.05e-282: tmp = t_1 elif b <= 1.45e-201: tmp = (x / a) / y elif b <= 2e-56: tmp = t_1 else: tmp = x / (a * (y + (b * (y + (b * (y * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))) tmp = 0.0 if (b <= -7e-18) tmp = Float64(Float64(Float64(x / a) - Float64(b * Float64(Float64(x + Float64(x * Float64(b * -0.5))) / a))) / y); elseif (b <= -1.05e-282) tmp = t_1; elseif (b <= 1.45e-201) tmp = Float64(Float64(x / a) / y); elseif (b <= 2e-56) tmp = t_1; else tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(y + Float64(b * Float64(y * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (b * (a * (y + (y / b)))); tmp = 0.0; if (b <= -7e-18) tmp = ((x / a) - (b * ((x + (x * (b * -0.5))) / a))) / y; elseif (b <= -1.05e-282) tmp = t_1; elseif (b <= 1.45e-201) tmp = (x / a) / y; elseif (b <= 2e-56) tmp = t_1; else tmp = x / (a * (y + (b * (y + (b * (y * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7e-18], N[(N[(N[(x / a), $MachinePrecision] - N[(b * N[(N[(x + N[(x * N[(b * -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, -1.05e-282], t$95$1, If[LessEqual[b, 1.45e-201], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 2e-56], t$95$1, N[(x / N[(a * N[(y + N[(b * N[(y + N[(b * N[(y * 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}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{if}\;b \leq -7 \cdot 10^{-18}:\\
\;\;\;\;\frac{\frac{x}{a} - b \cdot \frac{x + x \cdot \left(b \cdot -0.5\right)}{a}}{y}\\
\mathbf{elif}\;b \leq -1.05 \cdot 10^{-282}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.45 \cdot 10^{-201}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{elif}\;b \leq 2 \cdot 10^{-56}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(y + b \cdot \left(y \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -6.9999999999999997e-18Initial program 99.9%
Taylor expanded in t around 0 91.1%
+-commutative91.1%
mul-1-neg91.1%
unsub-neg91.1%
Simplified91.1%
Taylor expanded in y around 0 86.7%
+-commutative86.7%
distribute-neg-in86.7%
neg-mul-186.7%
sub-neg86.7%
exp-diff86.7%
neg-mul-186.7%
log-rec86.7%
rem-exp-log86.8%
Simplified86.8%
Taylor expanded in b around 0 41.0%
Taylor expanded in b around 0 41.0%
neg-mul-141.0%
sub-neg41.0%
distribute-rgt-out48.4%
metadata-eval48.4%
associate-*l/48.4%
metadata-eval48.4%
distribute-rgt-out48.4%
associate-/l*49.6%
associate-*r/49.6%
div-sub49.6%
Simplified49.6%
if -6.9999999999999997e-18 < b < -1.05000000000000006e-282 or 1.4500000000000001e-201 < b < 2.0000000000000001e-56Initial program 95.9%
associate-/l*98.1%
associate--l+98.1%
exp-sum90.7%
associate-/l*88.2%
*-commutative88.2%
exp-to-pow88.2%
exp-diff88.2%
*-commutative88.2%
exp-to-pow89.0%
sub-neg89.0%
metadata-eval89.0%
Simplified89.0%
Taylor expanded in y around 0 62.5%
exp-to-pow63.1%
sub-neg63.1%
metadata-eval63.1%
associate-*r/65.6%
Simplified65.6%
Taylor expanded in t around 0 33.3%
Taylor expanded in b around 0 31.9%
distribute-lft-out33.3%
*-commutative33.3%
Simplified33.3%
Taylor expanded in b around inf 29.2%
associate-/l*42.3%
distribute-lft-out48.5%
Simplified48.5%
if -1.05000000000000006e-282 < b < 1.4500000000000001e-201Initial program 97.4%
Taylor expanded in y around 0 74.8%
Taylor expanded in b around 0 74.8%
exp-to-pow76.6%
sub-neg76.6%
metadata-eval76.6%
+-commutative76.6%
Simplified76.6%
Taylor expanded in t around 0 49.7%
if 2.0000000000000001e-56 < b Initial program 99.9%
associate-/l*98.7%
associate--l+98.7%
exp-sum74.4%
associate-/l*74.4%
*-commutative74.4%
exp-to-pow74.4%
exp-diff64.9%
*-commutative64.9%
exp-to-pow64.9%
sub-neg64.9%
metadata-eval64.9%
Simplified64.9%
Taylor expanded in y around 0 69.0%
exp-to-pow69.2%
sub-neg69.2%
metadata-eval69.2%
associate-*r/73.3%
Simplified73.3%
Taylor expanded in t around 0 71.0%
Taylor expanded in b around 0 58.0%
associate-*r*58.0%
distribute-rgt-out58.0%
Simplified58.0%
Final simplification51.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* b (* a (+ y (/ y b)))))))
(if (<= b -3.4e-17)
(/ (- (/ x a) (* b (/ (+ x (* x (* b -0.5))) a))) y)
(if (<= b -3.3e-288)
t_1
(if (<= b 5.5e-203)
(/ (/ x a) y)
(if (<= b 4e-32)
t_1
(/ 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 t_1 = x / (b * (a * (y + (y / b))));
double tmp;
if (b <= -3.4e-17) {
tmp = ((x / a) - (b * ((x + (x * (b * -0.5))) / a))) / y;
} else if (b <= -3.3e-288) {
tmp = t_1;
} else if (b <= 5.5e-203) {
tmp = (x / a) / y;
} else if (b <= 4e-32) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = x / (b * (a * (y + (y / b))))
if (b <= (-3.4d-17)) then
tmp = ((x / a) - (b * ((x + (x * (b * (-0.5d0)))) / a))) / y
else if (b <= (-3.3d-288)) then
tmp = t_1
else if (b <= 5.5d-203) then
tmp = (x / a) / y
else if (b <= 4d-32) then
tmp = t_1
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 t_1 = x / (b * (a * (y + (y / b))));
double tmp;
if (b <= -3.4e-17) {
tmp = ((x / a) - (b * ((x + (x * (b * -0.5))) / a))) / y;
} else if (b <= -3.3e-288) {
tmp = t_1;
} else if (b <= 5.5e-203) {
tmp = (x / a) / y;
} else if (b <= 4e-32) {
tmp = t_1;
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (b * (a * (y + (y / b)))) tmp = 0 if b <= -3.4e-17: tmp = ((x / a) - (b * ((x + (x * (b * -0.5))) / a))) / y elif b <= -3.3e-288: tmp = t_1 elif b <= 5.5e-203: tmp = (x / a) / y elif b <= 4e-32: tmp = t_1 else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5)))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))) tmp = 0.0 if (b <= -3.4e-17) tmp = Float64(Float64(Float64(x / a) - Float64(b * Float64(Float64(x + Float64(x * Float64(b * -0.5))) / a))) / y); elseif (b <= -3.3e-288) tmp = t_1; elseif (b <= 5.5e-203) tmp = Float64(Float64(x / a) / y); elseif (b <= 4e-32) tmp = t_1; 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) t_1 = x / (b * (a * (y + (y / b)))); tmp = 0.0; if (b <= -3.4e-17) tmp = ((x / a) - (b * ((x + (x * (b * -0.5))) / a))) / y; elseif (b <= -3.3e-288) tmp = t_1; elseif (b <= 5.5e-203) tmp = (x / a) / y; elseif (b <= 4e-32) tmp = t_1; 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_] := Block[{t$95$1 = N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.4e-17], N[(N[(N[(x / a), $MachinePrecision] - N[(b * N[(N[(x + N[(x * N[(b * -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, -3.3e-288], t$95$1, If[LessEqual[b, 5.5e-203], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 4e-32], t$95$1, 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}
t_1 := \frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{if}\;b \leq -3.4 \cdot 10^{-17}:\\
\;\;\;\;\frac{\frac{x}{a} - b \cdot \frac{x + x \cdot \left(b \cdot -0.5\right)}{a}}{y}\\
\mathbf{elif}\;b \leq -3.3 \cdot 10^{-288}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-203}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{elif}\;b \leq 4 \cdot 10^{-32}:\\
\;\;\;\;t\_1\\
\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 < -3.3999999999999998e-17Initial program 99.9%
Taylor expanded in t around 0 91.1%
+-commutative91.1%
mul-1-neg91.1%
unsub-neg91.1%
Simplified91.1%
Taylor expanded in y around 0 86.7%
+-commutative86.7%
distribute-neg-in86.7%
neg-mul-186.7%
sub-neg86.7%
exp-diff86.7%
neg-mul-186.7%
log-rec86.7%
rem-exp-log86.8%
Simplified86.8%
Taylor expanded in b around 0 41.0%
Taylor expanded in b around 0 41.0%
neg-mul-141.0%
sub-neg41.0%
distribute-rgt-out48.4%
metadata-eval48.4%
associate-*l/48.4%
metadata-eval48.4%
distribute-rgt-out48.4%
associate-/l*49.6%
associate-*r/49.6%
div-sub49.6%
Simplified49.6%
if -3.3999999999999998e-17 < b < -3.29999999999999988e-288 or 5.5000000000000002e-203 < b < 4.00000000000000022e-32Initial program 96.1%
associate-/l*98.2%
associate--l+98.2%
exp-sum91.2%
associate-/l*88.9%
*-commutative88.9%
exp-to-pow88.9%
exp-diff88.9%
*-commutative88.9%
exp-to-pow89.7%
sub-neg89.7%
metadata-eval89.7%
Simplified89.7%
Taylor expanded in y around 0 64.7%
exp-to-pow65.2%
sub-neg65.2%
metadata-eval65.2%
associate-*r/67.6%
Simplified67.6%
Taylor expanded in t around 0 33.8%
Taylor expanded in b around 0 32.5%
distribute-lft-out33.8%
*-commutative33.8%
Simplified33.8%
Taylor expanded in b around inf 30.0%
associate-/l*42.3%
distribute-lft-out48.2%
Simplified48.2%
if -3.29999999999999988e-288 < b < 5.5000000000000002e-203Initial program 97.4%
Taylor expanded in y around 0 74.8%
Taylor expanded in b around 0 74.8%
exp-to-pow76.6%
sub-neg76.6%
metadata-eval76.6%
+-commutative76.6%
Simplified76.6%
Taylor expanded in t around 0 49.7%
if 4.00000000000000022e-32 < b Initial program 99.9%
associate-/l*98.6%
associate--l+98.6%
exp-sum72.5%
associate-/l*72.5%
*-commutative72.5%
exp-to-pow72.5%
exp-diff62.4%
*-commutative62.4%
exp-to-pow62.4%
sub-neg62.4%
metadata-eval62.4%
Simplified62.4%
Taylor expanded in y around 0 66.7%
exp-to-pow66.9%
sub-neg66.9%
metadata-eval66.9%
associate-*r/71.3%
Simplified71.3%
Taylor expanded in t around 0 73.0%
Taylor expanded in b around 0 51.9%
*-commutative51.9%
Simplified51.9%
Taylor expanded in y around 0 58.9%
Final simplification51.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* b (* a (+ y (/ y b)))))))
(if (<= b -0.0035)
(/ (- x (* b (+ x (* b (* x -0.5))))) (* y a))
(if (<= b -2.05e-284)
t_1
(if (<= b 3.1e-202)
(/ (/ x a) y)
(if (<= b 1e-30)
t_1
(/ 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 t_1 = x / (b * (a * (y + (y / b))));
double tmp;
if (b <= -0.0035) {
tmp = (x - (b * (x + (b * (x * -0.5))))) / (y * a);
} else if (b <= -2.05e-284) {
tmp = t_1;
} else if (b <= 3.1e-202) {
tmp = (x / a) / y;
} else if (b <= 1e-30) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = x / (b * (a * (y + (y / b))))
if (b <= (-0.0035d0)) then
tmp = (x - (b * (x + (b * (x * (-0.5d0)))))) / (y * a)
else if (b <= (-2.05d-284)) then
tmp = t_1
else if (b <= 3.1d-202) then
tmp = (x / a) / y
else if (b <= 1d-30) then
tmp = t_1
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 t_1 = x / (b * (a * (y + (y / b))));
double tmp;
if (b <= -0.0035) {
tmp = (x - (b * (x + (b * (x * -0.5))))) / (y * a);
} else if (b <= -2.05e-284) {
tmp = t_1;
} else if (b <= 3.1e-202) {
tmp = (x / a) / y;
} else if (b <= 1e-30) {
tmp = t_1;
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (b * (a * (y + (y / b)))) tmp = 0 if b <= -0.0035: tmp = (x - (b * (x + (b * (x * -0.5))))) / (y * a) elif b <= -2.05e-284: tmp = t_1 elif b <= 3.1e-202: tmp = (x / a) / y elif b <= 1e-30: tmp = t_1 else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5)))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))) tmp = 0.0 if (b <= -0.0035) tmp = Float64(Float64(x - Float64(b * Float64(x + Float64(b * Float64(x * -0.5))))) / Float64(y * a)); elseif (b <= -2.05e-284) tmp = t_1; elseif (b <= 3.1e-202) tmp = Float64(Float64(x / a) / y); elseif (b <= 1e-30) tmp = t_1; 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) t_1 = x / (b * (a * (y + (y / b)))); tmp = 0.0; if (b <= -0.0035) tmp = (x - (b * (x + (b * (x * -0.5))))) / (y * a); elseif (b <= -2.05e-284) tmp = t_1; elseif (b <= 3.1e-202) tmp = (x / a) / y; elseif (b <= 1e-30) tmp = t_1; 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_] := Block[{t$95$1 = N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -0.0035], N[(N[(x - N[(b * N[(x + N[(b * N[(x * -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.05e-284], t$95$1, If[LessEqual[b, 3.1e-202], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 1e-30], t$95$1, 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}
t_1 := \frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{if}\;b \leq -0.0035:\\
\;\;\;\;\frac{x - b \cdot \left(x + b \cdot \left(x \cdot -0.5\right)\right)}{y \cdot a}\\
\mathbf{elif}\;b \leq -2.05 \cdot 10^{-284}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{-202}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{elif}\;b \leq 10^{-30}:\\
\;\;\;\;t\_1\\
\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 < -0.00350000000000000007Initial program 99.9%
Taylor expanded in t around 0 90.7%
+-commutative90.7%
mul-1-neg90.7%
unsub-neg90.7%
Simplified90.7%
Taylor expanded in y around 0 89.1%
+-commutative89.1%
distribute-neg-in89.1%
neg-mul-189.1%
sub-neg89.1%
exp-diff89.2%
neg-mul-189.2%
log-rec89.2%
rem-exp-log89.2%
Simplified89.2%
Taylor expanded in b around 0 41.2%
Taylor expanded in a around 0 49.0%
associate-*r*49.0%
neg-mul-149.0%
distribute-rgt-out49.0%
metadata-eval49.0%
*-commutative49.0%
Simplified49.0%
if -0.00350000000000000007 < b < -2.04999999999999999e-284 or 3.1e-202 < b < 1e-30Initial program 96.3%
associate-/l*98.3%
associate--l+98.3%
exp-sum91.5%
associate-/l*89.3%
*-commutative89.3%
exp-to-pow89.3%
exp-diff89.3%
*-commutative89.3%
exp-to-pow90.0%
sub-neg90.0%
metadata-eval90.0%
Simplified90.0%
Taylor expanded in y around 0 63.7%
exp-to-pow64.2%
sub-neg64.2%
metadata-eval64.2%
associate-*r/66.5%
Simplified66.5%
Taylor expanded in t around 0 32.9%
Taylor expanded in b around 0 31.6%
distribute-lft-out32.9%
*-commutative32.9%
Simplified32.9%
Taylor expanded in b around inf 29.1%
associate-/l*41.1%
distribute-lft-out46.7%
Simplified46.7%
if -2.04999999999999999e-284 < b < 3.1e-202Initial program 97.4%
Taylor expanded in y around 0 74.8%
Taylor expanded in b around 0 74.8%
exp-to-pow76.6%
sub-neg76.6%
metadata-eval76.6%
+-commutative76.6%
Simplified76.6%
Taylor expanded in t around 0 49.7%
if 1e-30 < b Initial program 99.9%
associate-/l*98.6%
associate--l+98.6%
exp-sum72.5%
associate-/l*72.5%
*-commutative72.5%
exp-to-pow72.5%
exp-diff62.4%
*-commutative62.4%
exp-to-pow62.4%
sub-neg62.4%
metadata-eval62.4%
Simplified62.4%
Taylor expanded in y around 0 66.7%
exp-to-pow66.9%
sub-neg66.9%
metadata-eval66.9%
associate-*r/71.3%
Simplified71.3%
Taylor expanded in t around 0 73.0%
Taylor expanded in b around 0 51.9%
*-commutative51.9%
Simplified51.9%
Taylor expanded in y around 0 58.9%
Final simplification50.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x y) a)) (t_2 (/ (/ x a) y)))
(if (<= b -1.55e+97)
(* t_2 (- (- -1.0) b))
(if (<= b -8.2e-287)
t_1
(if (<= b 1.9e-206) t_2 (if (<= b 4.4e+39) t_1 (/ x (* y (* a b)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / y) / a;
double t_2 = (x / a) / y;
double tmp;
if (b <= -1.55e+97) {
tmp = t_2 * (-(-1.0) - b);
} else if (b <= -8.2e-287) {
tmp = t_1;
} else if (b <= 1.9e-206) {
tmp = t_2;
} else if (b <= 4.4e+39) {
tmp = t_1;
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x / y) / a
t_2 = (x / a) / y
if (b <= (-1.55d+97)) then
tmp = t_2 * (-(-1.0d0) - b)
else if (b <= (-8.2d-287)) then
tmp = t_1
else if (b <= 1.9d-206) then
tmp = t_2
else if (b <= 4.4d+39) then
tmp = t_1
else
tmp = x / (y * (a * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / y) / a;
double t_2 = (x / a) / y;
double tmp;
if (b <= -1.55e+97) {
tmp = t_2 * (-(-1.0) - b);
} else if (b <= -8.2e-287) {
tmp = t_1;
} else if (b <= 1.9e-206) {
tmp = t_2;
} else if (b <= 4.4e+39) {
tmp = t_1;
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / y) / a t_2 = (x / a) / y tmp = 0 if b <= -1.55e+97: tmp = t_2 * (-(-1.0) - b) elif b <= -8.2e-287: tmp = t_1 elif b <= 1.9e-206: tmp = t_2 elif b <= 4.4e+39: tmp = t_1 else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / y) / a) t_2 = Float64(Float64(x / a) / y) tmp = 0.0 if (b <= -1.55e+97) tmp = Float64(t_2 * Float64(Float64(-(-1.0)) - b)); elseif (b <= -8.2e-287) tmp = t_1; elseif (b <= 1.9e-206) tmp = t_2; elseif (b <= 4.4e+39) tmp = t_1; else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / y) / a; t_2 = (x / a) / y; tmp = 0.0; if (b <= -1.55e+97) tmp = t_2 * (-(-1.0) - b); elseif (b <= -8.2e-287) tmp = t_1; elseif (b <= 1.9e-206) tmp = t_2; elseif (b <= 4.4e+39) tmp = t_1; else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -1.55e+97], N[(t$95$2 * N[((--1.0) - b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8.2e-287], t$95$1, If[LessEqual[b, 1.9e-206], t$95$2, If[LessEqual[b, 4.4e+39], t$95$1, N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{y}}{a}\\
t_2 := \frac{\frac{x}{a}}{y}\\
\mathbf{if}\;b \leq -1.55 \cdot 10^{+97}:\\
\;\;\;\;t\_2 \cdot \left(\left(--1\right) - b\right)\\
\mathbf{elif}\;b \leq -8.2 \cdot 10^{-287}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.9 \cdot 10^{-206}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{+39}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.54999999999999991e97Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum87.5%
associate-/l*87.5%
*-commutative87.5%
exp-to-pow87.5%
exp-diff67.5%
*-commutative67.5%
exp-to-pow67.5%
sub-neg67.5%
metadata-eval67.5%
Simplified67.5%
Taylor expanded in y around 0 70.0%
exp-to-pow70.0%
sub-neg70.0%
metadata-eval70.0%
associate-*r/77.5%
Simplified77.5%
unpow-prod-up77.5%
unpow-177.5%
Applied egg-rr77.5%
associate-*r/77.5%
*-rgt-identity77.5%
Simplified77.5%
Taylor expanded in t around 0 92.6%
*-lft-identity92.6%
times-frac92.6%
associate-*l/92.6%
*-lft-identity92.6%
associate-/r*85.1%
Simplified85.1%
Taylor expanded in b around 0 42.1%
mul-1-neg42.1%
remove-double-neg42.1%
distribute-neg-out42.1%
associate-/l*37.5%
mul-1-neg37.5%
distribute-rgt-out37.5%
associate-/r*37.5%
Simplified37.5%
if -1.54999999999999991e97 < b < -8.2000000000000004e-287 or 1.90000000000000001e-206 < b < 4.4000000000000003e39Initial program 97.2%
associate-/l*97.3%
associate--l+97.3%
exp-sum86.5%
associate-/l*84.9%
*-commutative84.9%
exp-to-pow84.9%
exp-diff83.4%
*-commutative83.4%
exp-to-pow83.9%
sub-neg83.9%
metadata-eval83.9%
Simplified83.9%
Taylor expanded in y around 0 68.6%
exp-to-pow69.1%
sub-neg69.1%
metadata-eval69.1%
associate-*r/70.0%
Simplified70.0%
unpow-prod-up70.0%
unpow-170.0%
Applied egg-rr70.0%
associate-*r/70.0%
*-rgt-identity70.0%
Simplified70.0%
Taylor expanded in t around 0 43.9%
*-lft-identity43.9%
times-frac48.9%
associate-*l/49.0%
*-lft-identity49.0%
associate-/r*45.0%
Simplified45.0%
Taylor expanded in b around 0 34.7%
if -8.2000000000000004e-287 < b < 1.90000000000000001e-206Initial program 97.6%
Taylor expanded in y around 0 73.6%
Taylor expanded in b around 0 73.6%
exp-to-pow75.2%
sub-neg75.2%
metadata-eval75.2%
+-commutative75.2%
Simplified75.2%
Taylor expanded in t around 0 46.5%
if 4.4000000000000003e39 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.7%
associate-/l*72.7%
*-commutative72.7%
exp-to-pow72.7%
exp-diff60.0%
*-commutative60.0%
exp-to-pow60.0%
sub-neg60.0%
metadata-eval60.0%
Simplified60.0%
Taylor expanded in y around 0 63.9%
exp-to-pow63.9%
sub-neg63.9%
metadata-eval63.9%
associate-*r/69.3%
Simplified69.3%
Taylor expanded in t around 0 80.3%
Taylor expanded in b around 0 42.0%
distribute-lft-out42.0%
*-commutative42.0%
Simplified42.0%
Taylor expanded in b around inf 42.0%
*-commutative42.0%
*-commutative42.0%
associate-*l*47.0%
Simplified47.0%
Final simplification39.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.05e-16)
(/ (- (/ x a) (* b (/ x a))) y)
(if (or (<= b -2.2e-288) (not (<= b 3.1e-202)))
(/ x (* b (* a (+ y (/ y b)))))
(/ (/ x a) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.05e-16) {
tmp = ((x / a) - (b * (x / a))) / y;
} else if ((b <= -2.2e-288) || !(b <= 3.1e-202)) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = (x / a) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.05d-16)) then
tmp = ((x / a) - (b * (x / a))) / y
else if ((b <= (-2.2d-288)) .or. (.not. (b <= 3.1d-202))) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = (x / a) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.05e-16) {
tmp = ((x / a) - (b * (x / a))) / y;
} else if ((b <= -2.2e-288) || !(b <= 3.1e-202)) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = (x / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.05e-16: tmp = ((x / a) - (b * (x / a))) / y elif (b <= -2.2e-288) or not (b <= 3.1e-202): tmp = x / (b * (a * (y + (y / b)))) else: tmp = (x / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.05e-16) tmp = Float64(Float64(Float64(x / a) - Float64(b * Float64(x / a))) / y); elseif ((b <= -2.2e-288) || !(b <= 3.1e-202)) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(Float64(x / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.05e-16) tmp = ((x / a) - (b * (x / a))) / y; elseif ((b <= -2.2e-288) || ~((b <= 3.1e-202))) tmp = x / (b * (a * (y + (y / b)))); else tmp = (x / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.05e-16], N[(N[(N[(x / a), $MachinePrecision] - N[(b * N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[Or[LessEqual[b, -2.2e-288], N[Not[LessEqual[b, 3.1e-202]], $MachinePrecision]], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.05 \cdot 10^{-16}:\\
\;\;\;\;\frac{\frac{x}{a} - b \cdot \frac{x}{a}}{y}\\
\mathbf{elif}\;b \leq -2.2 \cdot 10^{-288} \lor \neg \left(b \leq 3.1 \cdot 10^{-202}\right):\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\end{array}
\end{array}
if b < -1.0500000000000001e-16Initial program 99.9%
Taylor expanded in t around 0 91.1%
+-commutative91.1%
mul-1-neg91.1%
unsub-neg91.1%
Simplified91.1%
Taylor expanded in y around 0 86.7%
+-commutative86.7%
distribute-neg-in86.7%
neg-mul-186.7%
sub-neg86.7%
exp-diff86.7%
neg-mul-186.7%
log-rec86.7%
rem-exp-log86.8%
Simplified86.8%
Taylor expanded in b around 0 38.3%
+-commutative38.3%
mul-1-neg38.3%
unsub-neg38.3%
associate-/l*36.8%
Simplified36.8%
if -1.0500000000000001e-16 < b < -2.2000000000000002e-288 or 3.1e-202 < b Initial program 97.8%
associate-/l*98.4%
associate--l+98.4%
exp-sum82.9%
associate-/l*81.6%
*-commutative81.6%
exp-to-pow81.6%
exp-diff77.1%
*-commutative77.1%
exp-to-pow77.5%
sub-neg77.5%
metadata-eval77.5%
Simplified77.5%
Taylor expanded in y around 0 65.6%
exp-to-pow66.0%
sub-neg66.0%
metadata-eval66.0%
associate-*r/69.2%
Simplified69.2%
Taylor expanded in t around 0 51.3%
Taylor expanded in b around 0 34.2%
distribute-lft-out34.9%
*-commutative34.9%
Simplified34.9%
Taylor expanded in b around inf 32.1%
associate-/l*39.0%
distribute-lft-out42.2%
Simplified42.2%
if -2.2000000000000002e-288 < b < 3.1e-202Initial program 97.4%
Taylor expanded in y around 0 74.8%
Taylor expanded in b around 0 74.8%
exp-to-pow76.6%
sub-neg76.6%
metadata-eval76.6%
+-commutative76.6%
Simplified76.6%
Taylor expanded in t around 0 49.7%
Final simplification41.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x a) y)))
(if (<= b -1.1e-16)
(* t_1 (- (- -1.0) b))
(if (or (<= b -3.75e-289) (not (<= b 7.6e-203)))
(/ x (* b (* a (+ y (/ y b)))))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / a) / y;
double tmp;
if (b <= -1.1e-16) {
tmp = t_1 * (-(-1.0) - b);
} else if ((b <= -3.75e-289) || !(b <= 7.6e-203)) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x / a) / y
if (b <= (-1.1d-16)) then
tmp = t_1 * (-(-1.0d0) - b)
else if ((b <= (-3.75d-289)) .or. (.not. (b <= 7.6d-203))) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / a) / y;
double tmp;
if (b <= -1.1e-16) {
tmp = t_1 * (-(-1.0) - b);
} else if ((b <= -3.75e-289) || !(b <= 7.6e-203)) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / a) / y tmp = 0 if b <= -1.1e-16: tmp = t_1 * (-(-1.0) - b) elif (b <= -3.75e-289) or not (b <= 7.6e-203): tmp = x / (b * (a * (y + (y / b)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / a) / y) tmp = 0.0 if (b <= -1.1e-16) tmp = Float64(t_1 * Float64(Float64(-(-1.0)) - b)); elseif ((b <= -3.75e-289) || !(b <= 7.6e-203)) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / a) / y; tmp = 0.0; if (b <= -1.1e-16) tmp = t_1 * (-(-1.0) - b); elseif ((b <= -3.75e-289) || ~((b <= 7.6e-203))) tmp = x / (b * (a * (y + (y / b)))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -1.1e-16], N[(t$95$1 * N[((--1.0) - b), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, -3.75e-289], N[Not[LessEqual[b, 7.6e-203]], $MachinePrecision]], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{a}}{y}\\
\mathbf{if}\;b \leq -1.1 \cdot 10^{-16}:\\
\;\;\;\;t\_1 \cdot \left(\left(--1\right) - b\right)\\
\mathbf{elif}\;b \leq -3.75 \cdot 10^{-289} \lor \neg \left(b \leq 7.6 \cdot 10^{-203}\right):\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.1e-16Initial program 99.9%
associate-/l*99.9%
associate--l+99.9%
exp-sum85.0%
associate-/l*85.0%
*-commutative85.0%
exp-to-pow85.0%
exp-diff70.1%
*-commutative70.1%
exp-to-pow70.1%
sub-neg70.1%
metadata-eval70.1%
Simplified70.1%
Taylor expanded in y around 0 71.7%
exp-to-pow71.7%
sub-neg71.7%
metadata-eval71.7%
associate-*r/76.3%
Simplified76.3%
unpow-prod-up76.3%
unpow-176.3%
Applied egg-rr76.3%
associate-*r/76.3%
*-rgt-identity76.3%
Simplified76.3%
Taylor expanded in t around 0 85.5%
*-lft-identity85.5%
times-frac85.5%
associate-*l/85.5%
*-lft-identity85.5%
associate-/r*76.4%
Simplified76.4%
Taylor expanded in b around 0 32.7%
mul-1-neg32.7%
remove-double-neg32.7%
distribute-neg-out32.7%
associate-/l*28.5%
mul-1-neg28.5%
distribute-rgt-out28.5%
associate-/r*29.8%
Simplified29.8%
if -1.1e-16 < b < -3.74999999999999999e-289 or 7.6000000000000005e-203 < b Initial program 97.8%
associate-/l*98.4%
associate--l+98.4%
exp-sum82.9%
associate-/l*81.6%
*-commutative81.6%
exp-to-pow81.6%
exp-diff77.1%
*-commutative77.1%
exp-to-pow77.5%
sub-neg77.5%
metadata-eval77.5%
Simplified77.5%
Taylor expanded in y around 0 65.6%
exp-to-pow66.0%
sub-neg66.0%
metadata-eval66.0%
associate-*r/69.2%
Simplified69.2%
Taylor expanded in t around 0 51.3%
Taylor expanded in b around 0 34.2%
distribute-lft-out34.9%
*-commutative34.9%
Simplified34.9%
Taylor expanded in b around inf 32.1%
associate-/l*39.0%
distribute-lft-out42.2%
Simplified42.2%
if -3.74999999999999999e-289 < b < 7.6000000000000005e-203Initial program 97.4%
Taylor expanded in y around 0 74.8%
Taylor expanded in b around 0 74.8%
exp-to-pow76.6%
sub-neg76.6%
metadata-eval76.6%
+-commutative76.6%
Simplified76.6%
Taylor expanded in t around 0 49.7%
Final simplification40.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -3.4e-159)
(/ (- (/ x y) (* x (/ b y))) a)
(if (<= b 1e-32)
(/ x (* b (* a (+ y (/ y b)))))
(/ 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 <= -3.4e-159) {
tmp = ((x / y) - (x * (b / y))) / a;
} else if (b <= 1e-32) {
tmp = x / (b * (a * (y + (y / b))));
} 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 <= (-3.4d-159)) then
tmp = ((x / y) - (x * (b / y))) / a
else if (b <= 1d-32) then
tmp = x / (b * (a * (y + (y / b))))
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 <= -3.4e-159) {
tmp = ((x / y) - (x * (b / y))) / a;
} else if (b <= 1e-32) {
tmp = x / (b * (a * (y + (y / b))));
} 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 <= -3.4e-159: tmp = ((x / y) - (x * (b / y))) / a elif b <= 1e-32: tmp = x / (b * (a * (y + (y / b)))) 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 <= -3.4e-159) tmp = Float64(Float64(Float64(x / y) - Float64(x * Float64(b / y))) / a); elseif (b <= 1e-32) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); 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 <= -3.4e-159) tmp = ((x / y) - (x * (b / y))) / a; elseif (b <= 1e-32) tmp = x / (b * (a * (y + (y / b)))); 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, -3.4e-159], N[(N[(N[(x / y), $MachinePrecision] - N[(x * N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b, 1e-32], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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 -3.4 \cdot 10^{-159}:\\
\;\;\;\;\frac{\frac{x}{y} - x \cdot \frac{b}{y}}{a}\\
\mathbf{elif}\;b \leq 10^{-32}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\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 < -3.39999999999999984e-159Initial program 98.7%
associate-/l*98.7%
associate--l+98.7%
exp-sum86.3%
associate-/l*85.3%
*-commutative85.3%
exp-to-pow85.3%
exp-diff75.0%
*-commutative75.0%
exp-to-pow75.4%
sub-neg75.4%
metadata-eval75.4%
Simplified75.4%
Taylor expanded in y around 0 69.2%
exp-to-pow69.6%
sub-neg69.6%
metadata-eval69.6%
associate-*r/72.7%
Simplified72.7%
unpow-prod-up72.7%
unpow-172.7%
Applied egg-rr72.7%
associate-*r/72.7%
*-rgt-identity72.7%
Simplified72.7%
Taylor expanded in t around 0 69.2%
*-lft-identity69.2%
times-frac72.0%
associate-*l/72.0%
*-lft-identity72.0%
associate-/r*65.8%
Simplified65.8%
Taylor expanded in b around 0 40.5%
+-commutative40.5%
mul-1-neg40.5%
unsub-neg40.5%
*-commutative40.5%
associate-/l*40.5%
Simplified40.5%
if -3.39999999999999984e-159 < b < 1.00000000000000006e-32Initial program 96.7%
associate-/l*96.9%
associate--l+96.9%
exp-sum91.3%
associate-/l*88.0%
*-commutative88.0%
exp-to-pow88.0%
exp-diff88.0%
*-commutative88.0%
exp-to-pow88.9%
sub-neg88.9%
metadata-eval88.9%
Simplified88.9%
Taylor expanded in y around 0 68.9%
exp-to-pow69.7%
sub-neg69.7%
metadata-eval69.7%
associate-*r/67.8%
Simplified67.8%
Taylor expanded in t around 0 35.0%
Taylor expanded in b around 0 35.0%
distribute-lft-out35.0%
*-commutative35.0%
Simplified35.0%
Taylor expanded in b around inf 31.9%
associate-/l*41.4%
distribute-lft-out45.9%
Simplified45.9%
if 1.00000000000000006e-32 < b Initial program 99.9%
associate-/l*98.6%
associate--l+98.6%
exp-sum72.5%
associate-/l*72.5%
*-commutative72.5%
exp-to-pow72.5%
exp-diff62.4%
*-commutative62.4%
exp-to-pow62.4%
sub-neg62.4%
metadata-eval62.4%
Simplified62.4%
Taylor expanded in y around 0 66.7%
exp-to-pow66.9%
sub-neg66.9%
metadata-eval66.9%
associate-*r/71.3%
Simplified71.3%
Taylor expanded in t around 0 73.0%
Taylor expanded in b around 0 51.9%
*-commutative51.9%
Simplified51.9%
Taylor expanded in y around 0 58.9%
Final simplification47.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.5e-148) (/ (- (/ x y) (* x (/ b y))) a) (/ x (* b (* a (+ y (/ y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.5e-148) {
tmp = ((x / y) - (x * (b / y))) / a;
} else {
tmp = x / (b * (a * (y + (y / b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.5d-148)) then
tmp = ((x / y) - (x * (b / y))) / a
else
tmp = x / (b * (a * (y + (y / b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.5e-148) {
tmp = ((x / y) - (x * (b / y))) / a;
} else {
tmp = x / (b * (a * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.5e-148: tmp = ((x / y) - (x * (b / y))) / a else: tmp = x / (b * (a * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.5e-148) tmp = Float64(Float64(Float64(x / y) - Float64(x * Float64(b / y))) / a); else tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.5e-148) tmp = ((x / y) - (x * (b / y))) / a; else tmp = x / (b * (a * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.5e-148], N[(N[(N[(x / y), $MachinePrecision] - N[(x * N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.5 \cdot 10^{-148}:\\
\;\;\;\;\frac{\frac{x}{y} - x \cdot \frac{b}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < -1.49999999999999999e-148Initial program 98.7%
associate-/l*98.7%
associate--l+98.7%
exp-sum86.3%
associate-/l*85.3%
*-commutative85.3%
exp-to-pow85.3%
exp-diff75.0%
*-commutative75.0%
exp-to-pow75.4%
sub-neg75.4%
metadata-eval75.4%
Simplified75.4%
Taylor expanded in y around 0 69.2%
exp-to-pow69.6%
sub-neg69.6%
metadata-eval69.6%
associate-*r/72.7%
Simplified72.7%
unpow-prod-up72.7%
unpow-172.7%
Applied egg-rr72.7%
associate-*r/72.7%
*-rgt-identity72.7%
Simplified72.7%
Taylor expanded in t around 0 69.2%
*-lft-identity69.2%
times-frac72.0%
associate-*l/72.0%
*-lft-identity72.0%
associate-/r*65.8%
Simplified65.8%
Taylor expanded in b around 0 40.5%
+-commutative40.5%
mul-1-neg40.5%
unsub-neg40.5%
*-commutative40.5%
associate-/l*40.5%
Simplified40.5%
if -1.49999999999999999e-148 < b Initial program 98.1%
associate-/l*97.6%
associate--l+97.6%
exp-sum83.2%
associate-/l*81.3%
*-commutative81.3%
exp-to-pow81.3%
exp-diff76.9%
*-commutative76.9%
exp-to-pow77.4%
sub-neg77.4%
metadata-eval77.4%
Simplified77.4%
Taylor expanded in y around 0 68.0%
exp-to-pow68.5%
sub-neg68.5%
metadata-eval68.5%
associate-*r/69.3%
Simplified69.3%
Taylor expanded in t around 0 51.5%
Taylor expanded in b around 0 35.5%
distribute-lft-out35.5%
*-commutative35.5%
Simplified35.5%
Taylor expanded in b around inf 33.2%
associate-/l*38.6%
distribute-lft-out41.1%
Simplified41.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b -4.2e-16) (* (/ (/ x a) y) (- (- -1.0) b)) (/ x (* a (* b (+ y (/ y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.2e-16) {
tmp = ((x / a) / y) * (-(-1.0) - b);
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-4.2d-16)) then
tmp = ((x / a) / y) * (-(-1.0d0) - b)
else
tmp = x / (a * (b * (y + (y / b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.2e-16) {
tmp = ((x / a) / y) * (-(-1.0) - b);
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -4.2e-16: tmp = ((x / a) / y) * (-(-1.0) - b) else: tmp = x / (a * (b * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -4.2e-16) tmp = Float64(Float64(Float64(x / a) / y) * Float64(Float64(-(-1.0)) - b)); else tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -4.2e-16) tmp = ((x / a) / y) * (-(-1.0) - b); else tmp = x / (a * (b * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -4.2e-16], N[(N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision] * N[((--1.0) - b), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.2 \cdot 10^{-16}:\\
\;\;\;\;\frac{\frac{x}{a}}{y} \cdot \left(\left(--1\right) - b\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < -4.2000000000000002e-16Initial program 99.9%
associate-/l*99.9%
associate--l+99.9%
exp-sum85.0%
associate-/l*85.0%
*-commutative85.0%
exp-to-pow85.0%
exp-diff70.1%
*-commutative70.1%
exp-to-pow70.1%
sub-neg70.1%
metadata-eval70.1%
Simplified70.1%
Taylor expanded in y around 0 71.7%
exp-to-pow71.7%
sub-neg71.7%
metadata-eval71.7%
associate-*r/76.3%
Simplified76.3%
unpow-prod-up76.3%
unpow-176.3%
Applied egg-rr76.3%
associate-*r/76.3%
*-rgt-identity76.3%
Simplified76.3%
Taylor expanded in t around 0 85.5%
*-lft-identity85.5%
times-frac85.5%
associate-*l/85.5%
*-lft-identity85.5%
associate-/r*76.4%
Simplified76.4%
Taylor expanded in b around 0 32.7%
mul-1-neg32.7%
remove-double-neg32.7%
distribute-neg-out32.7%
associate-/l*28.5%
mul-1-neg28.5%
distribute-rgt-out28.5%
associate-/r*29.8%
Simplified29.8%
if -4.2000000000000002e-16 < b Initial program 97.7%
associate-/l*97.4%
associate--l+97.4%
exp-sum84.1%
associate-/l*82.0%
*-commutative82.0%
exp-to-pow82.0%
exp-diff78.3%
*-commutative78.3%
exp-to-pow78.9%
sub-neg78.9%
metadata-eval78.9%
Simplified78.9%
Taylor expanded in y around 0 67.3%
exp-to-pow67.9%
sub-neg67.9%
metadata-eval67.9%
associate-*r/68.6%
Simplified68.6%
Taylor expanded in t around 0 48.5%
Taylor expanded in b around 0 34.5%
distribute-lft-out35.1%
*-commutative35.1%
Simplified35.1%
Taylor expanded in b around inf 40.6%
Final simplification37.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b 1.4e+40) (/ (/ x y) a) (/ x (* y (* a b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.4e+40) {
tmp = (x / y) / a;
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 1.4d+40) then
tmp = (x / y) / a
else
tmp = x / (y * (a * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.4e+40) {
tmp = (x / y) / a;
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 1.4e+40: tmp = (x / y) / a else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 1.4e+40) tmp = Float64(Float64(x / y) / a); else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 1.4e+40) tmp = (x / y) / a; else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.4e+40], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.4 \cdot 10^{+40}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < 1.4000000000000001e40Initial program 97.8%
associate-/l*97.5%
associate--l+97.5%
exp-sum87.5%
associate-/l*85.5%
*-commutative85.5%
exp-to-pow85.6%
exp-diff80.6%
*-commutative80.6%
exp-to-pow81.2%
sub-neg81.2%
metadata-eval81.2%
Simplified81.2%
Taylor expanded in y around 0 69.7%
exp-to-pow70.3%
sub-neg70.3%
metadata-eval70.3%
associate-*r/71.0%
Simplified71.0%
unpow-prod-up71.0%
unpow-171.0%
Applied egg-rr71.0%
associate-*r/71.0%
*-rgt-identity71.0%
Simplified71.0%
Taylor expanded in t around 0 52.2%
*-lft-identity52.2%
times-frac55.0%
associate-*l/55.0%
*-lft-identity55.0%
associate-/r*50.9%
Simplified50.9%
Taylor expanded in b around 0 31.4%
if 1.4000000000000001e40 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.7%
associate-/l*72.7%
*-commutative72.7%
exp-to-pow72.7%
exp-diff60.0%
*-commutative60.0%
exp-to-pow60.0%
sub-neg60.0%
metadata-eval60.0%
Simplified60.0%
Taylor expanded in y around 0 63.9%
exp-to-pow63.9%
sub-neg63.9%
metadata-eval63.9%
associate-*r/69.3%
Simplified69.3%
Taylor expanded in t around 0 80.3%
Taylor expanded in b around 0 42.0%
distribute-lft-out42.0%
*-commutative42.0%
Simplified42.0%
Taylor expanded in b around inf 42.0%
*-commutative42.0%
*-commutative42.0%
associate-*l*47.0%
Simplified47.0%
Final simplification34.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b 9.8e+39) (/ (/ x y) a) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 9.8e+39) {
tmp = (x / y) / 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 <= 9.8d+39) then
tmp = (x / y) / 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 <= 9.8e+39) {
tmp = (x / y) / a;
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 9.8e+39: tmp = (x / y) / a else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 9.8e+39) tmp = Float64(Float64(x / y) / 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 <= 9.8e+39) tmp = (x / y) / a; else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 9.8e+39], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 9.8 \cdot 10^{+39}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 9.79999999999999974e39Initial program 97.8%
associate-/l*97.5%
associate--l+97.5%
exp-sum87.5%
associate-/l*85.5%
*-commutative85.5%
exp-to-pow85.6%
exp-diff80.6%
*-commutative80.6%
exp-to-pow81.2%
sub-neg81.2%
metadata-eval81.2%
Simplified81.2%
Taylor expanded in y around 0 69.7%
exp-to-pow70.3%
sub-neg70.3%
metadata-eval70.3%
associate-*r/71.0%
Simplified71.0%
unpow-prod-up71.0%
unpow-171.0%
Applied egg-rr71.0%
associate-*r/71.0%
*-rgt-identity71.0%
Simplified71.0%
Taylor expanded in t around 0 52.2%
*-lft-identity52.2%
times-frac55.0%
associate-*l/55.0%
*-lft-identity55.0%
associate-/r*50.9%
Simplified50.9%
Taylor expanded in b around 0 31.4%
if 9.79999999999999974e39 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.7%
associate-/l*72.7%
*-commutative72.7%
exp-to-pow72.7%
exp-diff60.0%
*-commutative60.0%
exp-to-pow60.0%
sub-neg60.0%
metadata-eval60.0%
Simplified60.0%
Taylor expanded in y around 0 63.9%
exp-to-pow63.9%
sub-neg63.9%
metadata-eval63.9%
associate-*r/69.3%
Simplified69.3%
Taylor expanded in t around 0 80.3%
Taylor expanded in b around 0 42.0%
distribute-lft-out42.0%
*-commutative42.0%
Simplified42.0%
Taylor expanded in b around inf 42.0%
*-commutative42.0%
Simplified42.0%
(FPCore (x y z t a b) :precision binary64 (/ (/ x y) a))
double code(double x, double y, double z, double t, double a, double b) {
return (x / y) / a;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x / y) / a
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x / y) / a;
}
def code(x, y, z, t, a, b): return (x / y) / a
function code(x, y, z, t, a, b) return Float64(Float64(x / y) / a) end
function tmp = code(x, y, z, t, a, b) tmp = (x / y) / a; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{x}{y}}{a}
\end{array}
Initial program 98.3%
associate-/l*98.0%
associate--l+98.0%
exp-sum84.4%
associate-/l*82.8%
*-commutative82.8%
exp-to-pow82.8%
exp-diff76.2%
*-commutative76.2%
exp-to-pow76.6%
sub-neg76.6%
metadata-eval76.6%
Simplified76.6%
Taylor expanded in y around 0 68.4%
exp-to-pow68.9%
sub-neg68.9%
metadata-eval68.9%
associate-*r/70.6%
Simplified70.6%
unpow-prod-up70.7%
unpow-170.7%
Applied egg-rr70.7%
associate-*r/70.7%
*-rgt-identity70.7%
Simplified70.7%
Taylor expanded in t around 0 58.2%
*-lft-identity58.2%
times-frac60.4%
associate-*l/60.4%
*-lft-identity60.4%
associate-/r*54.1%
Simplified54.1%
Taylor expanded in b around 0 27.1%
(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.3%
Taylor expanded in y around 0 78.2%
Taylor expanded in b around 0 54.5%
exp-to-pow54.9%
sub-neg54.9%
metadata-eval54.9%
+-commutative54.9%
Simplified54.9%
Taylor expanded in t around 0 25.5%
(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.3%
associate-/l*98.0%
associate--l+98.0%
exp-sum84.4%
associate-/l*82.8%
*-commutative82.8%
exp-to-pow82.8%
exp-diff76.2%
*-commutative76.2%
exp-to-pow76.6%
sub-neg76.6%
metadata-eval76.6%
Simplified76.6%
Taylor expanded in y around 0 68.4%
exp-to-pow68.9%
sub-neg68.9%
metadata-eval68.9%
associate-*r/70.6%
Simplified70.6%
Taylor expanded in t around 0 58.2%
Taylor expanded in b around 0 24.2%
Final simplification24.2%
(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 2024088
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:alt
(if (< t -0.8845848504127471) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z)))) (if (< t 852031.2288374073) (/ (* (/ x y) (pow a (- t 1.0))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))