
(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 20 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.1%
fma-define95.5%
sub-neg95.5%
log1p-define99.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 95.1%
Final simplification95.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -2.85e-24) (not (<= y 1.8e-54))) (* x (exp (* y (- (log z) t)))) (* x (exp (* (- a) (+ z b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.85e-24) || !(y <= 1.8e-54)) {
tmp = x * exp((y * (log(z) - t)));
} else {
tmp = x * exp((-a * (z + 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.85d-24)) .or. (.not. (y <= 1.8d-54))) then
tmp = x * exp((y * (log(z) - t)))
else
tmp = x * exp((-a * (z + 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.85e-24) || !(y <= 1.8e-54)) {
tmp = x * Math.exp((y * (Math.log(z) - t)));
} else {
tmp = x * Math.exp((-a * (z + b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -2.85e-24) or not (y <= 1.8e-54): tmp = x * math.exp((y * (math.log(z) - t))) else: tmp = x * math.exp((-a * (z + b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -2.85e-24) || !(y <= 1.8e-54)) tmp = Float64(x * exp(Float64(y * Float64(log(z) - t)))); else tmp = Float64(x * exp(Float64(Float64(-a) * Float64(z + b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -2.85e-24) || ~((y <= 1.8e-54))) tmp = x * exp((y * (log(z) - t))); else tmp = x * exp((-a * (z + b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -2.85e-24], N[Not[LessEqual[y, 1.8e-54]], $MachinePrecision]], N[(x * N[Exp[N[(y * N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(x * N[Exp[N[((-a) * N[(z + b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.85 \cdot 10^{-24} \lor \neg \left(y \leq 1.8 \cdot 10^{-54}\right):\\
\;\;\;\;x \cdot e^{y \cdot \left(\log z - t\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot e^{\left(-a\right) \cdot \left(z + b\right)}\\
\end{array}
\end{array}
if y < -2.85000000000000001e-24 or 1.79999999999999988e-54 < y Initial program 99.3%
Taylor expanded in y around inf 87.6%
if -2.85000000000000001e-24 < y < 1.79999999999999988e-54Initial program 89.7%
Taylor expanded in y around 0 81.6%
sub-neg81.6%
log1p-define90.9%
Simplified90.9%
Taylor expanded in z around 0 90.9%
associate-*r*90.9%
associate-*r*90.9%
distribute-lft-out90.9%
mul-1-neg90.9%
Simplified90.9%
Final simplification89.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (exp (* a (- b)))) (t_2 (exp (* y (- t)))))
(if (<= y -1.75e-31)
t_2
(if (<= y -8.5e-118)
t_1
(if (<= y -9.2e-195)
(- x (* y (* x t)))
(if (<= y -7.5e-274)
t_1
(if (<= y 2.25e-68) (- x (* x (* a (+ z b)))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = exp((a * -b));
double t_2 = exp((y * -t));
double tmp;
if (y <= -1.75e-31) {
tmp = t_2;
} else if (y <= -8.5e-118) {
tmp = t_1;
} else if (y <= -9.2e-195) {
tmp = x - (y * (x * t));
} else if (y <= -7.5e-274) {
tmp = t_1;
} else if (y <= 2.25e-68) {
tmp = x - (x * (a * (z + b)));
} 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 = exp((a * -b))
t_2 = exp((y * -t))
if (y <= (-1.75d-31)) then
tmp = t_2
else if (y <= (-8.5d-118)) then
tmp = t_1
else if (y <= (-9.2d-195)) then
tmp = x - (y * (x * t))
else if (y <= (-7.5d-274)) then
tmp = t_1
else if (y <= 2.25d-68) then
tmp = x - (x * (a * (z + b)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = Math.exp((a * -b));
double t_2 = Math.exp((y * -t));
double tmp;
if (y <= -1.75e-31) {
tmp = t_2;
} else if (y <= -8.5e-118) {
tmp = t_1;
} else if (y <= -9.2e-195) {
tmp = x - (y * (x * t));
} else if (y <= -7.5e-274) {
tmp = t_1;
} else if (y <= 2.25e-68) {
tmp = x - (x * (a * (z + b)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.exp((a * -b)) t_2 = math.exp((y * -t)) tmp = 0 if y <= -1.75e-31: tmp = t_2 elif y <= -8.5e-118: tmp = t_1 elif y <= -9.2e-195: tmp = x - (y * (x * t)) elif y <= -7.5e-274: tmp = t_1 elif y <= 2.25e-68: tmp = x - (x * (a * (z + b))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = exp(Float64(a * Float64(-b))) t_2 = exp(Float64(y * Float64(-t))) tmp = 0.0 if (y <= -1.75e-31) tmp = t_2; elseif (y <= -8.5e-118) tmp = t_1; elseif (y <= -9.2e-195) tmp = Float64(x - Float64(y * Float64(x * t))); elseif (y <= -7.5e-274) tmp = t_1; elseif (y <= 2.25e-68) tmp = Float64(x - Float64(x * Float64(a * Float64(z + b)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = exp((a * -b)); t_2 = exp((y * -t)); tmp = 0.0; if (y <= -1.75e-31) tmp = t_2; elseif (y <= -8.5e-118) tmp = t_1; elseif (y <= -9.2e-195) tmp = x - (y * (x * t)); elseif (y <= -7.5e-274) tmp = t_1; elseif (y <= 2.25e-68) tmp = x - (x * (a * (z + b))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[Exp[N[(a * (-b)), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[Exp[N[(y * (-t)), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y, -1.75e-31], t$95$2, If[LessEqual[y, -8.5e-118], t$95$1, If[LessEqual[y, -9.2e-195], N[(x - N[(y * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.5e-274], t$95$1, If[LessEqual[y, 2.25e-68], N[(x - N[(x * N[(a * N[(z + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := e^{a \cdot \left(-b\right)}\\
t_2 := e^{y \cdot \left(-t\right)}\\
\mathbf{if}\;y \leq -1.75 \cdot 10^{-31}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -8.5 \cdot 10^{-118}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -9.2 \cdot 10^{-195}:\\
\;\;\;\;x - y \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{-274}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.25 \cdot 10^{-68}:\\
\;\;\;\;x - x \cdot \left(a \cdot \left(z + b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -1.74999999999999993e-31 or 2.25e-68 < y Initial program 99.3%
add-exp-log70.8%
*-commutative70.8%
log-prod42.4%
Applied egg-rr42.4%
Taylor expanded in t around inf 44.1%
associate-*r*44.1%
mul-1-neg44.1%
Simplified44.1%
if -1.74999999999999993e-31 < y < -8.50000000000000087e-118 or -9.2000000000000007e-195 < y < -7.49999999999999968e-274Initial program 88.0%
add-exp-log62.5%
*-commutative62.5%
log-prod40.6%
Applied egg-rr40.3%
Taylor expanded in b around inf 54.1%
associate-*r*54.1%
neg-mul-154.1%
Simplified54.1%
if -8.50000000000000087e-118 < y < -9.2000000000000007e-195Initial program 91.2%
Taylor expanded in t around inf 82.7%
mul-1-neg82.7%
distribute-lft-neg-out82.7%
*-commutative82.7%
Simplified82.7%
Taylor expanded in y around 0 65.2%
mul-1-neg65.2%
unsub-neg65.2%
associate-*r*73.8%
*-commutative73.8%
Simplified73.8%
if -7.49999999999999968e-274 < y < 2.25e-68Initial program 89.5%
Taylor expanded in y around 0 82.8%
sub-neg82.8%
log1p-define91.7%
Simplified91.7%
Taylor expanded in z around 0 91.7%
associate-*r*91.7%
associate-*r*91.7%
distribute-lft-out91.7%
mul-1-neg91.7%
Simplified91.7%
Taylor expanded in a around 0 55.8%
mul-1-neg55.8%
unsub-neg55.8%
*-commutative55.8%
associate-*l*57.3%
*-commutative57.3%
Simplified57.3%
Final simplification50.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (pow z y))) (t_2 (exp (* y (- t)))))
(if (<= t -5e+25)
t_2
(if (<= t -2.15e-191)
t_1
(if (<= t 1.6e-266) (exp (* a (- b))) (if (<= t 1.22e+87) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * pow(z, y);
double t_2 = exp((y * -t));
double tmp;
if (t <= -5e+25) {
tmp = t_2;
} else if (t <= -2.15e-191) {
tmp = t_1;
} else if (t <= 1.6e-266) {
tmp = exp((a * -b));
} else if (t <= 1.22e+87) {
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 * (z ** y)
t_2 = exp((y * -t))
if (t <= (-5d+25)) then
tmp = t_2
else if (t <= (-2.15d-191)) then
tmp = t_1
else if (t <= 1.6d-266) then
tmp = exp((a * -b))
else if (t <= 1.22d+87) 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.pow(z, y);
double t_2 = Math.exp((y * -t));
double tmp;
if (t <= -5e+25) {
tmp = t_2;
} else if (t <= -2.15e-191) {
tmp = t_1;
} else if (t <= 1.6e-266) {
tmp = Math.exp((a * -b));
} else if (t <= 1.22e+87) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * math.pow(z, y) t_2 = math.exp((y * -t)) tmp = 0 if t <= -5e+25: tmp = t_2 elif t <= -2.15e-191: tmp = t_1 elif t <= 1.6e-266: tmp = math.exp((a * -b)) elif t <= 1.22e+87: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * (z ^ y)) t_2 = exp(Float64(y * Float64(-t))) tmp = 0.0 if (t <= -5e+25) tmp = t_2; elseif (t <= -2.15e-191) tmp = t_1; elseif (t <= 1.6e-266) tmp = exp(Float64(a * Float64(-b))); elseif (t <= 1.22e+87) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (z ^ y); t_2 = exp((y * -t)); tmp = 0.0; if (t <= -5e+25) tmp = t_2; elseif (t <= -2.15e-191) tmp = t_1; elseif (t <= 1.6e-266) tmp = exp((a * -b)); elseif (t <= 1.22e+87) 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[Power[z, y], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Exp[N[(y * (-t)), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t, -5e+25], t$95$2, If[LessEqual[t, -2.15e-191], t$95$1, If[LessEqual[t, 1.6e-266], N[Exp[N[(a * (-b)), $MachinePrecision]], $MachinePrecision], If[LessEqual[t, 1.22e+87], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot {z}^{y}\\
t_2 := e^{y \cdot \left(-t\right)}\\
\mathbf{if}\;t \leq -5 \cdot 10^{+25}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -2.15 \cdot 10^{-191}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{-266}:\\
\;\;\;\;e^{a \cdot \left(-b\right)}\\
\mathbf{elif}\;t \leq 1.22 \cdot 10^{+87}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -5.00000000000000024e25 or 1.2200000000000001e87 < t Initial program 97.3%
add-exp-log67.8%
*-commutative67.8%
log-prod43.5%
Applied egg-rr42.5%
Taylor expanded in t around inf 54.1%
associate-*r*54.1%
mul-1-neg54.1%
Simplified54.1%
if -5.00000000000000024e25 < t < -2.14999999999999992e-191 or 1.6e-266 < t < 1.2200000000000001e87Initial program 93.5%
Taylor expanded in y around inf 67.0%
Taylor expanded in t around 0 66.6%
if -2.14999999999999992e-191 < t < 1.6e-266Initial program 93.6%
add-exp-log66.4%
*-commutative66.4%
log-prod39.8%
Applied egg-rr42.5%
Taylor expanded in b around inf 50.9%
associate-*r*50.9%
neg-mul-150.9%
Simplified50.9%
Final simplification59.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -9e+26) (not (<= y 1.75e-54))) (* x (exp (* y (- t)))) (* x (exp (* (- a) (+ z b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -9e+26) || !(y <= 1.75e-54)) {
tmp = x * exp((y * -t));
} else {
tmp = x * exp((-a * (z + 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 <= (-9d+26)) .or. (.not. (y <= 1.75d-54))) then
tmp = x * exp((y * -t))
else
tmp = x * exp((-a * (z + 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 <= -9e+26) || !(y <= 1.75e-54)) {
tmp = x * Math.exp((y * -t));
} else {
tmp = x * Math.exp((-a * (z + b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -9e+26) or not (y <= 1.75e-54): tmp = x * math.exp((y * -t)) else: tmp = x * math.exp((-a * (z + b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -9e+26) || !(y <= 1.75e-54)) tmp = Float64(x * exp(Float64(y * Float64(-t)))); else tmp = Float64(x * exp(Float64(Float64(-a) * Float64(z + b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -9e+26) || ~((y <= 1.75e-54))) tmp = x * exp((y * -t)); else tmp = x * exp((-a * (z + b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -9e+26], N[Not[LessEqual[y, 1.75e-54]], $MachinePrecision]], N[(x * N[Exp[N[(y * (-t)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(x * N[Exp[N[((-a) * N[(z + b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9 \cdot 10^{+26} \lor \neg \left(y \leq 1.75 \cdot 10^{-54}\right):\\
\;\;\;\;x \cdot e^{y \cdot \left(-t\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot e^{\left(-a\right) \cdot \left(z + b\right)}\\
\end{array}
\end{array}
if y < -8.99999999999999957e26 or 1.74999999999999991e-54 < y Initial program 99.2%
Taylor expanded in t around inf 69.4%
mul-1-neg69.4%
distribute-lft-neg-out69.4%
*-commutative69.4%
Simplified69.4%
if -8.99999999999999957e26 < y < 1.74999999999999991e-54Initial program 90.8%
Taylor expanded in y around 0 78.9%
sub-neg78.9%
log1p-define88.0%
Simplified88.0%
Taylor expanded in z around 0 88.0%
associate-*r*88.0%
associate-*r*88.0%
distribute-lft-out88.0%
mul-1-neg88.0%
Simplified88.0%
Final simplification78.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -3.5e+77) (not (<= y 1.15))) (exp (* y (- t))) (* x (exp (* a (- b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -3.5e+77) || !(y <= 1.15)) {
tmp = exp((y * -t));
} 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 <= (-3.5d+77)) .or. (.not. (y <= 1.15d0))) then
tmp = exp((y * -t))
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 <= -3.5e+77) || !(y <= 1.15)) {
tmp = Math.exp((y * -t));
} else {
tmp = x * Math.exp((a * -b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -3.5e+77) or not (y <= 1.15): tmp = math.exp((y * -t)) else: tmp = x * math.exp((a * -b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -3.5e+77) || !(y <= 1.15)) tmp = exp(Float64(y * Float64(-t))); 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 <= -3.5e+77) || ~((y <= 1.15))) tmp = exp((y * -t)); else tmp = x * exp((a * -b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -3.5e+77], N[Not[LessEqual[y, 1.15]], $MachinePrecision]], N[Exp[N[(y * (-t)), $MachinePrecision]], $MachinePrecision], N[(x * N[Exp[N[(a * (-b)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.5 \cdot 10^{+77} \lor \neg \left(y \leq 1.15\right):\\
\;\;\;\;e^{y \cdot \left(-t\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot e^{a \cdot \left(-b\right)}\\
\end{array}
\end{array}
if y < -3.5000000000000001e77 or 1.1499999999999999 < y Initial program 99.1%
add-exp-log74.1%
*-commutative74.1%
log-prod45.5%
Applied egg-rr45.5%
Taylor expanded in t around inf 48.9%
associate-*r*48.9%
mul-1-neg48.9%
Simplified48.9%
if -3.5000000000000001e77 < y < 1.1499999999999999Initial program 91.9%
Taylor expanded in b around inf 75.2%
mul-1-neg75.2%
distribute-rgt-neg-out75.2%
Simplified75.2%
Final simplification63.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.45e-30) (not (<= y 9.5e-56))) (* x (exp (* y (- t)))) (* x (exp (* a (- b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.45e-30) || !(y <= 9.5e-56)) {
tmp = x * exp((y * -t));
} 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 <= (-1.45d-30)) .or. (.not. (y <= 9.5d-56))) then
tmp = x * exp((y * -t))
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 <= -1.45e-30) || !(y <= 9.5e-56)) {
tmp = x * Math.exp((y * -t));
} else {
tmp = x * Math.exp((a * -b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.45e-30) or not (y <= 9.5e-56): tmp = x * math.exp((y * -t)) else: tmp = x * math.exp((a * -b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.45e-30) || !(y <= 9.5e-56)) tmp = Float64(x * exp(Float64(y * Float64(-t)))); 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 <= -1.45e-30) || ~((y <= 9.5e-56))) tmp = x * exp((y * -t)); else tmp = x * exp((a * -b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.45e-30], N[Not[LessEqual[y, 9.5e-56]], $MachinePrecision]], N[(x * N[Exp[N[(y * (-t)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(x * N[Exp[N[(a * (-b)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.45 \cdot 10^{-30} \lor \neg \left(y \leq 9.5 \cdot 10^{-56}\right):\\
\;\;\;\;x \cdot e^{y \cdot \left(-t\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot e^{a \cdot \left(-b\right)}\\
\end{array}
\end{array}
if y < -1.44999999999999995e-30 or 9.4999999999999991e-56 < y Initial program 99.3%
Taylor expanded in t around inf 68.5%
mul-1-neg68.5%
distribute-lft-neg-out68.5%
*-commutative68.5%
Simplified68.5%
if -1.44999999999999995e-30 < y < 9.4999999999999991e-56Initial program 89.5%
Taylor expanded in b around inf 80.4%
mul-1-neg80.4%
distribute-rgt-neg-out80.4%
Simplified80.4%
Final simplification73.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.05e-9) (not (<= b 6.8e-10))) (exp (* a (- b))) (* x (- 1.0 (* y t)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.05e-9) || !(b <= 6.8e-10)) {
tmp = exp((a * -b));
} else {
tmp = x * (1.0 - (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 ((b <= (-1.05d-9)) .or. (.not. (b <= 6.8d-10))) then
tmp = exp((a * -b))
else
tmp = x * (1.0d0 - (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 ((b <= -1.05e-9) || !(b <= 6.8e-10)) {
tmp = Math.exp((a * -b));
} else {
tmp = x * (1.0 - (y * t));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.05e-9) or not (b <= 6.8e-10): tmp = math.exp((a * -b)) else: tmp = x * (1.0 - (y * t)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.05e-9) || !(b <= 6.8e-10)) tmp = exp(Float64(a * Float64(-b))); else tmp = Float64(x * Float64(1.0 - Float64(y * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -1.05e-9) || ~((b <= 6.8e-10))) tmp = exp((a * -b)); else tmp = x * (1.0 - (y * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.05e-9], N[Not[LessEqual[b, 6.8e-10]], $MachinePrecision]], N[Exp[N[(a * (-b)), $MachinePrecision]], $MachinePrecision], N[(x * N[(1.0 - N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.05 \cdot 10^{-9} \lor \neg \left(b \leq 6.8 \cdot 10^{-10}\right):\\
\;\;\;\;e^{a \cdot \left(-b\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - y \cdot t\right)\\
\end{array}
\end{array}
if b < -1.0500000000000001e-9 or 6.8000000000000003e-10 < b Initial program 98.6%
add-exp-log71.4%
*-commutative71.4%
log-prod41.7%
Applied egg-rr42.3%
Taylor expanded in b around inf 46.6%
associate-*r*46.6%
neg-mul-146.6%
Simplified46.6%
if -1.0500000000000001e-9 < b < 6.8000000000000003e-10Initial program 90.9%
Taylor expanded in t around inf 69.8%
mul-1-neg69.8%
distribute-lft-neg-out69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in y around 0 37.3%
associate-*r*37.3%
mul-1-neg37.3%
Simplified37.3%
Taylor expanded in x around 0 40.6%
mul-1-neg40.6%
unsub-neg40.6%
*-commutative40.6%
Simplified40.6%
Final simplification43.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (* x (- y)))))
(if (<= y -6.7e+199)
t_1
(if (<= y -12500000.0)
(* b (* x (- a)))
(if (<= y -7e-119)
t_1
(if (<= y 5.5e-21) (* x (- 1.0 (* a b))) (* x (* y (- t)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t * (x * -y);
double tmp;
if (y <= -6.7e+199) {
tmp = t_1;
} else if (y <= -12500000.0) {
tmp = b * (x * -a);
} else if (y <= -7e-119) {
tmp = t_1;
} else if (y <= 5.5e-21) {
tmp = x * (1.0 - (a * b));
} 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) :: tmp
t_1 = t * (x * -y)
if (y <= (-6.7d+199)) then
tmp = t_1
else if (y <= (-12500000.0d0)) then
tmp = b * (x * -a)
else if (y <= (-7d-119)) then
tmp = t_1
else if (y <= 5.5d-21) then
tmp = x * (1.0d0 - (a * b))
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 = t * (x * -y);
double tmp;
if (y <= -6.7e+199) {
tmp = t_1;
} else if (y <= -12500000.0) {
tmp = b * (x * -a);
} else if (y <= -7e-119) {
tmp = t_1;
} else if (y <= 5.5e-21) {
tmp = x * (1.0 - (a * b));
} else {
tmp = x * (y * -t);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t * (x * -y) tmp = 0 if y <= -6.7e+199: tmp = t_1 elif y <= -12500000.0: tmp = b * (x * -a) elif y <= -7e-119: tmp = t_1 elif y <= 5.5e-21: tmp = x * (1.0 - (a * b)) else: tmp = x * (y * -t) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(t * Float64(x * Float64(-y))) tmp = 0.0 if (y <= -6.7e+199) tmp = t_1; elseif (y <= -12500000.0) tmp = Float64(b * Float64(x * Float64(-a))); elseif (y <= -7e-119) tmp = t_1; elseif (y <= 5.5e-21) tmp = Float64(x * Float64(1.0 - Float64(a * b))); else tmp = Float64(x * Float64(y * Float64(-t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = t * (x * -y); tmp = 0.0; if (y <= -6.7e+199) tmp = t_1; elseif (y <= -12500000.0) tmp = b * (x * -a); elseif (y <= -7e-119) tmp = t_1; elseif (y <= 5.5e-21) tmp = x * (1.0 - (a * b)); else tmp = x * (y * -t); 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, -6.7e+199], t$95$1, If[LessEqual[y, -12500000.0], N[(b * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7e-119], t$95$1, If[LessEqual[y, 5.5e-21], N[(x * N[(1.0 - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(x \cdot \left(-y\right)\right)\\
\mathbf{if}\;y \leq -6.7 \cdot 10^{+199}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -12500000:\\
\;\;\;\;b \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;y \leq -7 \cdot 10^{-119}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-21}:\\
\;\;\;\;x \cdot \left(1 - a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot \left(-t\right)\right)\\
\end{array}
\end{array}
if y < -6.69999999999999987e199 or -1.25e7 < y < -7e-119Initial program 97.6%
Taylor expanded in t around inf 65.4%
mul-1-neg65.4%
distribute-lft-neg-out65.4%
*-commutative65.4%
Simplified65.4%
Taylor expanded in y around 0 35.4%
associate-*r*35.4%
mul-1-neg35.4%
Simplified35.4%
Taylor expanded in t around inf 37.5%
+-commutative37.5%
mul-1-neg37.5%
unsub-neg37.5%
Simplified37.5%
Taylor expanded in t around inf 35.5%
mul-1-neg35.5%
distribute-rgt-neg-in35.5%
distribute-rgt-neg-out35.5%
Simplified35.5%
if -6.69999999999999987e199 < y < -1.25e7Initial program 100.0%
Taylor expanded in b around inf 49.6%
mul-1-neg49.6%
distribute-rgt-neg-out49.6%
Simplified49.6%
Taylor expanded in a around 0 13.0%
mul-1-neg13.0%
unsub-neg13.0%
*-commutative13.0%
Simplified13.0%
Taylor expanded in a around inf 24.5%
*-commutative24.5%
associate-*r*24.5%
*-commutative24.5%
associate-*r*26.7%
associate-*r*26.7%
*-commutative26.7%
associate-*r*26.7%
neg-mul-126.7%
Simplified26.7%
if -7e-119 < y < 5.49999999999999977e-21Initial program 88.6%
Taylor expanded in b around inf 78.1%
mul-1-neg78.1%
distribute-rgt-neg-out78.1%
Simplified78.1%
Taylor expanded in a around 0 51.4%
mul-1-neg51.4%
unsub-neg51.4%
Simplified51.4%
if 5.49999999999999977e-21 < y Initial program 100.0%
Taylor expanded in t around inf 66.3%
mul-1-neg66.3%
distribute-lft-neg-out66.3%
*-commutative66.3%
Simplified66.3%
Taylor expanded in y around 0 17.8%
associate-*r*17.8%
mul-1-neg17.8%
Simplified17.8%
Taylor expanded in t around inf 17.6%
+-commutative17.6%
mul-1-neg17.6%
unsub-neg17.6%
Simplified17.6%
Taylor expanded in t around inf 22.2%
mul-1-neg22.2%
associate-*r*25.7%
distribute-rgt-neg-in25.7%
*-commutative25.7%
associate-*l*30.1%
Simplified30.1%
Final simplification39.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (* x (- a)))))
(if (<= a -4.2e+61)
t_1
(if (<= a 1.2e-170)
x
(if (<= a 5.5e-18)
(* t (* x (- y)))
(if (<= a 3.5e+89) (* t (/ x t)) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (x * -a);
double tmp;
if (a <= -4.2e+61) {
tmp = t_1;
} else if (a <= 1.2e-170) {
tmp = x;
} else if (a <= 5.5e-18) {
tmp = t * (x * -y);
} else if (a <= 3.5e+89) {
tmp = t * (x / t);
} 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 = b * (x * -a)
if (a <= (-4.2d+61)) then
tmp = t_1
else if (a <= 1.2d-170) then
tmp = x
else if (a <= 5.5d-18) then
tmp = t * (x * -y)
else if (a <= 3.5d+89) then
tmp = t * (x / t)
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 = b * (x * -a);
double tmp;
if (a <= -4.2e+61) {
tmp = t_1;
} else if (a <= 1.2e-170) {
tmp = x;
} else if (a <= 5.5e-18) {
tmp = t * (x * -y);
} else if (a <= 3.5e+89) {
tmp = t * (x / t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (x * -a) tmp = 0 if a <= -4.2e+61: tmp = t_1 elif a <= 1.2e-170: tmp = x elif a <= 5.5e-18: tmp = t * (x * -y) elif a <= 3.5e+89: tmp = t * (x / t) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(x * Float64(-a))) tmp = 0.0 if (a <= -4.2e+61) tmp = t_1; elseif (a <= 1.2e-170) tmp = x; elseif (a <= 5.5e-18) tmp = Float64(t * Float64(x * Float64(-y))); elseif (a <= 3.5e+89) tmp = Float64(t * Float64(x / t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (x * -a); tmp = 0.0; if (a <= -4.2e+61) tmp = t_1; elseif (a <= 1.2e-170) tmp = x; elseif (a <= 5.5e-18) tmp = t * (x * -y); elseif (a <= 3.5e+89) tmp = t * (x / t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.2e+61], t$95$1, If[LessEqual[a, 1.2e-170], x, If[LessEqual[a, 5.5e-18], N[(t * N[(x * (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.5e+89], N[(t * N[(x / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{if}\;a \leq -4.2 \cdot 10^{+61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{-170}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{-18}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-y\right)\right)\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{+89}:\\
\;\;\;\;t \cdot \frac{x}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -4.2000000000000002e61 or 3.5000000000000001e89 < a Initial program 89.2%
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 29.8%
mul-1-neg29.8%
unsub-neg29.8%
*-commutative29.8%
Simplified29.8%
Taylor expanded in a around inf 29.5%
*-commutative29.5%
associate-*r*30.1%
*-commutative30.1%
associate-*r*32.2%
associate-*r*32.2%
*-commutative32.2%
associate-*r*32.2%
neg-mul-132.2%
Simplified32.2%
if -4.2000000000000002e61 < a < 1.2e-170Initial program 99.1%
Taylor expanded in b around inf 49.9%
mul-1-neg49.9%
distribute-rgt-neg-out49.9%
Simplified49.9%
Taylor expanded in a around 0 32.4%
if 1.2e-170 < a < 5.5e-18Initial program 100.0%
Taylor expanded in t around inf 77.5%
mul-1-neg77.5%
distribute-lft-neg-out77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in y around 0 43.4%
associate-*r*43.4%
mul-1-neg43.4%
Simplified43.4%
Taylor expanded in t around inf 40.6%
+-commutative40.6%
mul-1-neg40.6%
unsub-neg40.6%
Simplified40.6%
Taylor expanded in t around inf 34.6%
mul-1-neg34.6%
distribute-rgt-neg-in34.6%
distribute-rgt-neg-out34.6%
Simplified34.6%
if 5.5e-18 < a < 3.5000000000000001e89Initial program 93.0%
Taylor expanded in t around inf 43.0%
mul-1-neg43.0%
distribute-lft-neg-out43.0%
*-commutative43.0%
Simplified43.0%
Taylor expanded in y around 0 10.8%
associate-*r*10.8%
mul-1-neg10.8%
Simplified10.8%
Taylor expanded in t around inf 17.6%
+-commutative17.6%
mul-1-neg17.6%
unsub-neg17.6%
Simplified17.6%
Taylor expanded in t around 0 24.7%
Final simplification31.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (* x (- a)))))
(if (<= a -4.4e+61)
t_1
(if (<= a 1.08e-169) x (if (<= a 1.7e+148) (* x (* y (- t))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (x * -a);
double tmp;
if (a <= -4.4e+61) {
tmp = t_1;
} else if (a <= 1.08e-169) {
tmp = x;
} else if (a <= 1.7e+148) {
tmp = x * (y * -t);
} 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 = b * (x * -a)
if (a <= (-4.4d+61)) then
tmp = t_1
else if (a <= 1.08d-169) then
tmp = x
else if (a <= 1.7d+148) then
tmp = x * (y * -t)
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 = b * (x * -a);
double tmp;
if (a <= -4.4e+61) {
tmp = t_1;
} else if (a <= 1.08e-169) {
tmp = x;
} else if (a <= 1.7e+148) {
tmp = x * (y * -t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (x * -a) tmp = 0 if a <= -4.4e+61: tmp = t_1 elif a <= 1.08e-169: tmp = x elif a <= 1.7e+148: tmp = x * (y * -t) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(x * Float64(-a))) tmp = 0.0 if (a <= -4.4e+61) tmp = t_1; elseif (a <= 1.08e-169) tmp = x; elseif (a <= 1.7e+148) tmp = Float64(x * Float64(y * Float64(-t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (x * -a); tmp = 0.0; if (a <= -4.4e+61) tmp = t_1; elseif (a <= 1.08e-169) tmp = x; elseif (a <= 1.7e+148) tmp = x * (y * -t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.4e+61], t$95$1, If[LessEqual[a, 1.08e-169], x, If[LessEqual[a, 1.7e+148], N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{if}\;a \leq -4.4 \cdot 10^{+61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.08 \cdot 10^{-169}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{+148}:\\
\;\;\;\;x \cdot \left(y \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -4.4000000000000001e61 or 1.7000000000000001e148 < a Initial program 90.7%
Taylor expanded in b around inf 73.6%
mul-1-neg73.6%
distribute-rgt-neg-out73.6%
Simplified73.6%
Taylor expanded in a around 0 32.7%
mul-1-neg32.7%
unsub-neg32.7%
*-commutative32.7%
Simplified32.7%
Taylor expanded in a around inf 31.3%
*-commutative31.3%
associate-*r*32.6%
*-commutative32.6%
associate-*r*32.6%
associate-*r*32.6%
*-commutative32.6%
associate-*r*32.6%
neg-mul-132.6%
Simplified32.6%
if -4.4000000000000001e61 < a < 1.0799999999999999e-169Initial program 99.1%
Taylor expanded in b around inf 49.9%
mul-1-neg49.9%
distribute-rgt-neg-out49.9%
Simplified49.9%
Taylor expanded in a around 0 32.4%
if 1.0799999999999999e-169 < a < 1.7000000000000001e148Initial program 93.8%
Taylor expanded in t around inf 61.5%
mul-1-neg61.5%
distribute-lft-neg-out61.5%
*-commutative61.5%
Simplified61.5%
Taylor expanded in y around 0 28.7%
associate-*r*28.7%
mul-1-neg28.7%
Simplified28.7%
Taylor expanded in t around inf 31.0%
+-commutative31.0%
mul-1-neg31.0%
unsub-neg31.0%
Simplified31.0%
Taylor expanded in t around inf 27.2%
mul-1-neg27.2%
associate-*r*27.2%
distribute-rgt-neg-in27.2%
*-commutative27.2%
associate-*l*33.3%
Simplified33.3%
Final simplification32.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= a -4.8e+61)
(* x (* a (- b)))
(if (<= a 8e-169)
x
(if (<= a 1.56e+147) (* x (* y (- t))) (* b (* x (- a)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -4.8e+61) {
tmp = x * (a * -b);
} else if (a <= 8e-169) {
tmp = x;
} else if (a <= 1.56e+147) {
tmp = x * (y * -t);
} else {
tmp = 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 (a <= (-4.8d+61)) then
tmp = x * (a * -b)
else if (a <= 8d-169) then
tmp = x
else if (a <= 1.56d+147) then
tmp = x * (y * -t)
else
tmp = 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 (a <= -4.8e+61) {
tmp = x * (a * -b);
} else if (a <= 8e-169) {
tmp = x;
} else if (a <= 1.56e+147) {
tmp = x * (y * -t);
} else {
tmp = b * (x * -a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -4.8e+61: tmp = x * (a * -b) elif a <= 8e-169: tmp = x elif a <= 1.56e+147: tmp = x * (y * -t) else: tmp = b * (x * -a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -4.8e+61) tmp = Float64(x * Float64(a * Float64(-b))); elseif (a <= 8e-169) tmp = x; elseif (a <= 1.56e+147) tmp = Float64(x * Float64(y * Float64(-t))); else tmp = Float64(b * Float64(x * Float64(-a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= -4.8e+61) tmp = x * (a * -b); elseif (a <= 8e-169) tmp = x; elseif (a <= 1.56e+147) tmp = x * (y * -t); else tmp = b * (x * -a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -4.8e+61], N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8e-169], x, If[LessEqual[a, 1.56e+147], N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision], N[(b * N[(x * (-a)), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.8 \cdot 10^{+61}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-b\right)\right)\\
\mathbf{elif}\;a \leq 8 \cdot 10^{-169}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.56 \cdot 10^{+147}:\\
\;\;\;\;x \cdot \left(y \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(x \cdot \left(-a\right)\right)\\
\end{array}
\end{array}
if a < -4.7999999999999998e61Initial program 87.8%
Taylor expanded in b around inf 70.7%
mul-1-neg70.7%
distribute-rgt-neg-out70.7%
Simplified70.7%
Taylor expanded in a around 0 26.9%
mul-1-neg26.9%
unsub-neg26.9%
*-commutative26.9%
Simplified26.9%
Taylor expanded in a around inf 26.8%
*-commutative26.8%
associate-*r*29.1%
*-commutative29.1%
associate-*r*29.1%
associate-*r*29.1%
*-commutative29.1%
associate-*r*29.1%
neg-mul-129.1%
Simplified29.1%
Taylor expanded in b around 0 26.8%
associate-*r*29.1%
associate-*r*29.1%
*-commutative29.1%
associate-*r*29.1%
mul-1-neg29.1%
Simplified29.1%
if -4.7999999999999998e61 < a < 8.00000000000000016e-169Initial program 99.1%
Taylor expanded in b around inf 49.9%
mul-1-neg49.9%
distribute-rgt-neg-out49.9%
Simplified49.9%
Taylor expanded in a around 0 32.4%
if 8.00000000000000016e-169 < a < 1.56e147Initial program 93.8%
Taylor expanded in t around inf 61.5%
mul-1-neg61.5%
distribute-lft-neg-out61.5%
*-commutative61.5%
Simplified61.5%
Taylor expanded in y around 0 28.7%
associate-*r*28.7%
mul-1-neg28.7%
Simplified28.7%
Taylor expanded in t around inf 31.0%
+-commutative31.0%
mul-1-neg31.0%
unsub-neg31.0%
Simplified31.0%
Taylor expanded in t around inf 27.2%
mul-1-neg27.2%
associate-*r*27.2%
distribute-rgt-neg-in27.2%
*-commutative27.2%
associate-*l*33.3%
Simplified33.3%
if 1.56e147 < a Initial program 94.2%
Taylor expanded in b around inf 76.9%
mul-1-neg76.9%
distribute-rgt-neg-out76.9%
Simplified76.9%
Taylor expanded in a around 0 39.5%
mul-1-neg39.5%
unsub-neg39.5%
*-commutative39.5%
Simplified39.5%
Taylor expanded in a around inf 36.7%
*-commutative36.7%
associate-*r*36.7%
*-commutative36.7%
associate-*r*36.7%
associate-*r*36.7%
*-commutative36.7%
associate-*r*36.7%
neg-mul-136.7%
Simplified36.7%
Final simplification32.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= a -3.2e+62)
(* x (* a (- b)))
(if (<= a 7.2e-169)
x
(if (<= a 8.5e+149) (* x (* y (- t))) (* a (* x (- b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -3.2e+62) {
tmp = x * (a * -b);
} else if (a <= 7.2e-169) {
tmp = x;
} else if (a <= 8.5e+149) {
tmp = x * (y * -t);
} else {
tmp = a * (x * -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 (a <= (-3.2d+62)) then
tmp = x * (a * -b)
else if (a <= 7.2d-169) then
tmp = x
else if (a <= 8.5d+149) then
tmp = x * (y * -t)
else
tmp = a * (x * -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 (a <= -3.2e+62) {
tmp = x * (a * -b);
} else if (a <= 7.2e-169) {
tmp = x;
} else if (a <= 8.5e+149) {
tmp = x * (y * -t);
} else {
tmp = a * (x * -b);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -3.2e+62: tmp = x * (a * -b) elif a <= 7.2e-169: tmp = x elif a <= 8.5e+149: tmp = x * (y * -t) else: tmp = a * (x * -b) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -3.2e+62) tmp = Float64(x * Float64(a * Float64(-b))); elseif (a <= 7.2e-169) tmp = x; elseif (a <= 8.5e+149) tmp = Float64(x * Float64(y * Float64(-t))); else tmp = Float64(a * Float64(x * Float64(-b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= -3.2e+62) tmp = x * (a * -b); elseif (a <= 7.2e-169) tmp = x; elseif (a <= 8.5e+149) tmp = x * (y * -t); else tmp = a * (x * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -3.2e+62], N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.2e-169], x, If[LessEqual[a, 8.5e+149], N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision], N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.2 \cdot 10^{+62}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-b\right)\right)\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{-169}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{+149}:\\
\;\;\;\;x \cdot \left(y \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if a < -3.19999999999999984e62Initial program 87.8%
Taylor expanded in b around inf 70.7%
mul-1-neg70.7%
distribute-rgt-neg-out70.7%
Simplified70.7%
Taylor expanded in a around 0 26.9%
mul-1-neg26.9%
unsub-neg26.9%
*-commutative26.9%
Simplified26.9%
Taylor expanded in a around inf 26.8%
*-commutative26.8%
associate-*r*29.1%
*-commutative29.1%
associate-*r*29.1%
associate-*r*29.1%
*-commutative29.1%
associate-*r*29.1%
neg-mul-129.1%
Simplified29.1%
Taylor expanded in b around 0 26.8%
associate-*r*29.1%
associate-*r*29.1%
*-commutative29.1%
associate-*r*29.1%
mul-1-neg29.1%
Simplified29.1%
if -3.19999999999999984e62 < a < 7.20000000000000003e-169Initial program 99.1%
Taylor expanded in b around inf 49.9%
mul-1-neg49.9%
distribute-rgt-neg-out49.9%
Simplified49.9%
Taylor expanded in a around 0 32.4%
if 7.20000000000000003e-169 < a < 8.49999999999999956e149Initial program 93.8%
Taylor expanded in t around inf 61.5%
mul-1-neg61.5%
distribute-lft-neg-out61.5%
*-commutative61.5%
Simplified61.5%
Taylor expanded in y around 0 28.7%
associate-*r*28.7%
mul-1-neg28.7%
Simplified28.7%
Taylor expanded in t around inf 31.0%
+-commutative31.0%
mul-1-neg31.0%
unsub-neg31.0%
Simplified31.0%
Taylor expanded in t around inf 27.2%
mul-1-neg27.2%
associate-*r*27.2%
distribute-rgt-neg-in27.2%
*-commutative27.2%
associate-*l*33.3%
Simplified33.3%
if 8.49999999999999956e149 < a Initial program 94.2%
Taylor expanded in b around inf 76.9%
mul-1-neg76.9%
distribute-rgt-neg-out76.9%
Simplified76.9%
Taylor expanded in a around 0 39.5%
mul-1-neg39.5%
unsub-neg39.5%
*-commutative39.5%
Simplified39.5%
Taylor expanded in a around inf 36.7%
Final simplification32.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -3.2e+35) (not (<= t 1.12e+104))) (* x (- 1.0 (* y t))) (* x (- 1.0 (* a b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -3.2e+35) || !(t <= 1.12e+104)) {
tmp = x * (1.0 - (y * t));
} else {
tmp = x * (1.0 - (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 ((t <= (-3.2d+35)) .or. (.not. (t <= 1.12d+104))) then
tmp = x * (1.0d0 - (y * t))
else
tmp = x * (1.0d0 - (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 ((t <= -3.2e+35) || !(t <= 1.12e+104)) {
tmp = x * (1.0 - (y * t));
} else {
tmp = x * (1.0 - (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -3.2e+35) or not (t <= 1.12e+104): tmp = x * (1.0 - (y * t)) else: tmp = x * (1.0 - (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -3.2e+35) || !(t <= 1.12e+104)) tmp = Float64(x * Float64(1.0 - Float64(y * t))); else tmp = Float64(x * Float64(1.0 - Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -3.2e+35) || ~((t <= 1.12e+104))) tmp = x * (1.0 - (y * t)); else tmp = x * (1.0 - (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -3.2e+35], N[Not[LessEqual[t, 1.12e+104]], $MachinePrecision]], N[(x * N[(1.0 - N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.2 \cdot 10^{+35} \lor \neg \left(t \leq 1.12 \cdot 10^{+104}\right):\\
\;\;\;\;x \cdot \left(1 - y \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - a \cdot b\right)\\
\end{array}
\end{array}
if t < -3.19999999999999983e35 or 1.12000000000000003e104 < t Initial program 97.2%
Taylor expanded in t around inf 83.9%
mul-1-neg83.9%
distribute-lft-neg-out83.9%
*-commutative83.9%
Simplified83.9%
Taylor expanded in y around 0 30.1%
associate-*r*30.1%
mul-1-neg30.1%
Simplified30.1%
Taylor expanded in x around 0 38.2%
mul-1-neg38.2%
unsub-neg38.2%
*-commutative38.2%
Simplified38.2%
if -3.19999999999999983e35 < t < 1.12000000000000003e104Initial program 93.7%
Taylor expanded in b around inf 64.3%
mul-1-neg64.3%
distribute-rgt-neg-out64.3%
Simplified64.3%
Taylor expanded in a around 0 36.2%
mul-1-neg36.2%
unsub-neg36.2%
Simplified36.2%
Final simplification37.0%
(FPCore (x y z t a b) :precision binary64 (if (<= a -3.05e-21) (* b (- (/ x b) (* x a))) (if (<= a 1.55e+147) (* x (- 1.0 (* y t))) (- x (* a (* x b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -3.05e-21) {
tmp = b * ((x / b) - (x * a));
} else if (a <= 1.55e+147) {
tmp = x * (1.0 - (y * t));
} else {
tmp = x - (a * (x * 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 (a <= (-3.05d-21)) then
tmp = b * ((x / b) - (x * a))
else if (a <= 1.55d+147) then
tmp = x * (1.0d0 - (y * t))
else
tmp = x - (a * (x * 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 (a <= -3.05e-21) {
tmp = b * ((x / b) - (x * a));
} else if (a <= 1.55e+147) {
tmp = x * (1.0 - (y * t));
} else {
tmp = x - (a * (x * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -3.05e-21: tmp = b * ((x / b) - (x * a)) elif a <= 1.55e+147: tmp = x * (1.0 - (y * t)) else: tmp = x - (a * (x * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -3.05e-21) tmp = Float64(b * Float64(Float64(x / b) - Float64(x * a))); elseif (a <= 1.55e+147) tmp = Float64(x * Float64(1.0 - Float64(y * t))); else tmp = Float64(x - Float64(a * Float64(x * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= -3.05e-21) tmp = b * ((x / b) - (x * a)); elseif (a <= 1.55e+147) tmp = x * (1.0 - (y * t)); else tmp = x - (a * (x * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -3.05e-21], N[(b * N[(N[(x / b), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.55e+147], N[(x * N[(1.0 - N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.05 \cdot 10^{-21}:\\
\;\;\;\;b \cdot \left(\frac{x}{b} - x \cdot a\right)\\
\mathbf{elif}\;a \leq 1.55 \cdot 10^{+147}:\\
\;\;\;\;x \cdot \left(1 - y \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;x - a \cdot \left(x \cdot b\right)\\
\end{array}
\end{array}
if a < -3.05000000000000007e-21Initial program 91.0%
Taylor expanded in b around inf 69.4%
mul-1-neg69.4%
distribute-rgt-neg-out69.4%
Simplified69.4%
Taylor expanded in a around 0 26.3%
mul-1-neg26.3%
unsub-neg26.3%
*-commutative26.3%
Simplified26.3%
Taylor expanded in b around inf 31.6%
*-commutative31.6%
Simplified31.6%
if -3.05000000000000007e-21 < a < 1.55e147Initial program 96.6%
Taylor expanded in t around inf 69.5%
mul-1-neg69.5%
distribute-lft-neg-out69.5%
*-commutative69.5%
Simplified69.5%
Taylor expanded in y around 0 35.7%
associate-*r*35.7%
mul-1-neg35.7%
Simplified35.7%
Taylor expanded in x around 0 39.1%
mul-1-neg39.1%
unsub-neg39.1%
*-commutative39.1%
Simplified39.1%
if 1.55e147 < a Initial program 94.2%
Taylor expanded in b around inf 76.9%
mul-1-neg76.9%
distribute-rgt-neg-out76.9%
Simplified76.9%
Taylor expanded in a around 0 39.5%
mul-1-neg39.5%
unsub-neg39.5%
*-commutative39.5%
Simplified39.5%
Final simplification37.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= a -1.4e+62) (not (<= a 8.5e+88))) (* b (* x (- a))) (* t (/ x t))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -1.4e+62) || !(a <= 8.5e+88)) {
tmp = b * (x * -a);
} else {
tmp = t * (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 ((a <= (-1.4d+62)) .or. (.not. (a <= 8.5d+88))) then
tmp = b * (x * -a)
else
tmp = t * (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 ((a <= -1.4e+62) || !(a <= 8.5e+88)) {
tmp = b * (x * -a);
} else {
tmp = t * (x / t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a <= -1.4e+62) or not (a <= 8.5e+88): tmp = b * (x * -a) else: tmp = t * (x / t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((a <= -1.4e+62) || !(a <= 8.5e+88)) tmp = Float64(b * Float64(x * Float64(-a))); else tmp = Float64(t * Float64(x / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a <= -1.4e+62) || ~((a <= 8.5e+88))) tmp = b * (x * -a); else tmp = t * (x / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -1.4e+62], N[Not[LessEqual[a, 8.5e+88]], $MachinePrecision]], N[(b * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], N[(t * N[(x / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.4 \cdot 10^{+62} \lor \neg \left(a \leq 8.5 \cdot 10^{+88}\right):\\
\;\;\;\;b \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{x}{t}\\
\end{array}
\end{array}
if a < -1.40000000000000007e62 or 8.5000000000000005e88 < a Initial program 89.2%
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 29.8%
mul-1-neg29.8%
unsub-neg29.8%
*-commutative29.8%
Simplified29.8%
Taylor expanded in a around inf 29.5%
*-commutative29.5%
associate-*r*30.1%
*-commutative30.1%
associate-*r*32.2%
associate-*r*32.2%
*-commutative32.2%
associate-*r*32.2%
neg-mul-132.2%
Simplified32.2%
if -1.40000000000000007e62 < a < 8.5000000000000005e88Initial program 98.3%
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 35.5%
associate-*r*35.5%
mul-1-neg35.5%
Simplified35.5%
Taylor expanded in t around inf 31.5%
+-commutative31.5%
mul-1-neg31.5%
unsub-neg31.5%
Simplified31.5%
Taylor expanded in t around 0 28.0%
Final simplification29.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -420000000000.0) (not (<= y 3900.0))) (* a (* x b)) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -420000000000.0) || !(y <= 3900.0)) {
tmp = a * (x * 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 <= (-420000000000.0d0)) .or. (.not. (y <= 3900.0d0))) then
tmp = a * (x * 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 <= -420000000000.0) || !(y <= 3900.0)) {
tmp = a * (x * b);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -420000000000.0) or not (y <= 3900.0): tmp = a * (x * b) else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -420000000000.0) || !(y <= 3900.0)) tmp = Float64(a * Float64(x * b)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -420000000000.0) || ~((y <= 3900.0))) tmp = a * (x * b); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -420000000000.0], N[Not[LessEqual[y, 3900.0]], $MachinePrecision]], N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -420000000000 \lor \neg \left(y \leq 3900\right):\\
\;\;\;\;a \cdot \left(x \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -4.2e11 or 3900 < y Initial program 99.2%
Taylor expanded in b around inf 32.8%
mul-1-neg32.8%
distribute-rgt-neg-out32.8%
Simplified32.8%
Taylor expanded in a around 0 11.6%
mul-1-neg11.6%
unsub-neg11.6%
*-commutative11.6%
Simplified11.6%
Taylor expanded in a around inf 20.0%
*-commutative20.0%
associate-*r*22.3%
*-commutative22.3%
associate-*r*21.9%
associate-*r*21.9%
*-commutative21.9%
associate-*r*21.9%
neg-mul-121.9%
Simplified21.9%
pow121.9%
*-commutative21.9%
*-commutative21.9%
associate-*l*22.3%
add-sqr-sqrt11.6%
sqrt-unprod29.9%
sqr-neg29.9%
sqrt-unprod7.7%
add-sqr-sqrt15.4%
Applied egg-rr15.4%
unpow115.4%
*-commutative15.4%
associate-*r*16.8%
*-commutative16.8%
Simplified16.8%
if -4.2e11 < y < 3900Initial program 91.1%
Taylor expanded in b around inf 76.1%
mul-1-neg76.1%
distribute-rgt-neg-out76.1%
Simplified76.1%
Taylor expanded in a around 0 33.5%
Final simplification25.3%
(FPCore (x y z t a b) :precision binary64 (* t (/ x t)))
double code(double x, double y, double z, double t, double a, double b) {
return t * (x / t);
}
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 = t * (x / t)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return t * (x / t);
}
def code(x, y, z, t, a, b): return t * (x / t)
function code(x, y, z, t, a, b) return Float64(t * Float64(x / t)) end
function tmp = code(x, y, z, t, a, b) tmp = t * (x / t); end
code[x_, y_, z_, t_, a_, b_] := N[(t * N[(x / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
t \cdot \frac{x}{t}
\end{array}
Initial program 95.1%
Taylor expanded in t around inf 60.1%
mul-1-neg60.1%
distribute-lft-neg-out60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in y around 0 27.3%
associate-*r*27.3%
mul-1-neg27.3%
Simplified27.3%
Taylor expanded in t around inf 26.5%
+-commutative26.5%
mul-1-neg26.5%
unsub-neg26.5%
Simplified26.5%
Taylor expanded in t around 0 23.3%
Final simplification23.3%
(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.1%
Taylor expanded in b around inf 54.8%
mul-1-neg54.8%
distribute-rgt-neg-out54.8%
Simplified54.8%
Taylor expanded in a around 0 19.0%
Final simplification19.0%
herbie shell --seed 2024076
(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))))))