
(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.4%
fma-define96.1%
sub-neg96.1%
log1p-define100.0%
Simplified100.0%
Final simplification100.0%
(FPCore (x y z t a b) :precision binary64 (if (<= a -3e+237) (* x (exp (* a (- (- z) b)))) (* 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) {
double tmp;
if (a <= -3e+237) {
tmp = x * exp((a * (-z - b)));
} else {
tmp = x * exp(((y * (log(z) - t)) + (a * (log((1.0 - 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 (a <= (-3d+237)) then
tmp = x * exp((a * (-z - b)))
else
tmp = x * exp(((y * (log(z) - t)) + (a * (log((1.0d0 - 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 (a <= -3e+237) {
tmp = x * Math.exp((a * (-z - b)));
} else {
tmp = x * Math.exp(((y * (Math.log(z) - t)) + (a * (Math.log((1.0 - z)) - b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -3e+237: tmp = x * math.exp((a * (-z - b))) else: tmp = x * math.exp(((y * (math.log(z) - t)) + (a * (math.log((1.0 - z)) - b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -3e+237) tmp = Float64(x * exp(Float64(a * Float64(Float64(-z) - b)))); else tmp = Float64(x * exp(Float64(Float64(y * Float64(log(z) - t)) + Float64(a * Float64(log(Float64(1.0 - z)) - b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= -3e+237) tmp = x * exp((a * (-z - b))); else tmp = x * exp(((y * (log(z) - t)) + (a * (log((1.0 - z)) - b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -3e+237], N[(x * N[Exp[N[(a * N[((-z) - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 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}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3 \cdot 10^{+237}:\\
\;\;\;\;x \cdot e^{a \cdot \left(\left(-z\right) - b\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot e^{y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right)}\\
\end{array}
\end{array}
if a < -3e237Initial program 60.5%
Taylor expanded in y around 0 67.2%
sub-neg67.2%
log1p-define93.4%
Simplified93.4%
Taylor expanded in z around 0 93.4%
+-commutative93.4%
associate-*r*93.4%
associate-*r*93.4%
distribute-lft-out93.4%
mul-1-neg93.4%
Simplified93.4%
if -3e237 < a Initial program 97.5%
Final simplification97.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -9.8e-43) (not (<= y 8.5e+17))) (* x (pow (/ z (exp t)) y)) (* x (exp (* a (- (- z) b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -9.8e-43) || !(y <= 8.5e+17)) {
tmp = x * pow((z / exp(t)), y);
} 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 <= (-9.8d-43)) .or. (.not. (y <= 8.5d+17))) then
tmp = x * ((z / exp(t)) ** y)
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 <= -9.8e-43) || !(y <= 8.5e+17)) {
tmp = x * Math.pow((z / Math.exp(t)), y);
} else {
tmp = x * Math.exp((a * (-z - b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -9.8e-43) or not (y <= 8.5e+17): tmp = x * math.pow((z / math.exp(t)), y) else: tmp = x * math.exp((a * (-z - b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -9.8e-43) || !(y <= 8.5e+17)) tmp = Float64(x * (Float64(z / exp(t)) ^ y)); else tmp = Float64(x * exp(Float64(a * Float64(Float64(-z) - b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -9.8e-43) || ~((y <= 8.5e+17))) tmp = x * ((z / exp(t)) ^ y); else tmp = x * exp((a * (-z - b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -9.8e-43], N[Not[LessEqual[y, 8.5e+17]], $MachinePrecision]], N[(x * N[Power[N[(z / N[Exp[t], $MachinePrecision]), $MachinePrecision], y], $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.8 \cdot 10^{-43} \lor \neg \left(y \leq 8.5 \cdot 10^{+17}\right):\\
\;\;\;\;x \cdot {\left(\frac{z}{e^{t}}\right)}^{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot e^{a \cdot \left(\left(-z\right) - b\right)}\\
\end{array}
\end{array}
if y < -9.79999999999999976e-43 or 8.5e17 < y Initial program 96.0%
Taylor expanded in a around 0 88.1%
*-commutative88.1%
exp-prod88.1%
exp-diff88.1%
rem-exp-log88.1%
Simplified88.1%
if -9.79999999999999976e-43 < y < 8.5e17Initial program 94.8%
Taylor expanded in y around 0 83.9%
sub-neg83.9%
log1p-define89.1%
Simplified89.1%
Taylor expanded in z around 0 89.1%
+-commutative89.1%
associate-*r*89.1%
associate-*r*89.1%
distribute-lft-out89.1%
mul-1-neg89.1%
Simplified89.1%
Final simplification88.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (pow z y))))
(if (<= y -0.046)
t_1
(if (<= y 0.14)
(* x (exp (* a (- b))))
(if (<= y 1.8e+73) t_1 (* x (exp (* y (- t)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * pow(z, y);
double tmp;
if (y <= -0.046) {
tmp = t_1;
} else if (y <= 0.14) {
tmp = x * exp((a * -b));
} else if (y <= 1.8e+73) {
tmp = t_1;
} else {
tmp = x * exp((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 = x * (z ** y)
if (y <= (-0.046d0)) then
tmp = t_1
else if (y <= 0.14d0) then
tmp = x * exp((a * -b))
else if (y <= 1.8d+73) then
tmp = t_1
else
tmp = x * exp((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 = x * Math.pow(z, y);
double tmp;
if (y <= -0.046) {
tmp = t_1;
} else if (y <= 0.14) {
tmp = x * Math.exp((a * -b));
} else if (y <= 1.8e+73) {
tmp = t_1;
} else {
tmp = x * Math.exp((y * -t));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * math.pow(z, y) tmp = 0 if y <= -0.046: tmp = t_1 elif y <= 0.14: tmp = x * math.exp((a * -b)) elif y <= 1.8e+73: tmp = t_1 else: tmp = x * math.exp((y * -t)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * (z ^ y)) tmp = 0.0 if (y <= -0.046) tmp = t_1; elseif (y <= 0.14) tmp = Float64(x * exp(Float64(a * Float64(-b)))); elseif (y <= 1.8e+73) tmp = t_1; else tmp = Float64(x * exp(Float64(y * Float64(-t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (z ^ y); tmp = 0.0; if (y <= -0.046) tmp = t_1; elseif (y <= 0.14) tmp = x * exp((a * -b)); elseif (y <= 1.8e+73) tmp = t_1; else tmp = x * exp((y * -t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -0.046], t$95$1, If[LessEqual[y, 0.14], N[(x * N[Exp[N[(a * (-b)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.8e+73], t$95$1, N[(x * N[Exp[N[(y * (-t)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot {z}^{y}\\
\mathbf{if}\;y \leq -0.046:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 0.14:\\
\;\;\;\;x \cdot e^{a \cdot \left(-b\right)}\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot e^{y \cdot \left(-t\right)}\\
\end{array}
\end{array}
if y < -0.045999999999999999 or 0.14000000000000001 < y < 1.7999999999999999e73Initial program 98.6%
Taylor expanded in a around 0 88.4%
*-commutative88.4%
exp-prod88.4%
exp-diff88.4%
rem-exp-log88.5%
Simplified88.5%
Taylor expanded in t around 0 78.3%
if -0.045999999999999999 < y < 0.14000000000000001Initial program 94.9%
Taylor expanded in b around inf 82.0%
mul-1-neg82.0%
distribute-rgt-neg-out82.0%
Simplified82.0%
if 1.7999999999999999e73 < y Initial program 91.2%
Taylor expanded in t around inf 74.0%
mul-1-neg74.0%
distribute-lft-neg-out74.0%
*-commutative74.0%
Simplified74.0%
Final simplification79.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (pow z y))))
(if (<= y -24000.0)
t_1
(if (<= y 0.235)
(* x (exp (* a (- (- z) b))))
(if (<= y 3.45e+72) t_1 (* x (exp (* y (- t)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * pow(z, y);
double tmp;
if (y <= -24000.0) {
tmp = t_1;
} else if (y <= 0.235) {
tmp = x * exp((a * (-z - b)));
} else if (y <= 3.45e+72) {
tmp = t_1;
} else {
tmp = x * exp((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 = x * (z ** y)
if (y <= (-24000.0d0)) then
tmp = t_1
else if (y <= 0.235d0) then
tmp = x * exp((a * (-z - b)))
else if (y <= 3.45d+72) then
tmp = t_1
else
tmp = x * exp((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 = x * Math.pow(z, y);
double tmp;
if (y <= -24000.0) {
tmp = t_1;
} else if (y <= 0.235) {
tmp = x * Math.exp((a * (-z - b)));
} else if (y <= 3.45e+72) {
tmp = t_1;
} else {
tmp = x * Math.exp((y * -t));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * math.pow(z, y) tmp = 0 if y <= -24000.0: tmp = t_1 elif y <= 0.235: tmp = x * math.exp((a * (-z - b))) elif y <= 3.45e+72: tmp = t_1 else: tmp = x * math.exp((y * -t)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * (z ^ y)) tmp = 0.0 if (y <= -24000.0) tmp = t_1; elseif (y <= 0.235) tmp = Float64(x * exp(Float64(a * Float64(Float64(-z) - b)))); elseif (y <= 3.45e+72) tmp = t_1; else tmp = Float64(x * exp(Float64(y * Float64(-t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (z ^ y); tmp = 0.0; if (y <= -24000.0) tmp = t_1; elseif (y <= 0.235) tmp = x * exp((a * (-z - b))); elseif (y <= 3.45e+72) tmp = t_1; else tmp = x * exp((y * -t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -24000.0], t$95$1, If[LessEqual[y, 0.235], N[(x * N[Exp[N[(a * N[((-z) - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.45e+72], t$95$1, N[(x * N[Exp[N[(y * (-t)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot {z}^{y}\\
\mathbf{if}\;y \leq -24000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 0.235:\\
\;\;\;\;x \cdot e^{a \cdot \left(\left(-z\right) - b\right)}\\
\mathbf{elif}\;y \leq 3.45 \cdot 10^{+72}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot e^{y \cdot \left(-t\right)}\\
\end{array}
\end{array}
if y < -24000 or 0.23499999999999999 < y < 3.45000000000000017e72Initial program 98.6%
Taylor expanded in a around 0 88.4%
*-commutative88.4%
exp-prod88.4%
exp-diff88.4%
rem-exp-log88.5%
Simplified88.5%
Taylor expanded in t around 0 78.3%
if -24000 < y < 0.23499999999999999Initial program 94.9%
Taylor expanded in y around 0 82.7%
sub-neg82.7%
log1p-define87.8%
Simplified87.8%
Taylor expanded in z around 0 87.8%
+-commutative87.8%
associate-*r*87.8%
associate-*r*87.8%
distribute-lft-out87.8%
mul-1-neg87.8%
Simplified87.8%
if 3.45000000000000017e72 < y Initial program 91.2%
Taylor expanded in t around inf 74.0%
mul-1-neg74.0%
distribute-lft-neg-out74.0%
*-commutative74.0%
Simplified74.0%
Final simplification82.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (pow z y))))
(if (<= y -1.55e-13)
t_1
(if (<= y 0.15)
(- x (* x (* a b)))
(if (<= y 1.35e+271) t_1 (* y (- (/ x y) (* x t))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * pow(z, y);
double tmp;
if (y <= -1.55e-13) {
tmp = t_1;
} else if (y <= 0.15) {
tmp = x - (x * (a * b));
} else if (y <= 1.35e+271) {
tmp = t_1;
} else {
tmp = y * ((x / 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) :: t_1
real(8) :: tmp
t_1 = x * (z ** y)
if (y <= (-1.55d-13)) then
tmp = t_1
else if (y <= 0.15d0) then
tmp = x - (x * (a * b))
else if (y <= 1.35d+271) then
tmp = t_1
else
tmp = y * ((x / 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 t_1 = x * Math.pow(z, y);
double tmp;
if (y <= -1.55e-13) {
tmp = t_1;
} else if (y <= 0.15) {
tmp = x - (x * (a * b));
} else if (y <= 1.35e+271) {
tmp = t_1;
} else {
tmp = y * ((x / y) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * math.pow(z, y) tmp = 0 if y <= -1.55e-13: tmp = t_1 elif y <= 0.15: tmp = x - (x * (a * b)) elif y <= 1.35e+271: tmp = t_1 else: tmp = y * ((x / y) - (x * t)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * (z ^ y)) tmp = 0.0 if (y <= -1.55e-13) tmp = t_1; elseif (y <= 0.15) tmp = Float64(x - Float64(x * Float64(a * b))); elseif (y <= 1.35e+271) tmp = t_1; else tmp = Float64(y * Float64(Float64(x / y) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (z ^ y); tmp = 0.0; if (y <= -1.55e-13) tmp = t_1; elseif (y <= 0.15) tmp = x - (x * (a * b)); elseif (y <= 1.35e+271) tmp = t_1; else tmp = y * ((x / y) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.55e-13], t$95$1, If[LessEqual[y, 0.15], N[(x - N[(x * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.35e+271], t$95$1, N[(y * N[(N[(x / y), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot {z}^{y}\\
\mathbf{if}\;y \leq -1.55 \cdot 10^{-13}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 0.15:\\
\;\;\;\;x - x \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{+271}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\frac{x}{y} - x \cdot t\right)\\
\end{array}
\end{array}
if y < -1.55e-13 or 0.149999999999999994 < y < 1.34999999999999995e271Initial program 95.6%
Taylor expanded in a around 0 87.9%
*-commutative87.9%
exp-prod87.9%
exp-diff87.9%
rem-exp-log88.0%
Simplified88.0%
Taylor expanded in t around 0 73.5%
if -1.55e-13 < y < 0.149999999999999994Initial program 94.9%
Taylor expanded in b around inf 82.0%
mul-1-neg82.0%
distribute-rgt-neg-out82.0%
Simplified82.0%
Taylor expanded in a around 0 46.3%
mul-1-neg46.3%
unsub-neg46.3%
associate-*r*49.9%
*-commutative49.9%
Simplified49.9%
if 1.34999999999999995e271 < y Initial program 100.0%
Taylor expanded in t around inf 71.9%
mul-1-neg71.9%
distribute-lft-neg-out71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in y around 0 72.4%
mul-1-neg72.4%
unsub-neg72.4%
associate-*r*72.6%
*-commutative72.6%
cancel-sign-sub-inv72.6%
mul-1-neg72.6%
*-commutative72.6%
associate-*r*72.6%
*-commutative72.6%
mul-1-neg72.6%
distribute-lft-neg-in72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in y around inf 100.0%
*-commutative100.0%
Simplified100.0%
Final simplification61.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (pow z y))))
(if (<= y -0.38)
t_1
(if (<= y 0.135)
(* x (exp (* a (- b))))
(if (<= y 1.35e+271) t_1 (* y (- (/ x y) (* x t))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * pow(z, y);
double tmp;
if (y <= -0.38) {
tmp = t_1;
} else if (y <= 0.135) {
tmp = x * exp((a * -b));
} else if (y <= 1.35e+271) {
tmp = t_1;
} else {
tmp = y * ((x / 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) :: t_1
real(8) :: tmp
t_1 = x * (z ** y)
if (y <= (-0.38d0)) then
tmp = t_1
else if (y <= 0.135d0) then
tmp = x * exp((a * -b))
else if (y <= 1.35d+271) then
tmp = t_1
else
tmp = y * ((x / 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 t_1 = x * Math.pow(z, y);
double tmp;
if (y <= -0.38) {
tmp = t_1;
} else if (y <= 0.135) {
tmp = x * Math.exp((a * -b));
} else if (y <= 1.35e+271) {
tmp = t_1;
} else {
tmp = y * ((x / y) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * math.pow(z, y) tmp = 0 if y <= -0.38: tmp = t_1 elif y <= 0.135: tmp = x * math.exp((a * -b)) elif y <= 1.35e+271: tmp = t_1 else: tmp = y * ((x / y) - (x * t)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * (z ^ y)) tmp = 0.0 if (y <= -0.38) tmp = t_1; elseif (y <= 0.135) tmp = Float64(x * exp(Float64(a * Float64(-b)))); elseif (y <= 1.35e+271) tmp = t_1; else tmp = Float64(y * Float64(Float64(x / y) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (z ^ y); tmp = 0.0; if (y <= -0.38) tmp = t_1; elseif (y <= 0.135) tmp = x * exp((a * -b)); elseif (y <= 1.35e+271) tmp = t_1; else tmp = y * ((x / y) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -0.38], t$95$1, If[LessEqual[y, 0.135], N[(x * N[Exp[N[(a * (-b)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.35e+271], t$95$1, N[(y * N[(N[(x / y), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot {z}^{y}\\
\mathbf{if}\;y \leq -0.38:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 0.135:\\
\;\;\;\;x \cdot e^{a \cdot \left(-b\right)}\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{+271}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\frac{x}{y} - x \cdot t\right)\\
\end{array}
\end{array}
if y < -0.38 or 0.13500000000000001 < y < 1.34999999999999995e271Initial program 95.6%
Taylor expanded in a around 0 87.9%
*-commutative87.9%
exp-prod87.9%
exp-diff87.9%
rem-exp-log88.0%
Simplified88.0%
Taylor expanded in t around 0 73.5%
if -0.38 < y < 0.13500000000000001Initial program 94.9%
Taylor expanded in b around inf 82.0%
mul-1-neg82.0%
distribute-rgt-neg-out82.0%
Simplified82.0%
if 1.34999999999999995e271 < y Initial program 100.0%
Taylor expanded in t around inf 71.9%
mul-1-neg71.9%
distribute-lft-neg-out71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in y around 0 72.4%
mul-1-neg72.4%
unsub-neg72.4%
associate-*r*72.6%
*-commutative72.6%
cancel-sign-sub-inv72.6%
mul-1-neg72.6%
*-commutative72.6%
associate-*r*72.6%
*-commutative72.6%
mul-1-neg72.6%
distribute-lft-neg-in72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in y around inf 100.0%
*-commutative100.0%
Simplified100.0%
Final simplification78.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (* y (- t)))))
(if (<= y -7.8e+205)
t_1
(if (<= y -2.05e-161)
(* a (/ x a))
(if (<= y 4.3e-27)
x
(if (<= y 1.32e+172)
(* a (* x (- b)))
(if (<= y 1.55e+301) t_1 (* a (* x b)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (y * -t);
double tmp;
if (y <= -7.8e+205) {
tmp = t_1;
} else if (y <= -2.05e-161) {
tmp = a * (x / a);
} else if (y <= 4.3e-27) {
tmp = x;
} else if (y <= 1.32e+172) {
tmp = a * (x * -b);
} else if (y <= 1.55e+301) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = x * (y * -t)
if (y <= (-7.8d+205)) then
tmp = t_1
else if (y <= (-2.05d-161)) then
tmp = a * (x / a)
else if (y <= 4.3d-27) then
tmp = x
else if (y <= 1.32d+172) then
tmp = a * (x * -b)
else if (y <= 1.55d+301) then
tmp = t_1
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 t_1 = x * (y * -t);
double tmp;
if (y <= -7.8e+205) {
tmp = t_1;
} else if (y <= -2.05e-161) {
tmp = a * (x / a);
} else if (y <= 4.3e-27) {
tmp = x;
} else if (y <= 1.32e+172) {
tmp = a * (x * -b);
} else if (y <= 1.55e+301) {
tmp = t_1;
} else {
tmp = a * (x * b);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * (y * -t) tmp = 0 if y <= -7.8e+205: tmp = t_1 elif y <= -2.05e-161: tmp = a * (x / a) elif y <= 4.3e-27: tmp = x elif y <= 1.32e+172: tmp = a * (x * -b) elif y <= 1.55e+301: tmp = t_1 else: tmp = a * (x * b) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(y * Float64(-t))) tmp = 0.0 if (y <= -7.8e+205) tmp = t_1; elseif (y <= -2.05e-161) tmp = Float64(a * Float64(x / a)); elseif (y <= 4.3e-27) tmp = x; elseif (y <= 1.32e+172) tmp = Float64(a * Float64(x * Float64(-b))); elseif (y <= 1.55e+301) tmp = t_1; else tmp = Float64(a * Float64(x * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (y * -t); tmp = 0.0; if (y <= -7.8e+205) tmp = t_1; elseif (y <= -2.05e-161) tmp = a * (x / a); elseif (y <= 4.3e-27) tmp = x; elseif (y <= 1.32e+172) tmp = a * (x * -b); elseif (y <= 1.55e+301) tmp = t_1; else tmp = a * (x * b); 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, -7.8e+205], t$95$1, If[LessEqual[y, -2.05e-161], N[(a * N[(x / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.3e-27], x, If[LessEqual[y, 1.32e+172], N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.55e+301], t$95$1, N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot \left(-t\right)\right)\\
\mathbf{if}\;y \leq -7.8 \cdot 10^{+205}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.05 \cdot 10^{-161}:\\
\;\;\;\;a \cdot \frac{x}{a}\\
\mathbf{elif}\;y \leq 4.3 \cdot 10^{-27}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.32 \cdot 10^{+172}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{+301}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot b\right)\\
\end{array}
\end{array}
if y < -7.7999999999999997e205 or 1.31999999999999996e172 < y < 1.55000000000000005e301Initial program 93.8%
Taylor expanded in t around inf 81.6%
mul-1-neg81.6%
distribute-lft-neg-out81.6%
*-commutative81.6%
Simplified81.6%
Taylor expanded in y around 0 45.2%
mul-1-neg45.2%
unsub-neg45.2%
associate-*r*37.4%
*-commutative37.4%
cancel-sign-sub-inv37.4%
mul-1-neg37.4%
*-commutative37.4%
associate-*r*37.4%
*-commutative37.4%
mul-1-neg37.4%
distribute-lft-neg-in37.4%
*-commutative37.4%
Simplified37.4%
Taylor expanded in t around inf 45.2%
mul-1-neg45.2%
associate-*r*39.3%
*-commutative39.3%
associate-*r*41.2%
distribute-lft-neg-in41.2%
Simplified41.2%
if -7.7999999999999997e205 < y < -2.0499999999999999e-161Initial program 98.6%
Taylor expanded in b around inf 54.7%
mul-1-neg54.7%
distribute-rgt-neg-out54.7%
Simplified54.7%
Taylor expanded in a around 0 22.0%
mul-1-neg22.0%
unsub-neg22.0%
associate-*r*21.9%
*-commutative21.9%
Simplified21.9%
Taylor expanded in a around inf 26.2%
Taylor expanded in a around 0 29.0%
if -2.0499999999999999e-161 < y < 4.30000000000000002e-27Initial program 93.8%
Taylor expanded in b around inf 85.6%
mul-1-neg85.6%
distribute-rgt-neg-out85.6%
Simplified85.6%
Taylor expanded in a around 0 44.6%
if 4.30000000000000002e-27 < y < 1.31999999999999996e172Initial program 95.4%
Taylor expanded in b around inf 39.8%
mul-1-neg39.8%
distribute-rgt-neg-out39.8%
Simplified39.8%
Taylor expanded in a around 0 14.8%
mul-1-neg14.8%
unsub-neg14.8%
associate-*r*15.1%
*-commutative15.1%
Simplified15.1%
Taylor expanded in a around inf 32.5%
neg-mul-132.5%
distribute-rgt-neg-in32.5%
distribute-lft-neg-in32.5%
Simplified32.5%
if 1.55000000000000005e301 < y Initial program 100.0%
Taylor expanded in b around inf 4.0%
mul-1-neg4.0%
distribute-rgt-neg-out4.0%
Simplified4.0%
Taylor expanded in a around 0 4.0%
mul-1-neg4.0%
unsub-neg4.0%
associate-*r*4.0%
*-commutative4.0%
Simplified4.0%
sub-neg4.0%
*-commutative4.0%
distribute-lft-neg-in4.0%
distribute-lft-neg-out4.0%
add-sqr-sqrt1.9%
sqrt-unprod4.0%
sqr-neg4.0%
sqrt-unprod2.1%
add-sqr-sqrt4.0%
distribute-rgt1-in4.0%
Applied egg-rr4.0%
Taylor expanded in a around inf 4.5%
Final simplification37.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -4.7e+176)
(* t (* y (- x)))
(if (<= y -2.1e-161)
(* a (/ x a))
(if (<= y 1.5e-36)
(+ x (* t (* x y)))
(if (<= y 3.1e-13)
(* a (* x (- b)))
(if (<= y 2.65e+172) (* x (* a (- b))) (* x (* y (- t)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -4.7e+176) {
tmp = t * (y * -x);
} else if (y <= -2.1e-161) {
tmp = a * (x / a);
} else if (y <= 1.5e-36) {
tmp = x + (t * (x * y));
} else if (y <= 3.1e-13) {
tmp = a * (x * -b);
} else if (y <= 2.65e+172) {
tmp = x * (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) :: tmp
if (y <= (-4.7d+176)) then
tmp = t * (y * -x)
else if (y <= (-2.1d-161)) then
tmp = a * (x / a)
else if (y <= 1.5d-36) then
tmp = x + (t * (x * y))
else if (y <= 3.1d-13) then
tmp = a * (x * -b)
else if (y <= 2.65d+172) then
tmp = x * (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 tmp;
if (y <= -4.7e+176) {
tmp = t * (y * -x);
} else if (y <= -2.1e-161) {
tmp = a * (x / a);
} else if (y <= 1.5e-36) {
tmp = x + (t * (x * y));
} else if (y <= 3.1e-13) {
tmp = a * (x * -b);
} else if (y <= 2.65e+172) {
tmp = x * (a * -b);
} else {
tmp = x * (y * -t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -4.7e+176: tmp = t * (y * -x) elif y <= -2.1e-161: tmp = a * (x / a) elif y <= 1.5e-36: tmp = x + (t * (x * y)) elif y <= 3.1e-13: tmp = a * (x * -b) elif y <= 2.65e+172: tmp = x * (a * -b) else: tmp = x * (y * -t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -4.7e+176) tmp = Float64(t * Float64(y * Float64(-x))); elseif (y <= -2.1e-161) tmp = Float64(a * Float64(x / a)); elseif (y <= 1.5e-36) tmp = Float64(x + Float64(t * Float64(x * y))); elseif (y <= 3.1e-13) tmp = Float64(a * Float64(x * Float64(-b))); elseif (y <= 2.65e+172) tmp = Float64(x * Float64(a * Float64(-b))); else tmp = Float64(x * Float64(y * Float64(-t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -4.7e+176) tmp = t * (y * -x); elseif (y <= -2.1e-161) tmp = a * (x / a); elseif (y <= 1.5e-36) tmp = x + (t * (x * y)); elseif (y <= 3.1e-13) tmp = a * (x * -b); elseif (y <= 2.65e+172) tmp = x * (a * -b); else tmp = x * (y * -t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -4.7e+176], N[(t * N[(y * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.1e-161], N[(a * N[(x / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.5e-36], N[(x + N[(t * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.1e-13], N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.65e+172], N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.7 \cdot 10^{+176}:\\
\;\;\;\;t \cdot \left(y \cdot \left(-x\right)\right)\\
\mathbf{elif}\;y \leq -2.1 \cdot 10^{-161}:\\
\;\;\;\;a \cdot \frac{x}{a}\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{-36}:\\
\;\;\;\;x + t \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{-13}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq 2.65 \cdot 10^{+172}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot \left(-t\right)\right)\\
\end{array}
\end{array}
if y < -4.69999999999999981e176Initial program 100.0%
Taylor expanded in t around inf 83.3%
mul-1-neg83.3%
distribute-lft-neg-out83.3%
*-commutative83.3%
Simplified83.3%
Taylor expanded in y around 0 43.1%
mul-1-neg43.1%
unsub-neg43.1%
associate-*r*26.9%
*-commutative26.9%
cancel-sign-sub-inv26.9%
mul-1-neg26.9%
*-commutative26.9%
associate-*r*26.9%
*-commutative26.9%
mul-1-neg26.9%
distribute-lft-neg-in26.9%
*-commutative26.9%
Simplified26.9%
Taylor expanded in t around inf 43.1%
if -4.69999999999999981e176 < y < -2.1e-161Initial program 98.4%
Taylor expanded in b around inf 56.7%
mul-1-neg56.7%
distribute-rgt-neg-out56.7%
Simplified56.7%
Taylor expanded in a around 0 24.5%
mul-1-neg24.5%
unsub-neg24.5%
associate-*r*24.4%
*-commutative24.4%
Simplified24.4%
Taylor expanded in a around inf 27.7%
Taylor expanded in a around 0 30.9%
if -2.1e-161 < y < 1.5000000000000001e-36Initial program 93.7%
Taylor expanded in t around inf 51.5%
mul-1-neg51.5%
distribute-lft-neg-out51.5%
*-commutative51.5%
Simplified51.5%
Taylor expanded in y around 0 45.4%
mul-1-neg45.4%
unsub-neg45.4%
associate-*r*45.2%
*-commutative45.2%
cancel-sign-sub-inv45.2%
mul-1-neg45.2%
*-commutative45.2%
associate-*r*45.2%
*-commutative45.2%
mul-1-neg45.2%
distribute-lft-neg-in45.2%
*-commutative45.2%
Simplified45.2%
*-un-lft-identity45.2%
*-commutative45.2%
add-sqr-sqrt30.6%
sqrt-unprod44.1%
sqr-neg44.1%
sqrt-unprod32.3%
add-sqr-sqrt44.1%
associate-*l*46.4%
Applied egg-rr46.4%
*-rgt-identity46.4%
associate-*r*44.1%
*-commutative44.1%
associate-*r*46.4%
Simplified46.4%
if 1.5000000000000001e-36 < y < 3.0999999999999999e-13Initial program 81.6%
Taylor expanded in b around inf 42.8%
mul-1-neg42.8%
distribute-rgt-neg-out42.8%
Simplified42.8%
Taylor expanded in a around 0 23.8%
mul-1-neg23.8%
unsub-neg23.8%
associate-*r*23.8%
*-commutative23.8%
Simplified23.8%
Taylor expanded in a around inf 41.8%
neg-mul-141.8%
distribute-rgt-neg-in41.8%
distribute-lft-neg-in41.8%
Simplified41.8%
if 3.0999999999999999e-13 < y < 2.65e172Initial program 97.3%
Taylor expanded in b around inf 37.6%
mul-1-neg37.6%
distribute-rgt-neg-out37.6%
Simplified37.6%
Taylor expanded in a around 0 13.1%
mul-1-neg13.1%
unsub-neg13.1%
associate-*r*13.4%
*-commutative13.4%
Simplified13.4%
Taylor expanded in a around inf 29.8%
associate-*r*32.1%
associate-*r*32.1%
mul-1-neg32.1%
*-commutative32.1%
distribute-rgt-neg-in32.1%
Simplified32.1%
if 2.65e172 < y Initial program 89.7%
Taylor expanded in t around inf 76.3%
mul-1-neg76.3%
distribute-lft-neg-out76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in y around 0 39.4%
mul-1-neg39.4%
unsub-neg39.4%
associate-*r*36.3%
*-commutative36.3%
cancel-sign-sub-inv36.3%
mul-1-neg36.3%
*-commutative36.3%
associate-*r*36.3%
*-commutative36.3%
mul-1-neg36.3%
distribute-lft-neg-in36.3%
*-commutative36.3%
Simplified36.3%
Taylor expanded in t around inf 39.4%
mul-1-neg39.4%
associate-*r*46.1%
*-commutative46.1%
associate-*r*39.5%
distribute-lft-neg-in39.5%
Simplified39.5%
Final simplification39.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (* y (- t)))))
(if (<= y -2.5e+204)
t_1
(if (<= y -2.1e-161)
(* a (/ x a))
(if (<= y 4.2e-27) x (if (<= y 2e+171) (* x (* a (- b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (y * -t);
double tmp;
if (y <= -2.5e+204) {
tmp = t_1;
} else if (y <= -2.1e-161) {
tmp = a * (x / a);
} else if (y <= 4.2e-27) {
tmp = x;
} else if (y <= 2e+171) {
tmp = x * (a * -b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x * (y * -t)
if (y <= (-2.5d+204)) then
tmp = t_1
else if (y <= (-2.1d-161)) then
tmp = a * (x / a)
else if (y <= 4.2d-27) then
tmp = x
else if (y <= 2d+171) then
tmp = x * (a * -b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (y * -t);
double tmp;
if (y <= -2.5e+204) {
tmp = t_1;
} else if (y <= -2.1e-161) {
tmp = a * (x / a);
} else if (y <= 4.2e-27) {
tmp = x;
} else if (y <= 2e+171) {
tmp = x * (a * -b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * (y * -t) tmp = 0 if y <= -2.5e+204: tmp = t_1 elif y <= -2.1e-161: tmp = a * (x / a) elif y <= 4.2e-27: tmp = x elif y <= 2e+171: tmp = x * (a * -b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(y * Float64(-t))) tmp = 0.0 if (y <= -2.5e+204) tmp = t_1; elseif (y <= -2.1e-161) tmp = Float64(a * Float64(x / a)); elseif (y <= 4.2e-27) tmp = x; elseif (y <= 2e+171) tmp = Float64(x * Float64(a * Float64(-b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (y * -t); tmp = 0.0; if (y <= -2.5e+204) tmp = t_1; elseif (y <= -2.1e-161) tmp = a * (x / a); elseif (y <= 4.2e-27) tmp = x; elseif (y <= 2e+171) tmp = x * (a * -b); else tmp = t_1; 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, -2.5e+204], t$95$1, If[LessEqual[y, -2.1e-161], N[(a * N[(x / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.2e-27], x, If[LessEqual[y, 2e+171], N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot \left(-t\right)\right)\\
\mathbf{if}\;y \leq -2.5 \cdot 10^{+204}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.1 \cdot 10^{-161}:\\
\;\;\;\;a \cdot \frac{x}{a}\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-27}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+171}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.50000000000000004e204 or 1.99999999999999991e171 < y Initial program 94.0%
Taylor expanded in t around inf 78.4%
mul-1-neg78.4%
distribute-lft-neg-out78.4%
*-commutative78.4%
Simplified78.4%
Taylor expanded in y around 0 43.5%
mul-1-neg43.5%
unsub-neg43.5%
associate-*r*36.0%
*-commutative36.0%
cancel-sign-sub-inv36.0%
mul-1-neg36.0%
*-commutative36.0%
associate-*r*36.0%
*-commutative36.0%
mul-1-neg36.0%
distribute-lft-neg-in36.0%
*-commutative36.0%
Simplified36.0%
Taylor expanded in t around inf 43.5%
mul-1-neg43.5%
associate-*r*41.7%
*-commutative41.7%
associate-*r*39.7%
distribute-lft-neg-in39.7%
Simplified39.7%
if -2.50000000000000004e204 < y < -2.1e-161Initial program 98.6%
Taylor expanded in b around inf 54.7%
mul-1-neg54.7%
distribute-rgt-neg-out54.7%
Simplified54.7%
Taylor expanded in a around 0 22.0%
mul-1-neg22.0%
unsub-neg22.0%
associate-*r*21.9%
*-commutative21.9%
Simplified21.9%
Taylor expanded in a around inf 26.2%
Taylor expanded in a around 0 29.0%
if -2.1e-161 < y < 4.20000000000000031e-27Initial program 93.8%
Taylor expanded in b around inf 85.6%
mul-1-neg85.6%
distribute-rgt-neg-out85.6%
Simplified85.6%
Taylor expanded in a around 0 44.6%
if 4.20000000000000031e-27 < y < 1.99999999999999991e171Initial program 95.4%
Taylor expanded in b around inf 39.8%
mul-1-neg39.8%
distribute-rgt-neg-out39.8%
Simplified39.8%
Taylor expanded in a around 0 14.8%
mul-1-neg14.8%
unsub-neg14.8%
associate-*r*15.1%
*-commutative15.1%
Simplified15.1%
Taylor expanded in a around inf 32.5%
associate-*r*32.5%
associate-*r*32.5%
mul-1-neg32.5%
*-commutative32.5%
distribute-rgt-neg-in32.5%
Simplified32.5%
Final simplification37.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -3.05e+174)
(* t (* y (- x)))
(if (<= y -2.1e-161)
(* a (/ x a))
(if (<= y 4.2e-27)
x
(if (<= y 2.85e+172) (* x (* a (- b))) (* x (* y (- t))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -3.05e+174) {
tmp = t * (y * -x);
} else if (y <= -2.1e-161) {
tmp = a * (x / a);
} else if (y <= 4.2e-27) {
tmp = x;
} else if (y <= 2.85e+172) {
tmp = x * (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) :: tmp
if (y <= (-3.05d+174)) then
tmp = t * (y * -x)
else if (y <= (-2.1d-161)) then
tmp = a * (x / a)
else if (y <= 4.2d-27) then
tmp = x
else if (y <= 2.85d+172) then
tmp = x * (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 tmp;
if (y <= -3.05e+174) {
tmp = t * (y * -x);
} else if (y <= -2.1e-161) {
tmp = a * (x / a);
} else if (y <= 4.2e-27) {
tmp = x;
} else if (y <= 2.85e+172) {
tmp = x * (a * -b);
} else {
tmp = x * (y * -t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -3.05e+174: tmp = t * (y * -x) elif y <= -2.1e-161: tmp = a * (x / a) elif y <= 4.2e-27: tmp = x elif y <= 2.85e+172: tmp = x * (a * -b) else: tmp = x * (y * -t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -3.05e+174) tmp = Float64(t * Float64(y * Float64(-x))); elseif (y <= -2.1e-161) tmp = Float64(a * Float64(x / a)); elseif (y <= 4.2e-27) tmp = x; elseif (y <= 2.85e+172) tmp = Float64(x * Float64(a * Float64(-b))); else tmp = Float64(x * Float64(y * Float64(-t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -3.05e+174) tmp = t * (y * -x); elseif (y <= -2.1e-161) tmp = a * (x / a); elseif (y <= 4.2e-27) tmp = x; elseif (y <= 2.85e+172) tmp = x * (a * -b); else tmp = x * (y * -t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -3.05e+174], N[(t * N[(y * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.1e-161], N[(a * N[(x / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.2e-27], x, If[LessEqual[y, 2.85e+172], N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.05 \cdot 10^{+174}:\\
\;\;\;\;t \cdot \left(y \cdot \left(-x\right)\right)\\
\mathbf{elif}\;y \leq -2.1 \cdot 10^{-161}:\\
\;\;\;\;a \cdot \frac{x}{a}\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-27}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 2.85 \cdot 10^{+172}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot \left(-t\right)\right)\\
\end{array}
\end{array}
if y < -3.05e174Initial program 100.0%
Taylor expanded in t around inf 83.3%
mul-1-neg83.3%
distribute-lft-neg-out83.3%
*-commutative83.3%
Simplified83.3%
Taylor expanded in y around 0 43.1%
mul-1-neg43.1%
unsub-neg43.1%
associate-*r*26.9%
*-commutative26.9%
cancel-sign-sub-inv26.9%
mul-1-neg26.9%
*-commutative26.9%
associate-*r*26.9%
*-commutative26.9%
mul-1-neg26.9%
distribute-lft-neg-in26.9%
*-commutative26.9%
Simplified26.9%
Taylor expanded in t around inf 43.1%
if -3.05e174 < y < -2.1e-161Initial program 98.4%
Taylor expanded in b around inf 56.7%
mul-1-neg56.7%
distribute-rgt-neg-out56.7%
Simplified56.7%
Taylor expanded in a around 0 24.5%
mul-1-neg24.5%
unsub-neg24.5%
associate-*r*24.4%
*-commutative24.4%
Simplified24.4%
Taylor expanded in a around inf 27.7%
Taylor expanded in a around 0 30.9%
if -2.1e-161 < y < 4.20000000000000031e-27Initial program 93.8%
Taylor expanded in b around inf 85.6%
mul-1-neg85.6%
distribute-rgt-neg-out85.6%
Simplified85.6%
Taylor expanded in a around 0 44.6%
if 4.20000000000000031e-27 < y < 2.85e172Initial program 95.4%
Taylor expanded in b around inf 39.8%
mul-1-neg39.8%
distribute-rgt-neg-out39.8%
Simplified39.8%
Taylor expanded in a around 0 14.8%
mul-1-neg14.8%
unsub-neg14.8%
associate-*r*15.1%
*-commutative15.1%
Simplified15.1%
Taylor expanded in a around inf 32.5%
associate-*r*32.5%
associate-*r*32.5%
mul-1-neg32.5%
*-commutative32.5%
distribute-rgt-neg-in32.5%
Simplified32.5%
if 2.85e172 < y Initial program 89.7%
Taylor expanded in t around inf 76.3%
mul-1-neg76.3%
distribute-lft-neg-out76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in y around 0 39.4%
mul-1-neg39.4%
unsub-neg39.4%
associate-*r*36.3%
*-commutative36.3%
cancel-sign-sub-inv36.3%
mul-1-neg36.3%
*-commutative36.3%
associate-*r*36.3%
*-commutative36.3%
mul-1-neg36.3%
distribute-lft-neg-in36.3%
*-commutative36.3%
Simplified36.3%
Taylor expanded in t around inf 39.4%
mul-1-neg39.4%
associate-*r*46.1%
*-commutative46.1%
associate-*r*39.5%
distribute-lft-neg-in39.5%
Simplified39.5%
Final simplification38.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -1.4e+32)
(* t (- (/ x t) (* x y)))
(if (<= y 7.5e+36)
(- x (* x (* a b)))
(if (<= y 2e+171) (* x (* a (- b))) (* y (- (/ x y) (* x t)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.4e+32) {
tmp = t * ((x / t) - (x * y));
} else if (y <= 7.5e+36) {
tmp = x - (x * (a * b));
} else if (y <= 2e+171) {
tmp = x * (a * -b);
} else {
tmp = y * ((x / 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 <= (-1.4d+32)) then
tmp = t * ((x / t) - (x * y))
else if (y <= 7.5d+36) then
tmp = x - (x * (a * b))
else if (y <= 2d+171) then
tmp = x * (a * -b)
else
tmp = y * ((x / 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 <= -1.4e+32) {
tmp = t * ((x / t) - (x * y));
} else if (y <= 7.5e+36) {
tmp = x - (x * (a * b));
} else if (y <= 2e+171) {
tmp = x * (a * -b);
} else {
tmp = y * ((x / y) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -1.4e+32: tmp = t * ((x / t) - (x * y)) elif y <= 7.5e+36: tmp = x - (x * (a * b)) elif y <= 2e+171: tmp = x * (a * -b) else: tmp = y * ((x / y) - (x * t)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -1.4e+32) tmp = Float64(t * Float64(Float64(x / t) - Float64(x * y))); elseif (y <= 7.5e+36) tmp = Float64(x - Float64(x * Float64(a * b))); elseif (y <= 2e+171) tmp = Float64(x * Float64(a * Float64(-b))); else tmp = Float64(y * Float64(Float64(x / y) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -1.4e+32) tmp = t * ((x / t) - (x * y)); elseif (y <= 7.5e+36) tmp = x - (x * (a * b)); elseif (y <= 2e+171) tmp = x * (a * -b); else tmp = y * ((x / y) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -1.4e+32], N[(t * N[(N[(x / t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.5e+36], N[(x - N[(x * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2e+171], N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(x / y), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.4 \cdot 10^{+32}:\\
\;\;\;\;t \cdot \left(\frac{x}{t} - x \cdot y\right)\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{+36}:\\
\;\;\;\;x - x \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+171}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\frac{x}{y} - x \cdot t\right)\\
\end{array}
\end{array}
if y < -1.4e32Initial program 100.0%
Taylor expanded in t around inf 68.4%
mul-1-neg68.4%
distribute-lft-neg-out68.4%
*-commutative68.4%
Simplified68.4%
Taylor expanded in y around 0 34.8%
mul-1-neg34.8%
unsub-neg34.8%
associate-*r*24.0%
*-commutative24.0%
cancel-sign-sub-inv24.0%
mul-1-neg24.0%
*-commutative24.0%
associate-*r*24.0%
*-commutative24.0%
mul-1-neg24.0%
distribute-lft-neg-in24.0%
*-commutative24.0%
Simplified24.0%
Taylor expanded in t around inf 38.5%
if -1.4e32 < y < 7.50000000000000054e36Initial program 94.6%
Taylor expanded in b around inf 78.4%
mul-1-neg78.4%
distribute-rgt-neg-out78.4%
Simplified78.4%
Taylor expanded in a around 0 43.2%
mul-1-neg43.2%
unsub-neg43.2%
associate-*r*46.5%
*-commutative46.5%
Simplified46.5%
if 7.50000000000000054e36 < y < 1.99999999999999991e171Initial program 96.5%
Taylor expanded in b around inf 27.8%
mul-1-neg27.8%
distribute-rgt-neg-out27.8%
Simplified27.8%
Taylor expanded in a around 0 10.4%
mul-1-neg10.4%
unsub-neg10.4%
associate-*r*10.4%
*-commutative10.4%
Simplified10.4%
Taylor expanded in a around inf 34.4%
associate-*r*37.7%
associate-*r*37.7%
mul-1-neg37.7%
*-commutative37.7%
distribute-rgt-neg-in37.7%
Simplified37.7%
if 1.99999999999999991e171 < y Initial program 89.7%
Taylor expanded in t around inf 76.3%
mul-1-neg76.3%
distribute-lft-neg-out76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in y around 0 39.4%
mul-1-neg39.4%
unsub-neg39.4%
associate-*r*36.3%
*-commutative36.3%
cancel-sign-sub-inv36.3%
mul-1-neg36.3%
*-commutative36.3%
associate-*r*36.3%
*-commutative36.3%
mul-1-neg36.3%
distribute-lft-neg-in36.3%
*-commutative36.3%
Simplified36.3%
Taylor expanded in y around inf 46.1%
*-commutative46.1%
Simplified46.1%
Final simplification43.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -2.1e+32)
(* t (* y (- x)))
(if (<= y 4.4e-27)
(* x (- 1.0 (* z a)))
(if (<= y 3.9e+171) (* x (* a (- b))) (* x (* y (- t)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.1e+32) {
tmp = t * (y * -x);
} else if (y <= 4.4e-27) {
tmp = x * (1.0 - (z * a));
} else if (y <= 3.9e+171) {
tmp = x * (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) :: tmp
if (y <= (-2.1d+32)) then
tmp = t * (y * -x)
else if (y <= 4.4d-27) then
tmp = x * (1.0d0 - (z * a))
else if (y <= 3.9d+171) then
tmp = x * (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 tmp;
if (y <= -2.1e+32) {
tmp = t * (y * -x);
} else if (y <= 4.4e-27) {
tmp = x * (1.0 - (z * a));
} else if (y <= 3.9e+171) {
tmp = x * (a * -b);
} else {
tmp = x * (y * -t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -2.1e+32: tmp = t * (y * -x) elif y <= 4.4e-27: tmp = x * (1.0 - (z * a)) elif y <= 3.9e+171: tmp = x * (a * -b) else: tmp = x * (y * -t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -2.1e+32) tmp = Float64(t * Float64(y * Float64(-x))); elseif (y <= 4.4e-27) tmp = Float64(x * Float64(1.0 - Float64(z * a))); elseif (y <= 3.9e+171) tmp = Float64(x * Float64(a * Float64(-b))); else tmp = Float64(x * Float64(y * Float64(-t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -2.1e+32) tmp = t * (y * -x); elseif (y <= 4.4e-27) tmp = x * (1.0 - (z * a)); elseif (y <= 3.9e+171) tmp = x * (a * -b); else tmp = x * (y * -t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.1e+32], N[(t * N[(y * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.4e-27], N[(x * N[(1.0 - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.9e+171], N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.1 \cdot 10^{+32}:\\
\;\;\;\;t \cdot \left(y \cdot \left(-x\right)\right)\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{-27}:\\
\;\;\;\;x \cdot \left(1 - z \cdot a\right)\\
\mathbf{elif}\;y \leq 3.9 \cdot 10^{+171}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot \left(-t\right)\right)\\
\end{array}
\end{array}
if y < -2.1000000000000001e32Initial program 100.0%
Taylor expanded in t around inf 68.4%
mul-1-neg68.4%
distribute-lft-neg-out68.4%
*-commutative68.4%
Simplified68.4%
Taylor expanded in y around 0 34.8%
mul-1-neg34.8%
unsub-neg34.8%
associate-*r*24.0%
*-commutative24.0%
cancel-sign-sub-inv24.0%
mul-1-neg24.0%
*-commutative24.0%
associate-*r*24.0%
*-commutative24.0%
mul-1-neg24.0%
distribute-lft-neg-in24.0%
*-commutative24.0%
Simplified24.0%
Taylor expanded in t around inf 34.8%
if -2.1000000000000001e32 < y < 4.39999999999999974e-27Initial program 94.8%
Taylor expanded in y around 0 81.7%
sub-neg81.7%
log1p-define86.9%
Simplified86.9%
Taylor expanded in z around 0 86.9%
+-commutative86.9%
associate-*r*86.9%
associate-*r*86.9%
distribute-lft-out86.9%
mul-1-neg86.9%
Simplified86.9%
Taylor expanded in z around inf 54.9%
associate-*r*54.9%
mul-1-neg54.9%
Simplified54.9%
Taylor expanded in a around 0 39.5%
mul-1-neg39.5%
unsub-neg39.5%
*-lft-identity39.5%
*-commutative39.5%
associate-*r*39.5%
distribute-rgt-out--39.5%
Simplified39.5%
if 4.39999999999999974e-27 < y < 3.9e171Initial program 95.4%
Taylor expanded in b around inf 39.8%
mul-1-neg39.8%
distribute-rgt-neg-out39.8%
Simplified39.8%
Taylor expanded in a around 0 14.8%
mul-1-neg14.8%
unsub-neg14.8%
associate-*r*15.1%
*-commutative15.1%
Simplified15.1%
Taylor expanded in a around inf 32.5%
associate-*r*32.5%
associate-*r*32.5%
mul-1-neg32.5%
*-commutative32.5%
distribute-rgt-neg-in32.5%
Simplified32.5%
if 3.9e171 < y Initial program 89.7%
Taylor expanded in t around inf 76.3%
mul-1-neg76.3%
distribute-lft-neg-out76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in y around 0 39.4%
mul-1-neg39.4%
unsub-neg39.4%
associate-*r*36.3%
*-commutative36.3%
cancel-sign-sub-inv36.3%
mul-1-neg36.3%
*-commutative36.3%
associate-*r*36.3%
*-commutative36.3%
mul-1-neg36.3%
distribute-lft-neg-in36.3%
*-commutative36.3%
Simplified36.3%
Taylor expanded in t around inf 39.4%
mul-1-neg39.4%
associate-*r*46.1%
*-commutative46.1%
associate-*r*39.5%
distribute-lft-neg-in39.5%
Simplified39.5%
Final simplification37.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -2.7e+100)
(* t (* y (- x)))
(if (<= y 1.82e+37)
(- x (* a (* x b)))
(if (<= y 1e+172) (* x (* a (- b))) (* x (* y (- t)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.7e+100) {
tmp = t * (y * -x);
} else if (y <= 1.82e+37) {
tmp = x - (a * (x * b));
} else if (y <= 1e+172) {
tmp = x * (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) :: tmp
if (y <= (-2.7d+100)) then
tmp = t * (y * -x)
else if (y <= 1.82d+37) then
tmp = x - (a * (x * b))
else if (y <= 1d+172) then
tmp = x * (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 tmp;
if (y <= -2.7e+100) {
tmp = t * (y * -x);
} else if (y <= 1.82e+37) {
tmp = x - (a * (x * b));
} else if (y <= 1e+172) {
tmp = x * (a * -b);
} else {
tmp = x * (y * -t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -2.7e+100: tmp = t * (y * -x) elif y <= 1.82e+37: tmp = x - (a * (x * b)) elif y <= 1e+172: tmp = x * (a * -b) else: tmp = x * (y * -t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -2.7e+100) tmp = Float64(t * Float64(y * Float64(-x))); elseif (y <= 1.82e+37) tmp = Float64(x - Float64(a * Float64(x * b))); elseif (y <= 1e+172) tmp = Float64(x * Float64(a * Float64(-b))); else tmp = Float64(x * Float64(y * Float64(-t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -2.7e+100) tmp = t * (y * -x); elseif (y <= 1.82e+37) tmp = x - (a * (x * b)); elseif (y <= 1e+172) tmp = x * (a * -b); else tmp = x * (y * -t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.7e+100], N[(t * N[(y * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.82e+37], N[(x - N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1e+172], N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{+100}:\\
\;\;\;\;t \cdot \left(y \cdot \left(-x\right)\right)\\
\mathbf{elif}\;y \leq 1.82 \cdot 10^{+37}:\\
\;\;\;\;x - a \cdot \left(x \cdot b\right)\\
\mathbf{elif}\;y \leq 10^{+172}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot \left(-t\right)\right)\\
\end{array}
\end{array}
if y < -2.69999999999999998e100Initial program 100.0%
Taylor expanded in t around inf 71.4%
mul-1-neg71.4%
distribute-lft-neg-out71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in y around 0 36.1%
mul-1-neg36.1%
unsub-neg36.1%
associate-*r*23.3%
*-commutative23.3%
cancel-sign-sub-inv23.3%
mul-1-neg23.3%
*-commutative23.3%
associate-*r*23.3%
*-commutative23.3%
mul-1-neg23.3%
distribute-lft-neg-in23.3%
*-commutative23.3%
Simplified23.3%
Taylor expanded in t around inf 36.2%
if -2.69999999999999998e100 < y < 1.81999999999999998e37Initial program 94.9%
Taylor expanded in b around inf 77.0%
mul-1-neg77.0%
distribute-rgt-neg-out77.0%
Simplified77.0%
Taylor expanded in a around 0 42.4%
mul-1-neg42.4%
unsub-neg42.4%
*-commutative42.4%
Simplified42.4%
if 1.81999999999999998e37 < y < 1.0000000000000001e172Initial program 96.5%
Taylor expanded in b around inf 27.8%
mul-1-neg27.8%
distribute-rgt-neg-out27.8%
Simplified27.8%
Taylor expanded in a around 0 10.4%
mul-1-neg10.4%
unsub-neg10.4%
associate-*r*10.4%
*-commutative10.4%
Simplified10.4%
Taylor expanded in a around inf 34.4%
associate-*r*37.7%
associate-*r*37.7%
mul-1-neg37.7%
*-commutative37.7%
distribute-rgt-neg-in37.7%
Simplified37.7%
if 1.0000000000000001e172 < y Initial program 89.7%
Taylor expanded in t around inf 76.3%
mul-1-neg76.3%
distribute-lft-neg-out76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in y around 0 39.4%
mul-1-neg39.4%
unsub-neg39.4%
associate-*r*36.3%
*-commutative36.3%
cancel-sign-sub-inv36.3%
mul-1-neg36.3%
*-commutative36.3%
associate-*r*36.3%
*-commutative36.3%
mul-1-neg36.3%
distribute-lft-neg-in36.3%
*-commutative36.3%
Simplified36.3%
Taylor expanded in t around inf 39.4%
mul-1-neg39.4%
associate-*r*46.1%
*-commutative46.1%
associate-*r*39.5%
distribute-lft-neg-in39.5%
Simplified39.5%
Final simplification40.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -1.05e+38)
(* t (* y (- x)))
(if (<= y 7.5e+36)
(- x (* x (* a b)))
(if (<= y 9.4e+170) (* x (* a (- b))) (* x (* y (- t)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.05e+38) {
tmp = t * (y * -x);
} else if (y <= 7.5e+36) {
tmp = x - (x * (a * b));
} else if (y <= 9.4e+170) {
tmp = x * (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) :: tmp
if (y <= (-1.05d+38)) then
tmp = t * (y * -x)
else if (y <= 7.5d+36) then
tmp = x - (x * (a * b))
else if (y <= 9.4d+170) then
tmp = x * (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 tmp;
if (y <= -1.05e+38) {
tmp = t * (y * -x);
} else if (y <= 7.5e+36) {
tmp = x - (x * (a * b));
} else if (y <= 9.4e+170) {
tmp = x * (a * -b);
} else {
tmp = x * (y * -t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -1.05e+38: tmp = t * (y * -x) elif y <= 7.5e+36: tmp = x - (x * (a * b)) elif y <= 9.4e+170: tmp = x * (a * -b) else: tmp = x * (y * -t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -1.05e+38) tmp = Float64(t * Float64(y * Float64(-x))); elseif (y <= 7.5e+36) tmp = Float64(x - Float64(x * Float64(a * b))); elseif (y <= 9.4e+170) tmp = Float64(x * Float64(a * Float64(-b))); else tmp = Float64(x * Float64(y * Float64(-t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -1.05e+38) tmp = t * (y * -x); elseif (y <= 7.5e+36) tmp = x - (x * (a * b)); elseif (y <= 9.4e+170) tmp = x * (a * -b); else tmp = x * (y * -t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -1.05e+38], N[(t * N[(y * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.5e+36], N[(x - N[(x * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.4e+170], N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.05 \cdot 10^{+38}:\\
\;\;\;\;t \cdot \left(y \cdot \left(-x\right)\right)\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{+36}:\\
\;\;\;\;x - x \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;y \leq 9.4 \cdot 10^{+170}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot \left(-t\right)\right)\\
\end{array}
\end{array}
if y < -1.05e38Initial program 100.0%
Taylor expanded in t around inf 68.4%
mul-1-neg68.4%
distribute-lft-neg-out68.4%
*-commutative68.4%
Simplified68.4%
Taylor expanded in y around 0 34.8%
mul-1-neg34.8%
unsub-neg34.8%
associate-*r*24.0%
*-commutative24.0%
cancel-sign-sub-inv24.0%
mul-1-neg24.0%
*-commutative24.0%
associate-*r*24.0%
*-commutative24.0%
mul-1-neg24.0%
distribute-lft-neg-in24.0%
*-commutative24.0%
Simplified24.0%
Taylor expanded in t around inf 34.8%
if -1.05e38 < y < 7.50000000000000054e36Initial program 94.6%
Taylor expanded in b around inf 78.4%
mul-1-neg78.4%
distribute-rgt-neg-out78.4%
Simplified78.4%
Taylor expanded in a around 0 43.2%
mul-1-neg43.2%
unsub-neg43.2%
associate-*r*46.5%
*-commutative46.5%
Simplified46.5%
if 7.50000000000000054e36 < y < 9.40000000000000008e170Initial program 96.5%
Taylor expanded in b around inf 27.8%
mul-1-neg27.8%
distribute-rgt-neg-out27.8%
Simplified27.8%
Taylor expanded in a around 0 10.4%
mul-1-neg10.4%
unsub-neg10.4%
associate-*r*10.4%
*-commutative10.4%
Simplified10.4%
Taylor expanded in a around inf 34.4%
associate-*r*37.7%
associate-*r*37.7%
mul-1-neg37.7%
*-commutative37.7%
distribute-rgt-neg-in37.7%
Simplified37.7%
if 9.40000000000000008e170 < y Initial program 89.7%
Taylor expanded in t around inf 76.3%
mul-1-neg76.3%
distribute-lft-neg-out76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in y around 0 39.4%
mul-1-neg39.4%
unsub-neg39.4%
associate-*r*36.3%
*-commutative36.3%
cancel-sign-sub-inv36.3%
mul-1-neg36.3%
*-commutative36.3%
associate-*r*36.3%
*-commutative36.3%
mul-1-neg36.3%
distribute-lft-neg-in36.3%
*-commutative36.3%
Simplified36.3%
Taylor expanded in t around inf 39.4%
mul-1-neg39.4%
associate-*r*46.1%
*-commutative46.1%
associate-*r*39.5%
distribute-lft-neg-in39.5%
Simplified39.5%
Final simplification42.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -1.85e+33)
(* t (- (/ x t) (* x y)))
(if (<= y 7.5e+36)
(- x (* x (* a b)))
(if (<= y 1.52e+172) (* x (* a (- b))) (* x (* y (- t)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.85e+33) {
tmp = t * ((x / t) - (x * y));
} else if (y <= 7.5e+36) {
tmp = x - (x * (a * b));
} else if (y <= 1.52e+172) {
tmp = x * (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) :: tmp
if (y <= (-1.85d+33)) then
tmp = t * ((x / t) - (x * y))
else if (y <= 7.5d+36) then
tmp = x - (x * (a * b))
else if (y <= 1.52d+172) then
tmp = x * (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 tmp;
if (y <= -1.85e+33) {
tmp = t * ((x / t) - (x * y));
} else if (y <= 7.5e+36) {
tmp = x - (x * (a * b));
} else if (y <= 1.52e+172) {
tmp = x * (a * -b);
} else {
tmp = x * (y * -t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -1.85e+33: tmp = t * ((x / t) - (x * y)) elif y <= 7.5e+36: tmp = x - (x * (a * b)) elif y <= 1.52e+172: tmp = x * (a * -b) else: tmp = x * (y * -t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -1.85e+33) tmp = Float64(t * Float64(Float64(x / t) - Float64(x * y))); elseif (y <= 7.5e+36) tmp = Float64(x - Float64(x * Float64(a * b))); elseif (y <= 1.52e+172) tmp = Float64(x * Float64(a * Float64(-b))); else tmp = Float64(x * Float64(y * Float64(-t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -1.85e+33) tmp = t * ((x / t) - (x * y)); elseif (y <= 7.5e+36) tmp = x - (x * (a * b)); elseif (y <= 1.52e+172) tmp = x * (a * -b); else tmp = x * (y * -t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -1.85e+33], N[(t * N[(N[(x / t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.5e+36], N[(x - N[(x * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.52e+172], N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.85 \cdot 10^{+33}:\\
\;\;\;\;t \cdot \left(\frac{x}{t} - x \cdot y\right)\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{+36}:\\
\;\;\;\;x - x \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;y \leq 1.52 \cdot 10^{+172}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot \left(-t\right)\right)\\
\end{array}
\end{array}
if y < -1.8499999999999999e33Initial program 100.0%
Taylor expanded in t around inf 68.4%
mul-1-neg68.4%
distribute-lft-neg-out68.4%
*-commutative68.4%
Simplified68.4%
Taylor expanded in y around 0 34.8%
mul-1-neg34.8%
unsub-neg34.8%
associate-*r*24.0%
*-commutative24.0%
cancel-sign-sub-inv24.0%
mul-1-neg24.0%
*-commutative24.0%
associate-*r*24.0%
*-commutative24.0%
mul-1-neg24.0%
distribute-lft-neg-in24.0%
*-commutative24.0%
Simplified24.0%
Taylor expanded in t around inf 38.5%
if -1.8499999999999999e33 < y < 7.50000000000000054e36Initial program 94.6%
Taylor expanded in b around inf 78.4%
mul-1-neg78.4%
distribute-rgt-neg-out78.4%
Simplified78.4%
Taylor expanded in a around 0 43.2%
mul-1-neg43.2%
unsub-neg43.2%
associate-*r*46.5%
*-commutative46.5%
Simplified46.5%
if 7.50000000000000054e36 < y < 1.5200000000000001e172Initial program 96.5%
Taylor expanded in b around inf 27.8%
mul-1-neg27.8%
distribute-rgt-neg-out27.8%
Simplified27.8%
Taylor expanded in a around 0 10.4%
mul-1-neg10.4%
unsub-neg10.4%
associate-*r*10.4%
*-commutative10.4%
Simplified10.4%
Taylor expanded in a around inf 34.4%
associate-*r*37.7%
associate-*r*37.7%
mul-1-neg37.7%
*-commutative37.7%
distribute-rgt-neg-in37.7%
Simplified37.7%
if 1.5200000000000001e172 < y Initial program 89.7%
Taylor expanded in t around inf 76.3%
mul-1-neg76.3%
distribute-lft-neg-out76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in y around 0 39.4%
mul-1-neg39.4%
unsub-neg39.4%
associate-*r*36.3%
*-commutative36.3%
cancel-sign-sub-inv36.3%
mul-1-neg36.3%
*-commutative36.3%
associate-*r*36.3%
*-commutative36.3%
mul-1-neg36.3%
distribute-lft-neg-in36.3%
*-commutative36.3%
Simplified36.3%
Taylor expanded in t around inf 39.4%
mul-1-neg39.4%
associate-*r*46.1%
*-commutative46.1%
associate-*r*39.5%
distribute-lft-neg-in39.5%
Simplified39.5%
Final simplification43.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (/ x a))))
(if (<= y -2.1e-161)
t_1
(if (<= y 6.6e-101) x (if (<= y 5.8e+37) t_1 (* a (* x b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (x / a);
double tmp;
if (y <= -2.1e-161) {
tmp = t_1;
} else if (y <= 6.6e-101) {
tmp = x;
} else if (y <= 5.8e+37) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = a * (x / a)
if (y <= (-2.1d-161)) then
tmp = t_1
else if (y <= 6.6d-101) then
tmp = x
else if (y <= 5.8d+37) then
tmp = t_1
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 t_1 = a * (x / a);
double tmp;
if (y <= -2.1e-161) {
tmp = t_1;
} else if (y <= 6.6e-101) {
tmp = x;
} else if (y <= 5.8e+37) {
tmp = t_1;
} else {
tmp = a * (x * b);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (x / a) tmp = 0 if y <= -2.1e-161: tmp = t_1 elif y <= 6.6e-101: tmp = x elif y <= 5.8e+37: tmp = t_1 else: tmp = a * (x * b) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(x / a)) tmp = 0.0 if (y <= -2.1e-161) tmp = t_1; elseif (y <= 6.6e-101) tmp = x; elseif (y <= 5.8e+37) tmp = t_1; else tmp = Float64(a * Float64(x * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (x / a); tmp = 0.0; if (y <= -2.1e-161) tmp = t_1; elseif (y <= 6.6e-101) tmp = x; elseif (y <= 5.8e+37) tmp = t_1; else tmp = a * (x * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(x / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.1e-161], t$95$1, If[LessEqual[y, 6.6e-101], x, If[LessEqual[y, 5.8e+37], t$95$1, N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \frac{x}{a}\\
\mathbf{if}\;y \leq -2.1 \cdot 10^{-161}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 6.6 \cdot 10^{-101}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 5.8 \cdot 10^{+37}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot b\right)\\
\end{array}
\end{array}
if y < -2.1e-161 or 6.59999999999999968e-101 < y < 5.79999999999999957e37Initial program 98.3%
Taylor expanded in b around inf 53.1%
mul-1-neg53.1%
distribute-rgt-neg-out53.1%
Simplified53.1%
Taylor expanded in a around 0 21.8%
mul-1-neg21.8%
unsub-neg21.8%
associate-*r*21.9%
*-commutative21.9%
Simplified21.9%
Taylor expanded in a around inf 25.9%
Taylor expanded in a around 0 25.1%
if -2.1e-161 < y < 6.59999999999999968e-101Initial program 93.0%
Taylor expanded in b around inf 87.3%
mul-1-neg87.3%
distribute-rgt-neg-out87.3%
Simplified87.3%
Taylor expanded in a around 0 45.4%
if 5.79999999999999957e37 < y Initial program 93.0%
Taylor expanded in b around inf 30.7%
mul-1-neg30.7%
distribute-rgt-neg-out30.7%
Simplified30.7%
Taylor expanded in a around 0 10.2%
mul-1-neg10.2%
unsub-neg10.2%
associate-*r*11.9%
*-commutative11.9%
Simplified11.9%
sub-neg11.9%
*-commutative11.9%
distribute-lft-neg-in11.9%
distribute-lft-neg-out11.9%
add-sqr-sqrt3.6%
sqrt-unprod8.1%
sqr-neg8.1%
sqrt-unprod3.0%
add-sqr-sqrt6.5%
distribute-rgt1-in6.5%
Applied egg-rr6.5%
Taylor expanded in a around inf 28.2%
Final simplification32.5%
(FPCore (x y z t a b) :precision binary64 (if (<= y -2.05e-161) (* a (/ x a)) (if (<= y 4.2e-27) x (* a (* x (- b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.05e-161) {
tmp = a * (x / a);
} else if (y <= 4.2e-27) {
tmp = x;
} 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 (y <= (-2.05d-161)) then
tmp = a * (x / a)
else if (y <= 4.2d-27) then
tmp = x
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 (y <= -2.05e-161) {
tmp = a * (x / a);
} else if (y <= 4.2e-27) {
tmp = x;
} else {
tmp = a * (x * -b);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -2.05e-161: tmp = a * (x / a) elif y <= 4.2e-27: tmp = x else: tmp = a * (x * -b) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -2.05e-161) tmp = Float64(a * Float64(x / a)); elseif (y <= 4.2e-27) tmp = x; 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 (y <= -2.05e-161) tmp = a * (x / a); elseif (y <= 4.2e-27) tmp = x; else tmp = a * (x * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.05e-161], N[(a * N[(x / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.2e-27], x, N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.05 \cdot 10^{-161}:\\
\;\;\;\;a \cdot \frac{x}{a}\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-27}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if y < -2.0499999999999999e-161Initial program 98.9%
Taylor expanded in b around inf 49.0%
mul-1-neg49.0%
distribute-rgt-neg-out49.0%
Simplified49.0%
Taylor expanded in a around 0 19.7%
mul-1-neg19.7%
unsub-neg19.7%
associate-*r*19.6%
*-commutative19.6%
Simplified19.6%
Taylor expanded in a around inf 23.9%
Taylor expanded in a around 0 23.9%
if -2.0499999999999999e-161 < y < 4.20000000000000031e-27Initial program 93.8%
Taylor expanded in b around inf 85.6%
mul-1-neg85.6%
distribute-rgt-neg-out85.6%
Simplified85.6%
Taylor expanded in a around 0 44.6%
if 4.20000000000000031e-27 < y Initial program 93.1%
Taylor expanded in b around inf 37.3%
mul-1-neg37.3%
distribute-rgt-neg-out37.3%
Simplified37.3%
Taylor expanded in a around 0 12.8%
mul-1-neg12.8%
unsub-neg12.8%
associate-*r*14.4%
*-commutative14.4%
Simplified14.4%
Taylor expanded in a around inf 29.8%
neg-mul-129.8%
distribute-rgt-neg-in29.8%
distribute-lft-neg-in29.8%
Simplified29.8%
Final simplification33.2%
(FPCore (x y z t a b) :precision binary64 (if (<= y 1.25e-15) x (* a (* x b))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 1.25e-15) {
tmp = x;
} 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 (y <= 1.25d-15) then
tmp = x
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 (y <= 1.25e-15) {
tmp = x;
} else {
tmp = a * (x * b);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= 1.25e-15: tmp = x else: tmp = a * (x * b) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= 1.25e-15) tmp = x; else tmp = Float64(a * Float64(x * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= 1.25e-15) tmp = x; else tmp = a * (x * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, 1.25e-15], x, N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.25 \cdot 10^{-15}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot b\right)\\
\end{array}
\end{array}
if y < 1.25e-15Initial program 96.3%
Taylor expanded in b around inf 68.3%
mul-1-neg68.3%
distribute-rgt-neg-out68.3%
Simplified68.3%
Taylor expanded in a around 0 28.2%
if 1.25e-15 < y Initial program 92.9%
Taylor expanded in b around inf 35.5%
mul-1-neg35.5%
distribute-rgt-neg-out35.5%
Simplified35.5%
Taylor expanded in a around 0 11.7%
mul-1-neg11.7%
unsub-neg11.7%
associate-*r*13.3%
*-commutative13.3%
Simplified13.3%
sub-neg13.3%
*-commutative13.3%
distribute-lft-neg-in13.3%
distribute-lft-neg-out13.3%
add-sqr-sqrt6.2%
sqrt-unprod8.8%
sqr-neg8.8%
sqrt-unprod2.7%
add-sqr-sqrt6.0%
distribute-rgt1-in6.0%
Applied egg-rr6.0%
Taylor expanded in a around inf 24.7%
Final simplification27.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.4%
Taylor expanded in b around inf 59.3%
mul-1-neg59.3%
distribute-rgt-neg-out59.3%
Simplified59.3%
Taylor expanded in a around 0 21.7%
Final simplification21.7%
herbie shell --seed 2024067
(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))))))