
(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 13 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (* x (exp (+ (* y (- (log z) t)) (* a (- (log (- 1.0 z)) b))))))
double code(double x, double y, double z, double t, double a, double b) {
return x * exp(((y * (log(z) - t)) + (a * (log((1.0 - z)) - b))));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x * exp(((y * (log(z) - t)) + (a * (log((1.0d0 - z)) - b))))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x * Math.exp(((y * (Math.log(z) - t)) + (a * (Math.log((1.0 - z)) - b))));
}
def code(x, y, z, t, a, b): return x * math.exp(((y * (math.log(z) - t)) + (a * (math.log((1.0 - z)) - b))))
function code(x, y, z, t, a, b) return Float64(x * exp(Float64(Float64(y * Float64(log(z) - t)) + Float64(a * Float64(log(Float64(1.0 - z)) - b))))) end
function tmp = code(x, y, z, t, a, b) tmp = x * exp(((y * (log(z) - t)) + (a * (log((1.0 - z)) - b)))); end
code[x_, y_, z_, t_, a_, b_] := N[(x * N[Exp[N[(N[(y * N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[Log[N[(1.0 - z), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot e^{y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right)}
\end{array}
(FPCore (x y z t a b) :precision binary64 (* x (exp (fma y (- (log z) t) (* a (- (log1p (- z)) b))))))
double code(double x, double y, double z, double t, double a, double b) {
return x * exp(fma(y, (log(z) - t), (a * (log1p(-z) - b))));
}
function code(x, y, z, t, a, b) return Float64(x * exp(fma(y, Float64(log(z) - t), Float64(a * Float64(log1p(Float64(-z)) - b))))) end
code[x_, y_, z_, t_, a_, b_] := N[(x * N[Exp[N[(y * N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision] + N[(a * N[(N[Log[1 + (-z)], $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot e^{\mathsf{fma}\left(y, \log z - t, a \cdot \left(\mathsf{log1p}\left(-z\right) - b\right)\right)}
\end{array}
Initial program 96.3%
fma-def97.1%
sub-neg97.1%
log1p-def99.6%
Simplified99.6%
Final simplification99.6%
(FPCore (x y z t a b) :precision binary64 (* x (exp (+ (* y (- (log z) t)) (* a (- (log (- 1.0 z)) b))))))
double code(double x, double y, double z, double t, double a, double b) {
return x * exp(((y * (log(z) - t)) + (a * (log((1.0 - z)) - b))));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x * exp(((y * (log(z) - t)) + (a * (log((1.0d0 - z)) - b))))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x * Math.exp(((y * (Math.log(z) - t)) + (a * (Math.log((1.0 - z)) - b))));
}
def code(x, y, z, t, a, b): return x * math.exp(((y * (math.log(z) - t)) + (a * (math.log((1.0 - z)) - b))))
function code(x, y, z, t, a, b) return Float64(x * exp(Float64(Float64(y * Float64(log(z) - t)) + Float64(a * Float64(log(Float64(1.0 - z)) - b))))) end
function tmp = code(x, y, z, t, a, b) tmp = x * exp(((y * (log(z) - t)) + (a * (log((1.0 - z)) - b)))); end
code[x_, y_, z_, t_, a_, b_] := N[(x * N[Exp[N[(N[(y * N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[Log[N[(1.0 - z), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot e^{y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right)}
\end{array}
Initial program 96.3%
Final simplification96.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.5e-61) (not (<= y 1.26e-27))) (* 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 <= -1.5e-61) || !(y <= 1.26e-27)) {
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 <= -1.5e-61) || !(y <= 1.26e-27)) {
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 <= -1.5e-61) or not (y <= 1.26e-27): 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 <= -1.5e-61) || !(y <= 1.26e-27)) 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, -1.5e-61], N[Not[LessEqual[y, 1.26e-27]], $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 -1.5 \cdot 10^{-61} \lor \neg \left(y \leq 1.26 \cdot 10^{-27}\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.50000000000000006e-61 or 1.2599999999999999e-27 < y Initial program 96.9%
Taylor expanded in y around inf 92.4%
if -1.50000000000000006e-61 < y < 1.2599999999999999e-27Initial program 95.5%
Taylor expanded in y around 0 82.3%
sub-neg82.3%
sub-neg82.3%
neg-mul-182.3%
log1p-def86.7%
neg-mul-186.7%
sub-neg86.7%
Simplified86.7%
Final simplification90.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -2e-69) (not (<= y 1.2e-27))) (* x (exp (* y (- (log z) t)))) (/ x (exp (* a b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2e-69) || !(y <= 1.2e-27)) {
tmp = x * exp((y * (log(z) - t)));
} else {
tmp = x / exp((a * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-2d-69)) .or. (.not. (y <= 1.2d-27))) then
tmp = x * exp((y * (log(z) - t)))
else
tmp = x / exp((a * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2e-69) || !(y <= 1.2e-27)) {
tmp = x * Math.exp((y * (Math.log(z) - t)));
} else {
tmp = x / Math.exp((a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -2e-69) or not (y <= 1.2e-27): tmp = x * math.exp((y * (math.log(z) - t))) else: tmp = x / math.exp((a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -2e-69) || !(y <= 1.2e-27)) tmp = Float64(x * exp(Float64(y * Float64(log(z) - t)))); else tmp = Float64(x / exp(Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -2e-69) || ~((y <= 1.2e-27))) tmp = x * exp((y * (log(z) - t))); else tmp = x / exp((a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -2e-69], N[Not[LessEqual[y, 1.2e-27]], $MachinePrecision]], N[(x * N[Exp[N[(y * N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(x / N[Exp[N[(a * b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2 \cdot 10^{-69} \lor \neg \left(y \leq 1.2 \cdot 10^{-27}\right):\\
\;\;\;\;x \cdot e^{y \cdot \left(\log z - t\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{e^{a \cdot b}}\\
\end{array}
\end{array}
if y < -1.9999999999999999e-69 or 1.20000000000000001e-27 < y Initial program 96.2%
Taylor expanded in y around inf 91.8%
if -1.9999999999999999e-69 < y < 1.20000000000000001e-27Initial program 96.4%
Taylor expanded in b around inf 83.0%
mul-1-neg83.0%
distribute-rgt-neg-out83.0%
Simplified83.0%
exp-prod65.9%
pow-neg65.9%
Applied egg-rr65.9%
Taylor expanded in x around 0 83.0%
Final simplification88.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (pow z y))))
(if (<= y -5.4e+16)
t_1
(if (<= y 4.6e-293)
(* x (/ 1.0 (+ 1.0 (* a b))))
(if (<= y 0.105) (* x (- 1.0 (* a 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 <= -5.4e+16) {
tmp = t_1;
} else if (y <= 4.6e-293) {
tmp = x * (1.0 / (1.0 + (a * b)));
} else if (y <= 0.105) {
tmp = x * (1.0 - (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 * (z ** y)
if (y <= (-5.4d+16)) then
tmp = t_1
else if (y <= 4.6d-293) then
tmp = x * (1.0d0 / (1.0d0 + (a * b)))
else if (y <= 0.105d0) then
tmp = x * (1.0d0 - (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 * Math.pow(z, y);
double tmp;
if (y <= -5.4e+16) {
tmp = t_1;
} else if (y <= 4.6e-293) {
tmp = x * (1.0 / (1.0 + (a * b)));
} else if (y <= 0.105) {
tmp = x * (1.0 - (a * 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 <= -5.4e+16: tmp = t_1 elif y <= 4.6e-293: tmp = x * (1.0 / (1.0 + (a * b))) elif y <= 0.105: tmp = x * (1.0 - (a * 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 <= -5.4e+16) tmp = t_1; elseif (y <= 4.6e-293) tmp = Float64(x * Float64(1.0 / Float64(1.0 + Float64(a * b)))); elseif (y <= 0.105) tmp = Float64(x * Float64(1.0 - Float64(a * 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 <= -5.4e+16) tmp = t_1; elseif (y <= 4.6e-293) tmp = x * (1.0 / (1.0 + (a * b))); elseif (y <= 0.105) tmp = x * (1.0 - (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[Power[z, y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.4e+16], t$95$1, If[LessEqual[y, 4.6e-293], N[(x * N[(1.0 / N[(1.0 + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 0.105], N[(x * N[(1.0 - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot {z}^{y}\\
\mathbf{if}\;y \leq -5.4 \cdot 10^{+16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{-293}:\\
\;\;\;\;x \cdot \frac{1}{1 + a \cdot b}\\
\mathbf{elif}\;y \leq 0.105:\\
\;\;\;\;x \cdot \left(1 - a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.4e16 or 0.104999999999999996 < y Initial program 96.9%
Taylor expanded in y around inf 95.4%
Taylor expanded in t around 0 77.7%
if -5.4e16 < y < 4.5999999999999999e-293Initial program 93.1%
Taylor expanded in b around inf 76.3%
mul-1-neg76.3%
distribute-rgt-neg-out76.3%
Simplified76.3%
exp-prod65.1%
pow-neg65.1%
Applied egg-rr65.1%
Taylor expanded in a around 0 50.6%
if 4.5999999999999999e-293 < y < 0.104999999999999996Initial program 98.4%
Taylor expanded in b around inf 80.4%
mul-1-neg80.4%
distribute-rgt-neg-out80.4%
Simplified80.4%
Taylor expanded in a around 0 49.8%
mul-1-neg49.8%
unsub-neg49.8%
Simplified49.8%
Final simplification64.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -2.35e+28) (not (<= y 0.49))) (* x (pow z y)) (/ x (exp (* a b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.35e+28) || !(y <= 0.49)) {
tmp = x * pow(z, y);
} else {
tmp = x / exp((a * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-2.35d+28)) .or. (.not. (y <= 0.49d0))) then
tmp = x * (z ** y)
else
tmp = x / exp((a * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.35e+28) || !(y <= 0.49)) {
tmp = x * Math.pow(z, y);
} else {
tmp = x / Math.exp((a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -2.35e+28) or not (y <= 0.49): tmp = x * math.pow(z, y) else: tmp = x / math.exp((a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -2.35e+28) || !(y <= 0.49)) tmp = Float64(x * (z ^ y)); else tmp = Float64(x / exp(Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -2.35e+28) || ~((y <= 0.49))) tmp = x * (z ^ y); else tmp = x / exp((a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -2.35e+28], N[Not[LessEqual[y, 0.49]], $MachinePrecision]], N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision], N[(x / N[Exp[N[(a * b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.35 \cdot 10^{+28} \lor \neg \left(y \leq 0.49\right):\\
\;\;\;\;x \cdot {z}^{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{e^{a \cdot b}}\\
\end{array}
\end{array}
if y < -2.34999999999999983e28 or 0.48999999999999999 < y Initial program 96.8%
Taylor expanded in y around inf 96.0%
Taylor expanded in t around 0 78.6%
if -2.34999999999999983e28 < y < 0.48999999999999999Initial program 95.8%
Taylor expanded in b around inf 77.5%
mul-1-neg77.5%
distribute-rgt-neg-out77.5%
Simplified77.5%
exp-prod62.6%
pow-neg62.6%
Applied egg-rr62.6%
Taylor expanded in x around 0 77.5%
Final simplification78.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (* x (- y)))))
(if (<= y -3.7e+37)
t_1
(if (<= y -2.15e-294)
x
(if (<= y 1.9e-244) t_1 (if (<= y 1.32e-51) x (* a (* x (- b)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t * (x * -y);
double tmp;
if (y <= -3.7e+37) {
tmp = t_1;
} else if (y <= -2.15e-294) {
tmp = x;
} else if (y <= 1.9e-244) {
tmp = t_1;
} else if (y <= 1.32e-51) {
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 = t * (x * -y)
if (y <= (-3.7d+37)) then
tmp = t_1
else if (y <= (-2.15d-294)) then
tmp = x
else if (y <= 1.9d-244) then
tmp = t_1
else if (y <= 1.32d-51) 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 = t * (x * -y);
double tmp;
if (y <= -3.7e+37) {
tmp = t_1;
} else if (y <= -2.15e-294) {
tmp = x;
} else if (y <= 1.9e-244) {
tmp = t_1;
} else if (y <= 1.32e-51) {
tmp = x;
} else {
tmp = a * (x * -b);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t * (x * -y) tmp = 0 if y <= -3.7e+37: tmp = t_1 elif y <= -2.15e-294: tmp = x elif y <= 1.9e-244: tmp = t_1 elif y <= 1.32e-51: tmp = x else: tmp = a * (x * -b) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(t * Float64(x * Float64(-y))) tmp = 0.0 if (y <= -3.7e+37) tmp = t_1; elseif (y <= -2.15e-294) tmp = x; elseif (y <= 1.9e-244) tmp = t_1; elseif (y <= 1.32e-51) 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 = t * (x * -y); tmp = 0.0; if (y <= -3.7e+37) tmp = t_1; elseif (y <= -2.15e-294) tmp = x; elseif (y <= 1.9e-244) tmp = t_1; elseif (y <= 1.32e-51) tmp = x; else tmp = a * (x * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t * N[(x * (-y)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.7e+37], t$95$1, If[LessEqual[y, -2.15e-294], x, If[LessEqual[y, 1.9e-244], t$95$1, If[LessEqual[y, 1.32e-51], x, N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(x \cdot \left(-y\right)\right)\\
\mathbf{if}\;y \leq -3.7 \cdot 10^{+37}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.15 \cdot 10^{-294}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-244}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.32 \cdot 10^{-51}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if y < -3.6999999999999999e37 or -2.1500000000000001e-294 < y < 1.9e-244Initial program 96.1%
Taylor expanded in t around inf 52.9%
mul-1-neg52.9%
distribute-lft-neg-out52.9%
*-commutative52.9%
Simplified52.9%
Taylor expanded in y around 0 28.3%
mul-1-neg28.3%
Simplified28.3%
Taylor expanded in t around inf 33.7%
mul-1-neg33.7%
Simplified33.7%
if -3.6999999999999999e37 < y < -2.1500000000000001e-294 or 1.9e-244 < y < 1.31999999999999998e-51Initial program 95.7%
Taylor expanded in b around inf 77.5%
mul-1-neg77.5%
distribute-rgt-neg-out77.5%
Simplified77.5%
Taylor expanded in a around 0 38.6%
if 1.31999999999999998e-51 < y Initial program 97.3%
Taylor expanded in b around inf 42.4%
mul-1-neg42.4%
distribute-rgt-neg-out42.4%
Simplified42.4%
Taylor expanded in a around 0 14.8%
mul-1-neg14.8%
unsub-neg14.8%
Simplified14.8%
Taylor expanded in a around inf 24.3%
mul-1-neg24.3%
*-commutative24.3%
Simplified24.3%
Final simplification33.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (* x (- y)))))
(if (<= y -3.7e+37)
t_1
(if (<= y -2.65e-294)
x
(if (<= y 2.4e-244) t_1 (if (<= y 1.25e-52) x (* x (* a (- b)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t * (x * -y);
double tmp;
if (y <= -3.7e+37) {
tmp = t_1;
} else if (y <= -2.65e-294) {
tmp = x;
} else if (y <= 2.4e-244) {
tmp = t_1;
} else if (y <= 1.25e-52) {
tmp = x;
} else {
tmp = x * (a * -b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = t * (x * -y)
if (y <= (-3.7d+37)) then
tmp = t_1
else if (y <= (-2.65d-294)) then
tmp = x
else if (y <= 2.4d-244) then
tmp = t_1
else if (y <= 1.25d-52) then
tmp = x
else
tmp = x * (a * -b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t * (x * -y);
double tmp;
if (y <= -3.7e+37) {
tmp = t_1;
} else if (y <= -2.65e-294) {
tmp = x;
} else if (y <= 2.4e-244) {
tmp = t_1;
} else if (y <= 1.25e-52) {
tmp = x;
} else {
tmp = x * (a * -b);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t * (x * -y) tmp = 0 if y <= -3.7e+37: tmp = t_1 elif y <= -2.65e-294: tmp = x elif y <= 2.4e-244: tmp = t_1 elif y <= 1.25e-52: tmp = x else: tmp = x * (a * -b) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(t * Float64(x * Float64(-y))) tmp = 0.0 if (y <= -3.7e+37) tmp = t_1; elseif (y <= -2.65e-294) tmp = x; elseif (y <= 2.4e-244) tmp = t_1; elseif (y <= 1.25e-52) tmp = x; else tmp = Float64(x * Float64(a * Float64(-b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = t * (x * -y); tmp = 0.0; if (y <= -3.7e+37) tmp = t_1; elseif (y <= -2.65e-294) tmp = x; elseif (y <= 2.4e-244) tmp = t_1; elseif (y <= 1.25e-52) tmp = x; else tmp = x * (a * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t * N[(x * (-y)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.7e+37], t$95$1, If[LessEqual[y, -2.65e-294], x, If[LessEqual[y, 2.4e-244], t$95$1, If[LessEqual[y, 1.25e-52], x, N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(x \cdot \left(-y\right)\right)\\
\mathbf{if}\;y \leq -3.7 \cdot 10^{+37}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.65 \cdot 10^{-294}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{-244}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{-52}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if y < -3.6999999999999999e37 or -2.64999999999999984e-294 < y < 2.40000000000000016e-244Initial program 96.1%
Taylor expanded in t around inf 52.9%
mul-1-neg52.9%
distribute-lft-neg-out52.9%
*-commutative52.9%
Simplified52.9%
Taylor expanded in y around 0 28.3%
mul-1-neg28.3%
Simplified28.3%
Taylor expanded in t around inf 33.7%
mul-1-neg33.7%
Simplified33.7%
if -3.6999999999999999e37 < y < -2.64999999999999984e-294 or 2.40000000000000016e-244 < y < 1.25e-52Initial program 95.7%
Taylor expanded in b around inf 77.5%
mul-1-neg77.5%
distribute-rgt-neg-out77.5%
Simplified77.5%
Taylor expanded in a around 0 38.6%
if 1.25e-52 < y Initial program 97.3%
Taylor expanded in b around inf 42.4%
mul-1-neg42.4%
distribute-rgt-neg-out42.4%
Simplified42.4%
Taylor expanded in a around 0 14.8%
mul-1-neg14.8%
unsub-neg14.8%
Simplified14.8%
Taylor expanded in a around inf 24.3%
mul-1-neg24.3%
associate-*r*30.8%
distribute-lft-neg-in30.8%
distribute-rgt-neg-out30.8%
*-commutative30.8%
Simplified30.8%
Final simplification34.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -4.5e+40)
(* x (- 1.0 (* y t)))
(if (<= y 2.2e-299)
(* x (/ 1.0 (+ 1.0 (* a b))))
(if (<= y 1.8e-51) (* x (- 1.0 (* a b))) (* x (* a (- b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -4.5e+40) {
tmp = x * (1.0 - (y * t));
} else if (y <= 2.2e-299) {
tmp = x * (1.0 / (1.0 + (a * b)));
} else if (y <= 1.8e-51) {
tmp = x * (1.0 - (a * b));
} else {
tmp = x * (a * -b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-4.5d+40)) then
tmp = x * (1.0d0 - (y * t))
else if (y <= 2.2d-299) then
tmp = x * (1.0d0 / (1.0d0 + (a * b)))
else if (y <= 1.8d-51) then
tmp = x * (1.0d0 - (a * b))
else
tmp = x * (a * -b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -4.5e+40) {
tmp = x * (1.0 - (y * t));
} else if (y <= 2.2e-299) {
tmp = x * (1.0 / (1.0 + (a * b)));
} else if (y <= 1.8e-51) {
tmp = x * (1.0 - (a * b));
} else {
tmp = x * (a * -b);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -4.5e+40: tmp = x * (1.0 - (y * t)) elif y <= 2.2e-299: tmp = x * (1.0 / (1.0 + (a * b))) elif y <= 1.8e-51: tmp = x * (1.0 - (a * b)) else: tmp = x * (a * -b) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -4.5e+40) tmp = Float64(x * Float64(1.0 - Float64(y * t))); elseif (y <= 2.2e-299) tmp = Float64(x * Float64(1.0 / Float64(1.0 + Float64(a * b)))); elseif (y <= 1.8e-51) tmp = Float64(x * Float64(1.0 - Float64(a * b))); else tmp = Float64(x * Float64(a * Float64(-b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -4.5e+40) tmp = x * (1.0 - (y * t)); elseif (y <= 2.2e-299) tmp = x * (1.0 / (1.0 + (a * b))); elseif (y <= 1.8e-51) tmp = x * (1.0 - (a * b)); else tmp = x * (a * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -4.5e+40], N[(x * N[(1.0 - N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e-299], N[(x * N[(1.0 / N[(1.0 + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.8e-51], N[(x * N[(1.0 - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.5 \cdot 10^{+40}:\\
\;\;\;\;x \cdot \left(1 - y \cdot t\right)\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{-299}:\\
\;\;\;\;x \cdot \frac{1}{1 + a \cdot b}\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{-51}:\\
\;\;\;\;x \cdot \left(1 - a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if y < -4.50000000000000032e40Initial program 96.8%
Taylor expanded in t around inf 62.4%
mul-1-neg62.4%
distribute-lft-neg-out62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in y around 0 33.8%
mul-1-neg33.8%
Simplified33.8%
Taylor expanded in x around 0 33.9%
if -4.50000000000000032e40 < y < 2.2e-299Initial program 93.8%
Taylor expanded in b around inf 71.9%
mul-1-neg71.9%
distribute-rgt-neg-out71.9%
Simplified71.9%
exp-prod61.8%
pow-neg61.8%
Applied egg-rr61.8%
Taylor expanded in a around 0 46.1%
if 2.2e-299 < y < 1.8e-51Initial program 97.9%
Taylor expanded in b around inf 88.5%
mul-1-neg88.5%
distribute-rgt-neg-out88.5%
Simplified88.5%
Taylor expanded in a around 0 56.2%
mul-1-neg56.2%
unsub-neg56.2%
Simplified56.2%
if 1.8e-51 < y Initial program 97.3%
Taylor expanded in b around inf 42.4%
mul-1-neg42.4%
distribute-rgt-neg-out42.4%
Simplified42.4%
Taylor expanded in a around 0 14.8%
mul-1-neg14.8%
unsub-neg14.8%
Simplified14.8%
Taylor expanded in a around inf 24.3%
mul-1-neg24.3%
associate-*r*30.8%
distribute-lft-neg-in30.8%
distribute-rgt-neg-out30.8%
*-commutative30.8%
Simplified30.8%
Final simplification40.6%
(FPCore (x y z t a b) :precision binary64 (if (<= y -7.2e+40) (* t (* x (- y))) (if (<= y 1.8e-51) (* x (- 1.0 (* a b))) (* x (* a (- b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -7.2e+40) {
tmp = t * (x * -y);
} else if (y <= 1.8e-51) {
tmp = x * (1.0 - (a * b));
} else {
tmp = x * (a * -b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-7.2d+40)) then
tmp = t * (x * -y)
else if (y <= 1.8d-51) then
tmp = x * (1.0d0 - (a * b))
else
tmp = x * (a * -b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -7.2e+40) {
tmp = t * (x * -y);
} else if (y <= 1.8e-51) {
tmp = x * (1.0 - (a * b));
} else {
tmp = x * (a * -b);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -7.2e+40: tmp = t * (x * -y) elif y <= 1.8e-51: tmp = x * (1.0 - (a * b)) else: tmp = x * (a * -b) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -7.2e+40) tmp = Float64(t * Float64(x * Float64(-y))); elseif (y <= 1.8e-51) tmp = Float64(x * Float64(1.0 - Float64(a * b))); else tmp = Float64(x * Float64(a * Float64(-b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -7.2e+40) tmp = t * (x * -y); elseif (y <= 1.8e-51) tmp = x * (1.0 - (a * b)); else tmp = x * (a * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -7.2e+40], N[(t * N[(x * (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.8e-51], N[(x * N[(1.0 - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.2 \cdot 10^{+40}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-y\right)\right)\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{-51}:\\
\;\;\;\;x \cdot \left(1 - a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if y < -7.19999999999999993e40Initial program 96.8%
Taylor expanded in t around inf 62.4%
mul-1-neg62.4%
distribute-lft-neg-out62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in y around 0 33.8%
mul-1-neg33.8%
Simplified33.8%
Taylor expanded in t around inf 33.7%
mul-1-neg33.7%
Simplified33.7%
if -7.19999999999999993e40 < y < 1.8e-51Initial program 95.4%
Taylor expanded in b around inf 78.5%
mul-1-neg78.5%
distribute-rgt-neg-out78.5%
Simplified78.5%
Taylor expanded in a around 0 46.2%
mul-1-neg46.2%
unsub-neg46.2%
Simplified46.2%
if 1.8e-51 < y Initial program 97.3%
Taylor expanded in b around inf 42.4%
mul-1-neg42.4%
distribute-rgt-neg-out42.4%
Simplified42.4%
Taylor expanded in a around 0 14.8%
mul-1-neg14.8%
unsub-neg14.8%
Simplified14.8%
Taylor expanded in a around inf 24.3%
mul-1-neg24.3%
associate-*r*30.8%
distribute-lft-neg-in30.8%
distribute-rgt-neg-out30.8%
*-commutative30.8%
Simplified30.8%
Final simplification38.7%
(FPCore (x y z t a b) :precision binary64 (if (<= y -1.35e+41) (* x (- 1.0 (* y t))) (if (<= y 1.32e-51) (* x (- 1.0 (* a b))) (* x (* a (- b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.35e+41) {
tmp = x * (1.0 - (y * t));
} else if (y <= 1.32e-51) {
tmp = x * (1.0 - (a * b));
} else {
tmp = x * (a * -b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-1.35d+41)) then
tmp = x * (1.0d0 - (y * t))
else if (y <= 1.32d-51) then
tmp = x * (1.0d0 - (a * b))
else
tmp = x * (a * -b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.35e+41) {
tmp = x * (1.0 - (y * t));
} else if (y <= 1.32e-51) {
tmp = x * (1.0 - (a * b));
} else {
tmp = x * (a * -b);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -1.35e+41: tmp = x * (1.0 - (y * t)) elif y <= 1.32e-51: tmp = x * (1.0 - (a * b)) else: tmp = x * (a * -b) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -1.35e+41) tmp = Float64(x * Float64(1.0 - Float64(y * t))); elseif (y <= 1.32e-51) tmp = Float64(x * Float64(1.0 - Float64(a * b))); else tmp = Float64(x * Float64(a * Float64(-b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -1.35e+41) tmp = x * (1.0 - (y * t)); elseif (y <= 1.32e-51) tmp = x * (1.0 - (a * b)); else tmp = x * (a * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -1.35e+41], N[(x * N[(1.0 - N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.32e-51], N[(x * N[(1.0 - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(a * (-b)), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.35 \cdot 10^{+41}:\\
\;\;\;\;x \cdot \left(1 - y \cdot t\right)\\
\mathbf{elif}\;y \leq 1.32 \cdot 10^{-51}:\\
\;\;\;\;x \cdot \left(1 - a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if y < -1.35e41Initial program 96.8%
Taylor expanded in t around inf 62.4%
mul-1-neg62.4%
distribute-lft-neg-out62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in y around 0 33.8%
mul-1-neg33.8%
Simplified33.8%
Taylor expanded in x around 0 33.9%
if -1.35e41 < y < 1.31999999999999998e-51Initial program 95.4%
Taylor expanded in b around inf 78.5%
mul-1-neg78.5%
distribute-rgt-neg-out78.5%
Simplified78.5%
Taylor expanded in a around 0 46.2%
mul-1-neg46.2%
unsub-neg46.2%
Simplified46.2%
if 1.31999999999999998e-51 < y Initial program 97.3%
Taylor expanded in b around inf 42.4%
mul-1-neg42.4%
distribute-rgt-neg-out42.4%
Simplified42.4%
Taylor expanded in a around 0 14.8%
mul-1-neg14.8%
unsub-neg14.8%
Simplified14.8%
Taylor expanded in a around inf 24.3%
mul-1-neg24.3%
associate-*r*30.8%
distribute-lft-neg-in30.8%
distribute-rgt-neg-out30.8%
*-commutative30.8%
Simplified30.8%
Final simplification38.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -9.5e-21) (not (<= y 2.95e-52))) (* a (* x (- b))) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -9.5e-21) || !(y <= 2.95e-52)) {
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 <= (-9.5d-21)) .or. (.not. (y <= 2.95d-52))) 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 <= -9.5e-21) || !(y <= 2.95e-52)) {
tmp = a * (x * -b);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -9.5e-21) or not (y <= 2.95e-52): tmp = a * (x * -b) else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -9.5e-21) || !(y <= 2.95e-52)) 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 <= -9.5e-21) || ~((y <= 2.95e-52))) tmp = a * (x * -b); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -9.5e-21], N[Not[LessEqual[y, 2.95e-52]], $MachinePrecision]], N[(a * N[(x * (-b)), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.5 \cdot 10^{-21} \lor \neg \left(y \leq 2.95 \cdot 10^{-52}\right):\\
\;\;\;\;a \cdot \left(x \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -9.4999999999999994e-21 or 2.9500000000000001e-52 < y Initial program 97.3%
Taylor expanded in b around inf 37.5%
mul-1-neg37.5%
distribute-rgt-neg-out37.5%
Simplified37.5%
Taylor expanded in a around 0 13.3%
mul-1-neg13.3%
unsub-neg13.3%
Simplified13.3%
Taylor expanded in a around inf 20.9%
mul-1-neg20.9%
*-commutative20.9%
Simplified20.9%
if -9.4999999999999994e-21 < y < 2.9500000000000001e-52Initial program 94.9%
Taylor expanded in b around inf 81.7%
mul-1-neg81.7%
distribute-rgt-neg-out81.7%
Simplified81.7%
Taylor expanded in a around 0 37.8%
Final simplification28.0%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 96.3%
Taylor expanded in b around inf 56.0%
mul-1-neg56.0%
distribute-rgt-neg-out56.0%
Simplified56.0%
Taylor expanded in a around 0 18.6%
Final simplification18.6%
herbie shell --seed 2024031
(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))))))