
(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 18 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 95.8%
fma-define96.2%
sub-neg96.2%
log1p-define99.6%
Simplified99.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 95.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= a -1.8e+110) (not (<= a 5.2e+34))) (* x (exp (* a (- (- z) b)))) (* x (exp (* y (- (log z) t))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -1.8e+110) || !(a <= 5.2e+34)) {
tmp = x * exp((a * (-z - b)));
} else {
tmp = x * exp((y * (log(z) - 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 <= (-1.8d+110)) .or. (.not. (a <= 5.2d+34))) then
tmp = x * exp((a * (-z - b)))
else
tmp = x * exp((y * (log(z) - 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 <= -1.8e+110) || !(a <= 5.2e+34)) {
tmp = x * Math.exp((a * (-z - b)));
} else {
tmp = x * Math.exp((y * (Math.log(z) - t)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a <= -1.8e+110) or not (a <= 5.2e+34): tmp = x * math.exp((a * (-z - b))) else: tmp = x * math.exp((y * (math.log(z) - t))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((a <= -1.8e+110) || !(a <= 5.2e+34)) tmp = Float64(x * exp(Float64(a * Float64(Float64(-z) - b)))); else tmp = Float64(x * exp(Float64(y * Float64(log(z) - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a <= -1.8e+110) || ~((a <= 5.2e+34))) tmp = x * exp((a * (-z - b))); else tmp = x * exp((y * (log(z) - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -1.8e+110], N[Not[LessEqual[a, 5.2e+34]], $MachinePrecision]], N[(x * N[Exp[N[(a * N[((-z) - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(x * N[Exp[N[(y * N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.8 \cdot 10^{+110} \lor \neg \left(a \leq 5.2 \cdot 10^{+34}\right):\\
\;\;\;\;x \cdot e^{a \cdot \left(\left(-z\right) - b\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot e^{y \cdot \left(\log z - t\right)}\\
\end{array}
\end{array}
if a < -1.7999999999999998e110 or 5.19999999999999995e34 < a Initial program 89.1%
Taylor expanded in y around 0 72.7%
sub-neg72.7%
log1p-define86.8%
Simplified86.8%
Taylor expanded in z around 0 86.8%
associate-*r*86.8%
associate-*r*86.8%
distribute-lft-out86.8%
mul-1-neg86.8%
Simplified86.8%
if -1.7999999999999998e110 < a < 5.19999999999999995e34Initial program 99.4%
Taylor expanded in a around 0 89.1%
Final simplification88.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (exp (* a (- (- z) b))))) (t_2 (* x (exp (* y (- t))))))
(if (<= t -1600.0)
t_2
(if (<= t 3.6e-250)
t_1
(if (<= t 6.6e-12) (* x (pow z y)) (if (<= t 5.1e+56) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * exp((a * (-z - b)));
double t_2 = x * exp((y * -t));
double tmp;
if (t <= -1600.0) {
tmp = t_2;
} else if (t <= 3.6e-250) {
tmp = t_1;
} else if (t <= 6.6e-12) {
tmp = x * pow(z, y);
} else if (t <= 5.1e+56) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * exp((a * (-z - b)))
t_2 = x * exp((y * -t))
if (t <= (-1600.0d0)) then
tmp = t_2
else if (t <= 3.6d-250) then
tmp = t_1
else if (t <= 6.6d-12) then
tmp = x * (z ** y)
else if (t <= 5.1d+56) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * Math.exp((a * (-z - b)));
double t_2 = x * Math.exp((y * -t));
double tmp;
if (t <= -1600.0) {
tmp = t_2;
} else if (t <= 3.6e-250) {
tmp = t_1;
} else if (t <= 6.6e-12) {
tmp = x * Math.pow(z, y);
} else if (t <= 5.1e+56) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * math.exp((a * (-z - b))) t_2 = x * math.exp((y * -t)) tmp = 0 if t <= -1600.0: tmp = t_2 elif t <= 3.6e-250: tmp = t_1 elif t <= 6.6e-12: tmp = x * math.pow(z, y) elif t <= 5.1e+56: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * exp(Float64(a * Float64(Float64(-z) - b)))) t_2 = Float64(x * exp(Float64(y * Float64(-t)))) tmp = 0.0 if (t <= -1600.0) tmp = t_2; elseif (t <= 3.6e-250) tmp = t_1; elseif (t <= 6.6e-12) tmp = Float64(x * (z ^ y)); elseif (t <= 5.1e+56) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * exp((a * (-z - b))); t_2 = x * exp((y * -t)); tmp = 0.0; if (t <= -1600.0) tmp = t_2; elseif (t <= 3.6e-250) tmp = t_1; elseif (t <= 6.6e-12) tmp = x * (z ^ y); elseif (t <= 5.1e+56) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[Exp[N[(a * N[((-z) - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[Exp[N[(y * (-t)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1600.0], t$95$2, If[LessEqual[t, 3.6e-250], t$95$1, If[LessEqual[t, 6.6e-12], N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.1e+56], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot e^{a \cdot \left(\left(-z\right) - b\right)}\\
t_2 := x \cdot e^{y \cdot \left(-t\right)}\\
\mathbf{if}\;t \leq -1600:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{-250}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{-12}:\\
\;\;\;\;x \cdot {z}^{y}\\
\mathbf{elif}\;t \leq 5.1 \cdot 10^{+56}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1600 or 5.1000000000000002e56 < t Initial program 99.2%
Taylor expanded in t around inf 84.4%
mul-1-neg84.4%
distribute-lft-neg-out84.4%
*-commutative84.4%
Simplified84.4%
if -1600 < t < 3.59999999999999982e-250 or 6.6000000000000001e-12 < t < 5.1000000000000002e56Initial program 92.3%
Taylor expanded in y around 0 66.7%
sub-neg66.7%
log1p-define73.1%
Simplified73.1%
Taylor expanded in z around 0 73.1%
associate-*r*73.1%
associate-*r*73.1%
distribute-lft-out73.1%
mul-1-neg73.1%
Simplified73.1%
if 3.59999999999999982e-250 < t < 6.6000000000000001e-12Initial program 92.1%
Taylor expanded in a around 0 80.1%
Taylor expanded in t around 0 80.1%
Final simplification80.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -300.0) (not (<= t 2e+48))) (* x (exp (* y (- t)))) (* x (pow z y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -300.0) || !(t <= 2e+48)) {
tmp = x * exp((y * -t));
} 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 ((t <= (-300.0d0)) .or. (.not. (t <= 2d+48))) then
tmp = x * exp((y * -t))
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 ((t <= -300.0) || !(t <= 2e+48)) {
tmp = x * Math.exp((y * -t));
} else {
tmp = x * Math.pow(z, y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -300.0) or not (t <= 2e+48): tmp = x * math.exp((y * -t)) else: tmp = x * math.pow(z, y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -300.0) || !(t <= 2e+48)) tmp = Float64(x * exp(Float64(y * Float64(-t)))); else tmp = Float64(x * (z ^ y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -300.0) || ~((t <= 2e+48))) tmp = x * exp((y * -t)); else tmp = x * (z ^ y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -300.0], N[Not[LessEqual[t, 2e+48]], $MachinePrecision]], N[(x * N[Exp[N[(y * (-t)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -300 \lor \neg \left(t \leq 2 \cdot 10^{+48}\right):\\
\;\;\;\;x \cdot e^{y \cdot \left(-t\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot {z}^{y}\\
\end{array}
\end{array}
if t < -300 or 2.00000000000000009e48 < t Initial program 99.2%
Taylor expanded in t around inf 83.9%
mul-1-neg83.9%
distribute-lft-neg-out83.9%
*-commutative83.9%
Simplified83.9%
if -300 < t < 2.00000000000000009e48Initial program 92.0%
Taylor expanded in a around 0 66.3%
Taylor expanded in t around 0 66.3%
Final simplification75.5%
(FPCore (x y z t a b) :precision binary64 (if (<= t -1.55e+104) (* (- a) (* x z)) (* x (pow z y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1.55e+104) {
tmp = -a * (x * z);
} 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 (t <= (-1.55d+104)) then
tmp = -a * (x * z)
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 (t <= -1.55e+104) {
tmp = -a * (x * z);
} else {
tmp = x * Math.pow(z, y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -1.55e+104: tmp = -a * (x * z) else: tmp = x * math.pow(z, y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -1.55e+104) tmp = Float64(Float64(-a) * Float64(x * z)); else tmp = Float64(x * (z ^ y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -1.55e+104) tmp = -a * (x * z); else tmp = x * (z ^ y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1.55e+104], N[((-a) * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.55 \cdot 10^{+104}:\\
\;\;\;\;\left(-a\right) \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot {z}^{y}\\
\end{array}
\end{array}
if t < -1.55000000000000008e104Initial program 97.6%
Taylor expanded in y around 0 38.6%
sub-neg38.6%
log1p-define45.3%
Simplified45.3%
Taylor expanded in b around 0 8.4%
Taylor expanded in z around 0 5.9%
mul-1-neg5.9%
unsub-neg5.9%
*-commutative5.9%
Simplified5.9%
Taylor expanded in z around inf 27.0%
associate-*r*27.0%
mul-1-neg27.0%
Simplified27.0%
if -1.55000000000000008e104 < t Initial program 95.4%
Taylor expanded in a around 0 73.7%
Taylor expanded in t around 0 60.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (* y (- t)))))
(if (<= y -3.2e+148)
t_1
(if (<= y -1020.0)
(* a (* x (- b)))
(if (<= y -7e-76) t_1 (if (<= y 5e-14) x (* (- a) (* x z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (y * -t);
double tmp;
if (y <= -3.2e+148) {
tmp = t_1;
} else if (y <= -1020.0) {
tmp = a * (x * -b);
} else if (y <= -7e-76) {
tmp = t_1;
} else if (y <= 5e-14) {
tmp = x;
} else {
tmp = -a * (x * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x * (y * -t)
if (y <= (-3.2d+148)) then
tmp = t_1
else if (y <= (-1020.0d0)) then
tmp = a * (x * -b)
else if (y <= (-7d-76)) then
tmp = t_1
else if (y <= 5d-14) then
tmp = x
else
tmp = -a * (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (y * -t);
double tmp;
if (y <= -3.2e+148) {
tmp = t_1;
} else if (y <= -1020.0) {
tmp = a * (x * -b);
} else if (y <= -7e-76) {
tmp = t_1;
} else if (y <= 5e-14) {
tmp = x;
} else {
tmp = -a * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * (y * -t) tmp = 0 if y <= -3.2e+148: tmp = t_1 elif y <= -1020.0: tmp = a * (x * -b) elif y <= -7e-76: tmp = t_1 elif y <= 5e-14: tmp = x else: tmp = -a * (x * z) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(y * Float64(-t))) tmp = 0.0 if (y <= -3.2e+148) tmp = t_1; elseif (y <= -1020.0) tmp = Float64(a * Float64(x * Float64(-b))); elseif (y <= -7e-76) tmp = t_1; elseif (y <= 5e-14) tmp = x; else tmp = Float64(Float64(-a) * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (y * -t); tmp = 0.0; if (y <= -3.2e+148) tmp = t_1; elseif (y <= -1020.0) tmp = a * (x * -b); elseif (y <= -7e-76) tmp = t_1; elseif (y <= 5e-14) tmp = x; else tmp = -a * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.2e+148], t$95$1, If[LessEqual[y, -1020.0], N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7e-76], t$95$1, If[LessEqual[y, 5e-14], x, N[((-a) * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot \left(-t\right)\right)\\
\mathbf{if}\;y \leq -3.2 \cdot 10^{+148}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1020:\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq -7 \cdot 10^{-76}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 5 \cdot 10^{-14}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if y < -3.1999999999999999e148 or -1020 < y < -6.99999999999999995e-76Initial program 96.8%
Taylor expanded in t around inf 69.7%
mul-1-neg69.7%
distribute-lft-neg-out69.7%
*-commutative69.7%
Simplified69.7%
Taylor expanded in y around 0 26.6%
mul-1-neg26.6%
unsub-neg26.6%
*-commutative26.6%
Simplified26.6%
Taylor expanded in t around inf 26.7%
mul-1-neg26.7%
associate-*r*23.6%
*-commutative23.6%
distribute-rgt-neg-in23.6%
distribute-rgt-neg-in23.6%
Simplified23.6%
Taylor expanded in y around 0 26.7%
mul-1-neg26.7%
*-commutative26.7%
associate-*r*25.1%
distribute-rgt-neg-in25.1%
*-commutative25.1%
distribute-rgt-neg-in25.1%
Simplified25.1%
if -3.1999999999999999e148 < y < -1020Initial program 92.4%
Taylor expanded in b around inf 36.7%
associate-*r*36.7%
mul-1-neg36.7%
Simplified36.7%
Taylor expanded in a around 0 14.2%
mul-1-neg14.2%
unsub-neg14.2%
associate-*r*14.3%
Simplified14.3%
Taylor expanded in a around inf 32.3%
mul-1-neg32.3%
distribute-lft-neg-in32.3%
*-commutative32.3%
Simplified32.3%
if -6.99999999999999995e-76 < y < 5.0000000000000002e-14Initial program 94.4%
Taylor expanded in t around inf 59.8%
mul-1-neg59.8%
distribute-lft-neg-out59.8%
*-commutative59.8%
Simplified59.8%
Taylor expanded in y around 0 37.4%
if 5.0000000000000002e-14 < y Initial program 98.5%
Taylor expanded in y around 0 36.5%
sub-neg36.5%
log1p-define41.1%
Simplified41.1%
Taylor expanded in b around 0 4.0%
Taylor expanded in z around 0 5.2%
mul-1-neg5.2%
unsub-neg5.2%
*-commutative5.2%
Simplified5.2%
Taylor expanded in z around inf 31.8%
associate-*r*31.8%
mul-1-neg31.8%
Simplified31.8%
Final simplification32.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (* y (- t)))))
(if (<= y -5.2e+148)
t_1
(if (<= y -3500000.0)
(* a (* x (- b)))
(if (<= y -6.5e-76) t_1 (if (<= y 3.8e-14) x (* z (* x (- a)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (y * -t);
double tmp;
if (y <= -5.2e+148) {
tmp = t_1;
} else if (y <= -3500000.0) {
tmp = a * (x * -b);
} else if (y <= -6.5e-76) {
tmp = t_1;
} else if (y <= 3.8e-14) {
tmp = x;
} else {
tmp = z * (x * -a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x * (y * -t)
if (y <= (-5.2d+148)) then
tmp = t_1
else if (y <= (-3500000.0d0)) then
tmp = a * (x * -b)
else if (y <= (-6.5d-76)) then
tmp = t_1
else if (y <= 3.8d-14) then
tmp = x
else
tmp = z * (x * -a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (y * -t);
double tmp;
if (y <= -5.2e+148) {
tmp = t_1;
} else if (y <= -3500000.0) {
tmp = a * (x * -b);
} else if (y <= -6.5e-76) {
tmp = t_1;
} else if (y <= 3.8e-14) {
tmp = x;
} else {
tmp = z * (x * -a);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * (y * -t) tmp = 0 if y <= -5.2e+148: tmp = t_1 elif y <= -3500000.0: tmp = a * (x * -b) elif y <= -6.5e-76: tmp = t_1 elif y <= 3.8e-14: tmp = x else: tmp = z * (x * -a) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(y * Float64(-t))) tmp = 0.0 if (y <= -5.2e+148) tmp = t_1; elseif (y <= -3500000.0) tmp = Float64(a * Float64(x * Float64(-b))); elseif (y <= -6.5e-76) tmp = t_1; elseif (y <= 3.8e-14) tmp = x; else tmp = Float64(z * Float64(x * Float64(-a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (y * -t); tmp = 0.0; if (y <= -5.2e+148) tmp = t_1; elseif (y <= -3500000.0) tmp = a * (x * -b); elseif (y <= -6.5e-76) tmp = t_1; elseif (y <= 3.8e-14) tmp = x; else tmp = z * (x * -a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.2e+148], t$95$1, If[LessEqual[y, -3500000.0], N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -6.5e-76], t$95$1, If[LessEqual[y, 3.8e-14], x, N[(z * N[(x * (-a)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot \left(-t\right)\right)\\
\mathbf{if}\;y \leq -5.2 \cdot 10^{+148}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3500000:\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq -6.5 \cdot 10^{-76}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{-14}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot \left(-a\right)\right)\\
\end{array}
\end{array}
if y < -5.2e148 or -3.5e6 < y < -6.5e-76Initial program 96.8%
Taylor expanded in t around inf 69.7%
mul-1-neg69.7%
distribute-lft-neg-out69.7%
*-commutative69.7%
Simplified69.7%
Taylor expanded in y around 0 26.6%
mul-1-neg26.6%
unsub-neg26.6%
*-commutative26.6%
Simplified26.6%
Taylor expanded in t around inf 26.7%
mul-1-neg26.7%
associate-*r*23.6%
*-commutative23.6%
distribute-rgt-neg-in23.6%
distribute-rgt-neg-in23.6%
Simplified23.6%
Taylor expanded in y around 0 26.7%
mul-1-neg26.7%
*-commutative26.7%
associate-*r*25.1%
distribute-rgt-neg-in25.1%
*-commutative25.1%
distribute-rgt-neg-in25.1%
Simplified25.1%
if -5.2e148 < y < -3.5e6Initial program 92.4%
Taylor expanded in b around inf 36.7%
associate-*r*36.7%
mul-1-neg36.7%
Simplified36.7%
Taylor expanded in a around 0 14.2%
mul-1-neg14.2%
unsub-neg14.2%
associate-*r*14.3%
Simplified14.3%
Taylor expanded in a around inf 32.3%
mul-1-neg32.3%
distribute-lft-neg-in32.3%
*-commutative32.3%
Simplified32.3%
if -6.5e-76 < y < 3.8000000000000002e-14Initial program 94.4%
Taylor expanded in t around inf 59.8%
mul-1-neg59.8%
distribute-lft-neg-out59.8%
*-commutative59.8%
Simplified59.8%
Taylor expanded in y around 0 37.4%
if 3.8000000000000002e-14 < y Initial program 98.5%
Taylor expanded in y around 0 36.5%
sub-neg36.5%
log1p-define41.1%
Simplified41.1%
Taylor expanded in b around 0 4.0%
Taylor expanded in z around 0 5.2%
mul-1-neg5.2%
unsub-neg5.2%
*-commutative5.2%
Simplified5.2%
Taylor expanded in z around inf 31.8%
associate-*r*27.4%
associate-*r*27.4%
*-commutative27.4%
mul-1-neg27.4%
*-commutative27.4%
distribute-rgt-neg-in27.4%
Simplified27.4%
Final simplification31.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (* x (- a)))) (t_2 (* x (* y (- t)))))
(if (<= y -2.4e+141)
t_2
(if (<= y -8.8e-39)
t_1
(if (<= y -3.1e-76) t_2 (if (<= y 1.05e-16) x t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (x * -a);
double t_2 = x * (y * -t);
double tmp;
if (y <= -2.4e+141) {
tmp = t_2;
} else if (y <= -8.8e-39) {
tmp = t_1;
} else if (y <= -3.1e-76) {
tmp = t_2;
} else if (y <= 1.05e-16) {
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) :: t_2
real(8) :: tmp
t_1 = z * (x * -a)
t_2 = x * (y * -t)
if (y <= (-2.4d+141)) then
tmp = t_2
else if (y <= (-8.8d-39)) then
tmp = t_1
else if (y <= (-3.1d-76)) then
tmp = t_2
else if (y <= 1.05d-16) 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 = z * (x * -a);
double t_2 = x * (y * -t);
double tmp;
if (y <= -2.4e+141) {
tmp = t_2;
} else if (y <= -8.8e-39) {
tmp = t_1;
} else if (y <= -3.1e-76) {
tmp = t_2;
} else if (y <= 1.05e-16) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * (x * -a) t_2 = x * (y * -t) tmp = 0 if y <= -2.4e+141: tmp = t_2 elif y <= -8.8e-39: tmp = t_1 elif y <= -3.1e-76: tmp = t_2 elif y <= 1.05e-16: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(x * Float64(-a))) t_2 = Float64(x * Float64(y * Float64(-t))) tmp = 0.0 if (y <= -2.4e+141) tmp = t_2; elseif (y <= -8.8e-39) tmp = t_1; elseif (y <= -3.1e-76) tmp = t_2; elseif (y <= 1.05e-16) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * (x * -a); t_2 = x * (y * -t); tmp = 0.0; if (y <= -2.4e+141) tmp = t_2; elseif (y <= -8.8e-39) tmp = t_1; elseif (y <= -3.1e-76) tmp = t_2; elseif (y <= 1.05e-16) tmp = x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.4e+141], t$95$2, If[LessEqual[y, -8.8e-39], t$95$1, If[LessEqual[y, -3.1e-76], t$95$2, If[LessEqual[y, 1.05e-16], x, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot \left(-a\right)\right)\\
t_2 := x \cdot \left(y \cdot \left(-t\right)\right)\\
\mathbf{if}\;y \leq -2.4 \cdot 10^{+141}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -8.8 \cdot 10^{-39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3.1 \cdot 10^{-76}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{-16}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.39999999999999997e141 or -8.80000000000000003e-39 < y < -3.0999999999999997e-76Initial program 96.5%
Taylor expanded in t around inf 71.6%
mul-1-neg71.6%
distribute-lft-neg-out71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in y around 0 29.1%
mul-1-neg29.1%
unsub-neg29.1%
*-commutative29.1%
Simplified29.1%
Taylor expanded in t around inf 29.1%
mul-1-neg29.1%
associate-*r*25.7%
*-commutative25.7%
distribute-rgt-neg-in25.7%
distribute-rgt-neg-in25.7%
Simplified25.7%
Taylor expanded in y around 0 29.1%
mul-1-neg29.1%
*-commutative29.1%
associate-*r*27.3%
distribute-rgt-neg-in27.3%
*-commutative27.3%
distribute-rgt-neg-in27.3%
Simplified27.3%
if -2.39999999999999997e141 < y < -8.80000000000000003e-39 or 1.0500000000000001e-16 < y Initial program 96.9%
Taylor expanded in y around 0 37.5%
sub-neg37.5%
log1p-define42.6%
Simplified42.6%
Taylor expanded in b around 0 3.8%
Taylor expanded in z around 0 5.6%
mul-1-neg5.6%
unsub-neg5.6%
*-commutative5.6%
Simplified5.6%
Taylor expanded in z around inf 30.1%
associate-*r*27.2%
associate-*r*27.2%
*-commutative27.2%
mul-1-neg27.2%
*-commutative27.2%
distribute-rgt-neg-in27.2%
Simplified27.2%
if -3.0999999999999997e-76 < y < 1.0500000000000001e-16Initial program 94.4%
Taylor expanded in t around inf 59.8%
mul-1-neg59.8%
distribute-lft-neg-out59.8%
*-commutative59.8%
Simplified59.8%
Taylor expanded in y around 0 37.4%
Final simplification31.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -3.5e+148)
(* t (* y (- x)))
(if (<= y -2.3e-67)
(* a (* x (- b)))
(if (<= y 1.4e-9) (- x (* x (* a (+ z b)))) (* (- a) (* x z))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -3.5e+148) {
tmp = t * (y * -x);
} else if (y <= -2.3e-67) {
tmp = a * (x * -b);
} else if (y <= 1.4e-9) {
tmp = x - (x * (a * (z + b)));
} else {
tmp = -a * (x * z);
}
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 <= (-3.5d+148)) then
tmp = t * (y * -x)
else if (y <= (-2.3d-67)) then
tmp = a * (x * -b)
else if (y <= 1.4d-9) then
tmp = x - (x * (a * (z + b)))
else
tmp = -a * (x * z)
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 <= -3.5e+148) {
tmp = t * (y * -x);
} else if (y <= -2.3e-67) {
tmp = a * (x * -b);
} else if (y <= 1.4e-9) {
tmp = x - (x * (a * (z + b)));
} else {
tmp = -a * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -3.5e+148: tmp = t * (y * -x) elif y <= -2.3e-67: tmp = a * (x * -b) elif y <= 1.4e-9: tmp = x - (x * (a * (z + b))) else: tmp = -a * (x * z) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -3.5e+148) tmp = Float64(t * Float64(y * Float64(-x))); elseif (y <= -2.3e-67) tmp = Float64(a * Float64(x * Float64(-b))); elseif (y <= 1.4e-9) tmp = Float64(x - Float64(x * Float64(a * Float64(z + b)))); else tmp = Float64(Float64(-a) * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -3.5e+148) tmp = t * (y * -x); elseif (y <= -2.3e-67) tmp = a * (x * -b); elseif (y <= 1.4e-9) tmp = x - (x * (a * (z + b))); else tmp = -a * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -3.5e+148], N[(t * N[(y * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.3e-67], N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.4e-9], N[(x - N[(x * N[(a * N[(z + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-a) * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.5 \cdot 10^{+148}:\\
\;\;\;\;t \cdot \left(y \cdot \left(-x\right)\right)\\
\mathbf{elif}\;y \leq -2.3 \cdot 10^{-67}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{-9}:\\
\;\;\;\;x - x \cdot \left(a \cdot \left(z + b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if y < -3.4999999999999999e148Initial program 100.0%
Taylor expanded in t around inf 72.1%
mul-1-neg72.1%
distribute-lft-neg-out72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in y around 0 30.3%
mul-1-neg30.3%
unsub-neg30.3%
*-commutative30.3%
Simplified30.3%
Taylor expanded in t around inf 30.3%
if -3.4999999999999999e148 < y < -2.3e-67Initial program 90.9%
Taylor expanded in b around inf 37.1%
associate-*r*37.1%
mul-1-neg37.1%
Simplified37.1%
Taylor expanded in a around 0 9.8%
mul-1-neg9.8%
unsub-neg9.8%
associate-*r*9.9%
Simplified9.9%
Taylor expanded in a around inf 24.9%
mul-1-neg24.9%
distribute-lft-neg-in24.9%
*-commutative24.9%
Simplified24.9%
if -2.3e-67 < y < 1.39999999999999992e-9Initial program 94.5%
Taylor expanded in y around 0 77.0%
sub-neg77.0%
log1p-define81.5%
Simplified81.5%
Taylor expanded in z around 0 81.5%
associate-*r*81.5%
associate-*r*81.5%
distribute-lft-out81.5%
mul-1-neg81.5%
Simplified81.5%
Taylor expanded in a around 0 45.4%
mul-1-neg45.4%
unsub-neg45.4%
*-commutative45.4%
associate-*l*45.3%
*-commutative45.3%
Simplified45.3%
if 1.39999999999999992e-9 < y Initial program 98.5%
Taylor expanded in y around 0 36.5%
sub-neg36.5%
log1p-define41.1%
Simplified41.1%
Taylor expanded in b around 0 4.0%
Taylor expanded in z around 0 5.2%
mul-1-neg5.2%
unsub-neg5.2%
*-commutative5.2%
Simplified5.2%
Taylor expanded in z around inf 31.8%
associate-*r*31.8%
mul-1-neg31.8%
Simplified31.8%
Final simplification36.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -2.9e+148)
(* t (* y (- x)))
(if (<= y -3e-66)
(* a (* x (- b)))
(if (<= y 3.8e-14) (- x (* a (* x b))) (* (- a) (* x z))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.9e+148) {
tmp = t * (y * -x);
} else if (y <= -3e-66) {
tmp = a * (x * -b);
} else if (y <= 3.8e-14) {
tmp = x - (a * (x * b));
} else {
tmp = -a * (x * z);
}
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.9d+148)) then
tmp = t * (y * -x)
else if (y <= (-3d-66)) then
tmp = a * (x * -b)
else if (y <= 3.8d-14) then
tmp = x - (a * (x * b))
else
tmp = -a * (x * z)
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.9e+148) {
tmp = t * (y * -x);
} else if (y <= -3e-66) {
tmp = a * (x * -b);
} else if (y <= 3.8e-14) {
tmp = x - (a * (x * b));
} else {
tmp = -a * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -2.9e+148: tmp = t * (y * -x) elif y <= -3e-66: tmp = a * (x * -b) elif y <= 3.8e-14: tmp = x - (a * (x * b)) else: tmp = -a * (x * z) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -2.9e+148) tmp = Float64(t * Float64(y * Float64(-x))); elseif (y <= -3e-66) tmp = Float64(a * Float64(x * Float64(-b))); elseif (y <= 3.8e-14) tmp = Float64(x - Float64(a * Float64(x * b))); else tmp = Float64(Float64(-a) * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -2.9e+148) tmp = t * (y * -x); elseif (y <= -3e-66) tmp = a * (x * -b); elseif (y <= 3.8e-14) tmp = x - (a * (x * b)); else tmp = -a * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.9e+148], N[(t * N[(y * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3e-66], N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.8e-14], N[(x - N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-a) * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.9 \cdot 10^{+148}:\\
\;\;\;\;t \cdot \left(y \cdot \left(-x\right)\right)\\
\mathbf{elif}\;y \leq -3 \cdot 10^{-66}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{-14}:\\
\;\;\;\;x - a \cdot \left(x \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if y < -2.9e148Initial program 100.0%
Taylor expanded in t around inf 72.1%
mul-1-neg72.1%
distribute-lft-neg-out72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in y around 0 30.3%
mul-1-neg30.3%
unsub-neg30.3%
*-commutative30.3%
Simplified30.3%
Taylor expanded in t around inf 30.3%
if -2.9e148 < y < -3.0000000000000002e-66Initial program 90.9%
Taylor expanded in b around inf 37.1%
associate-*r*37.1%
mul-1-neg37.1%
Simplified37.1%
Taylor expanded in a around 0 9.8%
mul-1-neg9.8%
unsub-neg9.8%
associate-*r*9.9%
Simplified9.9%
Taylor expanded in a around inf 24.9%
mul-1-neg24.9%
distribute-lft-neg-in24.9%
*-commutative24.9%
Simplified24.9%
if -3.0000000000000002e-66 < y < 3.8000000000000002e-14Initial program 94.5%
Taylor expanded in b around inf 75.2%
associate-*r*75.2%
mul-1-neg75.2%
Simplified75.2%
Taylor expanded in a around 0 42.7%
mul-1-neg42.7%
unsub-neg42.7%
associate-*r*42.6%
Simplified42.6%
Taylor expanded in a around 0 42.7%
*-commutative42.7%
Simplified42.7%
if 3.8000000000000002e-14 < y Initial program 98.5%
Taylor expanded in y around 0 36.5%
sub-neg36.5%
log1p-define41.1%
Simplified41.1%
Taylor expanded in b around 0 4.0%
Taylor expanded in z around 0 5.2%
mul-1-neg5.2%
unsub-neg5.2%
*-commutative5.2%
Simplified5.2%
Taylor expanded in z around inf 31.8%
associate-*r*31.8%
mul-1-neg31.8%
Simplified31.8%
Final simplification35.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -3.5e+148)
(* t (* y (- x)))
(if (<= y -3e-66)
(* a (* x (- b)))
(if (<= y 2.6e-10) (* x (- 1.0 (* a b))) (* (- a) (* x z))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -3.5e+148) {
tmp = t * (y * -x);
} else if (y <= -3e-66) {
tmp = a * (x * -b);
} else if (y <= 2.6e-10) {
tmp = x * (1.0 - (a * b));
} else {
tmp = -a * (x * z);
}
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 <= (-3.5d+148)) then
tmp = t * (y * -x)
else if (y <= (-3d-66)) then
tmp = a * (x * -b)
else if (y <= 2.6d-10) then
tmp = x * (1.0d0 - (a * b))
else
tmp = -a * (x * z)
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 <= -3.5e+148) {
tmp = t * (y * -x);
} else if (y <= -3e-66) {
tmp = a * (x * -b);
} else if (y <= 2.6e-10) {
tmp = x * (1.0 - (a * b));
} else {
tmp = -a * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -3.5e+148: tmp = t * (y * -x) elif y <= -3e-66: tmp = a * (x * -b) elif y <= 2.6e-10: tmp = x * (1.0 - (a * b)) else: tmp = -a * (x * z) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -3.5e+148) tmp = Float64(t * Float64(y * Float64(-x))); elseif (y <= -3e-66) tmp = Float64(a * Float64(x * Float64(-b))); elseif (y <= 2.6e-10) tmp = Float64(x * Float64(1.0 - Float64(a * b))); else tmp = Float64(Float64(-a) * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -3.5e+148) tmp = t * (y * -x); elseif (y <= -3e-66) tmp = a * (x * -b); elseif (y <= 2.6e-10) tmp = x * (1.0 - (a * b)); else tmp = -a * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -3.5e+148], N[(t * N[(y * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3e-66], N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.6e-10], N[(x * N[(1.0 - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-a) * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.5 \cdot 10^{+148}:\\
\;\;\;\;t \cdot \left(y \cdot \left(-x\right)\right)\\
\mathbf{elif}\;y \leq -3 \cdot 10^{-66}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{-10}:\\
\;\;\;\;x \cdot \left(1 - a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if y < -3.4999999999999999e148Initial program 100.0%
Taylor expanded in t around inf 72.1%
mul-1-neg72.1%
distribute-lft-neg-out72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in y around 0 30.3%
mul-1-neg30.3%
unsub-neg30.3%
*-commutative30.3%
Simplified30.3%
Taylor expanded in t around inf 30.3%
if -3.4999999999999999e148 < y < -3.0000000000000002e-66Initial program 90.9%
Taylor expanded in b around inf 37.1%
associate-*r*37.1%
mul-1-neg37.1%
Simplified37.1%
Taylor expanded in a around 0 9.8%
mul-1-neg9.8%
unsub-neg9.8%
associate-*r*9.9%
Simplified9.9%
Taylor expanded in a around inf 24.9%
mul-1-neg24.9%
distribute-lft-neg-in24.9%
*-commutative24.9%
Simplified24.9%
if -3.0000000000000002e-66 < y < 2.59999999999999981e-10Initial program 94.5%
Taylor expanded in b around inf 75.2%
associate-*r*75.2%
mul-1-neg75.2%
Simplified75.2%
Taylor expanded in a around 0 42.6%
mul-1-neg42.6%
unsub-neg42.6%
Simplified42.6%
if 2.59999999999999981e-10 < y Initial program 98.5%
Taylor expanded in y around 0 36.5%
sub-neg36.5%
log1p-define41.1%
Simplified41.1%
Taylor expanded in b around 0 4.0%
Taylor expanded in z around 0 5.2%
mul-1-neg5.2%
unsub-neg5.2%
*-commutative5.2%
Simplified5.2%
Taylor expanded in z around inf 31.8%
associate-*r*31.8%
mul-1-neg31.8%
Simplified31.8%
Final simplification34.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -3e+150)
(* t (* y (- x)))
(if (<= y -1.5e-68)
(* a (* x (- b)))
(if (<= y 5.8e-12) x (* (- a) (* x z))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -3e+150) {
tmp = t * (y * -x);
} else if (y <= -1.5e-68) {
tmp = a * (x * -b);
} else if (y <= 5.8e-12) {
tmp = x;
} else {
tmp = -a * (x * z);
}
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 <= (-3d+150)) then
tmp = t * (y * -x)
else if (y <= (-1.5d-68)) then
tmp = a * (x * -b)
else if (y <= 5.8d-12) then
tmp = x
else
tmp = -a * (x * z)
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 <= -3e+150) {
tmp = t * (y * -x);
} else if (y <= -1.5e-68) {
tmp = a * (x * -b);
} else if (y <= 5.8e-12) {
tmp = x;
} else {
tmp = -a * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -3e+150: tmp = t * (y * -x) elif y <= -1.5e-68: tmp = a * (x * -b) elif y <= 5.8e-12: tmp = x else: tmp = -a * (x * z) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -3e+150) tmp = Float64(t * Float64(y * Float64(-x))); elseif (y <= -1.5e-68) tmp = Float64(a * Float64(x * Float64(-b))); elseif (y <= 5.8e-12) tmp = x; else tmp = Float64(Float64(-a) * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -3e+150) tmp = t * (y * -x); elseif (y <= -1.5e-68) tmp = a * (x * -b); elseif (y <= 5.8e-12) tmp = x; else tmp = -a * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -3e+150], N[(t * N[(y * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.5e-68], N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.8e-12], x, N[((-a) * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3 \cdot 10^{+150}:\\
\;\;\;\;t \cdot \left(y \cdot \left(-x\right)\right)\\
\mathbf{elif}\;y \leq -1.5 \cdot 10^{-68}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq 5.8 \cdot 10^{-12}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if y < -3.00000000000000012e150Initial program 100.0%
Taylor expanded in t around inf 72.1%
mul-1-neg72.1%
distribute-lft-neg-out72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in y around 0 30.3%
mul-1-neg30.3%
unsub-neg30.3%
*-commutative30.3%
Simplified30.3%
Taylor expanded in t around inf 30.3%
if -3.00000000000000012e150 < y < -1.5e-68Initial program 90.9%
Taylor expanded in b around inf 37.1%
associate-*r*37.1%
mul-1-neg37.1%
Simplified37.1%
Taylor expanded in a around 0 9.8%
mul-1-neg9.8%
unsub-neg9.8%
associate-*r*9.9%
Simplified9.9%
Taylor expanded in a around inf 24.9%
mul-1-neg24.9%
distribute-lft-neg-in24.9%
*-commutative24.9%
Simplified24.9%
if -1.5e-68 < y < 5.8000000000000003e-12Initial program 94.5%
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 36.8%
if 5.8000000000000003e-12 < y Initial program 98.5%
Taylor expanded in y around 0 36.5%
sub-neg36.5%
log1p-define41.1%
Simplified41.1%
Taylor expanded in b around 0 4.0%
Taylor expanded in z around 0 5.2%
mul-1-neg5.2%
unsub-neg5.2%
*-commutative5.2%
Simplified5.2%
Taylor expanded in z around inf 31.8%
associate-*r*31.8%
mul-1-neg31.8%
Simplified31.8%
Final simplification32.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -2.3e-67) (not (<= y 5.2e-12))) (* (* a b) (- x)) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.3e-67) || !(y <= 5.2e-12)) {
tmp = (a * b) * -x;
} 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.3d-67)) .or. (.not. (y <= 5.2d-12))) then
tmp = (a * b) * -x
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.3e-67) || !(y <= 5.2e-12)) {
tmp = (a * b) * -x;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -2.3e-67) or not (y <= 5.2e-12): tmp = (a * b) * -x else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -2.3e-67) || !(y <= 5.2e-12)) tmp = Float64(Float64(a * b) * Float64(-x)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -2.3e-67) || ~((y <= 5.2e-12))) tmp = (a * b) * -x; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -2.3e-67], N[Not[LessEqual[y, 5.2e-12]], $MachinePrecision]], N[(N[(a * b), $MachinePrecision] * (-x)), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.3 \cdot 10^{-67} \lor \neg \left(y \leq 5.2 \cdot 10^{-12}\right):\\
\;\;\;\;\left(a \cdot b\right) \cdot \left(-x\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -2.3e-67 or 5.19999999999999965e-12 < y Initial program 96.7%
Taylor expanded in b around inf 35.2%
associate-*r*35.2%
mul-1-neg35.2%
Simplified35.2%
Taylor expanded in a around 0 10.4%
mul-1-neg10.4%
unsub-neg10.4%
associate-*r*10.4%
Simplified10.4%
Taylor expanded in a around inf 21.5%
associate-*r*18.4%
associate-*r*18.4%
*-commutative18.4%
mul-1-neg18.4%
*-commutative18.4%
distribute-rgt-neg-in18.4%
Simplified18.4%
if -2.3e-67 < y < 5.19999999999999965e-12Initial program 94.5%
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 36.8%
Final simplification26.1%
(FPCore (x y z t a b) :precision binary64 (if (<= y -4.7e-76) (* x (* y (- t))) (if (<= y 6.2e-8) x (* y (* x (- t))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -4.7e-76) {
tmp = x * (y * -t);
} else if (y <= 6.2e-8) {
tmp = x;
} else {
tmp = y * (x * -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 (y <= (-4.7d-76)) then
tmp = x * (y * -t)
else if (y <= 6.2d-8) then
tmp = x
else
tmp = y * (x * -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 (y <= -4.7e-76) {
tmp = x * (y * -t);
} else if (y <= 6.2e-8) {
tmp = x;
} else {
tmp = y * (x * -t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -4.7e-76: tmp = x * (y * -t) elif y <= 6.2e-8: tmp = x else: tmp = y * (x * -t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -4.7e-76) tmp = Float64(x * Float64(y * Float64(-t))); elseif (y <= 6.2e-8) tmp = x; else tmp = Float64(y * Float64(x * Float64(-t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -4.7e-76) tmp = x * (y * -t); elseif (y <= 6.2e-8) tmp = x; else tmp = y * (x * -t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -4.7e-76], N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.2e-8], x, N[(y * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.7 \cdot 10^{-76}:\\
\;\;\;\;x \cdot \left(y \cdot \left(-t\right)\right)\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{-8}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot \left(-t\right)\right)\\
\end{array}
\end{array}
if y < -4.7000000000000002e-76Initial program 95.5%
Taylor expanded in t around inf 65.3%
mul-1-neg65.3%
distribute-lft-neg-out65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in y around 0 21.7%
mul-1-neg21.7%
unsub-neg21.7%
*-commutative21.7%
Simplified21.7%
Taylor expanded in t around inf 21.6%
mul-1-neg21.6%
associate-*r*19.4%
*-commutative19.4%
distribute-rgt-neg-in19.4%
distribute-rgt-neg-in19.4%
Simplified19.4%
Taylor expanded in y around 0 21.6%
mul-1-neg21.6%
*-commutative21.6%
associate-*r*21.6%
distribute-rgt-neg-in21.6%
*-commutative21.6%
distribute-rgt-neg-in21.6%
Simplified21.6%
if -4.7000000000000002e-76 < y < 6.2e-8Initial program 94.5%
Taylor expanded in t around inf 60.2%
mul-1-neg60.2%
distribute-lft-neg-out60.2%
*-commutative60.2%
Simplified60.2%
Taylor expanded in y around 0 37.1%
if 6.2e-8 < y Initial program 98.4%
Taylor expanded in t around inf 61.7%
mul-1-neg61.7%
distribute-lft-neg-out61.7%
*-commutative61.7%
Simplified61.7%
Taylor expanded in y around 0 12.7%
mul-1-neg12.7%
unsub-neg12.7%
*-commutative12.7%
Simplified12.7%
Taylor expanded in t around inf 17.2%
mul-1-neg17.2%
associate-*r*24.6%
*-commutative24.6%
distribute-rgt-neg-in24.6%
distribute-rgt-neg-in24.6%
Simplified24.6%
Final simplification28.8%
(FPCore (x y z t a b) :precision binary64 (if (<= y -7e-76) (* x (* y (- t))) (if (<= y 1.65e-13) x (* (* a b) (- x)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -7e-76) {
tmp = x * (y * -t);
} else if (y <= 1.65e-13) {
tmp = x;
} else {
tmp = (a * b) * -x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-7d-76)) then
tmp = x * (y * -t)
else if (y <= 1.65d-13) then
tmp = x
else
tmp = (a * b) * -x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -7e-76) {
tmp = x * (y * -t);
} else if (y <= 1.65e-13) {
tmp = x;
} else {
tmp = (a * b) * -x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -7e-76: tmp = x * (y * -t) elif y <= 1.65e-13: tmp = x else: tmp = (a * b) * -x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -7e-76) tmp = Float64(x * Float64(y * Float64(-t))); elseif (y <= 1.65e-13) tmp = x; else tmp = Float64(Float64(a * b) * Float64(-x)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -7e-76) tmp = x * (y * -t); elseif (y <= 1.65e-13) tmp = x; else tmp = (a * b) * -x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -7e-76], N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e-13], x, N[(N[(a * b), $MachinePrecision] * (-x)), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7 \cdot 10^{-76}:\\
\;\;\;\;x \cdot \left(y \cdot \left(-t\right)\right)\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{-13}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot b\right) \cdot \left(-x\right)\\
\end{array}
\end{array}
if y < -6.99999999999999995e-76Initial program 95.5%
Taylor expanded in t around inf 65.3%
mul-1-neg65.3%
distribute-lft-neg-out65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in y around 0 21.7%
mul-1-neg21.7%
unsub-neg21.7%
*-commutative21.7%
Simplified21.7%
Taylor expanded in t around inf 21.6%
mul-1-neg21.6%
associate-*r*19.4%
*-commutative19.4%
distribute-rgt-neg-in19.4%
distribute-rgt-neg-in19.4%
Simplified19.4%
Taylor expanded in y around 0 21.6%
mul-1-neg21.6%
*-commutative21.6%
associate-*r*21.6%
distribute-rgt-neg-in21.6%
*-commutative21.6%
distribute-rgt-neg-in21.6%
Simplified21.6%
if -6.99999999999999995e-76 < y < 1.65e-13Initial program 94.4%
Taylor expanded in t around inf 59.8%
mul-1-neg59.8%
distribute-lft-neg-out59.8%
*-commutative59.8%
Simplified59.8%
Taylor expanded in y around 0 37.4%
if 1.65e-13 < y Initial program 98.5%
Taylor expanded in b around inf 39.6%
associate-*r*39.6%
mul-1-neg39.6%
Simplified39.6%
Taylor expanded in a around 0 9.3%
mul-1-neg9.3%
unsub-neg9.3%
associate-*r*10.9%
Simplified10.9%
Taylor expanded in a around inf 22.7%
associate-*r*21.3%
associate-*r*21.3%
*-commutative21.3%
mul-1-neg21.3%
*-commutative21.3%
distribute-rgt-neg-in21.3%
Simplified21.3%
Final simplification28.0%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.05e+185) (* x (* y t)) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.05e+185) {
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 (b <= (-2.05d+185)) 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 (b <= -2.05e+185) {
tmp = x * (y * t);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.05e+185: tmp = x * (y * t) else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.05e+185) tmp = Float64(x * Float64(y * t)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.05e+185) tmp = x * (y * t); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.05e+185], N[(x * N[(y * t), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.05 \cdot 10^{+185}:\\
\;\;\;\;x \cdot \left(y \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if b < -2.05e185Initial program 95.8%
Taylor expanded in t around inf 36.2%
mul-1-neg36.2%
distribute-lft-neg-out36.2%
*-commutative36.2%
Simplified36.2%
Taylor expanded in y around 0 11.7%
mul-1-neg11.7%
unsub-neg11.7%
*-commutative11.7%
Simplified11.7%
Taylor expanded in t around inf 23.3%
mul-1-neg23.3%
associate-*r*23.7%
*-commutative23.7%
distribute-rgt-neg-in23.7%
distribute-rgt-neg-in23.7%
Simplified23.7%
pow123.7%
associate-*r*23.3%
*-commutative23.3%
add-sqr-sqrt14.0%
sqrt-unprod39.1%
sqr-neg39.1%
sqrt-unprod17.5%
add-sqr-sqrt26.3%
Applied egg-rr26.3%
unpow126.3%
*-commutative26.3%
Simplified26.3%
if -2.05e185 < b Initial program 95.8%
Taylor expanded in t around inf 65.0%
mul-1-neg65.0%
distribute-lft-neg-out65.0%
*-commutative65.0%
Simplified65.0%
Taylor expanded in y around 0 18.6%
Final simplification19.4%
(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 95.8%
Taylor expanded in t around inf 62.3%
mul-1-neg62.3%
distribute-lft-neg-out62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in y around 0 17.7%
herbie shell --seed 2024086
(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))))))