
(FPCore (x y z t a b) :precision binary64 (* x (exp (+ (* y (- (log z) t)) (* a (- (log (- 1.0 z)) b))))))
double code(double x, double y, double z, double t, double a, double b) {
return x * exp(((y * (log(z) - t)) + (a * (log((1.0 - z)) - b))));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x * exp(((y * (log(z) - t)) + (a * (log((1.0d0 - z)) - b))))
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)) + (a * (Math.log((1.0 - z)) - b))));
}
def code(x, y, z, t, a, b): return x * math.exp(((y * (math.log(z) - t)) + (a * (math.log((1.0 - z)) - b))))
function code(x, y, z, t, a, b) return Float64(x * exp(Float64(Float64(y * Float64(log(z) - t)) + Float64(a * Float64(log(Float64(1.0 - z)) - b))))) end
function tmp = code(x, y, z, t, a, b) tmp = x * exp(((y * (log(z) - t)) + (a * (log((1.0 - z)) - b)))); end
code[x_, y_, z_, t_, a_, b_] := N[(x * N[Exp[N[(N[(y * N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[Log[N[(1.0 - z), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot e^{y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (* x (exp (+ (* y (- (log z) t)) (* a (- (log (- 1.0 z)) b))))))
double code(double x, double y, double z, double t, double a, double b) {
return x * exp(((y * (log(z) - t)) + (a * (log((1.0 - z)) - b))));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x * exp(((y * (log(z) - t)) + (a * (log((1.0d0 - z)) - b))))
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)) + (a * (Math.log((1.0 - z)) - b))));
}
def code(x, y, z, t, a, b): return x * math.exp(((y * (math.log(z) - t)) + (a * (math.log((1.0 - z)) - b))))
function code(x, y, z, t, a, b) return Float64(x * exp(Float64(Float64(y * Float64(log(z) - t)) + Float64(a * Float64(log(Float64(1.0 - z)) - b))))) end
function tmp = code(x, y, z, t, a, b) tmp = x * exp(((y * (log(z) - t)) + (a * (log((1.0 - z)) - b)))); end
code[x_, y_, z_, t_, a_, b_] := N[(x * N[Exp[N[(N[(y * N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[Log[N[(1.0 - z), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot e^{y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right)}
\end{array}
(FPCore (x y z t a b) :precision binary64 (* x (exp (fma y (- (log z) t) (* a (- (log1p (- z)) b))))))
double code(double x, double y, double z, double t, double a, double b) {
return x * exp(fma(y, (log(z) - t), (a * (log1p(-z) - b))));
}
function code(x, y, z, t, a, b) return Float64(x * exp(fma(y, Float64(log(z) - t), Float64(a * Float64(log1p(Float64(-z)) - b))))) end
code[x_, y_, z_, t_, a_, b_] := N[(x * N[Exp[N[(y * N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision] + N[(a * N[(N[Log[1 + (-z)], $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot e^{\mathsf{fma}\left(y, \log z - t, a \cdot \left(\mathsf{log1p}\left(-z\right) - b\right)\right)}
\end{array}
Initial program 96.5%
fma-def96.9%
sub-neg96.9%
log1p-def99.6%
Simplified99.6%
Final simplification99.6%
(FPCore (x y z t a b) :precision binary64 (* x (exp (+ (* y (- (log z) t)) (* a (- (log (- 1.0 z)) b))))))
double code(double x, double y, double z, double t, double a, double b) {
return x * exp(((y * (log(z) - t)) + (a * (log((1.0 - z)) - b))));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x * exp(((y * (log(z) - t)) + (a * (log((1.0d0 - z)) - b))))
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)) + (a * (Math.log((1.0 - z)) - b))));
}
def code(x, y, z, t, a, b): return x * math.exp(((y * (math.log(z) - t)) + (a * (math.log((1.0 - z)) - b))))
function code(x, y, z, t, a, b) return Float64(x * exp(Float64(Float64(y * Float64(log(z) - t)) + Float64(a * Float64(log(Float64(1.0 - z)) - b))))) end
function tmp = code(x, y, z, t, a, b) tmp = x * exp(((y * (log(z) - t)) + (a * (log((1.0 - z)) - b)))); end
code[x_, y_, z_, t_, a_, b_] := N[(x * N[Exp[N[(N[(y * N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[Log[N[(1.0 - z), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot e^{y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right)}
\end{array}
Initial program 96.5%
Final simplification96.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.02e-23) (not (<= y 3e-110))) (* x (exp (* y (- (log z) t)))) (* x (exp (- (* z (- a)) (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.02e-23) || !(y <= 3e-110)) {
tmp = x * exp((y * (log(z) - t)));
} else {
tmp = x * exp(((z * -a) - (a * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-1.02d-23)) .or. (.not. (y <= 3d-110))) then
tmp = x * exp((y * (log(z) - t)))
else
tmp = x * exp(((z * -a) - (a * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.02e-23) || !(y <= 3e-110)) {
tmp = x * Math.exp((y * (Math.log(z) - t)));
} else {
tmp = x * Math.exp(((z * -a) - (a * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.02e-23) or not (y <= 3e-110): tmp = x * math.exp((y * (math.log(z) - t))) else: tmp = x * math.exp(((z * -a) - (a * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.02e-23) || !(y <= 3e-110)) tmp = Float64(x * exp(Float64(y * Float64(log(z) - t)))); else tmp = Float64(x * exp(Float64(Float64(z * Float64(-a)) - Float64(a * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.02e-23) || ~((y <= 3e-110))) tmp = x * exp((y * (log(z) - t))); else tmp = x * exp(((z * -a) - (a * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.02e-23], N[Not[LessEqual[y, 3e-110]], $MachinePrecision]], N[(x * N[Exp[N[(y * N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(x * N[Exp[N[(N[(z * (-a)), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.02 \cdot 10^{-23} \lor \neg \left(y \leq 3 \cdot 10^{-110}\right):\\
\;\;\;\;x \cdot e^{y \cdot \left(\log z - t\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot e^{z \cdot \left(-a\right) - a \cdot b}\\
\end{array}
\end{array}
if y < -1.02000000000000005e-23 or 2.99999999999999986e-110 < y Initial program 97.4%
Taylor expanded in y around inf 87.5%
if -1.02000000000000005e-23 < y < 2.99999999999999986e-110Initial program 95.4%
Taylor expanded in y around 0 86.5%
sub-neg86.5%
sub-neg86.5%
neg-mul-186.5%
log1p-def92.0%
neg-mul-192.0%
sub-neg92.0%
Simplified92.0%
Taylor expanded in z around 0 92.0%
mul-1-neg92.0%
unsub-neg92.0%
mul-1-neg92.0%
distribute-rgt-neg-in92.0%
Simplified92.0%
Final simplification89.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.6e+129) (not (<= y 7.2e-7))) (* x (pow z y)) (* x (exp (- (* z (- a)) (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.6e+129) || !(y <= 7.2e-7)) {
tmp = x * pow(z, y);
} else {
tmp = x * exp(((z * -a) - (a * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-1.6d+129)) .or. (.not. (y <= 7.2d-7))) then
tmp = x * (z ** y)
else
tmp = x * exp(((z * -a) - (a * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.6e+129) || !(y <= 7.2e-7)) {
tmp = x * Math.pow(z, y);
} else {
tmp = x * Math.exp(((z * -a) - (a * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.6e+129) or not (y <= 7.2e-7): tmp = x * math.pow(z, y) else: tmp = x * math.exp(((z * -a) - (a * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.6e+129) || !(y <= 7.2e-7)) tmp = Float64(x * (z ^ y)); else tmp = Float64(x * exp(Float64(Float64(z * Float64(-a)) - Float64(a * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.6e+129) || ~((y <= 7.2e-7))) tmp = x * (z ^ y); else tmp = x * exp(((z * -a) - (a * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.6e+129], N[Not[LessEqual[y, 7.2e-7]], $MachinePrecision]], N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision], N[(x * N[Exp[N[(N[(z * (-a)), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.6 \cdot 10^{+129} \lor \neg \left(y \leq 7.2 \cdot 10^{-7}\right):\\
\;\;\;\;x \cdot {z}^{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot e^{z \cdot \left(-a\right) - a \cdot b}\\
\end{array}
\end{array}
if y < -1.6000000000000001e129 or 7.19999999999999989e-7 < y Initial program 98.1%
Taylor expanded in y around inf 92.6%
Taylor expanded in t around 0 74.9%
if -1.6000000000000001e129 < y < 7.19999999999999989e-7Initial program 95.4%
Taylor expanded in y around 0 77.6%
sub-neg77.6%
sub-neg77.6%
neg-mul-177.6%
log1p-def83.4%
neg-mul-183.4%
sub-neg83.4%
Simplified83.4%
Taylor expanded in z around 0 83.4%
mul-1-neg83.4%
unsub-neg83.4%
mul-1-neg83.4%
distribute-rgt-neg-in83.4%
Simplified83.4%
Final simplification79.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -2.4e+33) (not (<= y 5.5e-7))) (* x (pow z y)) (* x (exp (* a (- b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.4e+33) || !(y <= 5.5e-7)) {
tmp = x * pow(z, y);
} else {
tmp = x * exp((a * -b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-2.4d+33)) .or. (.not. (y <= 5.5d-7))) then
tmp = x * (z ** y)
else
tmp = x * exp((a * -b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.4e+33) || !(y <= 5.5e-7)) {
tmp = x * Math.pow(z, y);
} else {
tmp = x * Math.exp((a * -b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -2.4e+33) or not (y <= 5.5e-7): tmp = x * math.pow(z, y) else: tmp = x * math.exp((a * -b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -2.4e+33) || !(y <= 5.5e-7)) tmp = Float64(x * (z ^ y)); else tmp = Float64(x * exp(Float64(a * Float64(-b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -2.4e+33) || ~((y <= 5.5e-7))) tmp = x * (z ^ y); else tmp = x * exp((a * -b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -2.4e+33], N[Not[LessEqual[y, 5.5e-7]], $MachinePrecision]], N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision], N[(x * N[Exp[N[(a * (-b)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.4 \cdot 10^{+33} \lor \neg \left(y \leq 5.5 \cdot 10^{-7}\right):\\
\;\;\;\;x \cdot {z}^{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot e^{a \cdot \left(-b\right)}\\
\end{array}
\end{array}
if y < -2.4e33 or 5.5000000000000003e-7 < y Initial program 97.6%
Taylor expanded in y around inf 89.7%
Taylor expanded in t around 0 71.4%
if -2.4e33 < y < 5.5000000000000003e-7Initial program 95.6%
Taylor expanded in b around inf 80.3%
mul-1-neg80.3%
distribute-rgt-neg-out80.3%
Simplified80.3%
Final simplification76.0%
(FPCore (x y z t a b) :precision binary64 (if (<= y -4.5e-27) (* x (exp (* y (- t)))) (if (<= y 7.2e-7) (* x (exp (* a (- b)))) (* x (pow z y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -4.5e-27) {
tmp = x * exp((y * -t));
} else if (y <= 7.2e-7) {
tmp = x * exp((a * -b));
} else {
tmp = x * pow(z, 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 <= (-4.5d-27)) then
tmp = x * exp((y * -t))
else if (y <= 7.2d-7) then
tmp = x * exp((a * -b))
else
tmp = x * (z ** 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 <= -4.5e-27) {
tmp = x * Math.exp((y * -t));
} else if (y <= 7.2e-7) {
tmp = x * Math.exp((a * -b));
} else {
tmp = x * Math.pow(z, y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -4.5e-27: tmp = x * math.exp((y * -t)) elif y <= 7.2e-7: tmp = x * math.exp((a * -b)) else: tmp = x * math.pow(z, y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -4.5e-27) tmp = Float64(x * exp(Float64(y * Float64(-t)))); elseif (y <= 7.2e-7) tmp = Float64(x * exp(Float64(a * Float64(-b)))); else tmp = Float64(x * (z ^ y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -4.5e-27) tmp = x * exp((y * -t)); elseif (y <= 7.2e-7) tmp = x * exp((a * -b)); else tmp = x * (z ^ y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -4.5e-27], N[(x * N[Exp[N[(y * (-t)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.2e-7], N[(x * N[Exp[N[(a * (-b)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.5 \cdot 10^{-27}:\\
\;\;\;\;x \cdot e^{y \cdot \left(-t\right)}\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{-7}:\\
\;\;\;\;x \cdot e^{a \cdot \left(-b\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot {z}^{y}\\
\end{array}
\end{array}
if y < -4.5000000000000002e-27Initial program 97.0%
Taylor expanded in t around inf 66.3%
mul-1-neg66.3%
distribute-lft-neg-out66.3%
*-commutative66.3%
Simplified66.3%
if -4.5000000000000002e-27 < y < 7.19999999999999989e-7Initial program 95.1%
Taylor expanded in b around inf 82.5%
mul-1-neg82.5%
distribute-rgt-neg-out82.5%
Simplified82.5%
if 7.19999999999999989e-7 < y Initial program 98.5%
Taylor expanded in y around inf 90.0%
Taylor expanded in t around 0 74.3%
Final simplification76.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -0.72) (not (<= y 3.7e-10))) (* x (pow z y)) (- x (* b (* x a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -0.72) || !(y <= 3.7e-10)) {
tmp = x * pow(z, y);
} else {
tmp = x - (b * (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-0.72d0)) .or. (.not. (y <= 3.7d-10))) then
tmp = x * (z ** y)
else
tmp = x - (b * (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -0.72) || !(y <= 3.7e-10)) {
tmp = x * Math.pow(z, y);
} else {
tmp = x - (b * (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -0.72) or not (y <= 3.7e-10): tmp = x * math.pow(z, y) else: tmp = x - (b * (x * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -0.72) || !(y <= 3.7e-10)) tmp = Float64(x * (z ^ y)); else tmp = Float64(x - Float64(b * Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -0.72) || ~((y <= 3.7e-10))) tmp = x * (z ^ y); else tmp = x - (b * (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -0.72], N[Not[LessEqual[y, 3.7e-10]], $MachinePrecision]], N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision], N[(x - N[(b * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -0.72 \lor \neg \left(y \leq 3.7 \cdot 10^{-10}\right):\\
\;\;\;\;x \cdot {z}^{y}\\
\mathbf{else}:\\
\;\;\;\;x - b \cdot \left(x \cdot a\right)\\
\end{array}
\end{array}
if y < -0.71999999999999997 or 3.70000000000000015e-10 < y Initial program 97.7%
Taylor expanded in y around inf 90.0%
Taylor expanded in t around 0 70.8%
if -0.71999999999999997 < y < 3.70000000000000015e-10Initial program 95.4%
Taylor expanded in b around inf 80.5%
mul-1-neg80.5%
distribute-rgt-neg-out80.5%
Simplified80.5%
Taylor expanded in a around 0 42.5%
mul-1-neg42.5%
unsub-neg42.5%
Simplified42.5%
cancel-sign-sub-inv42.5%
*-commutative42.5%
associate-*r*48.5%
Applied egg-rr48.5%
Final simplification59.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (* x (- z)))) (t_2 (* x (- 1.0 (* y t)))))
(if (<= a -1.32e+141)
t_1
(if (<= a -4.8e-80)
(* x (* y (- t)))
(if (<= a -2.05e-175)
t_1
(if (<= a 0.0175)
t_2
(if (<= a 2e+158)
(* a (* x (- b)))
(if (<= a 4e+201) t_2 (* x (* y t))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (x * -z);
double t_2 = x * (1.0 - (y * t));
double tmp;
if (a <= -1.32e+141) {
tmp = t_1;
} else if (a <= -4.8e-80) {
tmp = x * (y * -t);
} else if (a <= -2.05e-175) {
tmp = t_1;
} else if (a <= 0.0175) {
tmp = t_2;
} else if (a <= 2e+158) {
tmp = a * (x * -b);
} else if (a <= 4e+201) {
tmp = t_2;
} else {
tmp = x * (y * t);
}
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 * (x * -z)
t_2 = x * (1.0d0 - (y * t))
if (a <= (-1.32d+141)) then
tmp = t_1
else if (a <= (-4.8d-80)) then
tmp = x * (y * -t)
else if (a <= (-2.05d-175)) then
tmp = t_1
else if (a <= 0.0175d0) then
tmp = t_2
else if (a <= 2d+158) then
tmp = a * (x * -b)
else if (a <= 4d+201) then
tmp = t_2
else
tmp = x * (y * t)
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 = a * (x * -z);
double t_2 = x * (1.0 - (y * t));
double tmp;
if (a <= -1.32e+141) {
tmp = t_1;
} else if (a <= -4.8e-80) {
tmp = x * (y * -t);
} else if (a <= -2.05e-175) {
tmp = t_1;
} else if (a <= 0.0175) {
tmp = t_2;
} else if (a <= 2e+158) {
tmp = a * (x * -b);
} else if (a <= 4e+201) {
tmp = t_2;
} else {
tmp = x * (y * t);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (x * -z) t_2 = x * (1.0 - (y * t)) tmp = 0 if a <= -1.32e+141: tmp = t_1 elif a <= -4.8e-80: tmp = x * (y * -t) elif a <= -2.05e-175: tmp = t_1 elif a <= 0.0175: tmp = t_2 elif a <= 2e+158: tmp = a * (x * -b) elif a <= 4e+201: tmp = t_2 else: tmp = x * (y * t) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(x * Float64(-z))) t_2 = Float64(x * Float64(1.0 - Float64(y * t))) tmp = 0.0 if (a <= -1.32e+141) tmp = t_1; elseif (a <= -4.8e-80) tmp = Float64(x * Float64(y * Float64(-t))); elseif (a <= -2.05e-175) tmp = t_1; elseif (a <= 0.0175) tmp = t_2; elseif (a <= 2e+158) tmp = Float64(a * Float64(x * Float64(-b))); elseif (a <= 4e+201) tmp = t_2; else tmp = Float64(x * Float64(y * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (x * -z); t_2 = x * (1.0 - (y * t)); tmp = 0.0; if (a <= -1.32e+141) tmp = t_1; elseif (a <= -4.8e-80) tmp = x * (y * -t); elseif (a <= -2.05e-175) tmp = t_1; elseif (a <= 0.0175) tmp = t_2; elseif (a <= 2e+158) tmp = a * (x * -b); elseif (a <= 4e+201) tmp = t_2; else tmp = x * (y * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(x * (-z)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(1.0 - N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.32e+141], t$95$1, If[LessEqual[a, -4.8e-80], N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.05e-175], t$95$1, If[LessEqual[a, 0.0175], t$95$2, If[LessEqual[a, 2e+158], N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4e+201], t$95$2, N[(x * N[(y * t), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(x \cdot \left(-z\right)\right)\\
t_2 := x \cdot \left(1 - y \cdot t\right)\\
\mathbf{if}\;a \leq -1.32 \cdot 10^{+141}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{-80}:\\
\;\;\;\;x \cdot \left(y \cdot \left(-t\right)\right)\\
\mathbf{elif}\;a \leq -2.05 \cdot 10^{-175}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 0.0175:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 2 \cdot 10^{+158}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\mathbf{elif}\;a \leq 4 \cdot 10^{+201}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot t\right)\\
\end{array}
\end{array}
if a < -1.3200000000000001e141 or -4.7999999999999998e-80 < a < -2.04999999999999999e-175Initial program 92.7%
Taylor expanded in y around 0 54.7%
sub-neg54.7%
sub-neg54.7%
neg-mul-154.7%
log1p-def63.9%
neg-mul-163.9%
sub-neg63.9%
Simplified63.9%
Taylor expanded in b around 0 10.3%
Taylor expanded in z around 0 15.8%
neg-mul-115.8%
distribute-rgt-neg-in15.8%
Simplified15.8%
Taylor expanded in a around inf 31.4%
associate-*r*31.4%
neg-mul-131.4%
Simplified31.4%
if -1.3200000000000001e141 < a < -4.7999999999999998e-80Initial program 98.1%
Taylor expanded in t around inf 42.9%
mul-1-neg42.9%
distribute-lft-neg-out42.9%
*-commutative42.9%
Simplified42.9%
Taylor expanded in y around 0 19.4%
mul-1-neg19.4%
unsub-neg19.4%
*-commutative19.4%
Simplified19.4%
Taylor expanded in y around inf 24.2%
associate-*r*24.2%
neg-mul-124.2%
*-commutative24.2%
Simplified24.2%
if -2.04999999999999999e-175 < a < 0.017500000000000002 or 1.99999999999999991e158 < a < 4.00000000000000015e201Initial program 99.0%
Taylor expanded in t around inf 75.6%
mul-1-neg75.6%
distribute-lft-neg-out75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in y around 0 49.8%
mul-1-neg49.8%
unsub-neg49.8%
*-commutative49.8%
Simplified49.8%
if 0.017500000000000002 < a < 1.99999999999999991e158Initial program 96.9%
Taylor expanded in b around inf 63.5%
mul-1-neg63.5%
distribute-rgt-neg-out63.5%
Simplified63.5%
Taylor expanded in a around 0 24.2%
mul-1-neg24.2%
unsub-neg24.2%
Simplified24.2%
Taylor expanded in a around inf 24.0%
if 4.00000000000000015e201 < a Initial program 90.1%
Taylor expanded in t around inf 32.7%
mul-1-neg32.7%
distribute-lft-neg-out32.7%
*-commutative32.7%
Simplified32.7%
Taylor expanded in y around 0 3.6%
mul-1-neg3.6%
unsub-neg3.6%
*-commutative3.6%
Simplified3.6%
Taylor expanded in y around inf 41.6%
associate-*r*41.6%
neg-mul-141.6%
*-commutative41.6%
Simplified41.6%
expm1-log1p-u40.8%
expm1-udef50.5%
*-commutative50.5%
*-commutative50.5%
associate-*l*50.5%
add-sqr-sqrt30.2%
sqrt-unprod50.2%
sqr-neg50.2%
sqrt-unprod20.7%
add-sqr-sqrt51.1%
Applied egg-rr51.1%
expm1-def32.4%
expm1-log1p32.5%
associate-*r*46.3%
*-commutative46.3%
Simplified46.3%
Final simplification37.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- t) (* x y))))
(if (<= y -3e+88)
t_1
(if (<= y -4.5e-64)
(* a (* x (- b)))
(if (<= y -3.5e-75)
t_1
(if (<= y 0.5) (- x (* b (* x a))) (* x (* a (- b)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = -t * (x * y);
double tmp;
if (y <= -3e+88) {
tmp = t_1;
} else if (y <= -4.5e-64) {
tmp = a * (x * -b);
} else if (y <= -3.5e-75) {
tmp = t_1;
} else if (y <= 0.5) {
tmp = x - (b * (x * a));
} else {
tmp = x * (a * -b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = -t * (x * y)
if (y <= (-3d+88)) then
tmp = t_1
else if (y <= (-4.5d-64)) then
tmp = a * (x * -b)
else if (y <= (-3.5d-75)) then
tmp = t_1
else if (y <= 0.5d0) then
tmp = x - (b * (x * a))
else
tmp = x * (a * -b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = -t * (x * y);
double tmp;
if (y <= -3e+88) {
tmp = t_1;
} else if (y <= -4.5e-64) {
tmp = a * (x * -b);
} else if (y <= -3.5e-75) {
tmp = t_1;
} else if (y <= 0.5) {
tmp = x - (b * (x * a));
} else {
tmp = x * (a * -b);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = -t * (x * y) tmp = 0 if y <= -3e+88: tmp = t_1 elif y <= -4.5e-64: tmp = a * (x * -b) elif y <= -3.5e-75: tmp = t_1 elif y <= 0.5: tmp = x - (b * (x * a)) else: tmp = x * (a * -b) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(-t) * Float64(x * y)) tmp = 0.0 if (y <= -3e+88) tmp = t_1; elseif (y <= -4.5e-64) tmp = Float64(a * Float64(x * Float64(-b))); elseif (y <= -3.5e-75) tmp = t_1; elseif (y <= 0.5) tmp = Float64(x - Float64(b * Float64(x * a))); else tmp = Float64(x * Float64(a * Float64(-b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = -t * (x * y); tmp = 0.0; if (y <= -3e+88) tmp = t_1; elseif (y <= -4.5e-64) tmp = a * (x * -b); elseif (y <= -3.5e-75) tmp = t_1; elseif (y <= 0.5) tmp = x - (b * (x * a)); else tmp = x * (a * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[((-t) * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3e+88], t$95$1, If[LessEqual[y, -4.5e-64], N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.5e-75], t$95$1, If[LessEqual[y, 0.5], N[(x - N[(b * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-t\right) \cdot \left(x \cdot y\right)\\
\mathbf{if}\;y \leq -3 \cdot 10^{+88}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -4.5 \cdot 10^{-64}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq -3.5 \cdot 10^{-75}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 0.5:\\
\;\;\;\;x - b \cdot \left(x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if y < -3.00000000000000005e88 or -4.5000000000000001e-64 < y < -3.49999999999999985e-75Initial program 97.9%
Taylor expanded in t around inf 68.8%
mul-1-neg68.8%
distribute-lft-neg-out68.8%
*-commutative68.8%
Simplified68.8%
Taylor expanded in y around 0 21.5%
mul-1-neg21.5%
unsub-neg21.5%
*-commutative21.5%
Simplified21.5%
Taylor expanded in y around inf 27.5%
associate-*r*27.5%
neg-mul-127.5%
Simplified27.5%
if -3.00000000000000005e88 < y < -4.5000000000000001e-64Initial program 95.9%
Taylor expanded in b around inf 52.6%
mul-1-neg52.6%
distribute-rgt-neg-out52.6%
Simplified52.6%
Taylor expanded in a around 0 20.1%
mul-1-neg20.1%
unsub-neg20.1%
Simplified20.1%
Taylor expanded in a around inf 27.0%
if -3.49999999999999985e-75 < y < 0.5Initial program 95.1%
Taylor expanded in b around inf 81.1%
mul-1-neg81.1%
distribute-rgt-neg-out81.1%
Simplified81.1%
Taylor expanded in a around 0 44.3%
mul-1-neg44.3%
unsub-neg44.3%
Simplified44.3%
cancel-sign-sub-inv44.3%
*-commutative44.3%
associate-*r*50.8%
Applied egg-rr50.8%
if 0.5 < y Initial program 98.5%
Taylor expanded in b around inf 38.2%
mul-1-neg38.2%
distribute-rgt-neg-out38.2%
Simplified38.2%
Taylor expanded in a around 0 12.1%
mul-1-neg12.1%
unsub-neg12.1%
Simplified12.1%
Taylor expanded in a around inf 25.9%
mul-1-neg25.9%
associate-*r*26.9%
distribute-lft-neg-in26.9%
mul-1-neg26.9%
*-commutative26.9%
associate-*r*26.9%
neg-mul-126.9%
Simplified26.9%
Final simplification38.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (* a (- b)))))
(if (<= y -2.1e+85)
(* x (* y (- t)))
(if (<= y -1.5e-22)
t_1
(if (<= y -1.8e-101) (* a (* x (- z))) (if (<= y 1.05e-10) x t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (a * -b);
double tmp;
if (y <= -2.1e+85) {
tmp = x * (y * -t);
} else if (y <= -1.5e-22) {
tmp = t_1;
} else if (y <= -1.8e-101) {
tmp = a * (x * -z);
} else if (y <= 1.05e-10) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x * (a * -b)
if (y <= (-2.1d+85)) then
tmp = x * (y * -t)
else if (y <= (-1.5d-22)) then
tmp = t_1
else if (y <= (-1.8d-101)) then
tmp = a * (x * -z)
else if (y <= 1.05d-10) then
tmp = x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (a * -b);
double tmp;
if (y <= -2.1e+85) {
tmp = x * (y * -t);
} else if (y <= -1.5e-22) {
tmp = t_1;
} else if (y <= -1.8e-101) {
tmp = a * (x * -z);
} else if (y <= 1.05e-10) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * (a * -b) tmp = 0 if y <= -2.1e+85: tmp = x * (y * -t) elif y <= -1.5e-22: tmp = t_1 elif y <= -1.8e-101: tmp = a * (x * -z) elif y <= 1.05e-10: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(a * Float64(-b))) tmp = 0.0 if (y <= -2.1e+85) tmp = Float64(x * Float64(y * Float64(-t))); elseif (y <= -1.5e-22) tmp = t_1; elseif (y <= -1.8e-101) tmp = Float64(a * Float64(x * Float64(-z))); elseif (y <= 1.05e-10) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (a * -b); tmp = 0.0; if (y <= -2.1e+85) tmp = x * (y * -t); elseif (y <= -1.5e-22) tmp = t_1; elseif (y <= -1.8e-101) tmp = a * (x * -z); elseif (y <= 1.05e-10) tmp = x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.1e+85], N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.5e-22], t$95$1, If[LessEqual[y, -1.8e-101], N[(a * N[(x * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.05e-10], x, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(a \cdot \left(-b\right)\right)\\
\mathbf{if}\;y \leq -2.1 \cdot 10^{+85}:\\
\;\;\;\;x \cdot \left(y \cdot \left(-t\right)\right)\\
\mathbf{elif}\;y \leq -1.5 \cdot 10^{-22}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.8 \cdot 10^{-101}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-z\right)\right)\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{-10}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -2.1000000000000001e85Initial program 97.7%
Taylor expanded in t around inf 71.1%
mul-1-neg71.1%
distribute-lft-neg-out71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in y around 0 20.4%
mul-1-neg20.4%
unsub-neg20.4%
*-commutative20.4%
Simplified20.4%
Taylor expanded in y around inf 20.5%
associate-*r*20.5%
neg-mul-120.5%
*-commutative20.5%
Simplified20.5%
if -2.1000000000000001e85 < y < -1.5e-22 or 1.05e-10 < y Initial program 97.8%
Taylor expanded in b around inf 41.3%
mul-1-neg41.3%
distribute-rgt-neg-out41.3%
Simplified41.3%
Taylor expanded in a around 0 15.9%
mul-1-neg15.9%
unsub-neg15.9%
Simplified15.9%
Taylor expanded in a around inf 26.1%
mul-1-neg26.1%
associate-*r*26.7%
distribute-lft-neg-in26.7%
mul-1-neg26.7%
*-commutative26.7%
associate-*r*26.7%
neg-mul-126.7%
Simplified26.7%
if -1.5e-22 < y < -1.8e-101Initial program 93.2%
Taylor expanded in y around 0 65.8%
sub-neg65.8%
sub-neg65.8%
neg-mul-165.8%
log1p-def79.4%
neg-mul-179.4%
sub-neg79.4%
Simplified79.4%
Taylor expanded in b around 0 11.5%
Taylor expanded in z around 0 10.6%
neg-mul-110.6%
distribute-rgt-neg-in10.6%
Simplified10.6%
Taylor expanded in a around inf 37.6%
associate-*r*37.6%
neg-mul-137.6%
Simplified37.6%
if -1.8e-101 < y < 1.05e-10Initial program 95.4%
Taylor expanded in b around inf 83.8%
mul-1-neg83.8%
distribute-rgt-neg-out83.8%
Simplified83.8%
Taylor expanded in a around 0 40.5%
Final simplification32.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (* a (- b)))))
(if (<= y -1.7e+89)
(* (- t) (* x y))
(if (<= y -3.5e-24)
t_1
(if (<= y -1.8e-101) (* a (* x (- z))) (if (<= y 2.2e-12) x t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (a * -b);
double tmp;
if (y <= -1.7e+89) {
tmp = -t * (x * y);
} else if (y <= -3.5e-24) {
tmp = t_1;
} else if (y <= -1.8e-101) {
tmp = a * (x * -z);
} else if (y <= 2.2e-12) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x * (a * -b)
if (y <= (-1.7d+89)) then
tmp = -t * (x * y)
else if (y <= (-3.5d-24)) then
tmp = t_1
else if (y <= (-1.8d-101)) then
tmp = a * (x * -z)
else if (y <= 2.2d-12) then
tmp = x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (a * -b);
double tmp;
if (y <= -1.7e+89) {
tmp = -t * (x * y);
} else if (y <= -3.5e-24) {
tmp = t_1;
} else if (y <= -1.8e-101) {
tmp = a * (x * -z);
} else if (y <= 2.2e-12) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * (a * -b) tmp = 0 if y <= -1.7e+89: tmp = -t * (x * y) elif y <= -3.5e-24: tmp = t_1 elif y <= -1.8e-101: tmp = a * (x * -z) elif y <= 2.2e-12: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(a * Float64(-b))) tmp = 0.0 if (y <= -1.7e+89) tmp = Float64(Float64(-t) * Float64(x * y)); elseif (y <= -3.5e-24) tmp = t_1; elseif (y <= -1.8e-101) tmp = Float64(a * Float64(x * Float64(-z))); elseif (y <= 2.2e-12) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (a * -b); tmp = 0.0; if (y <= -1.7e+89) tmp = -t * (x * y); elseif (y <= -3.5e-24) tmp = t_1; elseif (y <= -1.8e-101) tmp = a * (x * -z); elseif (y <= 2.2e-12) tmp = x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.7e+89], N[((-t) * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.5e-24], t$95$1, If[LessEqual[y, -1.8e-101], N[(a * N[(x * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e-12], x, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(a \cdot \left(-b\right)\right)\\
\mathbf{if}\;y \leq -1.7 \cdot 10^{+89}:\\
\;\;\;\;\left(-t\right) \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;y \leq -3.5 \cdot 10^{-24}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.8 \cdot 10^{-101}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-z\right)\right)\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{-12}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.7000000000000001e89Initial program 97.7%
Taylor expanded in t around inf 71.1%
mul-1-neg71.1%
distribute-lft-neg-out71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in y around 0 20.4%
mul-1-neg20.4%
unsub-neg20.4%
*-commutative20.4%
Simplified20.4%
Taylor expanded in y around inf 22.6%
associate-*r*22.6%
neg-mul-122.6%
Simplified22.6%
if -1.7000000000000001e89 < y < -3.4999999999999996e-24 or 2.19999999999999992e-12 < y Initial program 97.8%
Taylor expanded in b around inf 41.3%
mul-1-neg41.3%
distribute-rgt-neg-out41.3%
Simplified41.3%
Taylor expanded in a around 0 15.9%
mul-1-neg15.9%
unsub-neg15.9%
Simplified15.9%
Taylor expanded in a around inf 26.1%
mul-1-neg26.1%
associate-*r*26.7%
distribute-lft-neg-in26.7%
mul-1-neg26.7%
*-commutative26.7%
associate-*r*26.7%
neg-mul-126.7%
Simplified26.7%
if -3.4999999999999996e-24 < y < -1.8e-101Initial program 93.2%
Taylor expanded in y around 0 65.8%
sub-neg65.8%
sub-neg65.8%
neg-mul-165.8%
log1p-def79.4%
neg-mul-179.4%
sub-neg79.4%
Simplified79.4%
Taylor expanded in b around 0 11.5%
Taylor expanded in z around 0 10.6%
neg-mul-110.6%
distribute-rgt-neg-in10.6%
Simplified10.6%
Taylor expanded in a around inf 37.6%
associate-*r*37.6%
neg-mul-137.6%
Simplified37.6%
if -1.8e-101 < y < 2.19999999999999992e-12Initial program 95.4%
Taylor expanded in b around inf 83.8%
mul-1-neg83.8%
distribute-rgt-neg-out83.8%
Simplified83.8%
Taylor expanded in a around 0 40.5%
Final simplification32.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -7.5e+86)
(* (- t) (* x y))
(if (<= y -7.5e-100)
(* a (* x (- b)))
(if (<= y 1.2e-12) (* x (- 1.0 (* z a))) (* x (* a (- b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -7.5e+86) {
tmp = -t * (x * y);
} else if (y <= -7.5e-100) {
tmp = a * (x * -b);
} else if (y <= 1.2e-12) {
tmp = x * (1.0 - (z * a));
} else {
tmp = x * (a * -b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-7.5d+86)) then
tmp = -t * (x * y)
else if (y <= (-7.5d-100)) then
tmp = a * (x * -b)
else if (y <= 1.2d-12) then
tmp = x * (1.0d0 - (z * a))
else
tmp = x * (a * -b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -7.5e+86) {
tmp = -t * (x * y);
} else if (y <= -7.5e-100) {
tmp = a * (x * -b);
} else if (y <= 1.2e-12) {
tmp = x * (1.0 - (z * a));
} else {
tmp = x * (a * -b);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -7.5e+86: tmp = -t * (x * y) elif y <= -7.5e-100: tmp = a * (x * -b) elif y <= 1.2e-12: tmp = x * (1.0 - (z * a)) else: tmp = x * (a * -b) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -7.5e+86) tmp = Float64(Float64(-t) * Float64(x * y)); elseif (y <= -7.5e-100) tmp = Float64(a * Float64(x * Float64(-b))); elseif (y <= 1.2e-12) tmp = Float64(x * Float64(1.0 - Float64(z * a))); else tmp = Float64(x * Float64(a * Float64(-b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -7.5e+86) tmp = -t * (x * y); elseif (y <= -7.5e-100) tmp = a * (x * -b); elseif (y <= 1.2e-12) tmp = x * (1.0 - (z * a)); else tmp = x * (a * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -7.5e+86], N[((-t) * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.5e-100], N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.2e-12], N[(x * N[(1.0 - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.5 \cdot 10^{+86}:\\
\;\;\;\;\left(-t\right) \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{-100}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{-12}:\\
\;\;\;\;x \cdot \left(1 - z \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if y < -7.4999999999999997e86Initial program 97.7%
Taylor expanded in t around inf 71.1%
mul-1-neg71.1%
distribute-lft-neg-out71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in y around 0 20.4%
mul-1-neg20.4%
unsub-neg20.4%
*-commutative20.4%
Simplified20.4%
Taylor expanded in y around inf 22.6%
associate-*r*22.6%
neg-mul-122.6%
Simplified22.6%
if -7.4999999999999997e86 < y < -7.50000000000000015e-100Initial program 94.1%
Taylor expanded in b around inf 53.9%
mul-1-neg53.9%
distribute-rgt-neg-out53.9%
Simplified53.9%
Taylor expanded in a around 0 21.4%
mul-1-neg21.4%
unsub-neg21.4%
Simplified21.4%
Taylor expanded in a around inf 26.5%
if -7.50000000000000015e-100 < y < 1.19999999999999994e-12Initial program 95.5%
Taylor expanded in y around 0 85.8%
sub-neg85.8%
sub-neg85.8%
neg-mul-185.8%
log1p-def90.3%
neg-mul-190.3%
sub-neg90.3%
Simplified90.3%
Taylor expanded in b around 0 42.5%
Taylor expanded in z around 0 42.4%
neg-mul-142.4%
distribute-rgt-neg-in42.4%
Simplified42.4%
Taylor expanded in x around 0 42.4%
mul-1-neg42.4%
unsub-neg42.4%
Simplified42.4%
if 1.19999999999999994e-12 < y Initial program 98.5%
Taylor expanded in b around inf 38.6%
mul-1-neg38.6%
distribute-rgt-neg-out38.6%
Simplified38.6%
Taylor expanded in a around 0 14.0%
mul-1-neg14.0%
unsub-neg14.0%
Simplified14.0%
Taylor expanded in a around inf 26.1%
mul-1-neg26.1%
associate-*r*27.1%
distribute-lft-neg-in27.1%
mul-1-neg27.1%
*-commutative27.1%
associate-*r*27.1%
neg-mul-127.1%
Simplified27.1%
Final simplification32.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (- 1.0 (* y t)))))
(if (<= t -8.5e+237)
t_1
(if (<= t -2.05e+97)
(* a (* x (- z)))
(if (<= t 1.85e+103) (- x (* a (* x b))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (1.0 - (y * t));
double tmp;
if (t <= -8.5e+237) {
tmp = t_1;
} else if (t <= -2.05e+97) {
tmp = a * (x * -z);
} else if (t <= 1.85e+103) {
tmp = x - (a * (x * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (y * t))
if (t <= (-8.5d+237)) then
tmp = t_1
else if (t <= (-2.05d+97)) then
tmp = a * (x * -z)
else if (t <= 1.85d+103) then
tmp = x - (a * (x * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (1.0 - (y * t));
double tmp;
if (t <= -8.5e+237) {
tmp = t_1;
} else if (t <= -2.05e+97) {
tmp = a * (x * -z);
} else if (t <= 1.85e+103) {
tmp = x - (a * (x * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * (1.0 - (y * t)) tmp = 0 if t <= -8.5e+237: tmp = t_1 elif t <= -2.05e+97: tmp = a * (x * -z) elif t <= 1.85e+103: tmp = x - (a * (x * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(1.0 - Float64(y * t))) tmp = 0.0 if (t <= -8.5e+237) tmp = t_1; elseif (t <= -2.05e+97) tmp = Float64(a * Float64(x * Float64(-z))); elseif (t <= 1.85e+103) tmp = Float64(x - Float64(a * Float64(x * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (1.0 - (y * t)); tmp = 0.0; if (t <= -8.5e+237) tmp = t_1; elseif (t <= -2.05e+97) tmp = a * (x * -z); elseif (t <= 1.85e+103) tmp = x - (a * (x * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.5e+237], t$95$1, If[LessEqual[t, -2.05e+97], N[(a * N[(x * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.85e+103], N[(x - N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - y \cdot t\right)\\
\mathbf{if}\;t \leq -8.5 \cdot 10^{+237}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -2.05 \cdot 10^{+97}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-z\right)\right)\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{+103}:\\
\;\;\;\;x - a \cdot \left(x \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -8.4999999999999994e237 or 1.85000000000000016e103 < t Initial program 96.3%
Taylor expanded in t around inf 82.4%
mul-1-neg82.4%
distribute-lft-neg-out82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in y around 0 36.4%
mul-1-neg36.4%
unsub-neg36.4%
*-commutative36.4%
Simplified36.4%
if -8.4999999999999994e237 < t < -2.04999999999999994e97Initial program 96.2%
Taylor expanded in y around 0 51.7%
sub-neg51.7%
sub-neg51.7%
neg-mul-151.7%
log1p-def55.5%
neg-mul-155.5%
sub-neg55.5%
Simplified55.5%
Taylor expanded in b around 0 8.1%
Taylor expanded in z around 0 7.7%
neg-mul-17.7%
distribute-rgt-neg-in7.7%
Simplified7.7%
Taylor expanded in a around inf 36.6%
associate-*r*36.6%
neg-mul-136.6%
Simplified36.6%
if -2.04999999999999994e97 < t < 1.85000000000000016e103Initial program 96.7%
Taylor expanded in b around inf 66.6%
mul-1-neg66.6%
distribute-rgt-neg-out66.6%
Simplified66.6%
Taylor expanded in a around 0 34.5%
mul-1-neg34.5%
unsub-neg34.5%
Simplified34.5%
Final simplification35.1%
(FPCore (x y z t a b) :precision binary64 (if (<= y -4.8e+87) (* x (* y (- t))) (if (or (<= y -1.7e-101) (not (<= y 4.8e-11))) (* x (* a (- b))) x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -4.8e+87) {
tmp = x * (y * -t);
} else if ((y <= -1.7e-101) || !(y <= 4.8e-11)) {
tmp = x * (a * -b);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-4.8d+87)) then
tmp = x * (y * -t)
else if ((y <= (-1.7d-101)) .or. (.not. (y <= 4.8d-11))) then
tmp = x * (a * -b)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -4.8e+87) {
tmp = x * (y * -t);
} else if ((y <= -1.7e-101) || !(y <= 4.8e-11)) {
tmp = x * (a * -b);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -4.8e+87: tmp = x * (y * -t) elif (y <= -1.7e-101) or not (y <= 4.8e-11): tmp = x * (a * -b) else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -4.8e+87) tmp = Float64(x * Float64(y * Float64(-t))); elseif ((y <= -1.7e-101) || !(y <= 4.8e-11)) tmp = Float64(x * Float64(a * Float64(-b))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -4.8e+87) tmp = x * (y * -t); elseif ((y <= -1.7e-101) || ~((y <= 4.8e-11))) tmp = x * (a * -b); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -4.8e+87], N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -1.7e-101], N[Not[LessEqual[y, 4.8e-11]], $MachinePrecision]], N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.8 \cdot 10^{+87}:\\
\;\;\;\;x \cdot \left(y \cdot \left(-t\right)\right)\\
\mathbf{elif}\;y \leq -1.7 \cdot 10^{-101} \lor \neg \left(y \leq 4.8 \cdot 10^{-11}\right):\\
\;\;\;\;x \cdot \left(a \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -4.79999999999999963e87Initial program 97.7%
Taylor expanded in t around inf 71.1%
mul-1-neg71.1%
distribute-lft-neg-out71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in y around 0 20.4%
mul-1-neg20.4%
unsub-neg20.4%
*-commutative20.4%
Simplified20.4%
Taylor expanded in y around inf 20.5%
associate-*r*20.5%
neg-mul-120.5%
*-commutative20.5%
Simplified20.5%
if -4.79999999999999963e87 < y < -1.69999999999999995e-101 or 4.8000000000000002e-11 < y Initial program 97.2%
Taylor expanded in b around inf 44.6%
mul-1-neg44.6%
distribute-rgt-neg-out44.6%
Simplified44.6%
Taylor expanded in a around 0 16.1%
mul-1-neg16.1%
unsub-neg16.1%
Simplified16.1%
Taylor expanded in a around inf 25.8%
mul-1-neg25.8%
associate-*r*25.5%
distribute-lft-neg-in25.5%
mul-1-neg25.5%
*-commutative25.5%
associate-*r*25.5%
neg-mul-125.5%
Simplified25.5%
if -1.69999999999999995e-101 < y < 4.8000000000000002e-11Initial program 95.4%
Taylor expanded in b around inf 83.8%
mul-1-neg83.8%
distribute-rgt-neg-out83.8%
Simplified83.8%
Taylor expanded in a around 0 40.5%
Final simplification30.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -8e+87)
(* (- t) (* x y))
(if (<= y -1.2e-101)
(* a (* x (- b)))
(if (<= y 1.6e-12) x (* x (* a (- b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -8e+87) {
tmp = -t * (x * y);
} else if (y <= -1.2e-101) {
tmp = a * (x * -b);
} else if (y <= 1.6e-12) {
tmp = x;
} else {
tmp = x * (a * -b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-8d+87)) then
tmp = -t * (x * y)
else if (y <= (-1.2d-101)) then
tmp = a * (x * -b)
else if (y <= 1.6d-12) then
tmp = x
else
tmp = x * (a * -b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -8e+87) {
tmp = -t * (x * y);
} else if (y <= -1.2e-101) {
tmp = a * (x * -b);
} else if (y <= 1.6e-12) {
tmp = x;
} else {
tmp = x * (a * -b);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -8e+87: tmp = -t * (x * y) elif y <= -1.2e-101: tmp = a * (x * -b) elif y <= 1.6e-12: tmp = x else: tmp = x * (a * -b) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -8e+87) tmp = Float64(Float64(-t) * Float64(x * y)); elseif (y <= -1.2e-101) tmp = Float64(a * Float64(x * Float64(-b))); elseif (y <= 1.6e-12) tmp = x; else tmp = Float64(x * Float64(a * Float64(-b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -8e+87) tmp = -t * (x * y); elseif (y <= -1.2e-101) tmp = a * (x * -b); elseif (y <= 1.6e-12) tmp = x; else tmp = x * (a * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -8e+87], N[((-t) * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.2e-101], N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.6e-12], x, N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8 \cdot 10^{+87}:\\
\;\;\;\;\left(-t\right) \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;y \leq -1.2 \cdot 10^{-101}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{-12}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if y < -7.9999999999999997e87Initial program 97.7%
Taylor expanded in t around inf 71.1%
mul-1-neg71.1%
distribute-lft-neg-out71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in y around 0 20.4%
mul-1-neg20.4%
unsub-neg20.4%
*-commutative20.4%
Simplified20.4%
Taylor expanded in y around inf 22.6%
associate-*r*22.6%
neg-mul-122.6%
Simplified22.6%
if -7.9999999999999997e87 < y < -1.2e-101Initial program 94.5%
Taylor expanded in b around inf 56.5%
mul-1-neg56.5%
distribute-rgt-neg-out56.5%
Simplified56.5%
Taylor expanded in a around 0 20.4%
mul-1-neg20.4%
unsub-neg20.4%
Simplified20.4%
Taylor expanded in a around inf 25.2%
if -1.2e-101 < y < 1.6e-12Initial program 95.4%
Taylor expanded in b around inf 83.8%
mul-1-neg83.8%
distribute-rgt-neg-out83.8%
Simplified83.8%
Taylor expanded in a around 0 40.5%
if 1.6e-12 < y Initial program 98.5%
Taylor expanded in b around inf 38.6%
mul-1-neg38.6%
distribute-rgt-neg-out38.6%
Simplified38.6%
Taylor expanded in a around 0 14.0%
mul-1-neg14.0%
unsub-neg14.0%
Simplified14.0%
Taylor expanded in a around inf 26.1%
mul-1-neg26.1%
associate-*r*27.1%
distribute-lft-neg-in27.1%
mul-1-neg27.1%
*-commutative27.1%
associate-*r*27.1%
neg-mul-127.1%
Simplified27.1%
Final simplification31.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -2.05e-101) (not (<= y 3.5e-10))) (* x (* y (- t))) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.05e-101) || !(y <= 3.5e-10)) {
tmp = x * (y * -t);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-2.05d-101)) .or. (.not. (y <= 3.5d-10))) then
tmp = x * (y * -t)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.05e-101) || !(y <= 3.5e-10)) {
tmp = x * (y * -t);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -2.05e-101) or not (y <= 3.5e-10): tmp = x * (y * -t) else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -2.05e-101) || !(y <= 3.5e-10)) tmp = Float64(x * Float64(y * Float64(-t))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -2.05e-101) || ~((y <= 3.5e-10))) tmp = x * (y * -t); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -2.05e-101], N[Not[LessEqual[y, 3.5e-10]], $MachinePrecision]], N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.05 \cdot 10^{-101} \lor \neg \left(y \leq 3.5 \cdot 10^{-10}\right):\\
\;\;\;\;x \cdot \left(y \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -2.05000000000000013e-101 or 3.4999999999999998e-10 < y Initial program 97.3%
Taylor expanded in t around inf 60.6%
mul-1-neg60.6%
distribute-lft-neg-out60.6%
*-commutative60.6%
Simplified60.6%
Taylor expanded in y around 0 17.3%
mul-1-neg17.3%
unsub-neg17.3%
*-commutative17.3%
Simplified17.3%
Taylor expanded in y around inf 17.4%
associate-*r*17.4%
neg-mul-117.4%
*-commutative17.4%
Simplified17.4%
if -2.05000000000000013e-101 < y < 3.4999999999999998e-10Initial program 95.4%
Taylor expanded in b around inf 83.9%
mul-1-neg83.9%
distribute-rgt-neg-out83.9%
Simplified83.9%
Taylor expanded in a around 0 40.2%
Final simplification27.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= a -5.8e-17) (not (<= a 3.4e+197))) (* t (* x y)) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -5.8e-17) || !(a <= 3.4e+197)) {
tmp = t * (x * y);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((a <= (-5.8d-17)) .or. (.not. (a <= 3.4d+197))) then
tmp = t * (x * y)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -5.8e-17) || !(a <= 3.4e+197)) {
tmp = t * (x * y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a <= -5.8e-17) or not (a <= 3.4e+197): tmp = t * (x * y) else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((a <= -5.8e-17) || !(a <= 3.4e+197)) tmp = Float64(t * Float64(x * y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a <= -5.8e-17) || ~((a <= 3.4e+197))) tmp = t * (x * y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -5.8e-17], N[Not[LessEqual[a, 3.4e+197]], $MachinePrecision]], N[(t * N[(x * y), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.8 \cdot 10^{-17} \lor \neg \left(a \leq 3.4 \cdot 10^{+197}\right):\\
\;\;\;\;t \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -5.8000000000000006e-17 or 3.40000000000000017e197 < a Initial program 91.8%
Taylor expanded in t around inf 36.3%
mul-1-neg36.3%
distribute-lft-neg-out36.3%
*-commutative36.3%
Simplified36.3%
Taylor expanded in y around 0 10.8%
mul-1-neg10.8%
unsub-neg10.8%
*-commutative10.8%
Simplified10.8%
Taylor expanded in y around inf 22.3%
associate-*r*22.3%
neg-mul-122.3%
*-commutative22.3%
Simplified22.3%
expm1-log1p-u19.4%
expm1-udef31.1%
*-commutative31.1%
*-commutative31.1%
associate-*l*31.1%
add-sqr-sqrt19.6%
sqrt-unprod29.6%
sqr-neg29.6%
sqrt-unprod11.4%
add-sqr-sqrt29.9%
Applied egg-rr29.9%
expm1-def17.2%
expm1-log1p17.5%
*-commutative17.5%
Simplified17.5%
if -5.8000000000000006e-17 < a < 3.40000000000000017e197Initial program 98.8%
Taylor expanded in b around inf 54.1%
mul-1-neg54.1%
distribute-rgt-neg-out54.1%
Simplified54.1%
Taylor expanded in a around 0 26.7%
Final simplification23.7%
(FPCore (x y z t a b) :precision binary64 (if (<= a -5.8e-13) (* t (* x y)) (if (<= a 4.2e+197) x (* x (* y t)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -5.8e-13) {
tmp = t * (x * y);
} else if (a <= 4.2e+197) {
tmp = x;
} else {
tmp = x * (y * t);
}
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 <= (-5.8d-13)) then
tmp = t * (x * y)
else if (a <= 4.2d+197) then
tmp = x
else
tmp = x * (y * t)
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 <= -5.8e-13) {
tmp = t * (x * y);
} else if (a <= 4.2e+197) {
tmp = x;
} else {
tmp = x * (y * t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -5.8e-13: tmp = t * (x * y) elif a <= 4.2e+197: tmp = x else: tmp = x * (y * t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -5.8e-13) tmp = Float64(t * Float64(x * y)); elseif (a <= 4.2e+197) tmp = x; else tmp = Float64(x * Float64(y * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= -5.8e-13) tmp = t * (x * y); elseif (a <= 4.2e+197) tmp = x; else tmp = x * (y * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -5.8e-13], N[(t * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.2e+197], x, N[(x * N[(y * t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.8 \cdot 10^{-13}:\\
\;\;\;\;t \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 4.2 \cdot 10^{+197}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot t\right)\\
\end{array}
\end{array}
if a < -5.7999999999999995e-13Initial program 92.3%
Taylor expanded in t around inf 37.5%
mul-1-neg37.5%
distribute-lft-neg-out37.5%
*-commutative37.5%
Simplified37.5%
Taylor expanded in y around 0 13.0%
mul-1-neg13.0%
unsub-neg13.0%
*-commutative13.0%
Simplified13.0%
Taylor expanded in y around inf 16.3%
associate-*r*16.3%
neg-mul-116.3%
*-commutative16.3%
Simplified16.3%
expm1-log1p-u12.6%
expm1-udef25.0%
*-commutative25.0%
*-commutative25.0%
associate-*l*25.0%
add-sqr-sqrt16.3%
sqrt-unprod23.0%
sqr-neg23.0%
sqrt-unprod8.4%
add-sqr-sqrt23.2%
Applied egg-rr23.2%
expm1-def12.4%
expm1-log1p12.7%
*-commutative12.7%
Simplified12.7%
if -5.7999999999999995e-13 < a < 4.20000000000000013e197Initial program 98.8%
Taylor expanded in b around inf 54.1%
mul-1-neg54.1%
distribute-rgt-neg-out54.1%
Simplified54.1%
Taylor expanded in a around 0 26.7%
if 4.20000000000000013e197 < a Initial program 90.1%
Taylor expanded in t around inf 32.7%
mul-1-neg32.7%
distribute-lft-neg-out32.7%
*-commutative32.7%
Simplified32.7%
Taylor expanded in y around 0 3.6%
mul-1-neg3.6%
unsub-neg3.6%
*-commutative3.6%
Simplified3.6%
Taylor expanded in y around inf 41.6%
associate-*r*41.6%
neg-mul-141.6%
*-commutative41.6%
Simplified41.6%
expm1-log1p-u40.8%
expm1-udef50.5%
*-commutative50.5%
*-commutative50.5%
associate-*l*50.5%
add-sqr-sqrt30.2%
sqrt-unprod50.2%
sqr-neg50.2%
sqrt-unprod20.7%
add-sqr-sqrt51.1%
Applied egg-rr51.1%
expm1-def32.4%
expm1-log1p32.5%
associate-*r*46.3%
*-commutative46.3%
Simplified46.3%
Final simplification24.8%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return 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 = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 96.5%
Taylor expanded in b around inf 59.5%
mul-1-neg59.5%
distribute-rgt-neg-out59.5%
Simplified59.5%
Taylor expanded in a around 0 19.8%
Final simplification19.8%
herbie shell --seed 2023308
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaApprox from math-functions-0.1.5.2, B"
:precision binary64
(* x (exp (+ (* y (- (log z) t)) (* a (- (log (- 1.0 z)) b))))))