
(FPCore (x y z t a b) :precision binary64 (+ (- (+ (+ x y) z) (* z (log t))) (* (- a 0.5) b)))
double code(double x, double y, double z, double t, double a, double b) {
return (((x + y) + z) - (z * log(t))) + ((a - 0.5) * 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) + z) - (z * log(t))) + ((a - 0.5d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (((x + y) + z) - (z * Math.log(t))) + ((a - 0.5) * b);
}
def code(x, y, z, t, a, b): return (((x + y) + z) - (z * math.log(t))) + ((a - 0.5) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(Float64(x + y) + z) - Float64(z * log(t))) + Float64(Float64(a - 0.5) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = (((x + y) + z) - (z * log(t))) + ((a - 0.5) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(N[(x + y), $MachinePrecision] + z), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (+ (- (+ (+ x y) z) (* z (log t))) (* (- a 0.5) b)))
double code(double x, double y, double z, double t, double a, double b) {
return (((x + y) + z) - (z * log(t))) + ((a - 0.5) * 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) + z) - (z * log(t))) + ((a - 0.5d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (((x + y) + z) - (z * Math.log(t))) + ((a - 0.5) * b);
}
def code(x, y, z, t, a, b): return (((x + y) + z) - (z * math.log(t))) + ((a - 0.5) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(Float64(x + y) + z) - Float64(z * log(t))) + Float64(Float64(a - 0.5) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = (((x + y) + z) - (z * log(t))) + ((a - 0.5) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(N[(x + y), $MachinePrecision] + z), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b
\end{array}
(FPCore (x y z t a b) :precision binary64 (+ (* z (- 1.0 (log t))) (fma (+ a -0.5) b (+ x y))))
double code(double x, double y, double z, double t, double a, double b) {
return (z * (1.0 - log(t))) + fma((a + -0.5), b, (x + y));
}
function code(x, y, z, t, a, b) return Float64(Float64(z * Float64(1.0 - log(t))) + fma(Float64(a + -0.5), b, Float64(x + y))) end
code[x_, y_, z_, t_, a_, b_] := N[(N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a + -0.5), $MachinePrecision] * b + N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
z \cdot \left(1 - \log t\right) + \mathsf{fma}\left(a + -0.5, b, x + y\right)
\end{array}
Initial program 99.8%
+-commutative99.8%
associate--l+99.8%
associate-+r+99.8%
+-commutative99.8%
*-lft-identity99.8%
metadata-eval99.8%
*-commutative99.8%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= (- a 0.5) -0.55)
(+ x (+ y (* b (- a 0.5))))
(if (<= (- a 0.5) 1e+77)
(+ (- (+ x (+ z y)) (* z (log t))) (* -0.5 b))
(fma (+ a -0.5) b (+ x y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a - 0.5) <= -0.55) {
tmp = x + (y + (b * (a - 0.5)));
} else if ((a - 0.5) <= 1e+77) {
tmp = ((x + (z + y)) - (z * log(t))) + (-0.5 * b);
} else {
tmp = fma((a + -0.5), b, (x + y));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(a - 0.5) <= -0.55) tmp = Float64(x + Float64(y + Float64(b * Float64(a - 0.5)))); elseif (Float64(a - 0.5) <= 1e+77) tmp = Float64(Float64(Float64(x + Float64(z + y)) - Float64(z * log(t))) + Float64(-0.5 * b)); else tmp = fma(Float64(a + -0.5), b, Float64(x + y)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(a - 0.5), $MachinePrecision], -0.55], N[(x + N[(y + N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a - 0.5), $MachinePrecision], 1e+77], N[(N[(N[(x + N[(z + y), $MachinePrecision]), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-0.5 * b), $MachinePrecision]), $MachinePrecision], N[(N[(a + -0.5), $MachinePrecision] * b + N[(x + y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a - 0.5 \leq -0.55:\\
\;\;\;\;x + \left(y + b \cdot \left(a - 0.5\right)\right)\\
\mathbf{elif}\;a - 0.5 \leq 10^{+77}:\\
\;\;\;\;\left(\left(x + \left(z + y\right)\right) - z \cdot \log t\right) + -0.5 \cdot b\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(a + -0.5, b, x + y\right)\\
\end{array}
\end{array}
if (-.f64 a #s(literal 1/2 binary64)) < -0.55000000000000004Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--100.0%
metadata-eval100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in z around 0 89.4%
if -0.55000000000000004 < (-.f64 a #s(literal 1/2 binary64)) < 9.99999999999999983e76Initial program 99.7%
associate-+l-99.7%
+-commutative99.7%
associate-+l-99.7%
+-commutative99.7%
associate-+l+99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in a around 0 95.6%
*-commutative95.6%
Simplified95.6%
if 9.99999999999999983e76 < (-.f64 a #s(literal 1/2 binary64)) Initial program 100.0%
+-commutative100.0%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 94.8%
associate-+r+94.8%
sub-neg94.8%
metadata-eval94.8%
*-commutative94.8%
+-commutative94.8%
fma-define94.8%
Simplified94.8%
Final simplification93.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (+ x y) -2e+73) (not (<= (+ x y) 1e+83))) (+ x (+ y (* b (- a 0.5)))) (+ (* (+ a -0.5) b) (- z (* z (log t))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((x + y) <= -2e+73) || !((x + y) <= 1e+83)) {
tmp = x + (y + (b * (a - 0.5)));
} else {
tmp = ((a + -0.5) * b) + (z - (z * log(t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (((x + y) <= (-2d+73)) .or. (.not. ((x + y) <= 1d+83))) then
tmp = x + (y + (b * (a - 0.5d0)))
else
tmp = ((a + (-0.5d0)) * b) + (z - (z * log(t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((x + y) <= -2e+73) || !((x + y) <= 1e+83)) {
tmp = x + (y + (b * (a - 0.5)));
} else {
tmp = ((a + -0.5) * b) + (z - (z * Math.log(t)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((x + y) <= -2e+73) or not ((x + y) <= 1e+83): tmp = x + (y + (b * (a - 0.5))) else: tmp = ((a + -0.5) * b) + (z - (z * math.log(t))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(x + y) <= -2e+73) || !(Float64(x + y) <= 1e+83)) tmp = Float64(x + Float64(y + Float64(b * Float64(a - 0.5)))); else tmp = Float64(Float64(Float64(a + -0.5) * b) + Float64(z - Float64(z * log(t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (((x + y) <= -2e+73) || ~(((x + y) <= 1e+83))) tmp = x + (y + (b * (a - 0.5))); else tmp = ((a + -0.5) * b) + (z - (z * log(t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(x + y), $MachinePrecision], -2e+73], N[Not[LessEqual[N[(x + y), $MachinePrecision], 1e+83]], $MachinePrecision]], N[(x + N[(y + N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(a + -0.5), $MachinePrecision] * b), $MachinePrecision] + N[(z - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x + y \leq -2 \cdot 10^{+73} \lor \neg \left(x + y \leq 10^{+83}\right):\\
\;\;\;\;x + \left(y + b \cdot \left(a - 0.5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a + -0.5\right) \cdot b + \left(z - z \cdot \log t\right)\\
\end{array}
\end{array}
if (+.f64 x y) < -1.99999999999999997e73 or 1.00000000000000003e83 < (+.f64 x y) Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--100.0%
metadata-eval100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in z around 0 89.6%
if -1.99999999999999997e73 < (+.f64 x y) < 1.00000000000000003e83Initial program 99.7%
associate-+l-99.7%
+-commutative99.7%
associate-+l-99.7%
+-commutative99.7%
associate-+l+99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in z around inf 89.7%
Final simplification89.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -3.3e+177) (not (<= z 5.5e+164))) (+ (* z (- 1.0 (log t))) (+ x y)) (fma (+ a -0.5) b (+ x y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -3.3e+177) || !(z <= 5.5e+164)) {
tmp = (z * (1.0 - log(t))) + (x + y);
} else {
tmp = fma((a + -0.5), b, (x + y));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -3.3e+177) || !(z <= 5.5e+164)) tmp = Float64(Float64(z * Float64(1.0 - log(t))) + Float64(x + y)); else tmp = fma(Float64(a + -0.5), b, Float64(x + y)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -3.3e+177], N[Not[LessEqual[z, 5.5e+164]], $MachinePrecision]], N[(N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x + y), $MachinePrecision]), $MachinePrecision], N[(N[(a + -0.5), $MachinePrecision] * b + N[(x + y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.3 \cdot 10^{+177} \lor \neg \left(z \leq 5.5 \cdot 10^{+164}\right):\\
\;\;\;\;z \cdot \left(1 - \log t\right) + \left(x + y\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(a + -0.5, b, x + y\right)\\
\end{array}
\end{array}
if z < -3.3000000000000001e177 or 5.4999999999999998e164 < z Initial program 99.4%
+-commutative99.4%
associate--l+99.4%
associate-+r+99.4%
+-commutative99.4%
*-lft-identity99.4%
metadata-eval99.4%
*-commutative99.4%
distribute-rgt-out--99.7%
metadata-eval99.7%
fma-define99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in b around 0 80.5%
if -3.3000000000000001e177 < z < 5.4999999999999998e164Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 90.6%
associate-+r+90.6%
sub-neg90.6%
metadata-eval90.6%
*-commutative90.6%
+-commutative90.6%
fma-define90.6%
Simplified90.6%
Final simplification88.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (log t))))
(if (<= z -1.15e+177)
(- (+ z y) t_1)
(if (<= z 7.2e+227) (fma (+ a -0.5) b (+ x y)) (- (+ z x) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * log(t);
double tmp;
if (z <= -1.15e+177) {
tmp = (z + y) - t_1;
} else if (z <= 7.2e+227) {
tmp = fma((a + -0.5), b, (x + y));
} else {
tmp = (z + x) - t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(z * log(t)) tmp = 0.0 if (z <= -1.15e+177) tmp = Float64(Float64(z + y) - t_1); elseif (z <= 7.2e+227) tmp = fma(Float64(a + -0.5), b, Float64(x + y)); else tmp = Float64(Float64(z + x) - t_1); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.15e+177], N[(N[(z + y), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[z, 7.2e+227], N[(N[(a + -0.5), $MachinePrecision] * b + N[(x + y), $MachinePrecision]), $MachinePrecision], N[(N[(z + x), $MachinePrecision] - t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \log t\\
\mathbf{if}\;z \leq -1.15 \cdot 10^{+177}:\\
\;\;\;\;\left(z + y\right) - t\_1\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{+227}:\\
\;\;\;\;\mathsf{fma}\left(a + -0.5, b, x + y\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z + x\right) - t\_1\\
\end{array}
\end{array}
if z < -1.15e177Initial program 99.6%
associate-+l-99.6%
+-commutative99.6%
associate-+l-99.6%
+-commutative99.6%
associate-+l+99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
*-commutative99.6%
distribute-lft-in99.6%
Applied egg-rr99.6%
Taylor expanded in b around 0 83.1%
Taylor expanded in x around 0 78.2%
+-commutative78.2%
Simplified78.2%
if -1.15e177 < z < 7.19999999999999983e227Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 88.8%
associate-+r+88.8%
sub-neg88.8%
metadata-eval88.8%
*-commutative88.8%
+-commutative88.8%
fma-define88.8%
Simplified88.8%
if 7.19999999999999983e227 < z Initial program 99.2%
associate-+l-99.2%
+-commutative99.2%
associate-+l-99.2%
+-commutative99.2%
associate-+l+99.2%
sub-neg99.2%
metadata-eval99.2%
Simplified99.2%
*-commutative99.2%
distribute-lft-in99.2%
Applied egg-rr99.2%
Taylor expanded in b around 0 77.4%
Taylor expanded in y around 0 71.8%
+-commutative71.8%
Simplified71.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (log t))))
(if (<= z -5.1e+180)
(- (+ z y) t_1)
(if (<= z 6.4e+224) (+ x (+ y (* b (- a 0.5)))) (- (+ z x) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * log(t);
double tmp;
if (z <= -5.1e+180) {
tmp = (z + y) - t_1;
} else if (z <= 6.4e+224) {
tmp = x + (y + (b * (a - 0.5)));
} else {
tmp = (z + x) - 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 = z * log(t)
if (z <= (-5.1d+180)) then
tmp = (z + y) - t_1
else if (z <= 6.4d+224) then
tmp = x + (y + (b * (a - 0.5d0)))
else
tmp = (z + x) - 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 = z * Math.log(t);
double tmp;
if (z <= -5.1e+180) {
tmp = (z + y) - t_1;
} else if (z <= 6.4e+224) {
tmp = x + (y + (b * (a - 0.5)));
} else {
tmp = (z + x) - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * math.log(t) tmp = 0 if z <= -5.1e+180: tmp = (z + y) - t_1 elif z <= 6.4e+224: tmp = x + (y + (b * (a - 0.5))) else: tmp = (z + x) - t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * log(t)) tmp = 0.0 if (z <= -5.1e+180) tmp = Float64(Float64(z + y) - t_1); elseif (z <= 6.4e+224) tmp = Float64(x + Float64(y + Float64(b * Float64(a - 0.5)))); else tmp = Float64(Float64(z + x) - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * log(t); tmp = 0.0; if (z <= -5.1e+180) tmp = (z + y) - t_1; elseif (z <= 6.4e+224) tmp = x + (y + (b * (a - 0.5))); else tmp = (z + x) - t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.1e+180], N[(N[(z + y), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[z, 6.4e+224], N[(x + N[(y + N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z + x), $MachinePrecision] - t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \log t\\
\mathbf{if}\;z \leq -5.1 \cdot 10^{+180}:\\
\;\;\;\;\left(z + y\right) - t\_1\\
\mathbf{elif}\;z \leq 6.4 \cdot 10^{+224}:\\
\;\;\;\;x + \left(y + b \cdot \left(a - 0.5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z + x\right) - t\_1\\
\end{array}
\end{array}
if z < -5.09999999999999954e180Initial program 99.6%
associate-+l-99.6%
+-commutative99.6%
associate-+l-99.6%
+-commutative99.6%
associate-+l+99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
*-commutative99.6%
distribute-lft-in99.6%
Applied egg-rr99.6%
Taylor expanded in b around 0 83.1%
Taylor expanded in x around 0 78.2%
+-commutative78.2%
Simplified78.2%
if -5.09999999999999954e180 < z < 6.4000000000000003e224Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 88.8%
if 6.4000000000000003e224 < z Initial program 99.2%
associate-+l-99.2%
+-commutative99.2%
associate-+l-99.2%
+-commutative99.2%
associate-+l+99.2%
sub-neg99.2%
metadata-eval99.2%
Simplified99.2%
*-commutative99.2%
distribute-lft-in99.2%
Applied egg-rr99.2%
Taylor expanded in b around 0 77.4%
Taylor expanded in y around 0 71.8%
+-commutative71.8%
Simplified71.8%
(FPCore (x y z t a b) :precision binary64 (if (<= z -4e+217) (* z (- 1.0 (log t))) (if (<= z 6.4e+224) (+ x (+ y (* b (- a 0.5)))) (- (+ z x) (* z (log t))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -4e+217) {
tmp = z * (1.0 - log(t));
} else if (z <= 6.4e+224) {
tmp = x + (y + (b * (a - 0.5)));
} else {
tmp = (z + x) - (z * log(t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-4d+217)) then
tmp = z * (1.0d0 - log(t))
else if (z <= 6.4d+224) then
tmp = x + (y + (b * (a - 0.5d0)))
else
tmp = (z + x) - (z * log(t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -4e+217) {
tmp = z * (1.0 - Math.log(t));
} else if (z <= 6.4e+224) {
tmp = x + (y + (b * (a - 0.5)));
} else {
tmp = (z + x) - (z * Math.log(t));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -4e+217: tmp = z * (1.0 - math.log(t)) elif z <= 6.4e+224: tmp = x + (y + (b * (a - 0.5))) else: tmp = (z + x) - (z * math.log(t)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -4e+217) tmp = Float64(z * Float64(1.0 - log(t))); elseif (z <= 6.4e+224) tmp = Float64(x + Float64(y + Float64(b * Float64(a - 0.5)))); else tmp = Float64(Float64(z + x) - Float64(z * log(t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -4e+217) tmp = z * (1.0 - log(t)); elseif (z <= 6.4e+224) tmp = x + (y + (b * (a - 0.5))); else tmp = (z + x) - (z * log(t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -4e+217], N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.4e+224], N[(x + N[(y + N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z + x), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4 \cdot 10^{+217}:\\
\;\;\;\;z \cdot \left(1 - \log t\right)\\
\mathbf{elif}\;z \leq 6.4 \cdot 10^{+224}:\\
\;\;\;\;x + \left(y + b \cdot \left(a - 0.5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z + x\right) - z \cdot \log t\\
\end{array}
\end{array}
if z < -3.99999999999999984e217Initial program 99.5%
associate-+l-99.5%
+-commutative99.5%
associate-+l-99.5%
+-commutative99.5%
associate-+l+99.5%
sub-neg99.5%
metadata-eval99.5%
Simplified99.5%
*-commutative99.5%
distribute-lft-in99.5%
Applied egg-rr99.5%
Taylor expanded in z around inf 83.3%
if -3.99999999999999984e217 < z < 6.4000000000000003e224Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 88.2%
if 6.4000000000000003e224 < z Initial program 99.2%
associate-+l-99.2%
+-commutative99.2%
associate-+l-99.2%
+-commutative99.2%
associate-+l+99.2%
sub-neg99.2%
metadata-eval99.2%
Simplified99.2%
*-commutative99.2%
distribute-lft-in99.2%
Applied egg-rr99.2%
Taylor expanded in b around 0 77.4%
Taylor expanded in y around 0 71.8%
+-commutative71.8%
Simplified71.8%
(FPCore (x y z t a b) :precision binary64 (+ (- (+ x (+ z y)) (* z (log t))) (+ (* a b) (* -0.5 b))))
double code(double x, double y, double z, double t, double a, double b) {
return ((x + (z + y)) - (z * log(t))) + ((a * b) + (-0.5 * 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 + (z + y)) - (z * log(t))) + ((a * b) + ((-0.5d0) * b))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x + (z + y)) - (z * Math.log(t))) + ((a * b) + (-0.5 * b));
}
def code(x, y, z, t, a, b): return ((x + (z + y)) - (z * math.log(t))) + ((a * b) + (-0.5 * b))
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x + Float64(z + y)) - Float64(z * log(t))) + Float64(Float64(a * b) + Float64(-0.5 * b))) end
function tmp = code(x, y, z, t, a, b) tmp = ((x + (z + y)) - (z * log(t))) + ((a * b) + (-0.5 * b)); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x + N[(z + y), $MachinePrecision]), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * b), $MachinePrecision] + N[(-0.5 * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x + \left(z + y\right)\right) - z \cdot \log t\right) + \left(a \cdot b + -0.5 \cdot b\right)
\end{array}
Initial program 99.8%
associate-+l-99.8%
+-commutative99.8%
associate-+l-99.8%
+-commutative99.8%
associate-+l+99.8%
sub-neg99.8%
metadata-eval99.8%
Simplified99.8%
*-commutative99.8%
distribute-lft-in99.8%
Applied egg-rr99.8%
Final simplification99.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -3.6e+217) (not (<= z 4e+225))) (* z (- 1.0 (log t))) (+ x (+ y (* b (- a 0.5))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -3.6e+217) || !(z <= 4e+225)) {
tmp = z * (1.0 - log(t));
} else {
tmp = x + (y + (b * (a - 0.5)));
}
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 ((z <= (-3.6d+217)) .or. (.not. (z <= 4d+225))) then
tmp = z * (1.0d0 - log(t))
else
tmp = x + (y + (b * (a - 0.5d0)))
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 ((z <= -3.6e+217) || !(z <= 4e+225)) {
tmp = z * (1.0 - Math.log(t));
} else {
tmp = x + (y + (b * (a - 0.5)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -3.6e+217) or not (z <= 4e+225): tmp = z * (1.0 - math.log(t)) else: tmp = x + (y + (b * (a - 0.5))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -3.6e+217) || !(z <= 4e+225)) tmp = Float64(z * Float64(1.0 - log(t))); else tmp = Float64(x + Float64(y + Float64(b * Float64(a - 0.5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -3.6e+217) || ~((z <= 4e+225))) tmp = z * (1.0 - log(t)); else tmp = x + (y + (b * (a - 0.5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -3.6e+217], N[Not[LessEqual[z, 4e+225]], $MachinePrecision]], N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y + N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.6 \cdot 10^{+217} \lor \neg \left(z \leq 4 \cdot 10^{+225}\right):\\
\;\;\;\;z \cdot \left(1 - \log t\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y + b \cdot \left(a - 0.5\right)\right)\\
\end{array}
\end{array}
if z < -3.6000000000000002e217 or 3.99999999999999971e225 < z Initial program 99.4%
associate-+l-99.4%
+-commutative99.4%
associate-+l-99.4%
+-commutative99.4%
associate-+l+99.4%
sub-neg99.4%
metadata-eval99.4%
Simplified99.4%
*-commutative99.4%
distribute-lft-in99.4%
Applied egg-rr99.4%
Taylor expanded in z around inf 73.6%
if -3.6000000000000002e217 < z < 3.99999999999999971e225Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 88.2%
Final simplification86.1%
(FPCore (x y z t a b) :precision binary64 (+ (- (+ x (+ z y)) (* z (log t))) (* (+ a -0.5) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x + (z + y)) - (z * log(t))) + ((a + -0.5) * 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 + (z + y)) - (z * log(t))) + ((a + (-0.5d0)) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x + (z + y)) - (z * Math.log(t))) + ((a + -0.5) * b);
}
def code(x, y, z, t, a, b): return ((x + (z + y)) - (z * math.log(t))) + ((a + -0.5) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x + Float64(z + y)) - Float64(z * log(t))) + Float64(Float64(a + -0.5) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x + (z + y)) - (z * log(t))) + ((a + -0.5) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x + N[(z + y), $MachinePrecision]), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a + -0.5), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x + \left(z + y\right)\right) - z \cdot \log t\right) + \left(a + -0.5\right) \cdot b
\end{array}
Initial program 99.8%
associate-+l-99.8%
+-commutative99.8%
associate-+l-99.8%
+-commutative99.8%
associate-+l+99.8%
sub-neg99.8%
metadata-eval99.8%
Simplified99.8%
Final simplification99.8%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= b -2.3e+150)
(and (not (<= b -4.65e+83))
(or (<= b -1800.0) (not (<= b 3.25e+72)))))
(* b (- a 0.5))
(+ x y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -2.3e+150) || (!(b <= -4.65e+83) && ((b <= -1800.0) || !(b <= 3.25e+72)))) {
tmp = b * (a - 0.5);
} else {
tmp = 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 ((b <= (-2.3d+150)) .or. (.not. (b <= (-4.65d+83))) .and. (b <= (-1800.0d0)) .or. (.not. (b <= 3.25d+72))) then
tmp = b * (a - 0.5d0)
else
tmp = 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 ((b <= -2.3e+150) || (!(b <= -4.65e+83) && ((b <= -1800.0) || !(b <= 3.25e+72)))) {
tmp = b * (a - 0.5);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -2.3e+150) or (not (b <= -4.65e+83) and ((b <= -1800.0) or not (b <= 3.25e+72))): tmp = b * (a - 0.5) else: tmp = x + y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -2.3e+150) || (!(b <= -4.65e+83) && ((b <= -1800.0) || !(b <= 3.25e+72)))) tmp = Float64(b * Float64(a - 0.5)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -2.3e+150) || (~((b <= -4.65e+83)) && ((b <= -1800.0) || ~((b <= 3.25e+72))))) tmp = b * (a - 0.5); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -2.3e+150], And[N[Not[LessEqual[b, -4.65e+83]], $MachinePrecision], Or[LessEqual[b, -1800.0], N[Not[LessEqual[b, 3.25e+72]], $MachinePrecision]]]], N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.3 \cdot 10^{+150} \lor \neg \left(b \leq -4.65 \cdot 10^{+83}\right) \land \left(b \leq -1800 \lor \neg \left(b \leq 3.25 \cdot 10^{+72}\right)\right):\\
\;\;\;\;b \cdot \left(a - 0.5\right)\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if b < -2.30000000000000001e150 or -4.65000000000000015e83 < b < -1800 or 3.2500000000000001e72 < b Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in b around inf 71.1%
if -2.30000000000000001e150 < b < -4.65000000000000015e83 or -1800 < b < 3.2500000000000001e72Initial program 99.8%
+-commutative99.8%
associate--l+99.7%
associate-+r+99.7%
+-commutative99.7%
*-lft-identity99.7%
metadata-eval99.7%
*-commutative99.7%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in b around inf 63.5%
associate--l+63.5%
associate-/l*63.5%
Simplified63.5%
Taylor expanded in y around 0 70.8%
associate--l+70.8%
associate-*r/70.8%
Simplified70.8%
Taylor expanded in x around inf 55.2%
Final simplification61.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= a -7.2e+57)
(* a b)
(if (<= a 5.2e-155)
(+ x y)
(if (<= a 1.75e-70) (* -0.5 b) (if (<= a 1.75e+139) (+ x y) (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -7.2e+57) {
tmp = a * b;
} else if (a <= 5.2e-155) {
tmp = x + y;
} else if (a <= 1.75e-70) {
tmp = -0.5 * b;
} else if (a <= 1.75e+139) {
tmp = x + y;
} else {
tmp = 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 (a <= (-7.2d+57)) then
tmp = a * b
else if (a <= 5.2d-155) then
tmp = x + y
else if (a <= 1.75d-70) then
tmp = (-0.5d0) * b
else if (a <= 1.75d+139) then
tmp = x + y
else
tmp = 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 (a <= -7.2e+57) {
tmp = a * b;
} else if (a <= 5.2e-155) {
tmp = x + y;
} else if (a <= 1.75e-70) {
tmp = -0.5 * b;
} else if (a <= 1.75e+139) {
tmp = x + y;
} else {
tmp = a * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -7.2e+57: tmp = a * b elif a <= 5.2e-155: tmp = x + y elif a <= 1.75e-70: tmp = -0.5 * b elif a <= 1.75e+139: tmp = x + y else: tmp = a * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -7.2e+57) tmp = Float64(a * b); elseif (a <= 5.2e-155) tmp = Float64(x + y); elseif (a <= 1.75e-70) tmp = Float64(-0.5 * b); elseif (a <= 1.75e+139) tmp = Float64(x + y); else tmp = Float64(a * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= -7.2e+57) tmp = a * b; elseif (a <= 5.2e-155) tmp = x + y; elseif (a <= 1.75e-70) tmp = -0.5 * b; elseif (a <= 1.75e+139) tmp = x + y; else tmp = a * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -7.2e+57], N[(a * b), $MachinePrecision], If[LessEqual[a, 5.2e-155], N[(x + y), $MachinePrecision], If[LessEqual[a, 1.75e-70], N[(-0.5 * b), $MachinePrecision], If[LessEqual[a, 1.75e+139], N[(x + y), $MachinePrecision], N[(a * b), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -7.2 \cdot 10^{+57}:\\
\;\;\;\;a \cdot b\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{-155}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;a \leq 1.75 \cdot 10^{-70}:\\
\;\;\;\;-0.5 \cdot b\\
\mathbf{elif}\;a \leq 1.75 \cdot 10^{+139}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;a \cdot b\\
\end{array}
\end{array}
if a < -7.2000000000000005e57 or 1.74999999999999989e139 < a Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in a around inf 67.9%
*-commutative67.9%
Simplified67.9%
if -7.2000000000000005e57 < a < 5.20000000000000016e-155 or 1.74999999999999987e-70 < a < 1.74999999999999989e139Initial program 99.8%
+-commutative99.8%
associate--l+99.8%
associate-+r+99.8%
+-commutative99.8%
*-lft-identity99.8%
metadata-eval99.8%
*-commutative99.8%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in b around inf 76.0%
associate--l+76.0%
associate-/l*76.0%
Simplified76.0%
Taylor expanded in y around 0 80.6%
associate--l+80.6%
associate-*r/80.5%
Simplified80.5%
Taylor expanded in x around inf 52.4%
if 5.20000000000000016e-155 < a < 1.74999999999999987e-70Initial program 99.7%
associate-+l-99.7%
+-commutative99.7%
associate-+l-99.7%
+-commutative99.7%
associate-+l+99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in a around 0 99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in z around inf 75.6%
Taylor expanded in z around 0 41.4%
*-commutative41.4%
Simplified41.4%
Final simplification56.0%
(FPCore (x y z t a b) :precision binary64 (if (<= (- a 0.5) -1e+35) (* a (+ b (/ x a))) (if (<= (- a 0.5) 4e+17) (+ x (+ y (* -0.5 b))) (* a (+ b (/ y a))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a - 0.5) <= -1e+35) {
tmp = a * (b + (x / a));
} else if ((a - 0.5) <= 4e+17) {
tmp = x + (y + (-0.5 * b));
} else {
tmp = a * (b + (y / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((a - 0.5d0) <= (-1d+35)) then
tmp = a * (b + (x / a))
else if ((a - 0.5d0) <= 4d+17) then
tmp = x + (y + ((-0.5d0) * b))
else
tmp = a * (b + (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a - 0.5) <= -1e+35) {
tmp = a * (b + (x / a));
} else if ((a - 0.5) <= 4e+17) {
tmp = x + (y + (-0.5 * b));
} else {
tmp = a * (b + (y / a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a - 0.5) <= -1e+35: tmp = a * (b + (x / a)) elif (a - 0.5) <= 4e+17: tmp = x + (y + (-0.5 * b)) else: tmp = a * (b + (y / a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(a - 0.5) <= -1e+35) tmp = Float64(a * Float64(b + Float64(x / a))); elseif (Float64(a - 0.5) <= 4e+17) tmp = Float64(x + Float64(y + Float64(-0.5 * b))); else tmp = Float64(a * Float64(b + Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a - 0.5) <= -1e+35) tmp = a * (b + (x / a)); elseif ((a - 0.5) <= 4e+17) tmp = x + (y + (-0.5 * b)); else tmp = a * (b + (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(a - 0.5), $MachinePrecision], -1e+35], N[(a * N[(b + N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a - 0.5), $MachinePrecision], 4e+17], N[(x + N[(y + N[(-0.5 * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b + N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a - 0.5 \leq -1 \cdot 10^{+35}:\\
\;\;\;\;a \cdot \left(b + \frac{x}{a}\right)\\
\mathbf{elif}\;a - 0.5 \leq 4 \cdot 10^{+17}:\\
\;\;\;\;x + \left(y + -0.5 \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b + \frac{y}{a}\right)\\
\end{array}
\end{array}
if (-.f64 a #s(literal 1/2 binary64)) < -9.9999999999999997e34Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--100.0%
metadata-eval100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in a around inf 99.9%
Taylor expanded in x around inf 72.7%
if -9.9999999999999997e34 < (-.f64 a #s(literal 1/2 binary64)) < 4e17Initial program 99.8%
+-commutative99.8%
associate--l+99.8%
associate-+r+99.8%
+-commutative99.8%
*-lft-identity99.8%
metadata-eval99.8%
*-commutative99.8%
distribute-rgt-out--99.8%
metadata-eval99.8%
fma-define99.8%
sub-neg99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in z around 0 72.5%
Taylor expanded in a around 0 70.2%
if 4e17 < (-.f64 a #s(literal 1/2 binary64)) Initial program 99.9%
+-commutative99.9%
associate--l+99.8%
associate-+r+99.8%
+-commutative99.8%
*-lft-identity99.8%
metadata-eval99.8%
*-commutative99.8%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in a around inf 99.9%
Taylor expanded in y around inf 69.4%
(FPCore (x y z t a b) :precision binary64 (if (<= (- a 0.5) -2e+24) (* a (+ b (/ x a))) (if (<= (- a 0.5) 4e+17) (+ x y) (* a (+ b (/ y a))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a - 0.5) <= -2e+24) {
tmp = a * (b + (x / a));
} else if ((a - 0.5) <= 4e+17) {
tmp = x + y;
} else {
tmp = a * (b + (y / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((a - 0.5d0) <= (-2d+24)) then
tmp = a * (b + (x / a))
else if ((a - 0.5d0) <= 4d+17) then
tmp = x + y
else
tmp = a * (b + (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a - 0.5) <= -2e+24) {
tmp = a * (b + (x / a));
} else if ((a - 0.5) <= 4e+17) {
tmp = x + y;
} else {
tmp = a * (b + (y / a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a - 0.5) <= -2e+24: tmp = a * (b + (x / a)) elif (a - 0.5) <= 4e+17: tmp = x + y else: tmp = a * (b + (y / a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(a - 0.5) <= -2e+24) tmp = Float64(a * Float64(b + Float64(x / a))); elseif (Float64(a - 0.5) <= 4e+17) tmp = Float64(x + y); else tmp = Float64(a * Float64(b + Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a - 0.5) <= -2e+24) tmp = a * (b + (x / a)); elseif ((a - 0.5) <= 4e+17) tmp = x + y; else tmp = a * (b + (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(a - 0.5), $MachinePrecision], -2e+24], N[(a * N[(b + N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a - 0.5), $MachinePrecision], 4e+17], N[(x + y), $MachinePrecision], N[(a * N[(b + N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a - 0.5 \leq -2 \cdot 10^{+24}:\\
\;\;\;\;a \cdot \left(b + \frac{x}{a}\right)\\
\mathbf{elif}\;a - 0.5 \leq 4 \cdot 10^{+17}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b + \frac{y}{a}\right)\\
\end{array}
\end{array}
if (-.f64 a #s(literal 1/2 binary64)) < -2e24Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--100.0%
metadata-eval100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in a around inf 99.9%
Taylor expanded in x around inf 73.5%
if -2e24 < (-.f64 a #s(literal 1/2 binary64)) < 4e17Initial program 99.8%
+-commutative99.8%
associate--l+99.8%
associate-+r+99.8%
+-commutative99.8%
*-lft-identity99.8%
metadata-eval99.8%
*-commutative99.8%
distribute-rgt-out--99.8%
metadata-eval99.8%
fma-define99.8%
sub-neg99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in b around inf 77.7%
associate--l+77.7%
associate-/l*77.6%
Simplified77.6%
Taylor expanded in y around 0 81.8%
associate--l+81.8%
associate-*r/81.7%
Simplified81.7%
Taylor expanded in x around inf 48.9%
if 4e17 < (-.f64 a #s(literal 1/2 binary64)) Initial program 99.9%
+-commutative99.9%
associate--l+99.8%
associate-+r+99.8%
+-commutative99.8%
*-lft-identity99.8%
metadata-eval99.8%
*-commutative99.8%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in a around inf 99.9%
Taylor expanded in y around inf 69.4%
Final simplification59.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (- a 0.5) -2e+24) (not (<= (- a 0.5) 4e+17))) (+ y (* a b)) (+ x y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((a - 0.5) <= -2e+24) || !((a - 0.5) <= 4e+17)) {
tmp = y + (a * b);
} else {
tmp = 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 (((a - 0.5d0) <= (-2d+24)) .or. (.not. ((a - 0.5d0) <= 4d+17))) then
tmp = y + (a * b)
else
tmp = 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 (((a - 0.5) <= -2e+24) || !((a - 0.5) <= 4e+17)) {
tmp = y + (a * b);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((a - 0.5) <= -2e+24) or not ((a - 0.5) <= 4e+17): tmp = y + (a * b) else: tmp = x + y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(a - 0.5) <= -2e+24) || !(Float64(a - 0.5) <= 4e+17)) tmp = Float64(y + Float64(a * b)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (((a - 0.5) <= -2e+24) || ~(((a - 0.5) <= 4e+17))) tmp = y + (a * b); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(a - 0.5), $MachinePrecision], -2e+24], N[Not[LessEqual[N[(a - 0.5), $MachinePrecision], 4e+17]], $MachinePrecision]], N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a - 0.5 \leq -2 \cdot 10^{+24} \lor \neg \left(a - 0.5 \leq 4 \cdot 10^{+17}\right):\\
\;\;\;\;y + a \cdot b\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if (-.f64 a #s(literal 1/2 binary64)) < -2e24 or 4e17 < (-.f64 a #s(literal 1/2 binary64)) Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in a around inf 99.9%
Taylor expanded in y around inf 73.1%
Taylor expanded in a around 0 73.1%
*-commutative73.1%
Simplified73.1%
if -2e24 < (-.f64 a #s(literal 1/2 binary64)) < 4e17Initial program 99.8%
+-commutative99.8%
associate--l+99.8%
associate-+r+99.8%
+-commutative99.8%
*-lft-identity99.8%
metadata-eval99.8%
*-commutative99.8%
distribute-rgt-out--99.8%
metadata-eval99.8%
fma-define99.8%
sub-neg99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in b around inf 77.7%
associate--l+77.7%
associate-/l*77.6%
Simplified77.6%
Taylor expanded in y around 0 81.8%
associate--l+81.8%
associate-*r/81.7%
Simplified81.7%
Taylor expanded in x around inf 48.9%
Final simplification60.2%
(FPCore (x y z t a b) :precision binary64 (if (<= (- a 0.5) -2e+24) (* a (+ b (/ x a))) (if (<= (- a 0.5) 4e+17) (+ x y) (+ y (* a b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a - 0.5) <= -2e+24) {
tmp = a * (b + (x / a));
} else if ((a - 0.5) <= 4e+17) {
tmp = x + y;
} else {
tmp = y + (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 ((a - 0.5d0) <= (-2d+24)) then
tmp = a * (b + (x / a))
else if ((a - 0.5d0) <= 4d+17) then
tmp = x + y
else
tmp = y + (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 ((a - 0.5) <= -2e+24) {
tmp = a * (b + (x / a));
} else if ((a - 0.5) <= 4e+17) {
tmp = x + y;
} else {
tmp = y + (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a - 0.5) <= -2e+24: tmp = a * (b + (x / a)) elif (a - 0.5) <= 4e+17: tmp = x + y else: tmp = y + (a * b) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(a - 0.5) <= -2e+24) tmp = Float64(a * Float64(b + Float64(x / a))); elseif (Float64(a - 0.5) <= 4e+17) tmp = Float64(x + y); else tmp = Float64(y + Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a - 0.5) <= -2e+24) tmp = a * (b + (x / a)); elseif ((a - 0.5) <= 4e+17) tmp = x + y; else tmp = y + (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(a - 0.5), $MachinePrecision], -2e+24], N[(a * N[(b + N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a - 0.5), $MachinePrecision], 4e+17], N[(x + y), $MachinePrecision], N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a - 0.5 \leq -2 \cdot 10^{+24}:\\
\;\;\;\;a \cdot \left(b + \frac{x}{a}\right)\\
\mathbf{elif}\;a - 0.5 \leq 4 \cdot 10^{+17}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;y + a \cdot b\\
\end{array}
\end{array}
if (-.f64 a #s(literal 1/2 binary64)) < -2e24Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--100.0%
metadata-eval100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in a around inf 99.9%
Taylor expanded in x around inf 73.5%
if -2e24 < (-.f64 a #s(literal 1/2 binary64)) < 4e17Initial program 99.8%
+-commutative99.8%
associate--l+99.8%
associate-+r+99.8%
+-commutative99.8%
*-lft-identity99.8%
metadata-eval99.8%
*-commutative99.8%
distribute-rgt-out--99.8%
metadata-eval99.8%
fma-define99.8%
sub-neg99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in b around inf 77.7%
associate--l+77.7%
associate-/l*77.6%
Simplified77.6%
Taylor expanded in y around 0 81.8%
associate--l+81.8%
associate-*r/81.7%
Simplified81.7%
Taylor expanded in x around inf 48.9%
if 4e17 < (-.f64 a #s(literal 1/2 binary64)) Initial program 99.9%
+-commutative99.9%
associate--l+99.8%
associate-+r+99.8%
+-commutative99.8%
*-lft-identity99.8%
metadata-eval99.8%
*-commutative99.8%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in a around inf 99.9%
Taylor expanded in y around inf 69.4%
Taylor expanded in a around 0 69.4%
*-commutative69.4%
Simplified69.4%
Final simplification59.5%
(FPCore (x y z t a b) :precision binary64 (if (<= y -1.72e-298) x (if (<= y 1.05e+80) (* a b) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.72e-298) {
tmp = x;
} else if (y <= 1.05e+80) {
tmp = a * b;
} else {
tmp = 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.72d-298)) then
tmp = x
else if (y <= 1.05d+80) then
tmp = a * b
else
tmp = 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.72e-298) {
tmp = x;
} else if (y <= 1.05e+80) {
tmp = a * b;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -1.72e-298: tmp = x elif y <= 1.05e+80: tmp = a * b else: tmp = y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -1.72e-298) tmp = x; elseif (y <= 1.05e+80) tmp = Float64(a * b); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -1.72e-298) tmp = x; elseif (y <= 1.05e+80) tmp = a * b; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -1.72e-298], x, If[LessEqual[y, 1.05e+80], N[(a * b), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.72 \cdot 10^{-298}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{+80}:\\
\;\;\;\;a \cdot b\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if y < -1.71999999999999992e-298Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around inf 24.7%
if -1.71999999999999992e-298 < y < 1.05000000000000001e80Initial program 99.7%
+-commutative99.7%
associate--l+99.7%
associate-+r+99.7%
+-commutative99.7%
*-lft-identity99.7%
metadata-eval99.7%
*-commutative99.7%
distribute-rgt-out--99.8%
metadata-eval99.8%
fma-define99.8%
sub-neg99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in a around inf 34.2%
*-commutative34.2%
Simplified34.2%
if 1.05000000000000001e80 < y Initial program 99.9%
+-commutative99.9%
associate--l+99.8%
associate-+r+99.8%
+-commutative99.8%
*-lft-identity99.8%
metadata-eval99.8%
*-commutative99.8%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in y around inf 53.6%
Final simplification33.1%
(FPCore (x y z t a b) :precision binary64 (+ x (+ y (* b (- a 0.5)))))
double code(double x, double y, double z, double t, double a, double b) {
return x + (y + (b * (a - 0.5)));
}
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 + (b * (a - 0.5d0)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + (y + (b * (a - 0.5)));
}
def code(x, y, z, t, a, b): return x + (y + (b * (a - 0.5)))
function code(x, y, z, t, a, b) return Float64(x + Float64(y + Float64(b * Float64(a - 0.5)))) end
function tmp = code(x, y, z, t, a, b) tmp = x + (y + (b * (a - 0.5))); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(y + N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y + b \cdot \left(a - 0.5\right)\right)
\end{array}
Initial program 99.8%
+-commutative99.8%
associate--l+99.8%
associate-+r+99.8%
+-commutative99.8%
*-lft-identity99.8%
metadata-eval99.8%
*-commutative99.8%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 78.8%
(FPCore (x y z t a b) :precision binary64 (if (<= x -2.7e+73) x y))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -2.7e+73) {
tmp = x;
} else {
tmp = 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 <= (-2.7d+73)) then
tmp = x
else
tmp = 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 <= -2.7e+73) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -2.7e+73: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -2.7e+73) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -2.7e+73) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -2.7e+73], x, y]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.7 \cdot 10^{+73}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if x < -2.6999999999999999e73Initial program 99.9%
+-commutative99.9%
associate--l+100.0%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--100.0%
metadata-eval100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in x around inf 57.4%
if -2.6999999999999999e73 < x Initial program 99.8%
+-commutative99.8%
associate--l+99.8%
associate-+r+99.8%
+-commutative99.8%
*-lft-identity99.8%
metadata-eval99.8%
*-commutative99.8%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in y around inf 23.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 99.8%
+-commutative99.8%
associate--l+99.8%
associate-+r+99.8%
+-commutative99.8%
*-lft-identity99.8%
metadata-eval99.8%
*-commutative99.8%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around inf 20.1%
(FPCore (x y z t a b) :precision binary64 (+ (+ (+ x y) (/ (* (- 1.0 (pow (log t) 2.0)) z) (+ 1.0 (log t)))) (* (- a 0.5) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x + y) + (((1.0 - pow(log(t), 2.0)) * z) / (1.0 + log(t)))) + ((a - 0.5) * 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 - (log(t) ** 2.0d0)) * z) / (1.0d0 + log(t)))) + ((a - 0.5d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x + y) + (((1.0 - Math.pow(Math.log(t), 2.0)) * z) / (1.0 + Math.log(t)))) + ((a - 0.5) * b);
}
def code(x, y, z, t, a, b): return ((x + y) + (((1.0 - math.pow(math.log(t), 2.0)) * z) / (1.0 + math.log(t)))) + ((a - 0.5) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x + y) + Float64(Float64(Float64(1.0 - (log(t) ^ 2.0)) * z) / Float64(1.0 + log(t)))) + Float64(Float64(a - 0.5) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x + y) + (((1.0 - (log(t) ^ 2.0)) * z) / (1.0 + log(t)))) + ((a - 0.5) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x + y), $MachinePrecision] + N[(N[(N[(1.0 - N[Power[N[Log[t], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision] / N[(1.0 + N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x + y\right) + \frac{\left(1 - {\log t}^{2}\right) \cdot z}{1 + \log t}\right) + \left(a - 0.5\right) \cdot b
\end{array}
herbie shell --seed 2024091
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:logBeta from math-functions-0.1.5.2, A"
:precision binary64
:alt
(+ (+ (+ x y) (/ (* (- 1.0 (pow (log t) 2.0)) z) (+ 1.0 (log t)))) (* (- a 0.5) b))
(+ (- (+ (+ x y) z) (* z (log t))) (* (- a 0.5) b)))