
(FPCore (x y z t a b) :precision binary64 (* x (exp (+ (* y (- (log z) t)) (* a (- (log (- 1.0 z)) b))))))
double code(double x, double y, double z, double t, double a, double b) {
return x * exp(((y * (log(z) - t)) + (a * (log((1.0 - z)) - b))));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x * exp(((y * (log(z) - t)) + (a * (log((1.0d0 - z)) - b))))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x * Math.exp(((y * (Math.log(z) - t)) + (a * (Math.log((1.0 - z)) - b))));
}
def code(x, y, z, t, a, b): return x * math.exp(((y * (math.log(z) - t)) + (a * (math.log((1.0 - z)) - b))))
function code(x, y, z, t, a, b) return Float64(x * exp(Float64(Float64(y * Float64(log(z) - t)) + Float64(a * Float64(log(Float64(1.0 - z)) - b))))) end
function tmp = code(x, y, z, t, a, b) tmp = x * exp(((y * (log(z) - t)) + (a * (log((1.0 - z)) - b)))); end
code[x_, y_, z_, t_, a_, b_] := N[(x * N[Exp[N[(N[(y * N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[Log[N[(1.0 - z), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot e^{y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 18 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (* x (exp (+ (* y (- (log z) t)) (* a (- (log (- 1.0 z)) b))))))
double code(double x, double y, double z, double t, double a, double b) {
return x * exp(((y * (log(z) - t)) + (a * (log((1.0 - z)) - b))));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x * exp(((y * (log(z) - t)) + (a * (log((1.0d0 - z)) - b))))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x * Math.exp(((y * (Math.log(z) - t)) + (a * (Math.log((1.0 - z)) - b))));
}
def code(x, y, z, t, a, b): return x * math.exp(((y * (math.log(z) - t)) + (a * (math.log((1.0 - z)) - b))))
function code(x, y, z, t, a, b) return Float64(x * exp(Float64(Float64(y * Float64(log(z) - t)) + Float64(a * Float64(log(Float64(1.0 - z)) - b))))) end
function tmp = code(x, y, z, t, a, b) tmp = x * exp(((y * (log(z) - t)) + (a * (log((1.0 - z)) - b)))); end
code[x_, y_, z_, t_, a_, b_] := N[(x * N[Exp[N[(N[(y * N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[Log[N[(1.0 - z), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot e^{y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right)}
\end{array}
(FPCore (x y z t a b) :precision binary64 (* x (exp (fma y (- (log z) t) (* a (- (log1p (- z)) b))))))
double code(double x, double y, double z, double t, double a, double b) {
return x * exp(fma(y, (log(z) - t), (a * (log1p(-z) - b))));
}
function code(x, y, z, t, a, b) return Float64(x * exp(fma(y, Float64(log(z) - t), Float64(a * Float64(log1p(Float64(-z)) - b))))) end
code[x_, y_, z_, t_, a_, b_] := N[(x * N[Exp[N[(y * N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision] + N[(a * N[(N[Log[1 + (-z)], $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot e^{\mathsf{fma}\left(y, \log z - t, a \cdot \left(\mathsf{log1p}\left(-z\right) - b\right)\right)}
\end{array}
Initial program 95.7%
fma-define96.1%
sub-neg96.1%
log1p-define99.2%
Simplified99.2%
Final simplification99.2%
(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.7%
Final simplification95.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -170000000.0) (not (<= y 1.9e-5))) (* x (exp (* y (- (log z) t)))) (* x (exp (* a (- (log1p (- z)) b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -170000000.0) || !(y <= 1.9e-5)) {
tmp = x * exp((y * (log(z) - t)));
} else {
tmp = x * exp((a * (log1p(-z) - b)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -170000000.0) || !(y <= 1.9e-5)) {
tmp = x * Math.exp((y * (Math.log(z) - t)));
} else {
tmp = x * Math.exp((a * (Math.log1p(-z) - b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -170000000.0) or not (y <= 1.9e-5): tmp = x * math.exp((y * (math.log(z) - t))) else: tmp = x * math.exp((a * (math.log1p(-z) - b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -170000000.0) || !(y <= 1.9e-5)) tmp = Float64(x * exp(Float64(y * Float64(log(z) - t)))); else tmp = Float64(x * exp(Float64(a * Float64(log1p(Float64(-z)) - b)))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -170000000.0], N[Not[LessEqual[y, 1.9e-5]], $MachinePrecision]], N[(x * N[Exp[N[(y * N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(x * N[Exp[N[(a * N[(N[Log[1 + (-z)], $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -170000000 \lor \neg \left(y \leq 1.9 \cdot 10^{-5}\right):\\
\;\;\;\;x \cdot e^{y \cdot \left(\log z - t\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot e^{a \cdot \left(\mathsf{log1p}\left(-z\right) - b\right)}\\
\end{array}
\end{array}
if y < -1.7e8 or 1.9000000000000001e-5 < y Initial program 97.7%
Taylor expanded in y around inf 90.1%
if -1.7e8 < y < 1.9000000000000001e-5Initial program 93.8%
Taylor expanded in y around 0 83.5%
sub-neg83.5%
mul-1-neg83.5%
log1p-define88.9%
mul-1-neg88.9%
Simplified88.9%
Final simplification89.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -170000000.0) (not (<= y 2.2e-13))) (* 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 <= -170000000.0) || !(y <= 2.2e-13)) {
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 <= (-170000000.0d0)) .or. (.not. (y <= 2.2d-13))) 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 <= -170000000.0) || !(y <= 2.2e-13)) {
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 <= -170000000.0) or not (y <= 2.2e-13): 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 <= -170000000.0) || !(y <= 2.2e-13)) tmp = Float64(x * exp(Float64(y * Float64(log(z) - t)))); 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 <= -170000000.0) || ~((y <= 2.2e-13))) 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, -170000000.0], N[Not[LessEqual[y, 2.2e-13]], $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 -170000000 \lor \neg \left(y \leq 2.2 \cdot 10^{-13}\right):\\
\;\;\;\;x \cdot e^{y \cdot \left(\log z - t\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot e^{a \cdot \left(\left(-z\right) - b\right)}\\
\end{array}
\end{array}
if y < -1.7e8 or 2.19999999999999997e-13 < y Initial program 97.7%
Taylor expanded in y around inf 90.1%
if -1.7e8 < y < 2.19999999999999997e-13Initial program 93.8%
Taylor expanded in y around 0 83.5%
sub-neg83.5%
mul-1-neg83.5%
log1p-define88.9%
mul-1-neg88.9%
Simplified88.9%
Taylor expanded in z around 0 88.7%
associate-*r*88.7%
associate-*r*88.7%
distribute-lft-out88.7%
neg-mul-188.7%
Simplified88.7%
Final simplification89.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (pow z y))))
(if (<= y -2.9e+39)
t_1
(if (<= y -1.3e-16)
(* (- a) (* x z))
(if (<= y 3.7e-29) (* x (- 1.0 (* a (+ z b)))) t_1)))))
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 <= -2.9e+39) {
tmp = t_1;
} else if (y <= -1.3e-16) {
tmp = -a * (x * z);
} else if (y <= 3.7e-29) {
tmp = x * (1.0 - (a * (z + 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 * (z ** y)
if (y <= (-2.9d+39)) then
tmp = t_1
else if (y <= (-1.3d-16)) then
tmp = -a * (x * z)
else if (y <= 3.7d-29) then
tmp = x * (1.0d0 - (a * (z + 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 * Math.pow(z, y);
double tmp;
if (y <= -2.9e+39) {
tmp = t_1;
} else if (y <= -1.3e-16) {
tmp = -a * (x * z);
} else if (y <= 3.7e-29) {
tmp = x * (1.0 - (a * (z + b)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * math.pow(z, y) tmp = 0 if y <= -2.9e+39: tmp = t_1 elif y <= -1.3e-16: tmp = -a * (x * z) elif y <= 3.7e-29: tmp = x * (1.0 - (a * (z + b))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * (z ^ y)) tmp = 0.0 if (y <= -2.9e+39) tmp = t_1; elseif (y <= -1.3e-16) tmp = Float64(Float64(-a) * Float64(x * z)); elseif (y <= 3.7e-29) tmp = Float64(x * Float64(1.0 - Float64(a * Float64(z + b)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (z ^ y); tmp = 0.0; if (y <= -2.9e+39) tmp = t_1; elseif (y <= -1.3e-16) tmp = -a * (x * z); elseif (y <= 3.7e-29) tmp = x * (1.0 - (a * (z + b))); else tmp = t_1; 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, -2.9e+39], t$95$1, If[LessEqual[y, -1.3e-16], N[((-a) * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.7e-29], N[(x * N[(1.0 - N[(a * N[(z + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot {z}^{y}\\
\mathbf{if}\;y \leq -2.9 \cdot 10^{+39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.3 \cdot 10^{-16}:\\
\;\;\;\;\left(-a\right) \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq 3.7 \cdot 10^{-29}:\\
\;\;\;\;x \cdot \left(1 - a \cdot \left(z + b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.90000000000000029e39 or 3.6999999999999997e-29 < y Initial program 97.6%
Taylor expanded in y around inf 89.7%
Taylor expanded in t around 0 63.5%
if -2.90000000000000029e39 < y < -1.2999999999999999e-16Initial program 86.9%
Taylor expanded in y around 0 48.9%
sub-neg48.9%
mul-1-neg48.9%
log1p-define55.4%
mul-1-neg55.4%
Simplified55.4%
Taylor expanded in z around 0 55.4%
associate-*r*55.4%
associate-*r*55.4%
distribute-lft-out55.4%
neg-mul-155.4%
Simplified55.4%
Taylor expanded in a around 0 16.6%
mul-1-neg16.6%
unsub-neg16.6%
Simplified16.6%
Taylor expanded in z around inf 54.7%
associate-*r*54.7%
neg-mul-154.7%
Simplified54.7%
if -1.2999999999999999e-16 < y < 3.6999999999999997e-29Initial program 94.9%
Taylor expanded in y around 0 86.1%
sub-neg86.1%
mul-1-neg86.1%
log1p-define91.2%
mul-1-neg91.2%
Simplified91.2%
Taylor expanded in z around 0 90.9%
associate-*r*90.9%
associate-*r*90.9%
distribute-lft-out90.9%
neg-mul-190.9%
Simplified90.9%
Taylor expanded in a around 0 47.8%
+-commutative47.8%
neg-mul-147.8%
distribute-rgt-neg-in47.8%
Simplified47.8%
Final simplification55.8%
(FPCore (x y z t a b) :precision binary64 (if (<= y -1.3e+40) (* x (exp (* y (- t)))) (if (<= y 0.026) (* x (exp (* a (- (- z) b)))) (* x (pow z y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.3e+40) {
tmp = x * exp((y * -t));
} else if (y <= 0.026) {
tmp = x * exp((a * (-z - b)));
} else {
tmp = x * pow(z, y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-1.3d+40)) then
tmp = x * exp((y * -t))
else if (y <= 0.026d0) then
tmp = x * exp((a * (-z - b)))
else
tmp = x * (z ** y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.3e+40) {
tmp = x * Math.exp((y * -t));
} else if (y <= 0.026) {
tmp = x * Math.exp((a * (-z - b)));
} else {
tmp = x * Math.pow(z, y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -1.3e+40: tmp = x * math.exp((y * -t)) elif y <= 0.026: tmp = x * math.exp((a * (-z - b))) else: tmp = x * math.pow(z, y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -1.3e+40) tmp = Float64(x * exp(Float64(y * Float64(-t)))); elseif (y <= 0.026) tmp = Float64(x * exp(Float64(a * Float64(Float64(-z) - b)))); else tmp = Float64(x * (z ^ y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -1.3e+40) tmp = x * exp((y * -t)); elseif (y <= 0.026) tmp = x * exp((a * (-z - b))); else tmp = x * (z ^ y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -1.3e+40], N[(x * N[Exp[N[(y * (-t)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 0.026], N[(x * N[Exp[N[(a * N[((-z) - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.3 \cdot 10^{+40}:\\
\;\;\;\;x \cdot e^{y \cdot \left(-t\right)}\\
\mathbf{elif}\;y \leq 0.026:\\
\;\;\;\;x \cdot e^{a \cdot \left(\left(-z\right) - b\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot {z}^{y}\\
\end{array}
\end{array}
if y < -1.3e40Initial program 94.9%
Taylor expanded in t around inf 63.8%
mul-1-neg63.8%
distribute-lft-neg-out63.8%
*-commutative63.8%
Simplified63.8%
if -1.3e40 < y < 0.0259999999999999988Initial program 94.1%
Taylor expanded in y around 0 82.0%
sub-neg82.0%
mul-1-neg82.0%
log1p-define87.2%
mul-1-neg87.2%
Simplified87.2%
Taylor expanded in z around 0 87.0%
associate-*r*87.0%
associate-*r*87.0%
distribute-lft-out87.0%
neg-mul-187.0%
Simplified87.0%
if 0.0259999999999999988 < y Initial program 100.0%
Taylor expanded in y around inf 92.3%
Taylor expanded in t around 0 67.7%
Final simplification76.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -6e+136) (not (<= y 0.026))) (* x (pow z y)) (* x (exp (* a (- b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -6e+136) || !(y <= 0.026)) {
tmp = x * pow(z, y);
} else {
tmp = x * exp((a * -b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-6d+136)) .or. (.not. (y <= 0.026d0))) then
tmp = x * (z ** y)
else
tmp = x * exp((a * -b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -6e+136) || !(y <= 0.026)) {
tmp = x * Math.pow(z, y);
} else {
tmp = x * Math.exp((a * -b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -6e+136) or not (y <= 0.026): tmp = x * math.pow(z, y) else: tmp = x * math.exp((a * -b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -6e+136) || !(y <= 0.026)) tmp = Float64(x * (z ^ y)); else tmp = Float64(x * exp(Float64(a * Float64(-b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -6e+136) || ~((y <= 0.026))) tmp = x * (z ^ y); else tmp = x * exp((a * -b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -6e+136], N[Not[LessEqual[y, 0.026]], $MachinePrecision]], N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision], N[(x * N[Exp[N[(a * (-b)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6 \cdot 10^{+136} \lor \neg \left(y \leq 0.026\right):\\
\;\;\;\;x \cdot {z}^{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot e^{a \cdot \left(-b\right)}\\
\end{array}
\end{array}
if y < -5.99999999999999958e136 or 0.0259999999999999988 < y Initial program 97.1%
Taylor expanded in y around inf 92.3%
Taylor expanded in t around 0 66.5%
if -5.99999999999999958e136 < y < 0.0259999999999999988Initial program 94.8%
Taylor expanded in b around inf 77.1%
mul-1-neg77.1%
distribute-rgt-neg-out77.1%
Simplified77.1%
Final simplification72.9%
(FPCore (x y z t a b) :precision binary64 (if (<= y -1.56e+41) (* x (exp (* y (- t)))) (if (<= y 0.0245) (* x (exp (* a (- b)))) (* x (pow z y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.56e+41) {
tmp = x * exp((y * -t));
} else if (y <= 0.0245) {
tmp = x * exp((a * -b));
} else {
tmp = x * pow(z, y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-1.56d+41)) then
tmp = x * exp((y * -t))
else if (y <= 0.0245d0) then
tmp = x * exp((a * -b))
else
tmp = x * (z ** y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.56e+41) {
tmp = x * Math.exp((y * -t));
} else if (y <= 0.0245) {
tmp = x * Math.exp((a * -b));
} else {
tmp = x * Math.pow(z, y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -1.56e+41: tmp = x * math.exp((y * -t)) elif y <= 0.0245: tmp = x * math.exp((a * -b)) else: tmp = x * math.pow(z, y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -1.56e+41) tmp = Float64(x * exp(Float64(y * Float64(-t)))); elseif (y <= 0.0245) tmp = Float64(x * exp(Float64(a * Float64(-b)))); else tmp = Float64(x * (z ^ y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -1.56e+41) tmp = x * exp((y * -t)); elseif (y <= 0.0245) tmp = x * exp((a * -b)); else tmp = x * (z ^ y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -1.56e+41], N[(x * N[Exp[N[(y * (-t)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 0.0245], N[(x * N[Exp[N[(a * (-b)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.56 \cdot 10^{+41}:\\
\;\;\;\;x \cdot e^{y \cdot \left(-t\right)}\\
\mathbf{elif}\;y \leq 0.0245:\\
\;\;\;\;x \cdot e^{a \cdot \left(-b\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot {z}^{y}\\
\end{array}
\end{array}
if y < -1.56e41Initial program 94.9%
Taylor expanded in t around inf 63.8%
mul-1-neg63.8%
distribute-lft-neg-out63.8%
*-commutative63.8%
Simplified63.8%
if -1.56e41 < y < 0.024500000000000001Initial program 94.1%
Taylor expanded in b around inf 81.0%
mul-1-neg81.0%
distribute-rgt-neg-out81.0%
Simplified81.0%
if 0.024500000000000001 < y Initial program 100.0%
Taylor expanded in y around inf 92.3%
Taylor expanded in t around 0 67.7%
Final simplification73.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (* y (- t)))))
(if (<= y -3.4e+137)
t_1
(if (<= y -1.55e-91)
(* x (* a (- b)))
(if (<= y -7.6e-108) t_1 (if (<= y 4.6e-102) x (* 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 <= -3.4e+137) {
tmp = t_1;
} else if (y <= -1.55e-91) {
tmp = x * (a * -b);
} else if (y <= -7.6e-108) {
tmp = t_1;
} else if (y <= 4.6e-102) {
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) :: t_1
real(8) :: tmp
t_1 = x * (y * -t)
if (y <= (-3.4d+137)) then
tmp = t_1
else if (y <= (-1.55d-91)) then
tmp = x * (a * -b)
else if (y <= (-7.6d-108)) then
tmp = t_1
else if (y <= 4.6d-102) 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 t_1 = x * (y * -t);
double tmp;
if (y <= -3.4e+137) {
tmp = t_1;
} else if (y <= -1.55e-91) {
tmp = x * (a * -b);
} else if (y <= -7.6e-108) {
tmp = t_1;
} else if (y <= 4.6e-102) {
tmp = x;
} else {
tmp = a * (x * -b);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * (y * -t) tmp = 0 if y <= -3.4e+137: tmp = t_1 elif y <= -1.55e-91: tmp = x * (a * -b) elif y <= -7.6e-108: tmp = t_1 elif y <= 4.6e-102: tmp = x 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 <= -3.4e+137) tmp = t_1; elseif (y <= -1.55e-91) tmp = Float64(x * Float64(a * Float64(-b))); elseif (y <= -7.6e-108) tmp = t_1; elseif (y <= 4.6e-102) tmp = x; else tmp = Float64(a * Float64(x * Float64(-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 <= -3.4e+137) tmp = t_1; elseif (y <= -1.55e-91) tmp = x * (a * -b); elseif (y <= -7.6e-108) tmp = t_1; elseif (y <= 4.6e-102) tmp = x; 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, -3.4e+137], t$95$1, If[LessEqual[y, -1.55e-91], N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.6e-108], t$95$1, If[LessEqual[y, 4.6e-102], x, 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 -3.4 \cdot 10^{+137}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.55 \cdot 10^{-91}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq -7.6 \cdot 10^{-108}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{-102}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if y < -3.39999999999999986e137 or -1.5499999999999999e-91 < y < -7.59999999999999947e-108Initial program 93.3%
Taylor expanded in t around inf 63.4%
mul-1-neg63.4%
distribute-lft-neg-out63.4%
*-commutative63.4%
Simplified63.4%
Taylor expanded in y around 0 24.5%
mul-1-neg24.5%
unsub-neg24.5%
*-commutative24.5%
Simplified24.5%
Taylor expanded in y around inf 22.2%
mul-1-neg22.2%
distribute-lft-neg-in22.2%
*-commutative22.2%
associate-*r*28.5%
Simplified28.5%
if -3.39999999999999986e137 < y < -1.5499999999999999e-91Initial program 96.2%
Taylor expanded in b around inf 62.1%
mul-1-neg62.1%
distribute-rgt-neg-out62.1%
Simplified62.1%
Taylor expanded in a around 0 18.5%
mul-1-neg18.5%
unsub-neg18.5%
associate-*r*20.3%
Simplified20.3%
Taylor expanded in a around inf 16.8%
mul-1-neg16.8%
associate-*r*18.6%
*-commutative18.6%
distribute-rgt-neg-out18.6%
*-commutative18.6%
distribute-rgt-neg-in18.6%
Simplified18.6%
if -7.59999999999999947e-108 < y < 4.59999999999999973e-102Initial program 93.6%
Taylor expanded in b around inf 83.9%
mul-1-neg83.9%
distribute-rgt-neg-out83.9%
Simplified83.9%
Taylor expanded in a around 0 39.2%
if 4.59999999999999973e-102 < y Initial program 98.8%
Taylor expanded in b around inf 44.7%
mul-1-neg44.7%
distribute-rgt-neg-out44.7%
Simplified44.7%
Taylor expanded in a around 0 17.5%
mul-1-neg17.5%
unsub-neg17.5%
associate-*r*17.5%
Simplified17.5%
Taylor expanded in a around inf 29.0%
mul-1-neg29.0%
*-commutative29.0%
distribute-rgt-neg-in29.0%
distribute-rgt-neg-in29.0%
Simplified29.0%
Final simplification29.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -3.2e+104)
(* x (- 1.0 (* y t)))
(if (or (<= y -5e-19) (not (<= y 0.24)))
(* (- a) (* x z))
(* x (- 1.0 (* a (+ z b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -3.2e+104) {
tmp = x * (1.0 - (y * t));
} else if ((y <= -5e-19) || !(y <= 0.24)) {
tmp = -a * (x * z);
} else {
tmp = x * (1.0 - (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 <= (-3.2d+104)) then
tmp = x * (1.0d0 - (y * t))
else if ((y <= (-5d-19)) .or. (.not. (y <= 0.24d0))) then
tmp = -a * (x * z)
else
tmp = x * (1.0d0 - (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 <= -3.2e+104) {
tmp = x * (1.0 - (y * t));
} else if ((y <= -5e-19) || !(y <= 0.24)) {
tmp = -a * (x * z);
} else {
tmp = x * (1.0 - (a * (z + b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -3.2e+104: tmp = x * (1.0 - (y * t)) elif (y <= -5e-19) or not (y <= 0.24): tmp = -a * (x * z) else: tmp = x * (1.0 - (a * (z + b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -3.2e+104) tmp = Float64(x * Float64(1.0 - Float64(y * t))); elseif ((y <= -5e-19) || !(y <= 0.24)) tmp = Float64(Float64(-a) * Float64(x * z)); else tmp = Float64(x * Float64(1.0 - Float64(a * Float64(z + b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -3.2e+104) tmp = x * (1.0 - (y * t)); elseif ((y <= -5e-19) || ~((y <= 0.24))) tmp = -a * (x * z); else tmp = x * (1.0 - (a * (z + b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -3.2e+104], N[(x * N[(1.0 - N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -5e-19], N[Not[LessEqual[y, 0.24]], $MachinePrecision]], N[((-a) * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 - N[(a * N[(z + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.2 \cdot 10^{+104}:\\
\;\;\;\;x \cdot \left(1 - y \cdot t\right)\\
\mathbf{elif}\;y \leq -5 \cdot 10^{-19} \lor \neg \left(y \leq 0.24\right):\\
\;\;\;\;\left(-a\right) \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - a \cdot \left(z + b\right)\right)\\
\end{array}
\end{array}
if y < -3.2e104Initial program 93.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 20.9%
mul-1-neg20.9%
unsub-neg20.9%
*-commutative20.9%
Simplified20.9%
if -3.2e104 < y < -5.0000000000000004e-19 or 0.23999999999999999 < y Initial program 97.9%
Taylor expanded in y around 0 37.9%
sub-neg37.9%
mul-1-neg37.9%
log1p-define38.9%
mul-1-neg38.9%
Simplified38.9%
Taylor expanded in z around 0 38.9%
associate-*r*38.9%
associate-*r*38.9%
distribute-lft-out38.9%
neg-mul-138.9%
Simplified38.9%
Taylor expanded in a around 0 12.8%
mul-1-neg12.8%
unsub-neg12.8%
Simplified12.8%
Taylor expanded in z around inf 35.5%
associate-*r*35.5%
neg-mul-135.5%
Simplified35.5%
if -5.0000000000000004e-19 < y < 0.23999999999999999Initial program 95.0%
Taylor expanded in y around 0 85.0%
sub-neg85.0%
mul-1-neg85.0%
log1p-define89.9%
mul-1-neg89.9%
Simplified89.9%
Taylor expanded in z around 0 89.7%
associate-*r*89.7%
associate-*r*89.7%
distribute-lft-out89.7%
neg-mul-189.7%
Simplified89.7%
Taylor expanded in a around 0 46.8%
+-commutative46.8%
neg-mul-146.8%
distribute-rgt-neg-in46.8%
Simplified46.8%
Final simplification38.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= x 1.45e-135)
(* (- a) (* x z))
(if (or (<= x 9e-54) (not (<= x 1.95e+58)))
(* x (- 1.0 (* y t)))
(* a (* x (- b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= 1.45e-135) {
tmp = -a * (x * z);
} else if ((x <= 9e-54) || !(x <= 1.95e+58)) {
tmp = x * (1.0 - (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 (x <= 1.45d-135) then
tmp = -a * (x * z)
else if ((x <= 9d-54) .or. (.not. (x <= 1.95d+58))) then
tmp = x * (1.0d0 - (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 (x <= 1.45e-135) {
tmp = -a * (x * z);
} else if ((x <= 9e-54) || !(x <= 1.95e+58)) {
tmp = x * (1.0 - (y * t));
} else {
tmp = a * (x * -b);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= 1.45e-135: tmp = -a * (x * z) elif (x <= 9e-54) or not (x <= 1.95e+58): tmp = x * (1.0 - (y * t)) else: tmp = a * (x * -b) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= 1.45e-135) tmp = Float64(Float64(-a) * Float64(x * z)); elseif ((x <= 9e-54) || !(x <= 1.95e+58)) tmp = Float64(x * Float64(1.0 - Float64(y * 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 (x <= 1.45e-135) tmp = -a * (x * z); elseif ((x <= 9e-54) || ~((x <= 1.95e+58))) tmp = x * (1.0 - (y * t)); else tmp = a * (x * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, 1.45e-135], N[((-a) * N[(x * z), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, 9e-54], N[Not[LessEqual[x, 1.95e+58]], $MachinePrecision]], N[(x * N[(1.0 - N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.45 \cdot 10^{-135}:\\
\;\;\;\;\left(-a\right) \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;x \leq 9 \cdot 10^{-54} \lor \neg \left(x \leq 1.95 \cdot 10^{+58}\right):\\
\;\;\;\;x \cdot \left(1 - y \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if x < 1.4500000000000001e-135Initial program 94.4%
Taylor expanded in y around 0 55.4%
sub-neg55.4%
mul-1-neg55.4%
log1p-define59.1%
mul-1-neg59.1%
Simplified59.1%
Taylor expanded in z around 0 59.0%
associate-*r*59.0%
associate-*r*59.0%
distribute-lft-out59.0%
neg-mul-159.0%
Simplified59.0%
Taylor expanded in a around 0 22.9%
mul-1-neg22.9%
unsub-neg22.9%
Simplified22.9%
Taylor expanded in z around inf 26.4%
associate-*r*26.4%
neg-mul-126.4%
Simplified26.4%
if 1.4500000000000001e-135 < x < 8.9999999999999997e-54 or 1.95000000000000005e58 < x Initial program 97.1%
Taylor expanded in t around inf 61.0%
mul-1-neg61.0%
distribute-lft-neg-out61.0%
*-commutative61.0%
Simplified61.0%
Taylor expanded in y around 0 31.9%
mul-1-neg31.9%
unsub-neg31.9%
*-commutative31.9%
Simplified31.9%
if 8.9999999999999997e-54 < x < 1.95000000000000005e58Initial program 100.0%
Taylor expanded in b around inf 70.9%
mul-1-neg70.9%
distribute-rgt-neg-out70.9%
Simplified70.9%
Taylor expanded in a around 0 29.2%
mul-1-neg29.2%
unsub-neg29.2%
associate-*r*29.2%
Simplified29.2%
Taylor expanded in a around inf 29.2%
mul-1-neg29.2%
*-commutative29.2%
distribute-rgt-neg-in29.2%
distribute-rgt-neg-in29.2%
Simplified29.2%
Final simplification28.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -1.16e+102)
(* x (- 1.0 (* y t)))
(if (or (<= y -6.6e-19) (not (<= y 0.82)))
(* (- a) (* x z))
(- x (* x (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.16e+102) {
tmp = x * (1.0 - (y * t));
} else if ((y <= -6.6e-19) || !(y <= 0.82)) {
tmp = -a * (x * z);
} else {
tmp = x - (x * (a * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-1.16d+102)) then
tmp = x * (1.0d0 - (y * t))
else if ((y <= (-6.6d-19)) .or. (.not. (y <= 0.82d0))) then
tmp = -a * (x * z)
else
tmp = x - (x * (a * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.16e+102) {
tmp = x * (1.0 - (y * t));
} else if ((y <= -6.6e-19) || !(y <= 0.82)) {
tmp = -a * (x * z);
} else {
tmp = x - (x * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -1.16e+102: tmp = x * (1.0 - (y * t)) elif (y <= -6.6e-19) or not (y <= 0.82): tmp = -a * (x * z) else: tmp = x - (x * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -1.16e+102) tmp = Float64(x * Float64(1.0 - Float64(y * t))); elseif ((y <= -6.6e-19) || !(y <= 0.82)) tmp = Float64(Float64(-a) * Float64(x * z)); else tmp = Float64(x - Float64(x * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -1.16e+102) tmp = x * (1.0 - (y * t)); elseif ((y <= -6.6e-19) || ~((y <= 0.82))) tmp = -a * (x * z); else tmp = x - (x * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -1.16e+102], N[(x * N[(1.0 - N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -6.6e-19], N[Not[LessEqual[y, 0.82]], $MachinePrecision]], N[((-a) * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(x - N[(x * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.16 \cdot 10^{+102}:\\
\;\;\;\;x \cdot \left(1 - y \cdot t\right)\\
\mathbf{elif}\;y \leq -6.6 \cdot 10^{-19} \lor \neg \left(y \leq 0.82\right):\\
\;\;\;\;\left(-a\right) \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x - x \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if y < -1.15999999999999995e102Initial program 93.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 20.9%
mul-1-neg20.9%
unsub-neg20.9%
*-commutative20.9%
Simplified20.9%
if -1.15999999999999995e102 < y < -6.5999999999999995e-19 or 0.819999999999999951 < y Initial program 97.9%
Taylor expanded in y around 0 37.9%
sub-neg37.9%
mul-1-neg37.9%
log1p-define38.9%
mul-1-neg38.9%
Simplified38.9%
Taylor expanded in z around 0 38.9%
associate-*r*38.9%
associate-*r*38.9%
distribute-lft-out38.9%
neg-mul-138.9%
Simplified38.9%
Taylor expanded in a around 0 12.8%
mul-1-neg12.8%
unsub-neg12.8%
Simplified12.8%
Taylor expanded in z around inf 35.5%
associate-*r*35.5%
neg-mul-135.5%
Simplified35.5%
if -6.5999999999999995e-19 < y < 0.819999999999999951Initial program 95.0%
Taylor expanded in b around inf 83.8%
mul-1-neg83.8%
distribute-rgt-neg-out83.8%
Simplified83.8%
Taylor expanded in a around 0 41.8%
mul-1-neg41.8%
unsub-neg41.8%
associate-*r*45.0%
Simplified45.0%
Final simplification37.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= x 8.5e-136)
(* (- a) (* x z))
(if (<= x 2.5e-54)
(* x (- 1.0 (* y t)))
(if (<= x 9e+57) (* a (* x (- b))) (- x (* t (* x y)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= 8.5e-136) {
tmp = -a * (x * z);
} else if (x <= 2.5e-54) {
tmp = x * (1.0 - (y * t));
} else if (x <= 9e+57) {
tmp = a * (x * -b);
} else {
tmp = x - (t * (x * y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (x <= 8.5d-136) then
tmp = -a * (x * z)
else if (x <= 2.5d-54) then
tmp = x * (1.0d0 - (y * t))
else if (x <= 9d+57) then
tmp = a * (x * -b)
else
tmp = x - (t * (x * y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= 8.5e-136) {
tmp = -a * (x * z);
} else if (x <= 2.5e-54) {
tmp = x * (1.0 - (y * t));
} else if (x <= 9e+57) {
tmp = a * (x * -b);
} else {
tmp = x - (t * (x * y));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= 8.5e-136: tmp = -a * (x * z) elif x <= 2.5e-54: tmp = x * (1.0 - (y * t)) elif x <= 9e+57: tmp = a * (x * -b) else: tmp = x - (t * (x * y)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= 8.5e-136) tmp = Float64(Float64(-a) * Float64(x * z)); elseif (x <= 2.5e-54) tmp = Float64(x * Float64(1.0 - Float64(y * t))); elseif (x <= 9e+57) tmp = Float64(a * Float64(x * Float64(-b))); else tmp = Float64(x - Float64(t * Float64(x * y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= 8.5e-136) tmp = -a * (x * z); elseif (x <= 2.5e-54) tmp = x * (1.0 - (y * t)); elseif (x <= 9e+57) tmp = a * (x * -b); else tmp = x - (t * (x * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, 8.5e-136], N[((-a) * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.5e-54], N[(x * N[(1.0 - N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9e+57], N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision], N[(x - N[(t * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 8.5 \cdot 10^{-136}:\\
\;\;\;\;\left(-a\right) \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{-54}:\\
\;\;\;\;x \cdot \left(1 - y \cdot t\right)\\
\mathbf{elif}\;x \leq 9 \cdot 10^{+57}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x - t \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < 8.49999999999999973e-136Initial program 94.4%
Taylor expanded in y around 0 55.4%
sub-neg55.4%
mul-1-neg55.4%
log1p-define59.1%
mul-1-neg59.1%
Simplified59.1%
Taylor expanded in z around 0 59.0%
associate-*r*59.0%
associate-*r*59.0%
distribute-lft-out59.0%
neg-mul-159.0%
Simplified59.0%
Taylor expanded in a around 0 22.9%
mul-1-neg22.9%
unsub-neg22.9%
Simplified22.9%
Taylor expanded in z around inf 26.4%
associate-*r*26.4%
neg-mul-126.4%
Simplified26.4%
if 8.49999999999999973e-136 < x < 2.50000000000000008e-54Initial program 100.0%
Taylor expanded in t around inf 51.3%
mul-1-neg51.3%
distribute-lft-neg-out51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in y around 0 33.5%
mul-1-neg33.5%
unsub-neg33.5%
*-commutative33.5%
Simplified33.5%
if 2.50000000000000008e-54 < x < 8.99999999999999991e57Initial program 100.0%
Taylor expanded in b around inf 70.9%
mul-1-neg70.9%
distribute-rgt-neg-out70.9%
Simplified70.9%
Taylor expanded in a around 0 29.2%
mul-1-neg29.2%
unsub-neg29.2%
associate-*r*29.2%
Simplified29.2%
Taylor expanded in a around inf 29.2%
mul-1-neg29.2%
*-commutative29.2%
distribute-rgt-neg-in29.2%
distribute-rgt-neg-in29.2%
Simplified29.2%
if 8.99999999999999991e57 < x Initial program 96.2%
Taylor expanded in t around inf 64.1%
mul-1-neg64.1%
distribute-lft-neg-out64.1%
*-commutative64.1%
Simplified64.1%
Taylor expanded in y around 0 33.2%
mul-1-neg33.2%
unsub-neg33.2%
*-commutative33.2%
Simplified33.2%
Final simplification28.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -6e+101)
(* x (* y (- t)))
(if (<= y -1.16e-120)
(* z (* x (- a)))
(if (<= y 1.9e-98) x (* a (* x (- b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -6e+101) {
tmp = x * (y * -t);
} else if (y <= -1.16e-120) {
tmp = z * (x * -a);
} else if (y <= 1.9e-98) {
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 <= (-6d+101)) then
tmp = x * (y * -t)
else if (y <= (-1.16d-120)) then
tmp = z * (x * -a)
else if (y <= 1.9d-98) 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 <= -6e+101) {
tmp = x * (y * -t);
} else if (y <= -1.16e-120) {
tmp = z * (x * -a);
} else if (y <= 1.9e-98) {
tmp = x;
} else {
tmp = a * (x * -b);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -6e+101: tmp = x * (y * -t) elif y <= -1.16e-120: tmp = z * (x * -a) elif y <= 1.9e-98: tmp = x else: tmp = a * (x * -b) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -6e+101) tmp = Float64(x * Float64(y * Float64(-t))); elseif (y <= -1.16e-120) tmp = Float64(z * Float64(x * Float64(-a))); elseif (y <= 1.9e-98) 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 <= -6e+101) tmp = x * (y * -t); elseif (y <= -1.16e-120) tmp = z * (x * -a); elseif (y <= 1.9e-98) tmp = x; else tmp = a * (x * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -6e+101], N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.16e-120], N[(z * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.9e-98], x, N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6 \cdot 10^{+101}:\\
\;\;\;\;x \cdot \left(y \cdot \left(-t\right)\right)\\
\mathbf{elif}\;y \leq -1.16 \cdot 10^{-120}:\\
\;\;\;\;z \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-98}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if y < -5.99999999999999986e101Initial program 93.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 20.9%
mul-1-neg20.9%
unsub-neg20.9%
*-commutative20.9%
Simplified20.9%
Taylor expanded in y around inf 16.0%
mul-1-neg16.0%
distribute-lft-neg-in16.0%
*-commutative16.0%
associate-*r*20.4%
Simplified20.4%
if -5.99999999999999986e101 < y < -1.16e-120Initial program 96.5%
Taylor expanded in y around 0 66.5%
sub-neg66.5%
mul-1-neg66.5%
log1p-define68.2%
mul-1-neg68.2%
Simplified68.2%
Taylor expanded in z around 0 68.2%
associate-*r*68.2%
associate-*r*68.2%
distribute-lft-out68.2%
neg-mul-168.2%
Simplified68.2%
Taylor expanded in a around 0 21.5%
mul-1-neg21.5%
unsub-neg21.5%
Simplified21.5%
Taylor expanded in z around inf 31.2%
mul-1-neg31.2%
*-commutative31.2%
*-commutative31.2%
associate-*r*36.3%
distribute-rgt-neg-in36.3%
Simplified36.3%
if -1.16e-120 < y < 1.9000000000000002e-98Initial program 93.3%
Taylor expanded in b around inf 83.8%
mul-1-neg83.8%
distribute-rgt-neg-out83.8%
Simplified83.8%
Taylor expanded in a around 0 39.8%
if 1.9000000000000002e-98 < y Initial program 98.8%
Taylor expanded in b around inf 44.7%
mul-1-neg44.7%
distribute-rgt-neg-out44.7%
Simplified44.7%
Taylor expanded in a around 0 17.5%
mul-1-neg17.5%
unsub-neg17.5%
associate-*r*17.5%
Simplified17.5%
Taylor expanded in a around inf 29.0%
mul-1-neg29.0%
*-commutative29.0%
distribute-rgt-neg-in29.0%
distribute-rgt-neg-in29.0%
Simplified29.0%
Final simplification32.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -5.3e+104)
(* x (* y (- t)))
(if (<= y -1.7e-125)
(* z (* x (- a)))
(if (<= y 5.5e-112) x (* (- a) (* x z))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -5.3e+104) {
tmp = x * (y * -t);
} else if (y <= -1.7e-125) {
tmp = z * (x * -a);
} else if (y <= 5.5e-112) {
tmp = x;
} else {
tmp = -a * (x * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-5.3d+104)) then
tmp = x * (y * -t)
else if (y <= (-1.7d-125)) then
tmp = z * (x * -a)
else if (y <= 5.5d-112) then
tmp = x
else
tmp = -a * (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -5.3e+104) {
tmp = x * (y * -t);
} else if (y <= -1.7e-125) {
tmp = z * (x * -a);
} else if (y <= 5.5e-112) {
tmp = x;
} else {
tmp = -a * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -5.3e+104: tmp = x * (y * -t) elif y <= -1.7e-125: tmp = z * (x * -a) elif y <= 5.5e-112: tmp = x else: tmp = -a * (x * z) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -5.3e+104) tmp = Float64(x * Float64(y * Float64(-t))); elseif (y <= -1.7e-125) tmp = Float64(z * Float64(x * Float64(-a))); elseif (y <= 5.5e-112) tmp = x; else tmp = Float64(Float64(-a) * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -5.3e+104) tmp = x * (y * -t); elseif (y <= -1.7e-125) tmp = z * (x * -a); elseif (y <= 5.5e-112) tmp = x; else tmp = -a * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -5.3e+104], N[(x * N[(y * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.7e-125], N[(z * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.5e-112], x, N[((-a) * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.3 \cdot 10^{+104}:\\
\;\;\;\;x \cdot \left(y \cdot \left(-t\right)\right)\\
\mathbf{elif}\;y \leq -1.7 \cdot 10^{-125}:\\
\;\;\;\;z \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-112}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if y < -5.2999999999999999e104Initial program 93.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 20.9%
mul-1-neg20.9%
unsub-neg20.9%
*-commutative20.9%
Simplified20.9%
Taylor expanded in y around inf 16.0%
mul-1-neg16.0%
distribute-lft-neg-in16.0%
*-commutative16.0%
associate-*r*20.4%
Simplified20.4%
if -5.2999999999999999e104 < y < -1.69999999999999988e-125Initial program 96.5%
Taylor expanded in y around 0 66.5%
sub-neg66.5%
mul-1-neg66.5%
log1p-define68.2%
mul-1-neg68.2%
Simplified68.2%
Taylor expanded in z around 0 68.2%
associate-*r*68.2%
associate-*r*68.2%
distribute-lft-out68.2%
neg-mul-168.2%
Simplified68.2%
Taylor expanded in a around 0 21.5%
mul-1-neg21.5%
unsub-neg21.5%
Simplified21.5%
Taylor expanded in z around inf 31.2%
mul-1-neg31.2%
*-commutative31.2%
*-commutative31.2%
associate-*r*36.3%
distribute-rgt-neg-in36.3%
Simplified36.3%
if -1.69999999999999988e-125 < y < 5.5e-112Initial program 94.3%
Taylor expanded in b around inf 84.4%
mul-1-neg84.4%
distribute-rgt-neg-out84.4%
Simplified84.4%
Taylor expanded in a around 0 41.2%
if 5.5e-112 < y Initial program 97.8%
Taylor expanded in y around 0 44.4%
sub-neg44.4%
mul-1-neg44.4%
log1p-define46.5%
mul-1-neg46.5%
Simplified46.5%
Taylor expanded in z around 0 46.5%
associate-*r*46.5%
associate-*r*46.5%
distribute-lft-out46.5%
neg-mul-146.5%
Simplified46.5%
Taylor expanded in a around 0 18.0%
mul-1-neg18.0%
unsub-neg18.0%
Simplified18.0%
Taylor expanded in z around inf 28.9%
associate-*r*28.9%
neg-mul-128.9%
Simplified28.9%
Final simplification32.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.4e-20) (not (<= y 3.9e-103))) (* a (* x (- b))) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.4e-20) || !(y <= 3.9e-103)) {
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 <= (-1.4d-20)) .or. (.not. (y <= 3.9d-103))) 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 <= -1.4e-20) || !(y <= 3.9e-103)) {
tmp = a * (x * -b);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.4e-20) or not (y <= 3.9e-103): tmp = a * (x * -b) else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.4e-20) || !(y <= 3.9e-103)) tmp = Float64(a * Float64(x * Float64(-b))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.4e-20) || ~((y <= 3.9e-103))) tmp = a * (x * -b); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.4e-20], N[Not[LessEqual[y, 3.9e-103]], $MachinePrecision]], N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.4 \cdot 10^{-20} \lor \neg \left(y \leq 3.9 \cdot 10^{-103}\right):\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.4000000000000001e-20 or 3.9000000000000002e-103 < y Initial program 96.2%
Taylor expanded in b around inf 42.1%
mul-1-neg42.1%
distribute-rgt-neg-out42.1%
Simplified42.1%
Taylor expanded in a around 0 13.0%
mul-1-neg13.0%
unsub-neg13.0%
associate-*r*13.7%
Simplified13.7%
Taylor expanded in a around inf 20.8%
mul-1-neg20.8%
*-commutative20.8%
distribute-rgt-neg-in20.8%
distribute-rgt-neg-in20.8%
Simplified20.8%
if -1.4000000000000001e-20 < y < 3.9000000000000002e-103Initial program 95.0%
Taylor expanded in b around inf 85.4%
mul-1-neg85.4%
distribute-rgt-neg-out85.4%
Simplified85.4%
Taylor expanded in a around 0 36.5%
Final simplification26.8%
(FPCore (x y z t a b) :precision binary64 (if (<= y -2.2e-20) (* x (* a (- b))) (if (<= y 3.4e-100) x (* a (* x (- b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.2e-20) {
tmp = x * (a * -b);
} else if (y <= 3.4e-100) {
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.2d-20)) then
tmp = x * (a * -b)
else if (y <= 3.4d-100) 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.2e-20) {
tmp = x * (a * -b);
} else if (y <= 3.4e-100) {
tmp = x;
} else {
tmp = a * (x * -b);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -2.2e-20: tmp = x * (a * -b) elif y <= 3.4e-100: tmp = x else: tmp = a * (x * -b) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -2.2e-20) tmp = Float64(x * Float64(a * Float64(-b))); elseif (y <= 3.4e-100) 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.2e-20) tmp = x * (a * -b); elseif (y <= 3.4e-100) tmp = x; else tmp = a * (x * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.2e-20], N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.4e-100], x, N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.2 \cdot 10^{-20}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{-100}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if y < -2.19999999999999991e-20Initial program 93.4%
Taylor expanded in b around inf 39.2%
mul-1-neg39.2%
distribute-rgt-neg-out39.2%
Simplified39.2%
Taylor expanded in a around 0 8.1%
mul-1-neg8.1%
unsub-neg8.1%
associate-*r*9.4%
Simplified9.4%
Taylor expanded in a around inf 11.8%
mul-1-neg11.8%
associate-*r*14.2%
*-commutative14.2%
distribute-rgt-neg-out14.2%
*-commutative14.2%
distribute-rgt-neg-in14.2%
Simplified14.2%
if -2.19999999999999991e-20 < y < 3.39999999999999976e-100Initial program 95.0%
Taylor expanded in b around inf 85.4%
mul-1-neg85.4%
distribute-rgt-neg-out85.4%
Simplified85.4%
Taylor expanded in a around 0 36.5%
if 3.39999999999999976e-100 < y Initial program 98.8%
Taylor expanded in b around inf 44.7%
mul-1-neg44.7%
distribute-rgt-neg-out44.7%
Simplified44.7%
Taylor expanded in a around 0 17.5%
mul-1-neg17.5%
unsub-neg17.5%
associate-*r*17.5%
Simplified17.5%
Taylor expanded in a around inf 29.0%
mul-1-neg29.0%
*-commutative29.0%
distribute-rgt-neg-in29.0%
distribute-rgt-neg-in29.0%
Simplified29.0%
Final simplification27.6%
(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.7%
Taylor expanded in b around inf 58.8%
mul-1-neg58.8%
distribute-rgt-neg-out58.8%
Simplified58.8%
Taylor expanded in a around 0 17.2%
Final simplification17.2%
herbie shell --seed 2024039
(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))))))