
(FPCore (x y z t a b) :precision binary64 (+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * 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 - ((y - 1.0d0) * z)) - ((t - 1.0d0) * a)) + (((y + t) - 2.0d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
}
def code(x, y, z, t, a, b): return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x - Float64(Float64(y - 1.0) * z)) - Float64(Float64(t - 1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * 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 - ((y - 1.0d0) * z)) - ((t - 1.0d0) * a)) + (((y + t) - 2.0d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
}
def code(x, y, z, t, a, b): return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x - Float64(Float64(y - 1.0) * z)) - Float64(Float64(t - 1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b
\end{array}
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- (+ y t) 2.0) b))
(t_2 (+ (+ (+ x (* z (- 1.0 y))) (* a (- 1.0 t))) t_1)))
(if (<= t_2 INFINITY) t_2 (+ x t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((y + t) - 2.0) * b;
double t_2 = ((x + (z * (1.0 - y))) + (a * (1.0 - t))) + t_1;
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = x + t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((y + t) - 2.0) * b;
double t_2 = ((x + (z * (1.0 - y))) + (a * (1.0 - t))) + t_1;
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = x + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((y + t) - 2.0) * b t_2 = ((x + (z * (1.0 - y))) + (a * (1.0 - t))) + t_1 tmp = 0 if t_2 <= math.inf: tmp = t_2 else: tmp = x + t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(y + t) - 2.0) * b) t_2 = Float64(Float64(Float64(x + Float64(z * Float64(1.0 - y))) + Float64(a * Float64(1.0 - t))) + t_1) tmp = 0.0 if (t_2 <= Inf) tmp = t_2; else tmp = Float64(x + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((y + t) - 2.0) * b; t_2 = ((x + (z * (1.0 - y))) + (a * (1.0 - t))) + t_1; tmp = 0.0; if (t_2 <= Inf) tmp = t_2; else tmp = x + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, N[(x + t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(y + t\right) - 2\right) \cdot b\\
t_2 := \left(\left(x + z \cdot \left(1 - y\right)\right) + a \cdot \left(1 - t\right)\right) + t\_1\\
\mathbf{if}\;t\_2 \leq \infty:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;x + t\_1\\
\end{array}
\end{array}
if (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b)) < +inf.0Initial program 100.0%
if +inf.0 < (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b)) Initial program 0.0%
Taylor expanded in x around inf
Simplified75.1%
Final simplification98.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* (- (+ y t) 2.0) b)))
(t_2 (* (+ t -1.0) a))
(t_3 (- (* z (- 1.0 y)) t_2)))
(if (<= b -2e+78)
t_1
(if (<= b -1.02e+36)
t_3
(if (<= b 8e-273) (+ x (- z t_2)) (if (<= b 7.2e+63) t_3 t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((y + t) - 2.0) * b);
double t_2 = (t + -1.0) * a;
double t_3 = (z * (1.0 - y)) - t_2;
double tmp;
if (b <= -2e+78) {
tmp = t_1;
} else if (b <= -1.02e+36) {
tmp = t_3;
} else if (b <= 8e-273) {
tmp = x + (z - t_2);
} else if (b <= 7.2e+63) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x + (((y + t) - 2.0d0) * b)
t_2 = (t + (-1.0d0)) * a
t_3 = (z * (1.0d0 - y)) - t_2
if (b <= (-2d+78)) then
tmp = t_1
else if (b <= (-1.02d+36)) then
tmp = t_3
else if (b <= 8d-273) then
tmp = x + (z - t_2)
else if (b <= 7.2d+63) then
tmp = t_3
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((y + t) - 2.0) * b);
double t_2 = (t + -1.0) * a;
double t_3 = (z * (1.0 - y)) - t_2;
double tmp;
if (b <= -2e+78) {
tmp = t_1;
} else if (b <= -1.02e+36) {
tmp = t_3;
} else if (b <= 8e-273) {
tmp = x + (z - t_2);
} else if (b <= 7.2e+63) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (((y + t) - 2.0) * b) t_2 = (t + -1.0) * a t_3 = (z * (1.0 - y)) - t_2 tmp = 0 if b <= -2e+78: tmp = t_1 elif b <= -1.02e+36: tmp = t_3 elif b <= 8e-273: tmp = x + (z - t_2) elif b <= 7.2e+63: tmp = t_3 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(Float64(y + t) - 2.0) * b)) t_2 = Float64(Float64(t + -1.0) * a) t_3 = Float64(Float64(z * Float64(1.0 - y)) - t_2) tmp = 0.0 if (b <= -2e+78) tmp = t_1; elseif (b <= -1.02e+36) tmp = t_3; elseif (b <= 8e-273) tmp = Float64(x + Float64(z - t_2)); elseif (b <= 7.2e+63) tmp = t_3; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (((y + t) - 2.0) * b); t_2 = (t + -1.0) * a; t_3 = (z * (1.0 - y)) - t_2; tmp = 0.0; if (b <= -2e+78) tmp = t_1; elseif (b <= -1.02e+36) tmp = t_3; elseif (b <= 8e-273) tmp = x + (z - t_2); elseif (b <= 7.2e+63) tmp = t_3; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t + -1.0), $MachinePrecision] * a), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision]}, If[LessEqual[b, -2e+78], t$95$1, If[LessEqual[b, -1.02e+36], t$95$3, If[LessEqual[b, 8e-273], N[(x + N[(z - t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.2e+63], t$95$3, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\left(y + t\right) - 2\right) \cdot b\\
t_2 := \left(t + -1\right) \cdot a\\
t_3 := z \cdot \left(1 - y\right) - t\_2\\
\mathbf{if}\;b \leq -2 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.02 \cdot 10^{+36}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq 8 \cdot 10^{-273}:\\
\;\;\;\;x + \left(z - t\_2\right)\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{+63}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.00000000000000002e78 or 7.19999999999999998e63 < b Initial program 90.6%
Taylor expanded in x around inf
Simplified83.1%
if -2.00000000000000002e78 < b < -1.02000000000000003e36 or 8.000000000000001e-273 < b < 7.19999999999999998e63Initial program 97.3%
Taylor expanded in b around 0
sub-negN/A
+-lowering-+.f64N/A
+-commutativeN/A
distribute-neg-inN/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-neg-inN/A
metadata-evalN/A
sub-negN/A
--lowering--.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
Simplified78.5%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
--lowering--.f6467.5%
Simplified67.5%
if -1.02000000000000003e36 < b < 8.000000000000001e-273Initial program 100.0%
Taylor expanded in b around 0
sub-negN/A
+-lowering-+.f64N/A
+-commutativeN/A
distribute-neg-inN/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-neg-inN/A
metadata-evalN/A
sub-negN/A
--lowering--.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
Simplified88.8%
Taylor expanded in y around 0
+-lowering-+.f64N/A
remove-double-negN/A
*-commutativeN/A
distribute-lft-neg-outN/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
associate--r-N/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f6471.1%
Simplified71.1%
Final simplification75.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (- 1.0 t))) (t_2 (* b (+ t -2.0))))
(if (<= b -6.5e+72)
t_2
(if (<= b -2.6e-97)
t_1
(if (<= b 1.7e-269) x (if (<= b 1.5e+127) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double t_2 = b * (t + -2.0);
double tmp;
if (b <= -6.5e+72) {
tmp = t_2;
} else if (b <= -2.6e-97) {
tmp = t_1;
} else if (b <= 1.7e-269) {
tmp = x;
} else if (b <= 1.5e+127) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (1.0d0 - t)
t_2 = b * (t + (-2.0d0))
if (b <= (-6.5d+72)) then
tmp = t_2
else if (b <= (-2.6d-97)) then
tmp = t_1
else if (b <= 1.7d-269) then
tmp = x
else if (b <= 1.5d+127) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double t_2 = b * (t + -2.0);
double tmp;
if (b <= -6.5e+72) {
tmp = t_2;
} else if (b <= -2.6e-97) {
tmp = t_1;
} else if (b <= 1.7e-269) {
tmp = x;
} else if (b <= 1.5e+127) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (1.0 - t) t_2 = b * (t + -2.0) tmp = 0 if b <= -6.5e+72: tmp = t_2 elif b <= -2.6e-97: tmp = t_1 elif b <= 1.7e-269: tmp = x elif b <= 1.5e+127: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(1.0 - t)) t_2 = Float64(b * Float64(t + -2.0)) tmp = 0.0 if (b <= -6.5e+72) tmp = t_2; elseif (b <= -2.6e-97) tmp = t_1; elseif (b <= 1.7e-269) tmp = x; elseif (b <= 1.5e+127) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (1.0 - t); t_2 = b * (t + -2.0); tmp = 0.0; if (b <= -6.5e+72) tmp = t_2; elseif (b <= -2.6e-97) tmp = t_1; elseif (b <= 1.7e-269) tmp = x; elseif (b <= 1.5e+127) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(t + -2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.5e+72], t$95$2, If[LessEqual[b, -2.6e-97], t$95$1, If[LessEqual[b, 1.7e-269], x, If[LessEqual[b, 1.5e+127], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(1 - t\right)\\
t_2 := b \cdot \left(t + -2\right)\\
\mathbf{if}\;b \leq -6.5 \cdot 10^{+72}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -2.6 \cdot 10^{-97}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{-269}:\\
\;\;\;\;x\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{+127}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -6.5000000000000001e72 or 1.5000000000000001e127 < b Initial program 89.4%
Taylor expanded in y around 0
associate-+r+N/A
associate--l+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
sub-negN/A
Simplified90.5%
Taylor expanded in z around inf
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f6468.7%
Simplified68.7%
Taylor expanded in b around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6454.6%
Simplified54.6%
if -6.5000000000000001e72 < b < -2.60000000000000007e-97 or 1.6999999999999999e-269 < b < 1.5000000000000001e127Initial program 98.3%
Taylor expanded in a around inf
sub-negN/A
neg-mul-1N/A
metadata-evalN/A
distribute-lft-inN/A
+-commutativeN/A
metadata-evalN/A
sub-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
--lowering--.f6434.1%
Simplified34.1%
if -2.60000000000000007e-97 < b < 1.6999999999999999e-269Initial program 100.0%
Taylor expanded in x around inf
Simplified44.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (- 1.0 y))))
(if (<= b -4.2e+56)
(+ (* (- (+ y t) 2.0) b) t_1)
(if (<= b 7.8e+110)
(+ x (- t_1 (* (+ t -1.0) a)))
(* b (+ y (+ t -2.0)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (1.0 - y);
double tmp;
if (b <= -4.2e+56) {
tmp = (((y + t) - 2.0) * b) + t_1;
} else if (b <= 7.8e+110) {
tmp = x + (t_1 - ((t + -1.0) * a));
} else {
tmp = b * (y + (t + -2.0));
}
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 = z * (1.0d0 - y)
if (b <= (-4.2d+56)) then
tmp = (((y + t) - 2.0d0) * b) + t_1
else if (b <= 7.8d+110) then
tmp = x + (t_1 - ((t + (-1.0d0)) * a))
else
tmp = b * (y + (t + (-2.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (1.0 - y);
double tmp;
if (b <= -4.2e+56) {
tmp = (((y + t) - 2.0) * b) + t_1;
} else if (b <= 7.8e+110) {
tmp = x + (t_1 - ((t + -1.0) * a));
} else {
tmp = b * (y + (t + -2.0));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * (1.0 - y) tmp = 0 if b <= -4.2e+56: tmp = (((y + t) - 2.0) * b) + t_1 elif b <= 7.8e+110: tmp = x + (t_1 - ((t + -1.0) * a)) else: tmp = b * (y + (t + -2.0)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(1.0 - y)) tmp = 0.0 if (b <= -4.2e+56) tmp = Float64(Float64(Float64(Float64(y + t) - 2.0) * b) + t_1); elseif (b <= 7.8e+110) tmp = Float64(x + Float64(t_1 - Float64(Float64(t + -1.0) * a))); else tmp = Float64(b * Float64(y + Float64(t + -2.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * (1.0 - y); tmp = 0.0; if (b <= -4.2e+56) tmp = (((y + t) - 2.0) * b) + t_1; elseif (b <= 7.8e+110) tmp = x + (t_1 - ((t + -1.0) * a)); else tmp = b * (y + (t + -2.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.2e+56], N[(N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, 7.8e+110], N[(x + N[(t$95$1 - N[(N[(t + -1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(y + N[(t + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(1 - y\right)\\
\mathbf{if}\;b \leq -4.2 \cdot 10^{+56}:\\
\;\;\;\;\left(\left(y + t\right) - 2\right) \cdot b + t\_1\\
\mathbf{elif}\;b \leq 7.8 \cdot 10^{+110}:\\
\;\;\;\;x + \left(t\_1 - \left(t + -1\right) \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(y + \left(t + -2\right)\right)\\
\end{array}
\end{array}
if b < -4.20000000000000034e56Initial program 90.9%
Taylor expanded in z around inf
sub-negN/A
neg-mul-1N/A
+-commutativeN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
sub-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-neg-inN/A
metadata-evalN/A
sub-negN/A
--lowering--.f6481.1%
Simplified81.1%
if -4.20000000000000034e56 < b < 7.8000000000000007e110Initial program 98.7%
Taylor expanded in b around 0
sub-negN/A
+-lowering-+.f64N/A
+-commutativeN/A
distribute-neg-inN/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-neg-inN/A
metadata-evalN/A
sub-negN/A
--lowering--.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
Simplified83.0%
if 7.8000000000000007e110 < b Initial program 89.1%
Taylor expanded in b around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate-+r-N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval92.0%
Simplified92.0%
Final simplification84.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.75e+81)
(+ x (* (- (+ y t) 2.0) b))
(if (<= b 3.5e+111)
(+ x (- (* z (- 1.0 y)) (* (+ t -1.0) a)))
(* b (+ y (+ t -2.0))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.75e+81) {
tmp = x + (((y + t) - 2.0) * b);
} else if (b <= 3.5e+111) {
tmp = x + ((z * (1.0 - y)) - ((t + -1.0) * a));
} else {
tmp = b * (y + (t + -2.0));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.75d+81)) then
tmp = x + (((y + t) - 2.0d0) * b)
else if (b <= 3.5d+111) then
tmp = x + ((z * (1.0d0 - y)) - ((t + (-1.0d0)) * a))
else
tmp = b * (y + (t + (-2.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.75e+81) {
tmp = x + (((y + t) - 2.0) * b);
} else if (b <= 3.5e+111) {
tmp = x + ((z * (1.0 - y)) - ((t + -1.0) * a));
} else {
tmp = b * (y + (t + -2.0));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.75e+81: tmp = x + (((y + t) - 2.0) * b) elif b <= 3.5e+111: tmp = x + ((z * (1.0 - y)) - ((t + -1.0) * a)) else: tmp = b * (y + (t + -2.0)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.75e+81) tmp = Float64(x + Float64(Float64(Float64(y + t) - 2.0) * b)); elseif (b <= 3.5e+111) tmp = Float64(x + Float64(Float64(z * Float64(1.0 - y)) - Float64(Float64(t + -1.0) * a))); else tmp = Float64(b * Float64(y + Float64(t + -2.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.75e+81) tmp = x + (((y + t) - 2.0) * b); elseif (b <= 3.5e+111) tmp = x + ((z * (1.0 - y)) - ((t + -1.0) * a)); else tmp = b * (y + (t + -2.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.75e+81], N[(x + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.5e+111], N[(x + N[(N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision] - N[(N[(t + -1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(y + N[(t + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.75 \cdot 10^{+81}:\\
\;\;\;\;x + \left(\left(y + t\right) - 2\right) \cdot b\\
\mathbf{elif}\;b \leq 3.5 \cdot 10^{+111}:\\
\;\;\;\;x + \left(z \cdot \left(1 - y\right) - \left(t + -1\right) \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(y + \left(t + -2\right)\right)\\
\end{array}
\end{array}
if b < -1.75e81Initial program 90.2%
Taylor expanded in x around inf
Simplified79.5%
if -1.75e81 < b < 3.5000000000000002e111Initial program 98.7%
Taylor expanded in b around 0
sub-negN/A
+-lowering-+.f64N/A
+-commutativeN/A
distribute-neg-inN/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-neg-inN/A
metadata-evalN/A
sub-negN/A
--lowering--.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
Simplified82.8%
if 3.5000000000000002e111 < b Initial program 89.1%
Taylor expanded in b around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate-+r-N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval92.0%
Simplified92.0%
Final simplification83.8%
(FPCore (x y z t a b) :precision binary64 (+ (+ x (* b (+ t -2.0))) (+ (* y (- b z)) (- z (* (+ t -1.0) a)))))
double code(double x, double y, double z, double t, double a, double b) {
return (x + (b * (t + -2.0))) + ((y * (b - z)) + (z - ((t + -1.0) * a)));
}
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 + (b * (t + (-2.0d0)))) + ((y * (b - z)) + (z - ((t + (-1.0d0)) * a)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x + (b * (t + -2.0))) + ((y * (b - z)) + (z - ((t + -1.0) * a)));
}
def code(x, y, z, t, a, b): return (x + (b * (t + -2.0))) + ((y * (b - z)) + (z - ((t + -1.0) * a)))
function code(x, y, z, t, a, b) return Float64(Float64(x + Float64(b * Float64(t + -2.0))) + Float64(Float64(y * Float64(b - z)) + Float64(z - Float64(Float64(t + -1.0) * a)))) end
function tmp = code(x, y, z, t, a, b) tmp = (x + (b * (t + -2.0))) + ((y * (b - z)) + (z - ((t + -1.0) * a))); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x + N[(b * N[(t + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision] + N[(z - N[(N[(t + -1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + b \cdot \left(t + -2\right)\right) + \left(y \cdot \left(b - z\right) + \left(z - \left(t + -1\right) \cdot a\right)\right)
\end{array}
Initial program 95.3%
Taylor expanded in y around 0
associate-+r+N/A
associate--l+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
sub-negN/A
Simplified95.7%
Final simplification95.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* (- (+ y t) 2.0) b))))
(if (<= b -7.5e+34)
t_1
(if (<= b 7.5e-93) (+ x (- z (* (+ t -1.0) a))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((y + t) - 2.0) * b);
double tmp;
if (b <= -7.5e+34) {
tmp = t_1;
} else if (b <= 7.5e-93) {
tmp = x + (z - ((t + -1.0) * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y + t) - 2.0d0) * b)
if (b <= (-7.5d+34)) then
tmp = t_1
else if (b <= 7.5d-93) then
tmp = x + (z - ((t + (-1.0d0)) * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((y + t) - 2.0) * b);
double tmp;
if (b <= -7.5e+34) {
tmp = t_1;
} else if (b <= 7.5e-93) {
tmp = x + (z - ((t + -1.0) * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (((y + t) - 2.0) * b) tmp = 0 if b <= -7.5e+34: tmp = t_1 elif b <= 7.5e-93: tmp = x + (z - ((t + -1.0) * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(Float64(y + t) - 2.0) * b)) tmp = 0.0 if (b <= -7.5e+34) tmp = t_1; elseif (b <= 7.5e-93) tmp = Float64(x + Float64(z - Float64(Float64(t + -1.0) * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (((y + t) - 2.0) * b); tmp = 0.0; if (b <= -7.5e+34) tmp = t_1; elseif (b <= 7.5e-93) tmp = x + (z - ((t + -1.0) * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.5e+34], t$95$1, If[LessEqual[b, 7.5e-93], N[(x + N[(z - N[(N[(t + -1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\left(y + t\right) - 2\right) \cdot b\\
\mathbf{if}\;b \leq -7.5 \cdot 10^{+34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{-93}:\\
\;\;\;\;x + \left(z - \left(t + -1\right) \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -7.49999999999999976e34 or 7.50000000000000034e-93 < b Initial program 93.1%
Taylor expanded in x around inf
Simplified73.1%
if -7.49999999999999976e34 < b < 7.50000000000000034e-93Initial program 98.2%
Taylor expanded in b around 0
sub-negN/A
+-lowering-+.f64N/A
+-commutativeN/A
distribute-neg-inN/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-neg-inN/A
metadata-evalN/A
sub-negN/A
--lowering--.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
Simplified88.2%
Taylor expanded in y around 0
+-lowering-+.f64N/A
remove-double-negN/A
*-commutativeN/A
distribute-lft-neg-outN/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
associate--r-N/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f6468.6%
Simplified68.6%
Final simplification71.2%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (+ x (* (- (+ y t) 2.0) b)))) (if (<= b -3.2e+34) t_1 (if (<= b 6.4e-93) (- x (* (+ t -1.0) a)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((y + t) - 2.0) * b);
double tmp;
if (b <= -3.2e+34) {
tmp = t_1;
} else if (b <= 6.4e-93) {
tmp = x - ((t + -1.0) * a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y + t) - 2.0d0) * b)
if (b <= (-3.2d+34)) then
tmp = t_1
else if (b <= 6.4d-93) then
tmp = x - ((t + (-1.0d0)) * a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((y + t) - 2.0) * b);
double tmp;
if (b <= -3.2e+34) {
tmp = t_1;
} else if (b <= 6.4e-93) {
tmp = x - ((t + -1.0) * a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (((y + t) - 2.0) * b) tmp = 0 if b <= -3.2e+34: tmp = t_1 elif b <= 6.4e-93: tmp = x - ((t + -1.0) * a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(Float64(y + t) - 2.0) * b)) tmp = 0.0 if (b <= -3.2e+34) tmp = t_1; elseif (b <= 6.4e-93) tmp = Float64(x - Float64(Float64(t + -1.0) * a)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (((y + t) - 2.0) * b); tmp = 0.0; if (b <= -3.2e+34) tmp = t_1; elseif (b <= 6.4e-93) tmp = x - ((t + -1.0) * a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.2e+34], t$95$1, If[LessEqual[b, 6.4e-93], N[(x - N[(N[(t + -1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\left(y + t\right) - 2\right) \cdot b\\
\mathbf{if}\;b \leq -3.2 \cdot 10^{+34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 6.4 \cdot 10^{-93}:\\
\;\;\;\;x - \left(t + -1\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.1999999999999998e34 or 6.3999999999999997e-93 < b Initial program 93.1%
Taylor expanded in x around inf
Simplified73.1%
if -3.1999999999999998e34 < b < 6.3999999999999997e-93Initial program 98.2%
Taylor expanded in b around 0
sub-negN/A
+-lowering-+.f64N/A
+-commutativeN/A
distribute-neg-inN/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-neg-inN/A
metadata-evalN/A
sub-negN/A
--lowering--.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
Simplified88.2%
Taylor expanded in z around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6460.3%
Simplified60.3%
Final simplification67.6%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* b (+ y (+ t -2.0))))) (if (<= b -1.28e+36) t_1 (if (<= b 9.5e+110) (- x (* (+ t -1.0) a)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (y + (t + -2.0));
double tmp;
if (b <= -1.28e+36) {
tmp = t_1;
} else if (b <= 9.5e+110) {
tmp = x - ((t + -1.0) * a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = b * (y + (t + (-2.0d0)))
if (b <= (-1.28d+36)) then
tmp = t_1
else if (b <= 9.5d+110) then
tmp = x - ((t + (-1.0d0)) * a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (y + (t + -2.0));
double tmp;
if (b <= -1.28e+36) {
tmp = t_1;
} else if (b <= 9.5e+110) {
tmp = x - ((t + -1.0) * a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (y + (t + -2.0)) tmp = 0 if b <= -1.28e+36: tmp = t_1 elif b <= 9.5e+110: tmp = x - ((t + -1.0) * a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(y + Float64(t + -2.0))) tmp = 0.0 if (b <= -1.28e+36) tmp = t_1; elseif (b <= 9.5e+110) tmp = Float64(x - Float64(Float64(t + -1.0) * a)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (y + (t + -2.0)); tmp = 0.0; if (b <= -1.28e+36) tmp = t_1; elseif (b <= 9.5e+110) tmp = x - ((t + -1.0) * a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(y + N[(t + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.28e+36], t$95$1, If[LessEqual[b, 9.5e+110], N[(x - N[(N[(t + -1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y + \left(t + -2\right)\right)\\
\mathbf{if}\;b \leq -1.28 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 9.5 \cdot 10^{+110}:\\
\;\;\;\;x - \left(t + -1\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.27999999999999993e36 or 9.49999999999999939e110 < b Initial program 90.4%
Taylor expanded in b around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate-+r-N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval78.4%
Simplified78.4%
if -1.27999999999999993e36 < b < 9.49999999999999939e110Initial program 98.7%
Taylor expanded in b around 0
sub-negN/A
+-lowering-+.f64N/A
+-commutativeN/A
distribute-neg-inN/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-neg-inN/A
metadata-evalN/A
sub-negN/A
--lowering--.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
Simplified82.6%
Taylor expanded in z around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6455.8%
Simplified55.8%
Final simplification65.1%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* y (- b z)))) (if (<= y -1.8e+32) t_1 (if (<= y 7.6e+16) (+ x (* t b)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b - z);
double tmp;
if (y <= -1.8e+32) {
tmp = t_1;
} else if (y <= 7.6e+16) {
tmp = x + (t * 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 = y * (b - z)
if (y <= (-1.8d+32)) then
tmp = t_1
else if (y <= 7.6d+16) then
tmp = x + (t * 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 = y * (b - z);
double tmp;
if (y <= -1.8e+32) {
tmp = t_1;
} else if (y <= 7.6e+16) {
tmp = x + (t * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * (b - z) tmp = 0 if y <= -1.8e+32: tmp = t_1 elif y <= 7.6e+16: tmp = x + (t * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(b - z)) tmp = 0.0 if (y <= -1.8e+32) tmp = t_1; elseif (y <= 7.6e+16) tmp = Float64(x + Float64(t * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * (b - z); tmp = 0.0; if (y <= -1.8e+32) tmp = t_1; elseif (y <= 7.6e+16) tmp = x + (t * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.8e+32], t$95$1, If[LessEqual[y, 7.6e+16], N[(x + N[(t * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(b - z\right)\\
\mathbf{if}\;y \leq -1.8 \cdot 10^{+32}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7.6 \cdot 10^{+16}:\\
\;\;\;\;x + t \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.7999999999999998e32 or 7.6e16 < y Initial program 93.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
--lowering--.f6467.1%
Simplified67.1%
if -1.7999999999999998e32 < y < 7.6e16Initial program 97.6%
Taylor expanded in x around inf
Simplified59.7%
Taylor expanded in t around inf
*-commutativeN/A
*-lowering-*.f6445.7%
Simplified45.7%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* t (- b a)))) (if (<= t -1.9e+32) t_1 (if (<= t 9.2e+60) (* y (- b z)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t * (b - a);
double tmp;
if (t <= -1.9e+32) {
tmp = t_1;
} else if (t <= 9.2e+60) {
tmp = y * (b - z);
} 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 = t * (b - a)
if (t <= (-1.9d+32)) then
tmp = t_1
else if (t <= 9.2d+60) then
tmp = y * (b - z)
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 = t * (b - a);
double tmp;
if (t <= -1.9e+32) {
tmp = t_1;
} else if (t <= 9.2e+60) {
tmp = y * (b - z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t * (b - a) tmp = 0 if t <= -1.9e+32: tmp = t_1 elif t <= 9.2e+60: tmp = y * (b - z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(t * Float64(b - a)) tmp = 0.0 if (t <= -1.9e+32) tmp = t_1; elseif (t <= 9.2e+60) tmp = Float64(y * Float64(b - z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = t * (b - a); tmp = 0.0; if (t <= -1.9e+32) tmp = t_1; elseif (t <= 9.2e+60) tmp = y * (b - z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.9e+32], t$95$1, If[LessEqual[t, 9.2e+60], N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -1.9 \cdot 10^{+32}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 9.2 \cdot 10^{+60}:\\
\;\;\;\;y \cdot \left(b - z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.9000000000000002e32 or 9.20000000000000068e60 < t Initial program 91.8%
Taylor expanded in t around inf
*-lowering-*.f64N/A
--lowering--.f6468.0%
Simplified68.0%
if -1.9000000000000002e32 < t < 9.20000000000000068e60Initial program 97.9%
Taylor expanded in y around inf
*-lowering-*.f64N/A
--lowering--.f6446.1%
Simplified46.1%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* t (- b a)))) (if (<= t -1.25e+27) t_1 (if (<= t 8.6e+60) (* y b) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t * (b - a);
double tmp;
if (t <= -1.25e+27) {
tmp = t_1;
} else if (t <= 8.6e+60) {
tmp = y * 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 = t * (b - a)
if (t <= (-1.25d+27)) then
tmp = t_1
else if (t <= 8.6d+60) then
tmp = y * 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 = t * (b - a);
double tmp;
if (t <= -1.25e+27) {
tmp = t_1;
} else if (t <= 8.6e+60) {
tmp = y * b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t * (b - a) tmp = 0 if t <= -1.25e+27: tmp = t_1 elif t <= 8.6e+60: tmp = y * b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(t * Float64(b - a)) tmp = 0.0 if (t <= -1.25e+27) tmp = t_1; elseif (t <= 8.6e+60) tmp = Float64(y * b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = t * (b - a); tmp = 0.0; if (t <= -1.25e+27) tmp = t_1; elseif (t <= 8.6e+60) tmp = y * b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.25e+27], t$95$1, If[LessEqual[t, 8.6e+60], N[(y * b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -1.25 \cdot 10^{+27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 8.6 \cdot 10^{+60}:\\
\;\;\;\;y \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.24999999999999995e27 or 8.59999999999999942e60 < t Initial program 91.8%
Taylor expanded in t around inf
*-lowering-*.f64N/A
--lowering--.f6468.0%
Simplified68.0%
if -1.24999999999999995e27 < t < 8.59999999999999942e60Initial program 97.9%
Taylor expanded in x around inf
Simplified61.0%
Taylor expanded in y around inf
*-lowering-*.f6430.4%
Simplified30.4%
Final simplification46.6%
(FPCore (x y z t a b) :precision binary64 (if (<= t -3.4e+31) (* t b) (if (<= t 3.7e+68) (* y b) (* t b))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -3.4e+31) {
tmp = t * b;
} else if (t <= 3.7e+68) {
tmp = y * b;
} else {
tmp = t * b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= (-3.4d+31)) then
tmp = t * b
else if (t <= 3.7d+68) then
tmp = y * b
else
tmp = t * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -3.4e+31) {
tmp = t * b;
} else if (t <= 3.7e+68) {
tmp = y * b;
} else {
tmp = t * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -3.4e+31: tmp = t * b elif t <= 3.7e+68: tmp = y * b else: tmp = t * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -3.4e+31) tmp = Float64(t * b); elseif (t <= 3.7e+68) tmp = Float64(y * b); else tmp = Float64(t * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -3.4e+31) tmp = t * b; elseif (t <= 3.7e+68) tmp = y * b; else tmp = t * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -3.4e+31], N[(t * b), $MachinePrecision], If[LessEqual[t, 3.7e+68], N[(y * b), $MachinePrecision], N[(t * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.4 \cdot 10^{+31}:\\
\;\;\;\;t \cdot b\\
\mathbf{elif}\;t \leq 3.7 \cdot 10^{+68}:\\
\;\;\;\;y \cdot b\\
\mathbf{else}:\\
\;\;\;\;t \cdot b\\
\end{array}
\end{array}
if t < -3.3999999999999998e31 or 3.69999999999999998e68 < t Initial program 91.8%
Taylor expanded in t around inf
*-lowering-*.f64N/A
--lowering--.f6468.0%
Simplified68.0%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f6440.0%
Simplified40.0%
if -3.3999999999999998e31 < t < 3.69999999999999998e68Initial program 97.9%
Taylor expanded in x around inf
Simplified61.0%
Taylor expanded in y around inf
*-lowering-*.f6430.4%
Simplified30.4%
Final simplification34.5%
(FPCore (x y z t a b) :precision binary64 (if (<= x -1.22e+60) x (if (<= x 1.8e+52) (* y b) x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -1.22e+60) {
tmp = x;
} else if (x <= 1.8e+52) {
tmp = y * 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 (x <= (-1.22d+60)) then
tmp = x
else if (x <= 1.8d+52) then
tmp = y * 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 (x <= -1.22e+60) {
tmp = x;
} else if (x <= 1.8e+52) {
tmp = y * b;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -1.22e+60: tmp = x elif x <= 1.8e+52: tmp = y * b else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -1.22e+60) tmp = x; elseif (x <= 1.8e+52) tmp = Float64(y * b); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -1.22e+60) tmp = x; elseif (x <= 1.8e+52) tmp = y * b; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -1.22e+60], x, If[LessEqual[x, 1.8e+52], N[(y * b), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.22 \cdot 10^{+60}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.8 \cdot 10^{+52}:\\
\;\;\;\;y \cdot b\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -1.21999999999999995e60 or 1.8e52 < x Initial program 95.1%
Taylor expanded in x around inf
Simplified41.7%
if -1.21999999999999995e60 < x < 1.8e52Initial program 95.4%
Taylor expanded in x around inf
Simplified50.2%
Taylor expanded in y around inf
*-lowering-*.f6425.0%
Simplified25.0%
Final simplification31.7%
(FPCore (x y z t a b) :precision binary64 (if (<= x -5.2e+49) x (if (<= x 1.5e+85) z x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -5.2e+49) {
tmp = x;
} else if (x <= 1.5e+85) {
tmp = z;
} 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 (x <= (-5.2d+49)) then
tmp = x
else if (x <= 1.5d+85) then
tmp = z
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 (x <= -5.2e+49) {
tmp = x;
} else if (x <= 1.5e+85) {
tmp = z;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -5.2e+49: tmp = x elif x <= 1.5e+85: tmp = z else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -5.2e+49) tmp = x; elseif (x <= 1.5e+85) tmp = z; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -5.2e+49) tmp = x; elseif (x <= 1.5e+85) tmp = z; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -5.2e+49], x, If[LessEqual[x, 1.5e+85], z, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.2 \cdot 10^{+49}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{+85}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -5.19999999999999977e49 or 1.5e85 < x Initial program 95.0%
Taylor expanded in x around inf
Simplified41.5%
if -5.19999999999999977e49 < x < 1.5e85Initial program 95.5%
Taylor expanded in z around inf
sub-negN/A
neg-mul-1N/A
+-commutativeN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
sub-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-neg-inN/A
metadata-evalN/A
sub-negN/A
--lowering--.f6433.3%
Simplified33.3%
Taylor expanded in y around 0
Simplified13.2%
(FPCore (x y z t a b) :precision binary64 (if (<= x -1.45e+56) x (if (<= x 3.4e+31) a x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -1.45e+56) {
tmp = x;
} else if (x <= 3.4e+31) {
tmp = a;
} 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 (x <= (-1.45d+56)) then
tmp = x
else if (x <= 3.4d+31) then
tmp = a
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 (x <= -1.45e+56) {
tmp = x;
} else if (x <= 3.4e+31) {
tmp = a;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -1.45e+56: tmp = x elif x <= 3.4e+31: tmp = a else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -1.45e+56) tmp = x; elseif (x <= 3.4e+31) tmp = a; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -1.45e+56) tmp = x; elseif (x <= 3.4e+31) tmp = a; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -1.45e+56], x, If[LessEqual[x, 3.4e+31], a, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.45 \cdot 10^{+56}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{+31}:\\
\;\;\;\;a\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -1.45000000000000004e56 or 3.3999999999999998e31 < x Initial program 95.3%
Taylor expanded in x around inf
Simplified40.1%
if -1.45000000000000004e56 < x < 3.3999999999999998e31Initial program 95.3%
Taylor expanded in a around inf
sub-negN/A
neg-mul-1N/A
metadata-evalN/A
distribute-lft-inN/A
+-commutativeN/A
metadata-evalN/A
sub-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
--lowering--.f6424.1%
Simplified24.1%
Taylor expanded in t around 0
Simplified8.4%
(FPCore (x y z t a b) :precision binary64 a)
double code(double x, double y, double z, double t, double a, double b) {
return a;
}
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 = a
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return a;
}
def code(x, y, z, t, a, b): return a
function code(x, y, z, t, a, b) return a end
function tmp = code(x, y, z, t, a, b) tmp = a; end
code[x_, y_, z_, t_, a_, b_] := a
\begin{array}{l}
\\
a
\end{array}
Initial program 95.3%
Taylor expanded in a around inf
sub-negN/A
neg-mul-1N/A
metadata-evalN/A
distribute-lft-inN/A
+-commutativeN/A
metadata-evalN/A
sub-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
--lowering--.f6422.3%
Simplified22.3%
Taylor expanded in t around 0
Simplified7.4%
herbie shell --seed 2024155
(FPCore (x y z t a b)
:name "Statistics.Distribution.Beta:$centropy from math-functions-0.1.5.2"
:precision binary64
(+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b)))