
(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 29 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 97.9%
Final simplification97.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -2.4e+48) (not (<= y 60000000.0))) (/ (* 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 <= -2.4e+48) || !(y <= 60000000.0)) {
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 <= (-2.4d+48)) .or. (.not. (y <= 60000000.0d0))) 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 <= -2.4e+48) || !(y <= 60000000.0)) {
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 <= -2.4e+48) or not (y <= 60000000.0): 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 <= -2.4e+48) || !(y <= 60000000.0)) 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 <= -2.4e+48) || ~((y <= 60000000.0))) 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, -2.4e+48], N[Not[LessEqual[y, 60000000.0]], $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 -2.4 \cdot 10^{+48} \lor \neg \left(y \leq 60000000\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 < -2.4000000000000001e48 or 6e7 < y Initial program 100.0%
Taylor expanded in t around 0 95.6%
+-commutative95.6%
mul-1-neg95.6%
unsub-neg95.6%
Simplified95.6%
if -2.4000000000000001e48 < y < 6e7Initial program 96.3%
Taylor expanded in y around 0 93.9%
Final simplification94.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -8.8e+58) (not (<= y 4e+38))) (* 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 <= -8.8e+58) || !(y <= 4e+38)) {
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 <= (-8.8d+58)) .or. (.not. (y <= 4d+38))) 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 <= -8.8e+58) || !(y <= 4e+38)) {
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 <= -8.8e+58) or not (y <= 4e+38): 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 <= -8.8e+58) || !(y <= 4e+38)) 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 <= -8.8e+58) || ~((y <= 4e+38))) 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, -8.8e+58], N[Not[LessEqual[y, 4e+38]], $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 -8.8 \cdot 10^{+58} \lor \neg \left(y \leq 4 \cdot 10^{+38}\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 < -8.8000000000000003e58 or 3.99999999999999991e38 < y Initial program 100.0%
Taylor expanded in t around 0 96.3%
+-commutative96.3%
mul-1-neg96.3%
unsub-neg96.3%
Simplified96.3%
Taylor expanded in b around 0 84.1%
associate-/l*84.1%
div-exp84.1%
*-commutative84.1%
exp-to-pow84.1%
rem-exp-log84.1%
Simplified84.1%
if -8.8000000000000003e58 < y < 3.99999999999999991e38Initial program 96.5%
Taylor expanded in y around 0 93.0%
Final simplification89.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.25e+24) (not (<= y 2.3e+39))) (* x (/ (/ (pow z y) a) y)) (* x (/ (pow a (+ t -1.0)) (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.25e+24) || !(y <= 2.3e+39)) {
tmp = x * ((pow(z, y) / a) / y);
} else {
tmp = x * (pow(a, (t + -1.0)) / (y * exp(b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-1.25d+24)) .or. (.not. (y <= 2.3d+39))) then
tmp = x * (((z ** y) / a) / y)
else
tmp = x * ((a ** (t + (-1.0d0))) / (y * exp(b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.25e+24) || !(y <= 2.3e+39)) {
tmp = x * ((Math.pow(z, y) / a) / y);
} else {
tmp = x * (Math.pow(a, (t + -1.0)) / (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.25e+24) or not (y <= 2.3e+39): tmp = x * ((math.pow(z, y) / a) / y) else: tmp = x * (math.pow(a, (t + -1.0)) / (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.25e+24) || !(y <= 2.3e+39)) tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); else tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) / Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.25e+24) || ~((y <= 2.3e+39))) tmp = x * (((z ^ y) / a) / y); else tmp = x * ((a ^ (t + -1.0)) / (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.25e+24], N[Not[LessEqual[y, 2.3e+39]], $MachinePrecision]], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.25 \cdot 10^{+24} \lor \neg \left(y \leq 2.3 \cdot 10^{+39}\right):\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y \cdot e^{b}}\\
\end{array}
\end{array}
if y < -1.25000000000000011e24 or 2.30000000000000012e39 < y Initial program 100.0%
Taylor expanded in t around 0 93.8%
+-commutative93.8%
mul-1-neg93.8%
unsub-neg93.8%
Simplified93.8%
Taylor expanded in b around 0 83.2%
associate-/l*83.2%
div-exp83.2%
*-commutative83.2%
exp-to-pow83.2%
rem-exp-log83.2%
Simplified83.2%
if -1.25000000000000011e24 < y < 2.30000000000000012e39Initial program 96.3%
associate-/l*97.0%
associate--l+97.0%
exp-sum92.1%
associate-/l*92.1%
*-commutative92.1%
exp-to-pow92.1%
exp-diff79.7%
*-commutative79.7%
exp-to-pow80.8%
sub-neg80.8%
metadata-eval80.8%
Simplified80.8%
Taylor expanded in y around 0 78.1%
exp-to-pow79.1%
sub-neg79.1%
metadata-eval79.1%
associate-*r/83.2%
Simplified83.2%
Final simplification83.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (/ x a) -0.6666666666666666))
(t_2 (/ (/ x (exp b)) y))
(t_3 (* 0.5 (/ x a))))
(if (<= b -3900.0)
t_2
(if (<= b -7.5e-276)
(* x (/ (pow a t) y))
(if (<= b 2.7e-36)
(/ x (* b (* a (+ y (/ y b)))))
(if (<= b 3e-12)
(/
(-
(/ x a)
(*
b
(+
(/ x a)
(*
b
(+
(- t_3 (/ x a))
(*
b
(+
(- (/ x a) t_3)
(/ (* (* (/ x a) -0.3333333333333333) t_1) t_1))))))))
y)
t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / a) * -0.6666666666666666;
double t_2 = (x / exp(b)) / y;
double t_3 = 0.5 * (x / a);
double tmp;
if (b <= -3900.0) {
tmp = t_2;
} else if (b <= -7.5e-276) {
tmp = x * (pow(a, t) / y);
} else if (b <= 2.7e-36) {
tmp = x / (b * (a * (y + (y / b))));
} else if (b <= 3e-12) {
tmp = ((x / a) - (b * ((x / a) + (b * ((t_3 - (x / a)) + (b * (((x / a) - t_3) + ((((x / a) * -0.3333333333333333) * t_1) / t_1)))))))) / y;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (x / a) * (-0.6666666666666666d0)
t_2 = (x / exp(b)) / y
t_3 = 0.5d0 * (x / a)
if (b <= (-3900.0d0)) then
tmp = t_2
else if (b <= (-7.5d-276)) then
tmp = x * ((a ** t) / y)
else if (b <= 2.7d-36) then
tmp = x / (b * (a * (y + (y / b))))
else if (b <= 3d-12) then
tmp = ((x / a) - (b * ((x / a) + (b * ((t_3 - (x / a)) + (b * (((x / a) - t_3) + ((((x / a) * (-0.3333333333333333d0)) * t_1) / t_1)))))))) / y
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / a) * -0.6666666666666666;
double t_2 = (x / Math.exp(b)) / y;
double t_3 = 0.5 * (x / a);
double tmp;
if (b <= -3900.0) {
tmp = t_2;
} else if (b <= -7.5e-276) {
tmp = x * (Math.pow(a, t) / y);
} else if (b <= 2.7e-36) {
tmp = x / (b * (a * (y + (y / b))));
} else if (b <= 3e-12) {
tmp = ((x / a) - (b * ((x / a) + (b * ((t_3 - (x / a)) + (b * (((x / a) - t_3) + ((((x / a) * -0.3333333333333333) * t_1) / t_1)))))))) / y;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / a) * -0.6666666666666666 t_2 = (x / math.exp(b)) / y t_3 = 0.5 * (x / a) tmp = 0 if b <= -3900.0: tmp = t_2 elif b <= -7.5e-276: tmp = x * (math.pow(a, t) / y) elif b <= 2.7e-36: tmp = x / (b * (a * (y + (y / b)))) elif b <= 3e-12: tmp = ((x / a) - (b * ((x / a) + (b * ((t_3 - (x / a)) + (b * (((x / a) - t_3) + ((((x / a) * -0.3333333333333333) * t_1) / t_1)))))))) / y else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / a) * -0.6666666666666666) t_2 = Float64(Float64(x / exp(b)) / y) t_3 = Float64(0.5 * Float64(x / a)) tmp = 0.0 if (b <= -3900.0) tmp = t_2; elseif (b <= -7.5e-276) tmp = Float64(x * Float64((a ^ t) / y)); elseif (b <= 2.7e-36) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); elseif (b <= 3e-12) tmp = Float64(Float64(Float64(x / a) - Float64(b * Float64(Float64(x / a) + Float64(b * Float64(Float64(t_3 - Float64(x / a)) + Float64(b * Float64(Float64(Float64(x / a) - t_3) + Float64(Float64(Float64(Float64(x / a) * -0.3333333333333333) * t_1) / t_1)))))))) / y); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / a) * -0.6666666666666666; t_2 = (x / exp(b)) / y; t_3 = 0.5 * (x / a); tmp = 0.0; if (b <= -3900.0) tmp = t_2; elseif (b <= -7.5e-276) tmp = x * ((a ^ t) / y); elseif (b <= 2.7e-36) tmp = x / (b * (a * (y + (y / b)))); elseif (b <= 3e-12) tmp = ((x / a) - (b * ((x / a) + (b * ((t_3 - (x / a)) + (b * (((x / a) - t_3) + ((((x / a) * -0.3333333333333333) * t_1) / t_1)))))))) / y; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / a), $MachinePrecision] * -0.6666666666666666), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$3 = N[(0.5 * N[(x / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3900.0], t$95$2, If[LessEqual[b, -7.5e-276], N[(x * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.7e-36], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3e-12], N[(N[(N[(x / a), $MachinePrecision] - N[(b * N[(N[(x / a), $MachinePrecision] + N[(b * N[(N[(t$95$3 - N[(x / a), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(N[(x / a), $MachinePrecision] - t$95$3), $MachinePrecision] + N[(N[(N[(N[(x / a), $MachinePrecision] * -0.3333333333333333), $MachinePrecision] * t$95$1), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a} \cdot -0.6666666666666666\\
t_2 := \frac{\frac{x}{e^{b}}}{y}\\
t_3 := 0.5 \cdot \frac{x}{a}\\
\mathbf{if}\;b \leq -3900:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-276}:\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y}\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{-36}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{elif}\;b \leq 3 \cdot 10^{-12}:\\
\;\;\;\;\frac{\frac{x}{a} - b \cdot \left(\frac{x}{a} + b \cdot \left(\left(t\_3 - \frac{x}{a}\right) + b \cdot \left(\left(\frac{x}{a} - t\_3\right) + \frac{\left(\frac{x}{a} \cdot -0.3333333333333333\right) \cdot t\_1}{t\_1}\right)\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -3900 or 3.0000000000000001e-12 < b Initial program 100.0%
Taylor expanded in t around 0 90.0%
+-commutative90.0%
mul-1-neg90.0%
unsub-neg90.0%
Simplified90.0%
Taylor expanded in b around inf 80.0%
neg-mul-180.0%
Simplified80.0%
Taylor expanded in b around -inf 80.0%
mul-1-neg80.0%
rec-exp80.0%
associate-/l*80.0%
*-rgt-identity80.0%
Simplified80.0%
if -3900 < b < -7.500000000000001e-276Initial program 96.8%
associate-/l*95.2%
associate--l+95.2%
exp-sum83.5%
associate-/l*81.5%
*-commutative81.5%
exp-to-pow81.5%
exp-diff81.5%
*-commutative81.5%
exp-to-pow82.7%
sub-neg82.7%
metadata-eval82.7%
Simplified82.7%
Taylor expanded in y around 0 67.2%
exp-to-pow68.3%
sub-neg68.3%
metadata-eval68.3%
associate-*r/64.8%
Simplified64.8%
Taylor expanded in b around 0 64.8%
Taylor expanded in t around inf 53.0%
if -7.500000000000001e-276 < b < 2.70000000000000007e-36Initial program 94.7%
associate-/l*98.6%
associate--l+98.6%
exp-sum80.4%
associate-/l*80.4%
*-commutative80.4%
exp-to-pow80.4%
exp-diff80.4%
*-commutative80.4%
exp-to-pow81.6%
sub-neg81.6%
metadata-eval81.6%
Simplified81.6%
Taylor expanded in y around 0 66.9%
exp-to-pow67.8%
sub-neg67.8%
metadata-eval67.8%
associate-*r/70.6%
Simplified70.6%
Taylor expanded in t around 0 49.4%
Taylor expanded in b around 0 49.4%
distribute-rgt1-in49.4%
Simplified49.4%
Taylor expanded in b around inf 53.6%
associate-/l*59.5%
distribute-lft-out61.0%
Simplified61.0%
if 2.70000000000000007e-36 < b < 3.0000000000000001e-12Initial program 98.4%
Taylor expanded in y around 0 36.9%
div-exp36.5%
exp-to-pow38.3%
sub-neg38.3%
metadata-eval38.3%
Simplified38.3%
Taylor expanded in t around 0 29.6%
associate-/r*29.6%
Simplified29.6%
Taylor expanded in b around 0 20.2%
flip-+18.4%
*-commutative18.4%
metadata-eval18.4%
distribute-rgt-out18.4%
*-commutative18.4%
metadata-eval18.4%
distribute-rgt-out18.4%
pow218.4%
distribute-rgt-out18.4%
metadata-eval18.4%
*-commutative18.4%
associate-*r/18.4%
pow218.4%
*-commutative18.4%
associate-*r/18.4%
*-commutative18.4%
Applied egg-rr18.4%
unpow218.4%
unpow218.4%
difference-of-squares54.8%
associate-*r/54.8%
*-commutative54.8%
distribute-lft-out54.8%
metadata-eval54.8%
associate-*r/54.8%
*-commutative54.8%
distribute-lft-out--54.8%
metadata-eval54.8%
associate-*r/54.8%
*-commutative54.8%
distribute-lft-out--54.8%
metadata-eval54.8%
Simplified54.8%
Final simplification68.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* 0.5 (/ x a)))
(t_2 (/ (/ x (exp b)) y))
(t_3 (* (/ x a) -0.6666666666666666)))
(if (<= b -300.0)
t_2
(if (<= b -1.12e-275)
(/
(+
(/ x a)
(*
b
(-
(*
b
(* b (- (* 0.5 (/ (/ x b) a)) (* (/ x a) 0.16666666666666666))))
(/ x a))))
y)
(if (<= b 3e-36)
(/ x (* b (* a (+ y (/ y b)))))
(if (<= b 6.2e-13)
(/
(-
(/ x a)
(*
b
(+
(/ x a)
(*
b
(+
(- t_1 (/ x a))
(*
b
(+
(- (/ x a) t_1)
(/ (* (* (/ x a) -0.3333333333333333) t_3) t_3))))))))
y)
t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 0.5 * (x / a);
double t_2 = (x / exp(b)) / y;
double t_3 = (x / a) * -0.6666666666666666;
double tmp;
if (b <= -300.0) {
tmp = t_2;
} else if (b <= -1.12e-275) {
tmp = ((x / a) + (b * ((b * (b * ((0.5 * ((x / b) / a)) - ((x / a) * 0.16666666666666666)))) - (x / a)))) / y;
} else if (b <= 3e-36) {
tmp = x / (b * (a * (y + (y / b))));
} else if (b <= 6.2e-13) {
tmp = ((x / a) - (b * ((x / a) + (b * ((t_1 - (x / a)) + (b * (((x / a) - t_1) + ((((x / a) * -0.3333333333333333) * t_3) / t_3)))))))) / y;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = 0.5d0 * (x / a)
t_2 = (x / exp(b)) / y
t_3 = (x / a) * (-0.6666666666666666d0)
if (b <= (-300.0d0)) then
tmp = t_2
else if (b <= (-1.12d-275)) then
tmp = ((x / a) + (b * ((b * (b * ((0.5d0 * ((x / b) / a)) - ((x / a) * 0.16666666666666666d0)))) - (x / a)))) / y
else if (b <= 3d-36) then
tmp = x / (b * (a * (y + (y / b))))
else if (b <= 6.2d-13) then
tmp = ((x / a) - (b * ((x / a) + (b * ((t_1 - (x / a)) + (b * (((x / a) - t_1) + ((((x / a) * (-0.3333333333333333d0)) * t_3) / t_3)))))))) / 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 = 0.5 * (x / a);
double t_2 = (x / Math.exp(b)) / y;
double t_3 = (x / a) * -0.6666666666666666;
double tmp;
if (b <= -300.0) {
tmp = t_2;
} else if (b <= -1.12e-275) {
tmp = ((x / a) + (b * ((b * (b * ((0.5 * ((x / b) / a)) - ((x / a) * 0.16666666666666666)))) - (x / a)))) / y;
} else if (b <= 3e-36) {
tmp = x / (b * (a * (y + (y / b))));
} else if (b <= 6.2e-13) {
tmp = ((x / a) - (b * ((x / a) + (b * ((t_1 - (x / a)) + (b * (((x / a) - t_1) + ((((x / a) * -0.3333333333333333) * t_3) / t_3)))))))) / y;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = 0.5 * (x / a) t_2 = (x / math.exp(b)) / y t_3 = (x / a) * -0.6666666666666666 tmp = 0 if b <= -300.0: tmp = t_2 elif b <= -1.12e-275: tmp = ((x / a) + (b * ((b * (b * ((0.5 * ((x / b) / a)) - ((x / a) * 0.16666666666666666)))) - (x / a)))) / y elif b <= 3e-36: tmp = x / (b * (a * (y + (y / b)))) elif b <= 6.2e-13: tmp = ((x / a) - (b * ((x / a) + (b * ((t_1 - (x / a)) + (b * (((x / a) - t_1) + ((((x / a) * -0.3333333333333333) * t_3) / t_3)))))))) / y else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(0.5 * Float64(x / a)) t_2 = Float64(Float64(x / exp(b)) / y) t_3 = Float64(Float64(x / a) * -0.6666666666666666) tmp = 0.0 if (b <= -300.0) tmp = t_2; elseif (b <= -1.12e-275) tmp = Float64(Float64(Float64(x / a) + Float64(b * Float64(Float64(b * Float64(b * Float64(Float64(0.5 * Float64(Float64(x / b) / a)) - Float64(Float64(x / a) * 0.16666666666666666)))) - Float64(x / a)))) / y); elseif (b <= 3e-36) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); elseif (b <= 6.2e-13) tmp = Float64(Float64(Float64(x / a) - Float64(b * Float64(Float64(x / a) + Float64(b * Float64(Float64(t_1 - Float64(x / a)) + Float64(b * Float64(Float64(Float64(x / a) - t_1) + Float64(Float64(Float64(Float64(x / a) * -0.3333333333333333) * t_3) / t_3)))))))) / y); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = 0.5 * (x / a); t_2 = (x / exp(b)) / y; t_3 = (x / a) * -0.6666666666666666; tmp = 0.0; if (b <= -300.0) tmp = t_2; elseif (b <= -1.12e-275) tmp = ((x / a) + (b * ((b * (b * ((0.5 * ((x / b) / a)) - ((x / a) * 0.16666666666666666)))) - (x / a)))) / y; elseif (b <= 3e-36) tmp = x / (b * (a * (y + (y / b)))); elseif (b <= 6.2e-13) tmp = ((x / a) - (b * ((x / a) + (b * ((t_1 - (x / a)) + (b * (((x / a) - t_1) + ((((x / a) * -0.3333333333333333) * t_3) / t_3)))))))) / y; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(0.5 * N[(x / a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x / a), $MachinePrecision] * -0.6666666666666666), $MachinePrecision]}, If[LessEqual[b, -300.0], t$95$2, If[LessEqual[b, -1.12e-275], N[(N[(N[(x / a), $MachinePrecision] + N[(b * N[(N[(b * N[(b * N[(N[(0.5 * N[(N[(x / b), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] - N[(N[(x / a), $MachinePrecision] * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 3e-36], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.2e-13], N[(N[(N[(x / a), $MachinePrecision] - N[(b * N[(N[(x / a), $MachinePrecision] + N[(b * N[(N[(t$95$1 - N[(x / a), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(N[(x / a), $MachinePrecision] - t$95$1), $MachinePrecision] + N[(N[(N[(N[(x / a), $MachinePrecision] * -0.3333333333333333), $MachinePrecision] * t$95$3), $MachinePrecision] / t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 0.5 \cdot \frac{x}{a}\\
t_2 := \frac{\frac{x}{e^{b}}}{y}\\
t_3 := \frac{x}{a} \cdot -0.6666666666666666\\
\mathbf{if}\;b \leq -300:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.12 \cdot 10^{-275}:\\
\;\;\;\;\frac{\frac{x}{a} + b \cdot \left(b \cdot \left(b \cdot \left(0.5 \cdot \frac{\frac{x}{b}}{a} - \frac{x}{a} \cdot 0.16666666666666666\right)\right) - \frac{x}{a}\right)}{y}\\
\mathbf{elif}\;b \leq 3 \cdot 10^{-36}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{elif}\;b \leq 6.2 \cdot 10^{-13}:\\
\;\;\;\;\frac{\frac{x}{a} - b \cdot \left(\frac{x}{a} + b \cdot \left(\left(t\_1 - \frac{x}{a}\right) + b \cdot \left(\left(\frac{x}{a} - t\_1\right) + \frac{\left(\frac{x}{a} \cdot -0.3333333333333333\right) \cdot t\_3}{t\_3}\right)\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -300 or 6.1999999999999998e-13 < b Initial program 100.0%
Taylor expanded in t around 0 90.0%
+-commutative90.0%
mul-1-neg90.0%
unsub-neg90.0%
Simplified90.0%
Taylor expanded in b around inf 80.0%
neg-mul-180.0%
Simplified80.0%
Taylor expanded in b around -inf 80.0%
mul-1-neg80.0%
rec-exp80.0%
associate-/l*80.0%
*-rgt-identity80.0%
Simplified80.0%
if -300 < b < -1.11999999999999995e-275Initial program 96.8%
Taylor expanded in y around 0 67.2%
div-exp67.2%
exp-to-pow68.3%
sub-neg68.3%
metadata-eval68.3%
Simplified68.3%
Taylor expanded in t around 0 26.5%
associate-/r*26.5%
Simplified26.5%
Taylor expanded in b around 0 22.5%
Taylor expanded in b around inf 33.4%
Simplified39.3%
if -1.11999999999999995e-275 < b < 3.0000000000000002e-36Initial program 94.7%
associate-/l*98.6%
associate--l+98.6%
exp-sum80.4%
associate-/l*80.4%
*-commutative80.4%
exp-to-pow80.4%
exp-diff80.4%
*-commutative80.4%
exp-to-pow81.6%
sub-neg81.6%
metadata-eval81.6%
Simplified81.6%
Taylor expanded in y around 0 66.9%
exp-to-pow67.8%
sub-neg67.8%
metadata-eval67.8%
associate-*r/70.6%
Simplified70.6%
Taylor expanded in t around 0 49.4%
Taylor expanded in b around 0 49.4%
distribute-rgt1-in49.4%
Simplified49.4%
Taylor expanded in b around inf 53.6%
associate-/l*59.5%
distribute-lft-out61.0%
Simplified61.0%
if 3.0000000000000002e-36 < b < 6.1999999999999998e-13Initial program 98.4%
Taylor expanded in y around 0 36.9%
div-exp36.5%
exp-to-pow38.3%
sub-neg38.3%
metadata-eval38.3%
Simplified38.3%
Taylor expanded in t around 0 29.6%
associate-/r*29.6%
Simplified29.6%
Taylor expanded in b around 0 20.2%
flip-+18.4%
*-commutative18.4%
metadata-eval18.4%
distribute-rgt-out18.4%
*-commutative18.4%
metadata-eval18.4%
distribute-rgt-out18.4%
pow218.4%
distribute-rgt-out18.4%
metadata-eval18.4%
*-commutative18.4%
associate-*r/18.4%
pow218.4%
*-commutative18.4%
associate-*r/18.4%
*-commutative18.4%
Applied egg-rr18.4%
unpow218.4%
unpow218.4%
difference-of-squares54.8%
associate-*r/54.8%
*-commutative54.8%
distribute-lft-out54.8%
metadata-eval54.8%
associate-*r/54.8%
*-commutative54.8%
distribute-lft-out--54.8%
metadata-eval54.8%
associate-*r/54.8%
*-commutative54.8%
distribute-lft-out--54.8%
metadata-eval54.8%
Simplified54.8%
Final simplification65.9%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.1e+164) (/ (* x (+ 1.0 (* b (+ -1.0 (* b 0.5))))) y) (if (<= b 135000.0) (* x (/ (/ (pow z y) a) y)) (/ x (* a (* y (exp b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.1e+164) {
tmp = (x * (1.0 + (b * (-1.0 + (b * 0.5))))) / y;
} else if (b <= 135000.0) {
tmp = x * ((pow(z, y) / a) / y);
} else {
tmp = x / (a * (y * exp(b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.1d+164)) then
tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * 0.5d0))))) / y
else if (b <= 135000.0d0) then
tmp = x * (((z ** y) / a) / y)
else
tmp = x / (a * (y * exp(b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.1e+164) {
tmp = (x * (1.0 + (b * (-1.0 + (b * 0.5))))) / y;
} else if (b <= 135000.0) {
tmp = x * ((Math.pow(z, y) / a) / y);
} else {
tmp = x / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.1e+164: tmp = (x * (1.0 + (b * (-1.0 + (b * 0.5))))) / y elif b <= 135000.0: tmp = x * ((math.pow(z, y) / a) / y) else: tmp = x / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.1e+164) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(-1.0 + Float64(b * 0.5))))) / y); elseif (b <= 135000.0) tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); else tmp = Float64(x / Float64(a * Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.1e+164) tmp = (x * (1.0 + (b * (-1.0 + (b * 0.5))))) / y; elseif (b <= 135000.0) tmp = x * (((z ^ y) / a) / y); else tmp = x / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.1e+164], N[(N[(x * N[(1.0 + N[(b * N[(-1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 135000.0], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.1 \cdot 10^{+164}:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(-1 + b \cdot 0.5\right)\right)}{y}\\
\mathbf{elif}\;b \leq 135000:\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if b < -1.10000000000000003e164Initial program 100.0%
Taylor expanded in t around 0 100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
Taylor expanded in b around inf 100.0%
neg-mul-1100.0%
Simplified100.0%
Taylor expanded in b around 0 100.0%
if -1.10000000000000003e164 < b < 135000Initial program 96.8%
Taylor expanded in t around 0 72.1%
+-commutative72.1%
mul-1-neg72.1%
unsub-neg72.1%
Simplified72.1%
Taylor expanded in b around 0 68.7%
associate-/l*70.0%
div-exp70.0%
*-commutative70.0%
exp-to-pow70.0%
rem-exp-log70.9%
Simplified70.9%
if 135000 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum82.5%
associate-/l*82.5%
*-commutative82.5%
exp-to-pow82.5%
exp-diff59.6%
*-commutative59.6%
exp-to-pow59.6%
sub-neg59.6%
metadata-eval59.6%
Simplified59.6%
Taylor expanded in y around 0 68.4%
exp-to-pow68.4%
sub-neg68.4%
metadata-eval68.4%
associate-*r/72.0%
Simplified72.0%
Taylor expanded in t around 0 86.2%
Final simplification78.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -5.8e+29) (not (<= t 1.1e+98))) (* x (/ (pow a t) y)) (/ x (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -5.8e+29) || !(t <= 1.1e+98)) {
tmp = x * (pow(a, t) / y);
} else {
tmp = x / (a * (y * exp(b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-5.8d+29)) .or. (.not. (t <= 1.1d+98))) then
tmp = x * ((a ** t) / y)
else
tmp = x / (a * (y * exp(b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -5.8e+29) || !(t <= 1.1e+98)) {
tmp = x * (Math.pow(a, t) / y);
} else {
tmp = x / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -5.8e+29) or not (t <= 1.1e+98): tmp = x * (math.pow(a, t) / y) else: tmp = x / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -5.8e+29) || !(t <= 1.1e+98)) tmp = Float64(x * Float64((a ^ t) / y)); else tmp = Float64(x / Float64(a * Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -5.8e+29) || ~((t <= 1.1e+98))) tmp = x * ((a ^ t) / y); else tmp = x / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -5.8e+29], N[Not[LessEqual[t, 1.1e+98]], $MachinePrecision]], N[(x * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.8 \cdot 10^{+29} \lor \neg \left(t \leq 1.1 \cdot 10^{+98}\right):\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if t < -5.7999999999999999e29 or 1.10000000000000004e98 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum73.8%
associate-/l*73.8%
*-commutative73.8%
exp-to-pow73.8%
exp-diff56.3%
*-commutative56.3%
exp-to-pow56.3%
sub-neg56.3%
metadata-eval56.3%
Simplified56.3%
Taylor expanded in y around 0 67.1%
exp-to-pow67.1%
sub-neg67.1%
metadata-eval67.1%
associate-*r/67.1%
Simplified67.1%
Taylor expanded in b around 0 79.9%
Taylor expanded in t around inf 79.9%
if -5.7999999999999999e29 < t < 1.10000000000000004e98Initial program 96.5%
associate-/l*97.1%
associate--l+97.1%
exp-sum80.1%
associate-/l*78.2%
*-commutative78.2%
exp-to-pow78.2%
exp-diff73.6%
*-commutative73.6%
exp-to-pow74.6%
sub-neg74.6%
metadata-eval74.6%
Simplified74.6%
Taylor expanded in y around 0 59.8%
exp-to-pow60.7%
sub-neg60.7%
metadata-eval60.7%
associate-*r/64.7%
Simplified64.7%
Taylor expanded in t around 0 65.1%
Final simplification71.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* 0.5 (/ x a))) (t_2 (* (/ x a) -0.6666666666666666)))
(if (<= b -2.4e+96)
(/
(- x (* b (- x (* b (+ (* -0.16666666666666666 (* x b)) (* x 0.5))))))
y)
(if (<= b -3.5e+16)
(* x (/ (exp b) y))
(if (<= b -1.4e-275)
(/
(+
(/ x a)
(*
b
(-
(*
b
(* b (- (* 0.5 (/ (/ x b) a)) (* (/ x a) 0.16666666666666666))))
(/ x a))))
y)
(if (<= b 3.7e-36)
(/ x (* b (* a (+ y (/ y b)))))
(if (<= b 2.1e-14)
(/
(-
(/ x a)
(*
b
(+
(/ x a)
(*
b
(+
(- t_1 (/ x a))
(*
b
(+
(- (/ x a) t_1)
(/ (* (* (/ x a) -0.3333333333333333) t_2) t_2))))))))
y)
(/
x
(*
a
(*
y
(-
1.0
(*
b
(- -1.0 (* b (+ 0.5 (* b 0.16666666666666666))))))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 0.5 * (x / a);
double t_2 = (x / a) * -0.6666666666666666;
double tmp;
if (b <= -2.4e+96) {
tmp = (x - (b * (x - (b * ((-0.16666666666666666 * (x * b)) + (x * 0.5)))))) / y;
} else if (b <= -3.5e+16) {
tmp = x * (exp(b) / y);
} else if (b <= -1.4e-275) {
tmp = ((x / a) + (b * ((b * (b * ((0.5 * ((x / b) / a)) - ((x / a) * 0.16666666666666666)))) - (x / a)))) / y;
} else if (b <= 3.7e-36) {
tmp = x / (b * (a * (y + (y / b))));
} else if (b <= 2.1e-14) {
tmp = ((x / a) - (b * ((x / a) + (b * ((t_1 - (x / a)) + (b * (((x / a) - t_1) + ((((x / a) * -0.3333333333333333) * t_2) / t_2)))))))) / y;
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = 0.5d0 * (x / a)
t_2 = (x / a) * (-0.6666666666666666d0)
if (b <= (-2.4d+96)) then
tmp = (x - (b * (x - (b * (((-0.16666666666666666d0) * (x * b)) + (x * 0.5d0)))))) / y
else if (b <= (-3.5d+16)) then
tmp = x * (exp(b) / y)
else if (b <= (-1.4d-275)) then
tmp = ((x / a) + (b * ((b * (b * ((0.5d0 * ((x / b) / a)) - ((x / a) * 0.16666666666666666d0)))) - (x / a)))) / y
else if (b <= 3.7d-36) then
tmp = x / (b * (a * (y + (y / b))))
else if (b <= 2.1d-14) then
tmp = ((x / a) - (b * ((x / a) + (b * ((t_1 - (x / a)) + (b * (((x / a) - t_1) + ((((x / a) * (-0.3333333333333333d0)) * t_2) / t_2)))))))) / y
else
tmp = x / (a * (y * (1.0d0 - (b * ((-1.0d0) - (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 0.5 * (x / a);
double t_2 = (x / a) * -0.6666666666666666;
double tmp;
if (b <= -2.4e+96) {
tmp = (x - (b * (x - (b * ((-0.16666666666666666 * (x * b)) + (x * 0.5)))))) / y;
} else if (b <= -3.5e+16) {
tmp = x * (Math.exp(b) / y);
} else if (b <= -1.4e-275) {
tmp = ((x / a) + (b * ((b * (b * ((0.5 * ((x / b) / a)) - ((x / a) * 0.16666666666666666)))) - (x / a)))) / y;
} else if (b <= 3.7e-36) {
tmp = x / (b * (a * (y + (y / b))));
} else if (b <= 2.1e-14) {
tmp = ((x / a) - (b * ((x / a) + (b * ((t_1 - (x / a)) + (b * (((x / a) - t_1) + ((((x / a) * -0.3333333333333333) * t_2) / t_2)))))))) / y;
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = 0.5 * (x / a) t_2 = (x / a) * -0.6666666666666666 tmp = 0 if b <= -2.4e+96: tmp = (x - (b * (x - (b * ((-0.16666666666666666 * (x * b)) + (x * 0.5)))))) / y elif b <= -3.5e+16: tmp = x * (math.exp(b) / y) elif b <= -1.4e-275: tmp = ((x / a) + (b * ((b * (b * ((0.5 * ((x / b) / a)) - ((x / a) * 0.16666666666666666)))) - (x / a)))) / y elif b <= 3.7e-36: tmp = x / (b * (a * (y + (y / b)))) elif b <= 2.1e-14: tmp = ((x / a) - (b * ((x / a) + (b * ((t_1 - (x / a)) + (b * (((x / a) - t_1) + ((((x / a) * -0.3333333333333333) * t_2) / t_2)))))))) / y else: tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(0.5 * Float64(x / a)) t_2 = Float64(Float64(x / a) * -0.6666666666666666) tmp = 0.0 if (b <= -2.4e+96) tmp = Float64(Float64(x - Float64(b * Float64(x - Float64(b * Float64(Float64(-0.16666666666666666 * Float64(x * b)) + Float64(x * 0.5)))))) / y); elseif (b <= -3.5e+16) tmp = Float64(x * Float64(exp(b) / y)); elseif (b <= -1.4e-275) tmp = Float64(Float64(Float64(x / a) + Float64(b * Float64(Float64(b * Float64(b * Float64(Float64(0.5 * Float64(Float64(x / b) / a)) - Float64(Float64(x / a) * 0.16666666666666666)))) - Float64(x / a)))) / y); elseif (b <= 3.7e-36) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); elseif (b <= 2.1e-14) tmp = Float64(Float64(Float64(x / a) - Float64(b * Float64(Float64(x / a) + Float64(b * Float64(Float64(t_1 - Float64(x / a)) + Float64(b * Float64(Float64(Float64(x / a) - t_1) + Float64(Float64(Float64(Float64(x / a) * -0.3333333333333333) * t_2) / t_2)))))))) / y); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = 0.5 * (x / a); t_2 = (x / a) * -0.6666666666666666; tmp = 0.0; if (b <= -2.4e+96) tmp = (x - (b * (x - (b * ((-0.16666666666666666 * (x * b)) + (x * 0.5)))))) / y; elseif (b <= -3.5e+16) tmp = x * (exp(b) / y); elseif (b <= -1.4e-275) tmp = ((x / a) + (b * ((b * (b * ((0.5 * ((x / b) / a)) - ((x / a) * 0.16666666666666666)))) - (x / a)))) / y; elseif (b <= 3.7e-36) tmp = x / (b * (a * (y + (y / b)))); elseif (b <= 2.1e-14) tmp = ((x / a) - (b * ((x / a) + (b * ((t_1 - (x / a)) + (b * (((x / a) - t_1) + ((((x / a) * -0.3333333333333333) * t_2) / t_2)))))))) / y; else tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(0.5 * N[(x / a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / a), $MachinePrecision] * -0.6666666666666666), $MachinePrecision]}, If[LessEqual[b, -2.4e+96], N[(N[(x - N[(b * N[(x - N[(b * N[(N[(-0.16666666666666666 * N[(x * b), $MachinePrecision]), $MachinePrecision] + N[(x * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, -3.5e+16], N[(x * N[(N[Exp[b], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.4e-275], N[(N[(N[(x / a), $MachinePrecision] + N[(b * N[(N[(b * N[(b * N[(N[(0.5 * N[(N[(x / b), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] - N[(N[(x / a), $MachinePrecision] * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 3.7e-36], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.1e-14], N[(N[(N[(x / a), $MachinePrecision] - N[(b * N[(N[(x / a), $MachinePrecision] + N[(b * N[(N[(t$95$1 - N[(x / a), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(N[(x / a), $MachinePrecision] - t$95$1), $MachinePrecision] + N[(N[(N[(N[(x / a), $MachinePrecision] * -0.3333333333333333), $MachinePrecision] * t$95$2), $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 - N[(b * N[(-1.0 - N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 0.5 \cdot \frac{x}{a}\\
t_2 := \frac{x}{a} \cdot -0.6666666666666666\\
\mathbf{if}\;b \leq -2.4 \cdot 10^{+96}:\\
\;\;\;\;\frac{x - b \cdot \left(x - b \cdot \left(-0.16666666666666666 \cdot \left(x \cdot b\right) + x \cdot 0.5\right)\right)}{y}\\
\mathbf{elif}\;b \leq -3.5 \cdot 10^{+16}:\\
\;\;\;\;x \cdot \frac{e^{b}}{y}\\
\mathbf{elif}\;b \leq -1.4 \cdot 10^{-275}:\\
\;\;\;\;\frac{\frac{x}{a} + b \cdot \left(b \cdot \left(b \cdot \left(0.5 \cdot \frac{\frac{x}{b}}{a} - \frac{x}{a} \cdot 0.16666666666666666\right)\right) - \frac{x}{a}\right)}{y}\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{-36}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{-14}:\\
\;\;\;\;\frac{\frac{x}{a} - b \cdot \left(\frac{x}{a} + b \cdot \left(\left(t\_1 - \frac{x}{a}\right) + b \cdot \left(\left(\frac{x}{a} - t\_1\right) + \frac{\left(\frac{x}{a} \cdot -0.3333333333333333\right) \cdot t\_2}{t\_2}\right)\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 - b \cdot \left(-1 - b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -2.39999999999999993e96Initial program 100.0%
Taylor expanded in t around 0 93.7%
+-commutative93.7%
mul-1-neg93.7%
unsub-neg93.7%
Simplified93.7%
Taylor expanded in b around inf 89.5%
neg-mul-189.5%
Simplified89.5%
Taylor expanded in b around 0 87.6%
if -2.39999999999999993e96 < b < -3.5e16Initial program 100.0%
Taylor expanded in t around 0 76.8%
+-commutative76.8%
mul-1-neg76.8%
unsub-neg76.8%
Simplified76.8%
Taylor expanded in b around inf 47.9%
neg-mul-147.9%
Simplified47.9%
associate-/l*47.9%
add-sqr-sqrt47.9%
sqrt-unprod47.9%
sqr-neg47.9%
sqrt-unprod0.0%
add-sqr-sqrt53.7%
Applied egg-rr53.7%
if -3.5e16 < b < -1.39999999999999997e-275Initial program 96.9%
Taylor expanded in y around 0 66.5%
div-exp66.5%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
Simplified67.6%
Taylor expanded in t around 0 29.3%
associate-/r*27.4%
Simplified27.4%
Taylor expanded in b around 0 21.8%
Taylor expanded in b around inf 32.2%
Simplified37.9%
if -1.39999999999999997e-275 < b < 3.70000000000000002e-36Initial program 94.7%
associate-/l*98.6%
associate--l+98.6%
exp-sum80.4%
associate-/l*80.4%
*-commutative80.4%
exp-to-pow80.4%
exp-diff80.4%
*-commutative80.4%
exp-to-pow81.6%
sub-neg81.6%
metadata-eval81.6%
Simplified81.6%
Taylor expanded in y around 0 66.9%
exp-to-pow67.8%
sub-neg67.8%
metadata-eval67.8%
associate-*r/70.6%
Simplified70.6%
Taylor expanded in t around 0 49.4%
Taylor expanded in b around 0 49.4%
distribute-rgt1-in49.4%
Simplified49.4%
Taylor expanded in b around inf 53.6%
associate-/l*59.5%
distribute-lft-out61.0%
Simplified61.0%
if 3.70000000000000002e-36 < b < 2.0999999999999999e-14Initial program 98.4%
Taylor expanded in y around 0 36.9%
div-exp36.5%
exp-to-pow38.3%
sub-neg38.3%
metadata-eval38.3%
Simplified38.3%
Taylor expanded in t around 0 29.6%
associate-/r*29.6%
Simplified29.6%
Taylor expanded in b around 0 20.2%
flip-+18.4%
*-commutative18.4%
metadata-eval18.4%
distribute-rgt-out18.4%
*-commutative18.4%
metadata-eval18.4%
distribute-rgt-out18.4%
pow218.4%
distribute-rgt-out18.4%
metadata-eval18.4%
*-commutative18.4%
associate-*r/18.4%
pow218.4%
*-commutative18.4%
associate-*r/18.4%
*-commutative18.4%
Applied egg-rr18.4%
unpow218.4%
unpow218.4%
difference-of-squares54.8%
associate-*r/54.8%
*-commutative54.8%
distribute-lft-out54.8%
metadata-eval54.8%
associate-*r/54.8%
*-commutative54.8%
distribute-lft-out--54.8%
metadata-eval54.8%
associate-*r/54.8%
*-commutative54.8%
distribute-lft-out--54.8%
metadata-eval54.8%
Simplified54.8%
if 2.0999999999999999e-14 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum82.3%
associate-/l*82.3%
*-commutative82.3%
exp-to-pow82.3%
exp-diff61.3%
*-commutative61.3%
exp-to-pow61.3%
sub-neg61.3%
metadata-eval61.3%
Simplified61.3%
Taylor expanded in y around 0 67.8%
exp-to-pow67.8%
sub-neg67.8%
metadata-eval67.8%
associate-*r/71.1%
Simplified71.1%
Taylor expanded in t around 0 81.0%
Taylor expanded in b around 0 68.5%
*-commutative68.5%
Simplified68.5%
Final simplification62.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (/ x a) -0.6666666666666666)) (t_2 (* 0.5 (/ x a))))
(if (<= b -16500.0)
(/
(- x (* b (- x (* b (+ (* -0.16666666666666666 (* x b)) (* x 0.5))))))
y)
(if (<= b -1.75e-275)
(/
(+
(/ x a)
(*
b
(-
(*
b
(* b (- (* 0.5 (/ (/ x b) a)) (* (/ x a) 0.16666666666666666))))
(/ x a))))
y)
(if (<= b 2.1e-36)
(/ x (* b (* a (+ y (/ y b)))))
(if (<= b 2.1e-14)
(/
(-
(/ x a)
(*
b
(+
(/ x a)
(*
b
(+
(- t_2 (/ x a))
(*
b
(+
(- (/ x a) t_2)
(/ (* (* (/ x a) -0.3333333333333333) t_1) t_1))))))))
y)
(/
x
(*
a
(*
y
(-
1.0
(* b (- -1.0 (* b (+ 0.5 (* b 0.16666666666666666)))))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / a) * -0.6666666666666666;
double t_2 = 0.5 * (x / a);
double tmp;
if (b <= -16500.0) {
tmp = (x - (b * (x - (b * ((-0.16666666666666666 * (x * b)) + (x * 0.5)))))) / y;
} else if (b <= -1.75e-275) {
tmp = ((x / a) + (b * ((b * (b * ((0.5 * ((x / b) / a)) - ((x / a) * 0.16666666666666666)))) - (x / a)))) / y;
} else if (b <= 2.1e-36) {
tmp = x / (b * (a * (y + (y / b))));
} else if (b <= 2.1e-14) {
tmp = ((x / a) - (b * ((x / a) + (b * ((t_2 - (x / a)) + (b * (((x / a) - t_2) + ((((x / a) * -0.3333333333333333) * t_1) / t_1)))))))) / y;
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x / a) * (-0.6666666666666666d0)
t_2 = 0.5d0 * (x / a)
if (b <= (-16500.0d0)) then
tmp = (x - (b * (x - (b * (((-0.16666666666666666d0) * (x * b)) + (x * 0.5d0)))))) / y
else if (b <= (-1.75d-275)) then
tmp = ((x / a) + (b * ((b * (b * ((0.5d0 * ((x / b) / a)) - ((x / a) * 0.16666666666666666d0)))) - (x / a)))) / y
else if (b <= 2.1d-36) then
tmp = x / (b * (a * (y + (y / b))))
else if (b <= 2.1d-14) then
tmp = ((x / a) - (b * ((x / a) + (b * ((t_2 - (x / a)) + (b * (((x / a) - t_2) + ((((x / a) * (-0.3333333333333333d0)) * t_1) / t_1)))))))) / y
else
tmp = x / (a * (y * (1.0d0 - (b * ((-1.0d0) - (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / a) * -0.6666666666666666;
double t_2 = 0.5 * (x / a);
double tmp;
if (b <= -16500.0) {
tmp = (x - (b * (x - (b * ((-0.16666666666666666 * (x * b)) + (x * 0.5)))))) / y;
} else if (b <= -1.75e-275) {
tmp = ((x / a) + (b * ((b * (b * ((0.5 * ((x / b) / a)) - ((x / a) * 0.16666666666666666)))) - (x / a)))) / y;
} else if (b <= 2.1e-36) {
tmp = x / (b * (a * (y + (y / b))));
} else if (b <= 2.1e-14) {
tmp = ((x / a) - (b * ((x / a) + (b * ((t_2 - (x / a)) + (b * (((x / a) - t_2) + ((((x / a) * -0.3333333333333333) * t_1) / t_1)))))))) / y;
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / a) * -0.6666666666666666 t_2 = 0.5 * (x / a) tmp = 0 if b <= -16500.0: tmp = (x - (b * (x - (b * ((-0.16666666666666666 * (x * b)) + (x * 0.5)))))) / y elif b <= -1.75e-275: tmp = ((x / a) + (b * ((b * (b * ((0.5 * ((x / b) / a)) - ((x / a) * 0.16666666666666666)))) - (x / a)))) / y elif b <= 2.1e-36: tmp = x / (b * (a * (y + (y / b)))) elif b <= 2.1e-14: tmp = ((x / a) - (b * ((x / a) + (b * ((t_2 - (x / a)) + (b * (((x / a) - t_2) + ((((x / a) * -0.3333333333333333) * t_1) / t_1)))))))) / y else: tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / a) * -0.6666666666666666) t_2 = Float64(0.5 * Float64(x / a)) tmp = 0.0 if (b <= -16500.0) tmp = Float64(Float64(x - Float64(b * Float64(x - Float64(b * Float64(Float64(-0.16666666666666666 * Float64(x * b)) + Float64(x * 0.5)))))) / y); elseif (b <= -1.75e-275) tmp = Float64(Float64(Float64(x / a) + Float64(b * Float64(Float64(b * Float64(b * Float64(Float64(0.5 * Float64(Float64(x / b) / a)) - Float64(Float64(x / a) * 0.16666666666666666)))) - Float64(x / a)))) / y); elseif (b <= 2.1e-36) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); elseif (b <= 2.1e-14) tmp = Float64(Float64(Float64(x / a) - Float64(b * Float64(Float64(x / a) + Float64(b * Float64(Float64(t_2 - Float64(x / a)) + Float64(b * Float64(Float64(Float64(x / a) - t_2) + Float64(Float64(Float64(Float64(x / a) * -0.3333333333333333) * t_1) / t_1)))))))) / y); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 - Float64(b * Float64(-1.0 - Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x / a) * -0.6666666666666666; t_2 = 0.5 * (x / a); tmp = 0.0; if (b <= -16500.0) tmp = (x - (b * (x - (b * ((-0.16666666666666666 * (x * b)) + (x * 0.5)))))) / y; elseif (b <= -1.75e-275) tmp = ((x / a) + (b * ((b * (b * ((0.5 * ((x / b) / a)) - ((x / a) * 0.16666666666666666)))) - (x / a)))) / y; elseif (b <= 2.1e-36) tmp = x / (b * (a * (y + (y / b)))); elseif (b <= 2.1e-14) tmp = ((x / a) - (b * ((x / a) + (b * ((t_2 - (x / a)) + (b * (((x / a) - t_2) + ((((x / a) * -0.3333333333333333) * t_1) / t_1)))))))) / y; else tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / a), $MachinePrecision] * -0.6666666666666666), $MachinePrecision]}, Block[{t$95$2 = N[(0.5 * N[(x / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -16500.0], N[(N[(x - N[(b * N[(x - N[(b * N[(N[(-0.16666666666666666 * N[(x * b), $MachinePrecision]), $MachinePrecision] + N[(x * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, -1.75e-275], N[(N[(N[(x / a), $MachinePrecision] + N[(b * N[(N[(b * N[(b * N[(N[(0.5 * N[(N[(x / b), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] - N[(N[(x / a), $MachinePrecision] * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 2.1e-36], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.1e-14], N[(N[(N[(x / a), $MachinePrecision] - N[(b * N[(N[(x / a), $MachinePrecision] + N[(b * N[(N[(t$95$2 - N[(x / a), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(N[(x / a), $MachinePrecision] - t$95$2), $MachinePrecision] + N[(N[(N[(N[(x / a), $MachinePrecision] * -0.3333333333333333), $MachinePrecision] * t$95$1), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 - N[(b * N[(-1.0 - N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a} \cdot -0.6666666666666666\\
t_2 := 0.5 \cdot \frac{x}{a}\\
\mathbf{if}\;b \leq -16500:\\
\;\;\;\;\frac{x - b \cdot \left(x - b \cdot \left(-0.16666666666666666 \cdot \left(x \cdot b\right) + x \cdot 0.5\right)\right)}{y}\\
\mathbf{elif}\;b \leq -1.75 \cdot 10^{-275}:\\
\;\;\;\;\frac{\frac{x}{a} + b \cdot \left(b \cdot \left(b \cdot \left(0.5 \cdot \frac{\frac{x}{b}}{a} - \frac{x}{a} \cdot 0.16666666666666666\right)\right) - \frac{x}{a}\right)}{y}\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{-36}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{-14}:\\
\;\;\;\;\frac{\frac{x}{a} - b \cdot \left(\frac{x}{a} + b \cdot \left(\left(t\_2 - \frac{x}{a}\right) + b \cdot \left(\left(\frac{x}{a} - t\_2\right) + \frac{\left(\frac{x}{a} \cdot -0.3333333333333333\right) \cdot t\_1}{t\_1}\right)\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 - b \cdot \left(-1 - b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -16500Initial program 100.0%
Taylor expanded in t around 0 89.6%
+-commutative89.6%
mul-1-neg89.6%
unsub-neg89.6%
Simplified89.6%
Taylor expanded in b around inf 79.1%
neg-mul-179.1%
Simplified79.1%
Taylor expanded in b around 0 67.6%
if -16500 < b < -1.74999999999999984e-275Initial program 96.8%
Taylor expanded in y around 0 67.2%
div-exp67.2%
exp-to-pow68.3%
sub-neg68.3%
metadata-eval68.3%
Simplified68.3%
Taylor expanded in t around 0 26.5%
associate-/r*26.5%
Simplified26.5%
Taylor expanded in b around 0 22.5%
Taylor expanded in b around inf 33.4%
Simplified39.3%
if -1.74999999999999984e-275 < b < 2.09999999999999991e-36Initial program 94.7%
associate-/l*98.6%
associate--l+98.6%
exp-sum80.4%
associate-/l*80.4%
*-commutative80.4%
exp-to-pow80.4%
exp-diff80.4%
*-commutative80.4%
exp-to-pow81.6%
sub-neg81.6%
metadata-eval81.6%
Simplified81.6%
Taylor expanded in y around 0 66.9%
exp-to-pow67.8%
sub-neg67.8%
metadata-eval67.8%
associate-*r/70.6%
Simplified70.6%
Taylor expanded in t around 0 49.4%
Taylor expanded in b around 0 49.4%
distribute-rgt1-in49.4%
Simplified49.4%
Taylor expanded in b around inf 53.6%
associate-/l*59.5%
distribute-lft-out61.0%
Simplified61.0%
if 2.09999999999999991e-36 < b < 2.0999999999999999e-14Initial program 98.4%
Taylor expanded in y around 0 36.9%
div-exp36.5%
exp-to-pow38.3%
sub-neg38.3%
metadata-eval38.3%
Simplified38.3%
Taylor expanded in t around 0 29.6%
associate-/r*29.6%
Simplified29.6%
Taylor expanded in b around 0 20.2%
flip-+18.4%
*-commutative18.4%
metadata-eval18.4%
distribute-rgt-out18.4%
*-commutative18.4%
metadata-eval18.4%
distribute-rgt-out18.4%
pow218.4%
distribute-rgt-out18.4%
metadata-eval18.4%
*-commutative18.4%
associate-*r/18.4%
pow218.4%
*-commutative18.4%
associate-*r/18.4%
*-commutative18.4%
Applied egg-rr18.4%
unpow218.4%
unpow218.4%
difference-of-squares54.8%
associate-*r/54.8%
*-commutative54.8%
distribute-lft-out54.8%
metadata-eval54.8%
associate-*r/54.8%
*-commutative54.8%
distribute-lft-out--54.8%
metadata-eval54.8%
associate-*r/54.8%
*-commutative54.8%
distribute-lft-out--54.8%
metadata-eval54.8%
Simplified54.8%
if 2.0999999999999999e-14 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum82.3%
associate-/l*82.3%
*-commutative82.3%
exp-to-pow82.3%
exp-diff61.3%
*-commutative61.3%
exp-to-pow61.3%
sub-neg61.3%
metadata-eval61.3%
Simplified61.3%
Taylor expanded in y around 0 67.8%
exp-to-pow67.8%
sub-neg67.8%
metadata-eval67.8%
associate-*r/71.1%
Simplified71.1%
Taylor expanded in t around 0 81.0%
Taylor expanded in b around 0 68.5%
*-commutative68.5%
Simplified68.5%
Final simplification59.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1550.0)
(/ (- x (* b (- x (* b (+ (* -0.16666666666666666 (* x b)) (* x 0.5)))))) y)
(if (<= b -2.85e-275)
(/
(+
(/ x a)
(*
b
(-
(* b (* b (- (* 0.5 (/ (/ x b) a)) (* (/ x a) 0.16666666666666666))))
(/ x a))))
y)
(if (<= b 5.7e+29)
(/ x (* b (* a (+ y (/ y b)))))
(/
x
(*
a
(*
y
(- 1.0 (* b (- -1.0 (* b (+ 0.5 (* b 0.16666666666666666)))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1550.0) {
tmp = (x - (b * (x - (b * ((-0.16666666666666666 * (x * b)) + (x * 0.5)))))) / y;
} else if (b <= -2.85e-275) {
tmp = ((x / a) + (b * ((b * (b * ((0.5 * ((x / b) / a)) - ((x / a) * 0.16666666666666666)))) - (x / a)))) / y;
} else if (b <= 5.7e+29) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1550.0d0)) then
tmp = (x - (b * (x - (b * (((-0.16666666666666666d0) * (x * b)) + (x * 0.5d0)))))) / y
else if (b <= (-2.85d-275)) then
tmp = ((x / a) + (b * ((b * (b * ((0.5d0 * ((x / b) / a)) - ((x / a) * 0.16666666666666666d0)))) - (x / a)))) / y
else if (b <= 5.7d+29) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 - (b * ((-1.0d0) - (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1550.0) {
tmp = (x - (b * (x - (b * ((-0.16666666666666666 * (x * b)) + (x * 0.5)))))) / y;
} else if (b <= -2.85e-275) {
tmp = ((x / a) + (b * ((b * (b * ((0.5 * ((x / b) / a)) - ((x / a) * 0.16666666666666666)))) - (x / a)))) / y;
} else if (b <= 5.7e+29) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1550.0: tmp = (x - (b * (x - (b * ((-0.16666666666666666 * (x * b)) + (x * 0.5)))))) / y elif b <= -2.85e-275: tmp = ((x / a) + (b * ((b * (b * ((0.5 * ((x / b) / a)) - ((x / a) * 0.16666666666666666)))) - (x / a)))) / y elif b <= 5.7e+29: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1550.0) tmp = Float64(Float64(x - Float64(b * Float64(x - Float64(b * Float64(Float64(-0.16666666666666666 * Float64(x * b)) + Float64(x * 0.5)))))) / y); elseif (b <= -2.85e-275) tmp = Float64(Float64(Float64(x / a) + Float64(b * Float64(Float64(b * Float64(b * Float64(Float64(0.5 * Float64(Float64(x / b) / a)) - Float64(Float64(x / a) * 0.16666666666666666)))) - Float64(x / a)))) / y); elseif (b <= 5.7e+29) 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 * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1550.0) tmp = (x - (b * (x - (b * ((-0.16666666666666666 * (x * b)) + (x * 0.5)))))) / y; elseif (b <= -2.85e-275) tmp = ((x / a) + (b * ((b * (b * ((0.5 * ((x / b) / a)) - ((x / a) * 0.16666666666666666)))) - (x / a)))) / y; elseif (b <= 5.7e+29) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1550.0], N[(N[(x - N[(b * N[(x - N[(b * N[(N[(-0.16666666666666666 * N[(x * b), $MachinePrecision]), $MachinePrecision] + N[(x * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, -2.85e-275], N[(N[(N[(x / a), $MachinePrecision] + N[(b * N[(N[(b * N[(b * N[(N[(0.5 * N[(N[(x / b), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] - N[(N[(x / a), $MachinePrecision] * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 5.7e+29], 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 * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1550:\\
\;\;\;\;\frac{x - b \cdot \left(x - b \cdot \left(-0.16666666666666666 \cdot \left(x \cdot b\right) + x \cdot 0.5\right)\right)}{y}\\
\mathbf{elif}\;b \leq -2.85 \cdot 10^{-275}:\\
\;\;\;\;\frac{\frac{x}{a} + b \cdot \left(b \cdot \left(b \cdot \left(0.5 \cdot \frac{\frac{x}{b}}{a} - \frac{x}{a} \cdot 0.16666666666666666\right)\right) - \frac{x}{a}\right)}{y}\\
\mathbf{elif}\;b \leq 5.7 \cdot 10^{+29}:\\
\;\;\;\;\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 \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -1550Initial program 100.0%
Taylor expanded in t around 0 89.6%
+-commutative89.6%
mul-1-neg89.6%
unsub-neg89.6%
Simplified89.6%
Taylor expanded in b around inf 79.1%
neg-mul-179.1%
Simplified79.1%
Taylor expanded in b around 0 67.6%
if -1550 < b < -2.84999999999999995e-275Initial program 96.8%
Taylor expanded in y around 0 67.2%
div-exp67.2%
exp-to-pow68.3%
sub-neg68.3%
metadata-eval68.3%
Simplified68.3%
Taylor expanded in t around 0 26.5%
associate-/r*26.5%
Simplified26.5%
Taylor expanded in b around 0 22.5%
Taylor expanded in b around inf 33.4%
Simplified39.3%
if -2.84999999999999995e-275 < b < 5.6999999999999999e29Initial program 95.7%
associate-/l*97.7%
associate--l+97.7%
exp-sum79.3%
associate-/l*77.0%
*-commutative77.0%
exp-to-pow77.0%
exp-diff75.9%
*-commutative75.9%
exp-to-pow76.9%
sub-neg76.9%
metadata-eval76.9%
Simplified76.9%
Taylor expanded in y around 0 62.3%
exp-to-pow63.3%
sub-neg63.3%
metadata-eval63.3%
associate-*r/64.3%
Simplified64.3%
Taylor expanded in t around 0 43.8%
Taylor expanded in b around 0 41.6%
distribute-rgt1-in41.6%
Simplified41.6%
Taylor expanded in b around inf 44.8%
associate-/l*49.3%
distribute-lft-out50.4%
Simplified50.4%
if 5.6999999999999999e29 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum82.7%
associate-/l*82.7%
*-commutative82.7%
exp-to-pow82.7%
exp-diff59.6%
*-commutative59.6%
exp-to-pow59.6%
sub-neg59.6%
metadata-eval59.6%
Simplified59.6%
Taylor expanded in y around 0 69.2%
exp-to-pow69.2%
sub-neg69.2%
metadata-eval69.2%
associate-*r/73.1%
Simplified73.1%
Taylor expanded in t around 0 88.6%
Taylor expanded in b around 0 77.5%
*-commutative77.5%
Simplified77.5%
Final simplification58.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.05)
(/ (- x (* b (- x (* b (+ (* -0.16666666666666666 (* x b)) (* x 0.5)))))) y)
(if (<= b 7.5e+30)
(/ x (* b (* a (+ y (/ y b)))))
(/
x
(*
a
(*
y
(- 1.0 (* b (- -1.0 (* b (+ 0.5 (* b 0.16666666666666666))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.05) {
tmp = (x - (b * (x - (b * ((-0.16666666666666666 * (x * b)) + (x * 0.5)))))) / y;
} else if (b <= 7.5e+30) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.05d0)) then
tmp = (x - (b * (x - (b * (((-0.16666666666666666d0) * (x * b)) + (x * 0.5d0)))))) / y
else if (b <= 7.5d+30) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 - (b * ((-1.0d0) - (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.05) {
tmp = (x - (b * (x - (b * ((-0.16666666666666666 * (x * b)) + (x * 0.5)))))) / y;
} else if (b <= 7.5e+30) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.05: tmp = (x - (b * (x - (b * ((-0.16666666666666666 * (x * b)) + (x * 0.5)))))) / y elif b <= 7.5e+30: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.05) tmp = Float64(Float64(x - Float64(b * Float64(x - Float64(b * Float64(Float64(-0.16666666666666666 * Float64(x * b)) + Float64(x * 0.5)))))) / y); elseif (b <= 7.5e+30) 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 * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.05) tmp = (x - (b * (x - (b * ((-0.16666666666666666 * (x * b)) + (x * 0.5)))))) / y; elseif (b <= 7.5e+30) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.05], N[(N[(x - N[(b * N[(x - N[(b * N[(N[(-0.16666666666666666 * N[(x * b), $MachinePrecision]), $MachinePrecision] + N[(x * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 7.5e+30], 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 * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.05:\\
\;\;\;\;\frac{x - b \cdot \left(x - b \cdot \left(-0.16666666666666666 \cdot \left(x \cdot b\right) + x \cdot 0.5\right)\right)}{y}\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{+30}:\\
\;\;\;\;\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 \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -1.05000000000000004Initial program 100.0%
Taylor expanded in t around 0 89.6%
+-commutative89.6%
mul-1-neg89.6%
unsub-neg89.6%
Simplified89.6%
Taylor expanded in b around inf 79.1%
neg-mul-179.1%
Simplified79.1%
Taylor expanded in b around 0 67.6%
if -1.05000000000000004 < b < 7.49999999999999973e30Initial program 96.1%
associate-/l*96.8%
associate--l+96.8%
exp-sum80.9%
associate-/l*78.7%
*-commutative78.7%
exp-to-pow78.7%
exp-diff78.0%
*-commutative78.0%
exp-to-pow79.1%
sub-neg79.1%
metadata-eval79.1%
Simplified79.1%
Taylor expanded in y around 0 64.1%
exp-to-pow65.1%
sub-neg65.1%
metadata-eval65.1%
associate-*r/64.5%
Simplified64.5%
Taylor expanded in t around 0 36.1%
Taylor expanded in b around 0 34.7%
distribute-rgt1-in34.7%
Simplified34.7%
Taylor expanded in b around inf 37.2%
associate-/l*40.8%
distribute-lft-out41.6%
Simplified41.6%
if 7.49999999999999973e30 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum82.7%
associate-/l*82.7%
*-commutative82.7%
exp-to-pow82.7%
exp-diff59.6%
*-commutative59.6%
exp-to-pow59.6%
sub-neg59.6%
metadata-eval59.6%
Simplified59.6%
Taylor expanded in y around 0 69.2%
exp-to-pow69.2%
sub-neg69.2%
metadata-eval69.2%
associate-*r/73.1%
Simplified73.1%
Taylor expanded in t around 0 88.6%
Taylor expanded in b around 0 77.5%
*-commutative77.5%
Simplified77.5%
Final simplification55.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -0.00085)
(/ (* x (+ 1.0 (* b (+ -1.0 (* b (+ 0.5 (* b -0.16666666666666666))))))) y)
(if (<= b 5.5e+29)
(/ x (* b (* a (+ y (/ y b)))))
(/
x
(*
a
(*
y
(- 1.0 (* b (- -1.0 (* b (+ 0.5 (* b 0.16666666666666666))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.00085) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else if (b <= 5.5e+29) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-0.00085d0)) then
tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * (0.5d0 + (b * (-0.16666666666666666d0)))))))) / y
else if (b <= 5.5d+29) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 - (b * ((-1.0d0) - (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.00085) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else if (b <= 5.5e+29) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -0.00085: tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y elif b <= 5.5e+29: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -0.00085) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(-1.0 + Float64(b * Float64(0.5 + Float64(b * -0.16666666666666666))))))) / y); elseif (b <= 5.5e+29) 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 * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -0.00085) tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y; elseif (b <= 5.5e+29) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y * (1.0 - (b * (-1.0 - (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -0.00085], N[(N[(x * N[(1.0 + N[(b * N[(-1.0 + N[(b * N[(0.5 + N[(b * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 5.5e+29], 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 * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.00085:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(-1 + b \cdot \left(0.5 + b \cdot -0.16666666666666666\right)\right)\right)}{y}\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{+29}:\\
\;\;\;\;\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 \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -8.49999999999999953e-4Initial program 100.0%
Taylor expanded in t around 0 89.6%
+-commutative89.6%
mul-1-neg89.6%
unsub-neg89.6%
Simplified89.6%
Taylor expanded in b around inf 79.1%
neg-mul-179.1%
Simplified79.1%
Taylor expanded in b around 0 67.6%
if -8.49999999999999953e-4 < b < 5.5e29Initial program 96.1%
associate-/l*96.8%
associate--l+96.8%
exp-sum80.9%
associate-/l*78.7%
*-commutative78.7%
exp-to-pow78.7%
exp-diff78.0%
*-commutative78.0%
exp-to-pow79.1%
sub-neg79.1%
metadata-eval79.1%
Simplified79.1%
Taylor expanded in y around 0 64.1%
exp-to-pow65.1%
sub-neg65.1%
metadata-eval65.1%
associate-*r/64.5%
Simplified64.5%
Taylor expanded in t around 0 36.1%
Taylor expanded in b around 0 34.7%
distribute-rgt1-in34.7%
Simplified34.7%
Taylor expanded in b around inf 37.2%
associate-/l*40.8%
distribute-lft-out41.6%
Simplified41.6%
if 5.5e29 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum82.7%
associate-/l*82.7%
*-commutative82.7%
exp-to-pow82.7%
exp-diff59.6%
*-commutative59.6%
exp-to-pow59.6%
sub-neg59.6%
metadata-eval59.6%
Simplified59.6%
Taylor expanded in y around 0 69.2%
exp-to-pow69.2%
sub-neg69.2%
metadata-eval69.2%
associate-*r/73.1%
Simplified73.1%
Taylor expanded in t around 0 88.6%
Taylor expanded in b around 0 77.5%
*-commutative77.5%
Simplified77.5%
Final simplification55.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -62.0)
(/ (* x (+ 1.0 (* b (+ -1.0 (* b (+ 0.5 (* b -0.16666666666666666))))))) y)
(if (<= b 4.1e-18)
(/ x (* b (* a (+ y (/ y b)))))
(/ (/ (/ x a) (+ 1.0 (* b (+ 1.0 (* b 0.5))))) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -62.0) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else if (b <= 4.1e-18) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = ((x / a) / (1.0 + (b * (1.0 + (b * 0.5))))) / 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 <= (-62.0d0)) then
tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * (0.5d0 + (b * (-0.16666666666666666d0)))))))) / y
else if (b <= 4.1d-18) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = ((x / a) / (1.0d0 + (b * (1.0d0 + (b * 0.5d0))))) / 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 <= -62.0) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
} else if (b <= 4.1e-18) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = ((x / a) / (1.0 + (b * (1.0 + (b * 0.5))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -62.0: tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y elif b <= 4.1e-18: tmp = x / (b * (a * (y + (y / b)))) else: tmp = ((x / a) / (1.0 + (b * (1.0 + (b * 0.5))))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -62.0) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(-1.0 + Float64(b * Float64(0.5 + Float64(b * -0.16666666666666666))))))) / y); elseif (b <= 4.1e-18) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(Float64(Float64(x / a) / Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * 0.5))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -62.0) tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y; elseif (b <= 4.1e-18) tmp = x / (b * (a * (y + (y / b)))); else tmp = ((x / a) / (1.0 + (b * (1.0 + (b * 0.5))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -62.0], N[(N[(x * N[(1.0 + N[(b * N[(-1.0 + N[(b * N[(0.5 + N[(b * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 4.1e-18], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x / a), $MachinePrecision] / N[(1.0 + N[(b * N[(1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -62:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(-1 + b \cdot \left(0.5 + b \cdot -0.16666666666666666\right)\right)\right)}{y}\\
\mathbf{elif}\;b \leq 4.1 \cdot 10^{-18}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\frac{x}{a}}{1 + b \cdot \left(1 + b \cdot 0.5\right)}}{y}\\
\end{array}
\end{array}
if b < -62Initial program 100.0%
Taylor expanded in t around 0 89.6%
+-commutative89.6%
mul-1-neg89.6%
unsub-neg89.6%
Simplified89.6%
Taylor expanded in b around inf 79.1%
neg-mul-179.1%
Simplified79.1%
Taylor expanded in b around 0 67.6%
if -62 < b < 4.0999999999999998e-18Initial program 95.7%
associate-/l*97.2%
associate--l+97.2%
exp-sum81.8%
associate-/l*80.2%
*-commutative80.2%
exp-to-pow80.2%
exp-diff80.2%
*-commutative80.2%
exp-to-pow81.4%
sub-neg81.4%
metadata-eval81.4%
Simplified81.4%
Taylor expanded in y around 0 65.6%
exp-to-pow66.7%
sub-neg66.7%
metadata-eval66.7%
associate-*r/66.7%
Simplified66.7%
Taylor expanded in t around 0 36.6%
Taylor expanded in b around 0 36.6%
distribute-rgt1-in36.6%
Simplified36.6%
Taylor expanded in b around inf 39.4%
associate-/l*43.5%
distribute-lft-out44.3%
Simplified44.3%
if 4.0999999999999998e-18 < b Initial program 99.9%
Taylor expanded in y around 0 89.6%
div-exp68.3%
exp-to-pow68.4%
sub-neg68.4%
metadata-eval68.4%
Simplified68.4%
Taylor expanded in t around 0 79.3%
associate-/r*73.2%
Simplified73.2%
Taylor expanded in b around 0 59.9%
*-commutative59.9%
Simplified59.9%
Final simplification54.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -0.0012)
(/ (* x (+ 1.0 (* b (+ -1.0 (* b (* b -0.16666666666666666)))))) y)
(if (<= b 3.4e-16)
(/ x (* b (* a (+ y (/ y b)))))
(/ (/ (/ x a) (+ 1.0 (* b (+ 1.0 (* b 0.5))))) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -0.0012) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (b * -0.16666666666666666)))))) / y;
} else if (b <= 3.4e-16) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = ((x / a) / (1.0 + (b * (1.0 + (b * 0.5))))) / 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 <= (-0.0012d0)) then
tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * (b * (-0.16666666666666666d0))))))) / y
else if (b <= 3.4d-16) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = ((x / a) / (1.0d0 + (b * (1.0d0 + (b * 0.5d0))))) / 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 <= -0.0012) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (b * -0.16666666666666666)))))) / y;
} else if (b <= 3.4e-16) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = ((x / a) / (1.0 + (b * (1.0 + (b * 0.5))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -0.0012: tmp = (x * (1.0 + (b * (-1.0 + (b * (b * -0.16666666666666666)))))) / y elif b <= 3.4e-16: tmp = x / (b * (a * (y + (y / b)))) else: tmp = ((x / a) / (1.0 + (b * (1.0 + (b * 0.5))))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -0.0012) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(-1.0 + Float64(b * Float64(b * -0.16666666666666666)))))) / y); elseif (b <= 3.4e-16) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(Float64(Float64(x / a) / Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * 0.5))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -0.0012) tmp = (x * (1.0 + (b * (-1.0 + (b * (b * -0.16666666666666666)))))) / y; elseif (b <= 3.4e-16) tmp = x / (b * (a * (y + (y / b)))); else tmp = ((x / a) / (1.0 + (b * (1.0 + (b * 0.5))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -0.0012], N[(N[(x * N[(1.0 + N[(b * N[(-1.0 + N[(b * N[(b * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 3.4e-16], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x / a), $MachinePrecision] / N[(1.0 + N[(b * N[(1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.0012:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(-1 + b \cdot \left(b \cdot -0.16666666666666666\right)\right)\right)}{y}\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{-16}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\frac{x}{a}}{1 + b \cdot \left(1 + b \cdot 0.5\right)}}{y}\\
\end{array}
\end{array}
if b < -0.00119999999999999989Initial program 100.0%
Taylor expanded in t around 0 89.6%
+-commutative89.6%
mul-1-neg89.6%
unsub-neg89.6%
Simplified89.6%
Taylor expanded in b around inf 79.1%
neg-mul-179.1%
Simplified79.1%
Taylor expanded in b around 0 67.6%
Taylor expanded in b around inf 67.6%
*-commutative67.6%
Simplified67.6%
if -0.00119999999999999989 < b < 3.4e-16Initial program 95.7%
associate-/l*97.2%
associate--l+97.2%
exp-sum81.8%
associate-/l*80.2%
*-commutative80.2%
exp-to-pow80.2%
exp-diff80.2%
*-commutative80.2%
exp-to-pow81.4%
sub-neg81.4%
metadata-eval81.4%
Simplified81.4%
Taylor expanded in y around 0 65.6%
exp-to-pow66.7%
sub-neg66.7%
metadata-eval66.7%
associate-*r/66.7%
Simplified66.7%
Taylor expanded in t around 0 36.6%
Taylor expanded in b around 0 36.6%
distribute-rgt1-in36.6%
Simplified36.6%
Taylor expanded in b around inf 39.4%
associate-/l*43.5%
distribute-lft-out44.3%
Simplified44.3%
if 3.4e-16 < b Initial program 99.9%
Taylor expanded in y around 0 89.6%
div-exp68.3%
exp-to-pow68.4%
sub-neg68.4%
metadata-eval68.4%
Simplified68.4%
Taylor expanded in t around 0 79.3%
associate-/r*73.2%
Simplified73.2%
Taylor expanded in b around 0 59.9%
*-commutative59.9%
Simplified59.9%
Final simplification54.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -7.2)
(/ (* x (+ 1.0 (* b (+ -1.0 (* b (* b -0.16666666666666666)))))) y)
(if (<= b 3.6e+30)
(/ 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 <= -7.2) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (b * -0.16666666666666666)))))) / y;
} else if (b <= 3.6e+30) {
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 <= (-7.2d0)) then
tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * (b * (-0.16666666666666666d0))))))) / y
else if (b <= 3.6d+30) 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 <= -7.2) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (b * -0.16666666666666666)))))) / y;
} else if (b <= 3.6e+30) {
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 <= -7.2: tmp = (x * (1.0 + (b * (-1.0 + (b * (b * -0.16666666666666666)))))) / y elif b <= 3.6e+30: 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 <= -7.2) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(-1.0 + Float64(b * Float64(b * -0.16666666666666666)))))) / y); elseif (b <= 3.6e+30) 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 <= -7.2) tmp = (x * (1.0 + (b * (-1.0 + (b * (b * -0.16666666666666666)))))) / y; elseif (b <= 3.6e+30) 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, -7.2], N[(N[(x * N[(1.0 + N[(b * N[(-1.0 + N[(b * N[(b * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 3.6e+30], 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 -7.2:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(-1 + b \cdot \left(b \cdot -0.16666666666666666\right)\right)\right)}{y}\\
\mathbf{elif}\;b \leq 3.6 \cdot 10^{+30}:\\
\;\;\;\;\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 < -7.20000000000000018Initial program 100.0%
Taylor expanded in t around 0 89.6%
+-commutative89.6%
mul-1-neg89.6%
unsub-neg89.6%
Simplified89.6%
Taylor expanded in b around inf 79.1%
neg-mul-179.1%
Simplified79.1%
Taylor expanded in b around 0 67.6%
Taylor expanded in b around inf 67.6%
*-commutative67.6%
Simplified67.6%
if -7.20000000000000018 < b < 3.6000000000000002e30Initial program 96.1%
associate-/l*96.8%
associate--l+96.8%
exp-sum80.9%
associate-/l*78.7%
*-commutative78.7%
exp-to-pow78.7%
exp-diff78.0%
*-commutative78.0%
exp-to-pow79.1%
sub-neg79.1%
metadata-eval79.1%
Simplified79.1%
Taylor expanded in y around 0 64.1%
exp-to-pow65.1%
sub-neg65.1%
metadata-eval65.1%
associate-*r/64.5%
Simplified64.5%
Taylor expanded in t around 0 36.1%
Taylor expanded in b around 0 34.7%
distribute-rgt1-in34.7%
Simplified34.7%
Taylor expanded in b around inf 37.2%
associate-/l*40.8%
distribute-lft-out41.6%
Simplified41.6%
if 3.6000000000000002e30 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum82.7%
associate-/l*82.7%
*-commutative82.7%
exp-to-pow82.7%
exp-diff59.6%
*-commutative59.6%
exp-to-pow59.6%
sub-neg59.6%
metadata-eval59.6%
Simplified59.6%
Taylor expanded in y around 0 69.2%
exp-to-pow69.2%
sub-neg69.2%
metadata-eval69.2%
associate-*r/73.1%
Simplified73.1%
Taylor expanded in t around 0 88.6%
Taylor expanded in b around 0 69.4%
*-commutative67.7%
Simplified69.4%
Final simplification53.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -30.0)
(/ (* x (+ 1.0 (* b (+ -1.0 (* b 0.5))))) y)
(if (<= b 1.95e+30)
(/ 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 <= -30.0) {
tmp = (x * (1.0 + (b * (-1.0 + (b * 0.5))))) / y;
} else if (b <= 1.95e+30) {
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 <= (-30.0d0)) then
tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * 0.5d0))))) / y
else if (b <= 1.95d+30) 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 <= -30.0) {
tmp = (x * (1.0 + (b * (-1.0 + (b * 0.5))))) / y;
} else if (b <= 1.95e+30) {
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 <= -30.0: tmp = (x * (1.0 + (b * (-1.0 + (b * 0.5))))) / y elif b <= 1.95e+30: 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 <= -30.0) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(-1.0 + Float64(b * 0.5))))) / y); elseif (b <= 1.95e+30) 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 <= -30.0) tmp = (x * (1.0 + (b * (-1.0 + (b * 0.5))))) / y; elseif (b <= 1.95e+30) 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, -30.0], N[(N[(x * N[(1.0 + N[(b * N[(-1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 1.95e+30], 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 -30:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(-1 + b \cdot 0.5\right)\right)}{y}\\
\mathbf{elif}\;b \leq 1.95 \cdot 10^{+30}:\\
\;\;\;\;\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 < -30Initial program 100.0%
Taylor expanded in t around 0 89.6%
+-commutative89.6%
mul-1-neg89.6%
unsub-neg89.6%
Simplified89.6%
Taylor expanded in b around inf 79.1%
neg-mul-179.1%
Simplified79.1%
Taylor expanded in b around 0 64.9%
if -30 < b < 1.95000000000000005e30Initial program 96.1%
associate-/l*96.8%
associate--l+96.8%
exp-sum80.9%
associate-/l*78.7%
*-commutative78.7%
exp-to-pow78.7%
exp-diff78.0%
*-commutative78.0%
exp-to-pow79.1%
sub-neg79.1%
metadata-eval79.1%
Simplified79.1%
Taylor expanded in y around 0 64.1%
exp-to-pow65.1%
sub-neg65.1%
metadata-eval65.1%
associate-*r/64.5%
Simplified64.5%
Taylor expanded in t around 0 36.1%
Taylor expanded in b around 0 34.7%
distribute-rgt1-in34.7%
Simplified34.7%
Taylor expanded in b around inf 37.2%
associate-/l*40.8%
distribute-lft-out41.6%
Simplified41.6%
if 1.95000000000000005e30 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum82.7%
associate-/l*82.7%
*-commutative82.7%
exp-to-pow82.7%
exp-diff59.6%
*-commutative59.6%
exp-to-pow59.6%
sub-neg59.6%
metadata-eval59.6%
Simplified59.6%
Taylor expanded in y around 0 69.2%
exp-to-pow69.2%
sub-neg69.2%
metadata-eval69.2%
associate-*r/73.1%
Simplified73.1%
Taylor expanded in t around 0 88.6%
Taylor expanded in b around 0 69.4%
*-commutative67.7%
Simplified69.4%
Final simplification53.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b -4.8) (/ (* x (+ 1.0 (* b (+ -1.0 (* b 0.5))))) y) (if (<= b 2.9e-38) (/ x (* b (* a (+ y (/ y b))))) (/ (/ (/ x b) a) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.8) {
tmp = (x * (1.0 + (b * (-1.0 + (b * 0.5))))) / y;
} else if (b <= 2.9e-38) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = ((x / b) / 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 <= (-4.8d0)) then
tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * 0.5d0))))) / y
else if (b <= 2.9d-38) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = ((x / b) / 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 <= -4.8) {
tmp = (x * (1.0 + (b * (-1.0 + (b * 0.5))))) / y;
} else if (b <= 2.9e-38) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = ((x / b) / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -4.8: tmp = (x * (1.0 + (b * (-1.0 + (b * 0.5))))) / y elif b <= 2.9e-38: tmp = x / (b * (a * (y + (y / b)))) else: tmp = ((x / b) / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -4.8) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(-1.0 + Float64(b * 0.5))))) / y); elseif (b <= 2.9e-38) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(Float64(Float64(x / b) / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -4.8) tmp = (x * (1.0 + (b * (-1.0 + (b * 0.5))))) / y; elseif (b <= 2.9e-38) tmp = x / (b * (a * (y + (y / b)))); else tmp = ((x / b) / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -4.8], N[(N[(x * N[(1.0 + N[(b * N[(-1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 2.9e-38], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x / b), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.8:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(-1 + b \cdot 0.5\right)\right)}{y}\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{-38}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\frac{x}{b}}{a}}{y}\\
\end{array}
\end{array}
if b < -4.79999999999999982Initial program 100.0%
Taylor expanded in t around 0 89.6%
+-commutative89.6%
mul-1-neg89.6%
unsub-neg89.6%
Simplified89.6%
Taylor expanded in b around inf 79.1%
neg-mul-179.1%
Simplified79.1%
Taylor expanded in b around 0 64.9%
if -4.79999999999999982 < b < 2.89999999999999994e-38Initial program 95.6%
associate-/l*97.1%
associate--l+97.1%
exp-sum81.6%
associate-/l*80.7%
*-commutative80.7%
exp-to-pow80.7%
exp-diff80.7%
*-commutative80.7%
exp-to-pow81.9%
sub-neg81.9%
metadata-eval81.9%
Simplified81.9%
Taylor expanded in y around 0 66.7%
exp-to-pow67.8%
sub-neg67.8%
metadata-eval67.8%
associate-*r/67.8%
Simplified67.8%
Taylor expanded in t around 0 37.3%
Taylor expanded in b around 0 37.3%
distribute-rgt1-in37.3%
Simplified37.3%
Taylor expanded in b around inf 40.3%
associate-/l*44.6%
distribute-lft-out45.5%
Simplified45.5%
if 2.89999999999999994e-38 < b Initial program 99.8%
associate-/l*98.6%
associate--l+98.6%
exp-sum81.0%
associate-/l*78.3%
*-commutative78.3%
exp-to-pow78.3%
exp-diff60.8%
*-commutative60.8%
exp-to-pow60.9%
sub-neg60.9%
metadata-eval60.9%
Simplified60.9%
Taylor expanded in y around 0 63.6%
exp-to-pow63.9%
sub-neg63.9%
metadata-eval63.9%
associate-*r/65.4%
Simplified65.4%
Taylor expanded in t around 0 71.1%
Taylor expanded in b around 0 31.0%
distribute-rgt1-in31.0%
Simplified31.0%
Taylor expanded in b around inf 29.8%
associate-*r*33.6%
associate-/r*38.7%
*-commutative38.7%
associate-/r*41.7%
Simplified41.7%
Final simplification49.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b -25000.0) (/ (- (/ x a) (* b (/ x a))) y) (if (<= b 3.1e-38) (/ x (* b (* a (+ y (/ y b))))) (/ (/ (/ x b) a) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -25000.0) {
tmp = ((x / a) - (b * (x / a))) / y;
} else if (b <= 3.1e-38) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = ((x / b) / 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 <= (-25000.0d0)) then
tmp = ((x / a) - (b * (x / a))) / y
else if (b <= 3.1d-38) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = ((x / b) / 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 <= -25000.0) {
tmp = ((x / a) - (b * (x / a))) / y;
} else if (b <= 3.1e-38) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = ((x / b) / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -25000.0: tmp = ((x / a) - (b * (x / a))) / y elif b <= 3.1e-38: tmp = x / (b * (a * (y + (y / b)))) else: tmp = ((x / b) / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -25000.0) tmp = Float64(Float64(Float64(x / a) - Float64(b * Float64(x / a))) / y); elseif (b <= 3.1e-38) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(Float64(Float64(x / b) / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -25000.0) tmp = ((x / a) - (b * (x / a))) / y; elseif (b <= 3.1e-38) tmp = x / (b * (a * (y + (y / b)))); else tmp = ((x / b) / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -25000.0], N[(N[(N[(x / a), $MachinePrecision] - N[(b * N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 3.1e-38], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x / b), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -25000:\\
\;\;\;\;\frac{\frac{x}{a} - b \cdot \frac{x}{a}}{y}\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{-38}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\frac{x}{b}}{a}}{y}\\
\end{array}
\end{array}
if b < -25000Initial program 100.0%
Taylor expanded in y around 0 84.9%
div-exp63.2%
exp-to-pow63.2%
sub-neg63.2%
metadata-eval63.2%
Simplified63.2%
Taylor expanded in t around 0 78.8%
associate-/r*64.9%
Simplified64.9%
Taylor expanded in b around 0 42.0%
+-commutative42.0%
mul-1-neg42.0%
unsub-neg42.0%
associate-/l*40.4%
Simplified40.4%
if -25000 < b < 3.09999999999999983e-38Initial program 95.6%
associate-/l*97.1%
associate--l+97.1%
exp-sum80.9%
associate-/l*80.0%
*-commutative80.0%
exp-to-pow80.0%
exp-diff80.0%
*-commutative80.0%
exp-to-pow81.2%
sub-neg81.2%
metadata-eval81.2%
Simplified81.2%
Taylor expanded in y around 0 66.2%
exp-to-pow67.2%
sub-neg67.2%
metadata-eval67.2%
associate-*r/67.2%
Simplified67.2%
Taylor expanded in t around 0 37.8%
Taylor expanded in b around 0 37.0%
distribute-rgt1-in37.0%
Simplified37.0%
Taylor expanded in b around inf 39.9%
associate-/l*44.2%
distribute-lft-out45.1%
Simplified45.1%
if 3.09999999999999983e-38 < b Initial program 99.8%
associate-/l*98.6%
associate--l+98.6%
exp-sum81.0%
associate-/l*78.3%
*-commutative78.3%
exp-to-pow78.3%
exp-diff60.8%
*-commutative60.8%
exp-to-pow60.9%
sub-neg60.9%
metadata-eval60.9%
Simplified60.9%
Taylor expanded in y around 0 63.6%
exp-to-pow63.9%
sub-neg63.9%
metadata-eval63.9%
associate-*r/65.4%
Simplified65.4%
Taylor expanded in t around 0 71.1%
Taylor expanded in b around 0 31.0%
distribute-rgt1-in31.0%
Simplified31.0%
Taylor expanded in b around inf 29.8%
associate-*r*33.6%
associate-/r*38.7%
*-commutative38.7%
associate-/r*41.7%
Simplified41.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -30.0) (/ (* x (- 1.0 b)) y) (if (<= b 2.9e-38) (/ x (* b (* a (+ y (/ y b))))) (/ (/ (/ x b) a) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -30.0) {
tmp = (x * (1.0 - b)) / y;
} else if (b <= 2.9e-38) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = ((x / b) / 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 <= (-30.0d0)) then
tmp = (x * (1.0d0 - b)) / y
else if (b <= 2.9d-38) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = ((x / b) / 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 <= -30.0) {
tmp = (x * (1.0 - b)) / y;
} else if (b <= 2.9e-38) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = ((x / b) / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -30.0: tmp = (x * (1.0 - b)) / y elif b <= 2.9e-38: tmp = x / (b * (a * (y + (y / b)))) else: tmp = ((x / b) / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -30.0) tmp = Float64(Float64(x * Float64(1.0 - b)) / y); elseif (b <= 2.9e-38) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(Float64(Float64(x / b) / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -30.0) tmp = (x * (1.0 - b)) / y; elseif (b <= 2.9e-38) tmp = x / (b * (a * (y + (y / b)))); else tmp = ((x / b) / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -30.0], N[(N[(x * N[(1.0 - b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 2.9e-38], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x / b), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -30:\\
\;\;\;\;\frac{x \cdot \left(1 - b\right)}{y}\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{-38}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\frac{x}{b}}{a}}{y}\\
\end{array}
\end{array}
if b < -30Initial program 100.0%
Taylor expanded in t around 0 89.6%
+-commutative89.6%
mul-1-neg89.6%
unsub-neg89.6%
Simplified89.6%
Taylor expanded in b around inf 79.1%
neg-mul-179.1%
Simplified79.1%
Taylor expanded in b around 0 35.7%
*-lft-identity35.7%
associate-*r*35.7%
distribute-rgt-out35.7%
mul-1-neg35.7%
unsub-neg35.7%
Simplified35.7%
if -30 < b < 2.89999999999999994e-38Initial program 95.6%
associate-/l*97.1%
associate--l+97.1%
exp-sum81.6%
associate-/l*80.7%
*-commutative80.7%
exp-to-pow80.7%
exp-diff80.7%
*-commutative80.7%
exp-to-pow81.9%
sub-neg81.9%
metadata-eval81.9%
Simplified81.9%
Taylor expanded in y around 0 66.7%
exp-to-pow67.8%
sub-neg67.8%
metadata-eval67.8%
associate-*r/67.8%
Simplified67.8%
Taylor expanded in t around 0 37.3%
Taylor expanded in b around 0 37.3%
distribute-rgt1-in37.3%
Simplified37.3%
Taylor expanded in b around inf 40.3%
associate-/l*44.6%
distribute-lft-out45.5%
Simplified45.5%
if 2.89999999999999994e-38 < b Initial program 99.8%
associate-/l*98.6%
associate--l+98.6%
exp-sum81.0%
associate-/l*78.3%
*-commutative78.3%
exp-to-pow78.3%
exp-diff60.8%
*-commutative60.8%
exp-to-pow60.9%
sub-neg60.9%
metadata-eval60.9%
Simplified60.9%
Taylor expanded in y around 0 63.6%
exp-to-pow63.9%
sub-neg63.9%
metadata-eval63.9%
associate-*r/65.4%
Simplified65.4%
Taylor expanded in t around 0 71.1%
Taylor expanded in b around 0 31.0%
distribute-rgt1-in31.0%
Simplified31.0%
Taylor expanded in b around inf 29.8%
associate-*r*33.6%
associate-/r*38.7%
*-commutative38.7%
associate-/r*41.7%
Simplified41.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.6e+87) (/ (* x (- 1.0 b)) y) (if (<= b 2e-14) (/ (/ x a) y) (/ (/ (/ x b) a) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.6e+87) {
tmp = (x * (1.0 - b)) / y;
} else if (b <= 2e-14) {
tmp = (x / a) / y;
} else {
tmp = ((x / b) / 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.6d+87)) then
tmp = (x * (1.0d0 - b)) / y
else if (b <= 2d-14) then
tmp = (x / a) / y
else
tmp = ((x / b) / 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.6e+87) {
tmp = (x * (1.0 - b)) / y;
} else if (b <= 2e-14) {
tmp = (x / a) / y;
} else {
tmp = ((x / b) / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.6e+87: tmp = (x * (1.0 - b)) / y elif b <= 2e-14: tmp = (x / a) / y else: tmp = ((x / b) / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.6e+87) tmp = Float64(Float64(x * Float64(1.0 - b)) / y); elseif (b <= 2e-14) tmp = Float64(Float64(x / a) / y); else tmp = Float64(Float64(Float64(x / b) / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.6e+87) tmp = (x * (1.0 - b)) / y; elseif (b <= 2e-14) tmp = (x / a) / y; else tmp = ((x / b) / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.6e+87], N[(N[(x * N[(1.0 - b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 2e-14], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(N[(N[(x / b), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.6 \cdot 10^{+87}:\\
\;\;\;\;\frac{x \cdot \left(1 - b\right)}{y}\\
\mathbf{elif}\;b \leq 2 \cdot 10^{-14}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\frac{x}{b}}{a}}{y}\\
\end{array}
\end{array}
if b < -1.6e87Initial program 100.0%
Taylor expanded in t around 0 91.8%
+-commutative91.8%
mul-1-neg91.8%
unsub-neg91.8%
Simplified91.8%
Taylor expanded in b around inf 87.7%
neg-mul-187.7%
Simplified87.7%
Taylor expanded in b around 0 43.8%
*-lft-identity43.8%
associate-*r*43.8%
distribute-rgt-out43.8%
mul-1-neg43.8%
unsub-neg43.8%
Simplified43.8%
if -1.6e87 < b < 2e-14Initial program 96.3%
Taylor expanded in y around 0 64.5%
div-exp62.4%
exp-to-pow63.4%
sub-neg63.4%
metadata-eval63.4%
Simplified63.4%
Taylor expanded in t around 0 39.5%
associate-/r*37.5%
Simplified37.5%
Taylor expanded in b around 0 34.8%
if 2e-14 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum82.5%
associate-/l*81.0%
*-commutative81.0%
exp-to-pow81.0%
exp-diff60.3%
*-commutative60.3%
exp-to-pow60.3%
sub-neg60.3%
metadata-eval60.3%
Simplified60.3%
Taylor expanded in y around 0 66.8%
exp-to-pow66.8%
sub-neg66.8%
metadata-eval66.8%
associate-*r/70.0%
Simplified70.0%
Taylor expanded in t around 0 79.8%
Taylor expanded in b around 0 32.6%
distribute-rgt1-in32.6%
Simplified32.6%
Taylor expanded in b around inf 32.6%
associate-*r*37.0%
associate-/r*41.5%
*-commutative41.5%
associate-/r*43.6%
Simplified43.6%
(FPCore (x y z t a b) :precision binary64 (if (<= b -3.6e+93) (/ (* x (- 1.0 b)) y) (if (<= b 4.6e+27) (/ (/ x a) y) (/ x (* a (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.6e+93) {
tmp = (x * (1.0 - b)) / y;
} else if (b <= 4.6e+27) {
tmp = (x / a) / y;
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-3.6d+93)) then
tmp = (x * (1.0d0 - b)) / y
else if (b <= 4.6d+27) then
tmp = (x / a) / y
else
tmp = x / (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.6e+93) {
tmp = (x * (1.0 - b)) / y;
} else if (b <= 4.6e+27) {
tmp = (x / a) / y;
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3.6e+93: tmp = (x * (1.0 - b)) / y elif b <= 4.6e+27: tmp = (x / a) / y else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3.6e+93) tmp = Float64(Float64(x * Float64(1.0 - b)) / y); elseif (b <= 4.6e+27) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -3.6e+93) tmp = (x * (1.0 - b)) / y; elseif (b <= 4.6e+27) tmp = (x / a) / y; else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.6e+93], N[(N[(x * N[(1.0 - b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 4.6e+27], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.6 \cdot 10^{+93}:\\
\;\;\;\;\frac{x \cdot \left(1 - b\right)}{y}\\
\mathbf{elif}\;b \leq 4.6 \cdot 10^{+27}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < -3.5999999999999999e93Initial program 100.0%
Taylor expanded in t around 0 91.8%
+-commutative91.8%
mul-1-neg91.8%
unsub-neg91.8%
Simplified91.8%
Taylor expanded in b around inf 87.7%
neg-mul-187.7%
Simplified87.7%
Taylor expanded in b around 0 43.8%
*-lft-identity43.8%
associate-*r*43.8%
distribute-rgt-out43.8%
mul-1-neg43.8%
unsub-neg43.8%
Simplified43.8%
if -3.5999999999999999e93 < b < 4.6000000000000001e27Initial program 96.6%
Taylor expanded in y around 0 64.3%
div-exp62.3%
exp-to-pow63.2%
sub-neg63.2%
metadata-eval63.2%
Simplified63.2%
Taylor expanded in t around 0 39.7%
associate-/r*37.7%
Simplified37.7%
Taylor expanded in b around 0 34.0%
if 4.6000000000000001e27 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum83.0%
associate-/l*83.0%
*-commutative83.0%
exp-to-pow83.0%
exp-diff58.5%
*-commutative58.5%
exp-to-pow58.5%
sub-neg58.5%
metadata-eval58.5%
Simplified58.5%
Taylor expanded in y around 0 67.9%
exp-to-pow67.9%
sub-neg67.9%
metadata-eval67.9%
associate-*r/71.7%
Simplified71.7%
Taylor expanded in t around 0 87.0%
Taylor expanded in b around 0 34.6%
distribute-rgt1-in34.6%
Simplified34.6%
Taylor expanded in b around inf 34.6%
*-commutative34.6%
Simplified34.6%
(FPCore (x y z t a b) :precision binary64 (if (<= b 3.1e-38) (* (/ x (* y a)) (- 1.0 b)) (/ (/ (/ x b) a) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 3.1e-38) {
tmp = (x / (y * a)) * (1.0 - b);
} else {
tmp = ((x / b) / 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 <= 3.1d-38) then
tmp = (x / (y * a)) * (1.0d0 - b)
else
tmp = ((x / b) / 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 <= 3.1e-38) {
tmp = (x / (y * a)) * (1.0 - b);
} else {
tmp = ((x / b) / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 3.1e-38: tmp = (x / (y * a)) * (1.0 - b) else: tmp = ((x / b) / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 3.1e-38) tmp = Float64(Float64(x / Float64(y * a)) * Float64(1.0 - b)); else tmp = Float64(Float64(Float64(x / b) / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 3.1e-38) tmp = (x / (y * a)) * (1.0 - b); else tmp = ((x / b) / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 3.1e-38], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] * N[(1.0 - b), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x / b), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 3.1 \cdot 10^{-38}:\\
\;\;\;\;\frac{x}{y \cdot a} \cdot \left(1 - b\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\frac{x}{b}}{a}}{y}\\
\end{array}
\end{array}
if b < 3.09999999999999983e-38Initial program 97.2%
associate-/l*98.1%
associate--l+98.1%
exp-sum76.2%
associate-/l*75.6%
*-commutative75.6%
exp-to-pow75.6%
exp-diff69.0%
*-commutative69.0%
exp-to-pow69.8%
sub-neg69.8%
metadata-eval69.8%
Simplified69.8%
Taylor expanded in y around 0 62.4%
exp-to-pow63.0%
sub-neg63.0%
metadata-eval63.0%
associate-*r/65.8%
Simplified65.8%
Taylor expanded in t around 0 52.5%
Taylor expanded in b around 0 25.9%
distribute-rgt1-in25.9%
Simplified25.9%
Taylor expanded in b around 0 33.3%
mul-1-neg33.3%
remove-double-neg33.3%
distribute-neg-out33.3%
associate-/l*30.1%
mul-1-neg30.1%
distribute-rgt-out35.6%
Simplified35.6%
if 3.09999999999999983e-38 < b Initial program 99.8%
associate-/l*98.6%
associate--l+98.6%
exp-sum81.0%
associate-/l*78.3%
*-commutative78.3%
exp-to-pow78.3%
exp-diff60.8%
*-commutative60.8%
exp-to-pow60.9%
sub-neg60.9%
metadata-eval60.9%
Simplified60.9%
Taylor expanded in y around 0 63.6%
exp-to-pow63.9%
sub-neg63.9%
metadata-eval63.9%
associate-*r/65.4%
Simplified65.4%
Taylor expanded in t around 0 71.1%
Taylor expanded in b around 0 31.0%
distribute-rgt1-in31.0%
Simplified31.0%
Taylor expanded in b around inf 29.8%
associate-*r*33.6%
associate-/r*38.7%
*-commutative38.7%
associate-/r*41.7%
Simplified41.7%
Final simplification37.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b 1.2e+26) (/ (/ x a) y) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.2e+26) {
tmp = (x / a) / y;
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 1.2d+26) then
tmp = (x / a) / y
else
tmp = x / (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.2e+26) {
tmp = (x / a) / y;
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 1.2e+26: tmp = (x / a) / y else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 1.2e+26) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 1.2e+26) tmp = (x / a) / y; else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.2e+26], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.2 \cdot 10^{+26}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 1.20000000000000002e26Initial program 97.4%
Taylor expanded in y around 0 70.8%
div-exp63.8%
exp-to-pow64.5%
sub-neg64.5%
metadata-eval64.5%
Simplified64.5%
Taylor expanded in t around 0 51.0%
associate-/r*46.1%
Simplified46.1%
Taylor expanded in b around 0 32.8%
if 1.20000000000000002e26 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum83.0%
associate-/l*83.0%
*-commutative83.0%
exp-to-pow83.0%
exp-diff58.5%
*-commutative58.5%
exp-to-pow58.5%
sub-neg58.5%
metadata-eval58.5%
Simplified58.5%
Taylor expanded in y around 0 67.9%
exp-to-pow67.9%
sub-neg67.9%
metadata-eval67.9%
associate-*r/71.7%
Simplified71.7%
Taylor expanded in t around 0 87.0%
Taylor expanded in b around 0 34.6%
distribute-rgt1-in34.6%
Simplified34.6%
Taylor expanded in b around inf 34.6%
*-commutative34.6%
Simplified34.6%
(FPCore (x y z t a b) :precision binary64 (if (<= a 4.1e-69) (/ (/ x a) y) (* x (/ 1.0 (* y a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 4.1e-69) {
tmp = (x / a) / y;
} else {
tmp = x * (1.0 / (y * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (a <= 4.1d-69) then
tmp = (x / a) / y
else
tmp = x * (1.0d0 / (y * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 4.1e-69) {
tmp = (x / a) / y;
} else {
tmp = x * (1.0 / (y * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 4.1e-69: tmp = (x / a) / y else: tmp = x * (1.0 / (y * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 4.1e-69) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x * Float64(1.0 / Float64(y * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= 4.1e-69) tmp = (x / a) / y; else tmp = x * (1.0 / (y * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 4.1e-69], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 4.1 \cdot 10^{-69}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\end{array}
\end{array}
if a < 4.0999999999999999e-69Initial program 99.7%
Taylor expanded in y around 0 79.0%
div-exp63.5%
exp-to-pow63.9%
sub-neg63.9%
metadata-eval63.9%
Simplified63.9%
Taylor expanded in t around 0 66.2%
associate-/r*62.4%
Simplified62.4%
Taylor expanded in b around 0 34.6%
if 4.0999999999999999e-69 < a Initial program 96.7%
Taylor expanded in t around 0 76.9%
+-commutative76.9%
mul-1-neg76.9%
unsub-neg76.9%
Simplified76.9%
Taylor expanded in b around 0 53.2%
associate-/l*55.6%
div-exp55.6%
*-commutative55.6%
exp-to-pow55.6%
rem-exp-log56.5%
Simplified56.5%
Taylor expanded in y around 0 30.8%
Final simplification32.3%
(FPCore (x y z t a b) :precision binary64 (if (<= a 6.2e+123) (/ (/ x a) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 6.2e+123) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (a <= 6.2d+123) then
tmp = (x / a) / y
else
tmp = x / (y * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 6.2e+123) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 6.2e+123: tmp = (x / a) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 6.2e+123) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(y * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= 6.2e+123) tmp = (x / a) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 6.2e+123], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 6.2 \cdot 10^{+123}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if a < 6.20000000000000013e123Initial program 99.5%
Taylor expanded in y around 0 77.0%
div-exp65.2%
exp-to-pow65.6%
sub-neg65.6%
metadata-eval65.6%
Simplified65.6%
Taylor expanded in t around 0 57.2%
associate-/r*53.4%
Simplified53.4%
Taylor expanded in b around 0 29.7%
if 6.20000000000000013e123 < a Initial program 93.5%
associate-/l*98.4%
associate--l+98.4%
exp-sum73.8%
associate-/l*72.3%
*-commutative72.3%
exp-to-pow72.3%
exp-diff63.6%
*-commutative63.6%
exp-to-pow65.0%
sub-neg65.0%
metadata-eval65.0%
Simplified65.0%
Taylor expanded in y around 0 63.4%
exp-to-pow64.3%
sub-neg64.3%
metadata-eval64.3%
associate-*r/72.5%
Simplified72.5%
Taylor expanded in t around 0 67.7%
Taylor expanded in b around 0 39.3%
Final simplification32.3%
(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 97.9%
associate-/l*98.3%
associate--l+98.3%
exp-sum77.6%
associate-/l*76.4%
*-commutative76.4%
exp-to-pow76.4%
exp-diff66.6%
*-commutative66.6%
exp-to-pow67.2%
sub-neg67.2%
metadata-eval67.2%
Simplified67.2%
Taylor expanded in y around 0 62.7%
exp-to-pow63.3%
sub-neg63.3%
metadata-eval63.3%
associate-*r/65.7%
Simplified65.7%
Taylor expanded in t around 0 57.9%
Taylor expanded in b around 0 28.7%
Final simplification28.7%
(FPCore (x y z t a b) :precision binary64 (/ 1.0 (/ y x)))
double code(double x, double y, double z, double t, double a, double b) {
return 1.0 / (y / x);
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = 1.0d0 / (y / x)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return 1.0 / (y / x);
}
def code(x, y, z, t, a, b): return 1.0 / (y / x)
function code(x, y, z, t, a, b) return Float64(1.0 / Float64(y / x)) end
function tmp = code(x, y, z, t, a, b) tmp = 1.0 / (y / x); end
code[x_, y_, z_, t_, a_, b_] := N[(1.0 / N[(y / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{\frac{y}{x}}
\end{array}
Initial program 97.9%
Taylor expanded in t around 0 80.4%
+-commutative80.4%
mul-1-neg80.4%
unsub-neg80.4%
Simplified80.4%
Taylor expanded in b around inf 45.7%
neg-mul-145.7%
Simplified45.7%
Taylor expanded in b around 0 13.6%
clear-num14.3%
inv-pow14.3%
Applied egg-rr14.3%
unpow-114.3%
Simplified14.3%
(FPCore (x y z t a b) :precision binary64 (/ x y))
double code(double x, double y, double z, double t, double a, double b) {
return x / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / y;
}
def code(x, y, z, t, a, b): return x / y
function code(x, y, z, t, a, b) return Float64(x / y) end
function tmp = code(x, y, z, t, a, b) tmp = x / y; end
code[x_, y_, z_, t_, a_, b_] := N[(x / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y}
\end{array}
Initial program 97.9%
Taylor expanded in t around 0 80.4%
+-commutative80.4%
mul-1-neg80.4%
unsub-neg80.4%
Simplified80.4%
Taylor expanded in b around inf 45.7%
neg-mul-145.7%
Simplified45.7%
Taylor expanded in b around 0 13.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (- t 1.0)))
(t_2 (/ (* x (/ t_1 y)) (- (+ b 1.0) (* y (log z))))))
(if (< t -0.8845848504127471)
t_2
(if (< t 852031.2288374073)
(/ (* (/ x y) t_1) (exp (- b (* (log z) y))))
t_2))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a ** (t - 1.0d0)
t_2 = (x * (t_1 / y)) / ((b + 1.0d0) - (y * log(z)))
if (t < (-0.8845848504127471d0)) then
tmp = t_2
else if (t < 852031.2288374073d0) then
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = Math.pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * Math.log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / Math.exp((b - (Math.log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, (t - 1.0)) t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * math.log(z))) tmp = 0 if t < -0.8845848504127471: tmp = t_2 elif t < 852031.2288374073: tmp = ((x / y) * t_1) / math.exp((b - (math.log(z) * y))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = a ^ Float64(t - 1.0) t_2 = Float64(Float64(x * Float64(t_1 / y)) / Float64(Float64(b + 1.0) - Float64(y * log(z)))) tmp = 0.0 if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = Float64(Float64(Float64(x / y) * t_1) / exp(Float64(b - Float64(log(z) * y)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a ^ (t - 1.0); t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z))); tmp = 0.0; if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = ((x / y) * t_1) / exp((b - (log(z) * y))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision] / N[(N[(b + 1.0), $MachinePrecision] - N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -0.8845848504127471], t$95$2, If[Less[t, 852031.2288374073], N[(N[(N[(x / y), $MachinePrecision] * t$95$1), $MachinePrecision] / N[Exp[N[(b - N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {a}^{\left(t - 1\right)}\\
t_2 := \frac{x \cdot \frac{t\_1}{y}}{\left(b + 1\right) - y \cdot \log z}\\
\mathbf{if}\;t < -0.8845848504127471:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 852031.2288374073:\\
\;\;\;\;\frac{\frac{x}{y} \cdot t\_1}{e^{b - \log z \cdot y}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024185
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:alt
(! :herbie-platform default (if (< t -8845848504127471/10000000000000000) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))) (if (< t 8520312288374073/10000000000) (/ (* (/ x y) (pow a (- t 1))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))