
(FPCore (x y z t) :precision binary64 (/ (- (+ x y) z) (* t 2.0)))
double code(double x, double y, double z, double t) {
return ((x + y) - z) / (t * 2.0);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = ((x + y) - z) / (t * 2.0d0)
end function
public static double code(double x, double y, double z, double t) {
return ((x + y) - z) / (t * 2.0);
}
def code(x, y, z, t): return ((x + y) - z) / (t * 2.0)
function code(x, y, z, t) return Float64(Float64(Float64(x + y) - z) / Float64(t * 2.0)) end
function tmp = code(x, y, z, t) tmp = ((x + y) - z) / (t * 2.0); end
code[x_, y_, z_, t_] := N[(N[(N[(x + y), $MachinePrecision] - z), $MachinePrecision] / N[(t * 2.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x + y\right) - z}{t \cdot 2}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 14 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (/ (- (+ x y) z) (* t 2.0)))
double code(double x, double y, double z, double t) {
return ((x + y) - z) / (t * 2.0);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = ((x + y) - z) / (t * 2.0d0)
end function
public static double code(double x, double y, double z, double t) {
return ((x + y) - z) / (t * 2.0);
}
def code(x, y, z, t): return ((x + y) - z) / (t * 2.0)
function code(x, y, z, t) return Float64(Float64(Float64(x + y) - z) / Float64(t * 2.0)) end
function tmp = code(x, y, z, t) tmp = ((x + y) - z) / (t * 2.0); end
code[x_, y_, z_, t_] := N[(N[(N[(x + y), $MachinePrecision] - z), $MachinePrecision] / N[(t * 2.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x + y\right) - z}{t \cdot 2}
\end{array}
(FPCore (x y z t) :precision binary64 (/ (/ (+ x (- y z)) t) 2.0))
double code(double x, double y, double z, double t) {
return ((x + (y - z)) / t) / 2.0;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = ((x + (y - z)) / t) / 2.0d0
end function
public static double code(double x, double y, double z, double t) {
return ((x + (y - z)) / t) / 2.0;
}
def code(x, y, z, t): return ((x + (y - z)) / t) / 2.0
function code(x, y, z, t) return Float64(Float64(Float64(x + Float64(y - z)) / t) / 2.0) end
function tmp = code(x, y, z, t) tmp = ((x + (y - z)) / t) / 2.0; end
code[x_, y_, z_, t_] := N[(N[(N[(x + N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] / 2.0), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{x + \left(y - z\right)}{t}}{2}
\end{array}
Initial program 99.6%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f64100.0%
Simplified100.0%
Final simplification100.0%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (/ (/ (- x z) t) 2.0))) (if (<= z -0.2) t_1 (if (<= z 1.4e+20) (/ (/ (+ x y) t) 2.0) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = ((x - z) / t) / 2.0;
double tmp;
if (z <= -0.2) {
tmp = t_1;
} else if (z <= 1.4e+20) {
tmp = ((x + y) / t) / 2.0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = ((x - z) / t) / 2.0d0
if (z <= (-0.2d0)) then
tmp = t_1
else if (z <= 1.4d+20) then
tmp = ((x + y) / t) / 2.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = ((x - z) / t) / 2.0;
double tmp;
if (z <= -0.2) {
tmp = t_1;
} else if (z <= 1.4e+20) {
tmp = ((x + y) / t) / 2.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = ((x - z) / t) / 2.0 tmp = 0 if z <= -0.2: tmp = t_1 elif z <= 1.4e+20: tmp = ((x + y) / t) / 2.0 else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(Float64(x - z) / t) / 2.0) tmp = 0.0 if (z <= -0.2) tmp = t_1; elseif (z <= 1.4e+20) tmp = Float64(Float64(Float64(x + y) / t) / 2.0); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = ((x - z) / t) / 2.0; tmp = 0.0; if (z <= -0.2) tmp = t_1; elseif (z <= 1.4e+20) tmp = ((x + y) / t) / 2.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(x - z), $MachinePrecision] / t), $MachinePrecision] / 2.0), $MachinePrecision]}, If[LessEqual[z, -0.2], t$95$1, If[LessEqual[z, 1.4e+20], N[(N[(N[(x + y), $MachinePrecision] / t), $MachinePrecision] / 2.0), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x - z}{t}}{2}\\
\mathbf{if}\;z \leq -0.2:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{+20}:\\
\;\;\;\;\frac{\frac{x + y}{t}}{2}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -0.20000000000000001 or 1.4e20 < z Initial program 99.2%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
/-lowering-/.f64N/A
--lowering--.f6485.1%
Simplified85.1%
if -0.20000000000000001 < z < 1.4e20Initial program 99.9%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f6499.9%
Simplified99.9%
Taylor expanded in z around 0
*-lft-identityN/A
metadata-evalN/A
associate-*r*N/A
*-lft-identityN/A
metadata-evalN/A
associate-*r*N/A
distribute-lft-outN/A
distribute-lft-inN/A
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
associate-*l/N/A
associate-*r/N/A
*-commutativeN/A
neg-mul-1N/A
/-lowering-/.f64N/A
Simplified91.1%
Final simplification88.3%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* (/ 0.5 t) (- x z)))) (if (<= z -0.13) t_1 (if (<= z 9.6e+19) (/ (/ (+ x y) t) 2.0) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = (0.5 / t) * (x - z);
double tmp;
if (z <= -0.13) {
tmp = t_1;
} else if (z <= 9.6e+19) {
tmp = ((x + y) / t) / 2.0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = (0.5d0 / t) * (x - z)
if (z <= (-0.13d0)) then
tmp = t_1
else if (z <= 9.6d+19) then
tmp = ((x + y) / t) / 2.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (0.5 / t) * (x - z);
double tmp;
if (z <= -0.13) {
tmp = t_1;
} else if (z <= 9.6e+19) {
tmp = ((x + y) / t) / 2.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (0.5 / t) * (x - z) tmp = 0 if z <= -0.13: tmp = t_1 elif z <= 9.6e+19: tmp = ((x + y) / t) / 2.0 else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(0.5 / t) * Float64(x - z)) tmp = 0.0 if (z <= -0.13) tmp = t_1; elseif (z <= 9.6e+19) tmp = Float64(Float64(Float64(x + y) / t) / 2.0); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (0.5 / t) * (x - z); tmp = 0.0; if (z <= -0.13) tmp = t_1; elseif (z <= 9.6e+19) tmp = ((x + y) / t) / 2.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(0.5 / t), $MachinePrecision] * N[(x - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -0.13], t$95$1, If[LessEqual[z, 9.6e+19], N[(N[(N[(x + y), $MachinePrecision] / t), $MachinePrecision] / 2.0), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{0.5}{t} \cdot \left(x - z\right)\\
\mathbf{if}\;z \leq -0.13:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 9.6 \cdot 10^{+19}:\\
\;\;\;\;\frac{\frac{x + y}{t}}{2}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -0.13 or 9.6e19 < z Initial program 99.2%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f64100.0%
Simplified100.0%
associate-/l/N/A
clear-numN/A
associate-/r/N/A
*-lowering-*.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
metadata-evalN/A
sub-negN/A
+-lowering-+.f64N/A
neg-sub0N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
--lowering--.f6499.8%
Applied egg-rr99.8%
Taylor expanded in y around 0
--lowering--.f6485.0%
Simplified85.0%
if -0.13 < z < 9.6e19Initial program 99.9%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f6499.9%
Simplified99.9%
Taylor expanded in z around 0
*-lft-identityN/A
metadata-evalN/A
associate-*r*N/A
*-lft-identityN/A
metadata-evalN/A
associate-*r*N/A
distribute-lft-outN/A
distribute-lft-inN/A
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
associate-*l/N/A
associate-*r/N/A
*-commutativeN/A
neg-mul-1N/A
/-lowering-/.f64N/A
Simplified91.1%
Final simplification88.2%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* (/ 0.5 t) (- x z)))) (if (<= z -0.0037) t_1 (if (<= z 1.35e+19) (/ 0.5 (/ t (+ x y))) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = (0.5 / t) * (x - z);
double tmp;
if (z <= -0.0037) {
tmp = t_1;
} else if (z <= 1.35e+19) {
tmp = 0.5 / (t / (x + y));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = (0.5d0 / t) * (x - z)
if (z <= (-0.0037d0)) then
tmp = t_1
else if (z <= 1.35d+19) then
tmp = 0.5d0 / (t / (x + y))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (0.5 / t) * (x - z);
double tmp;
if (z <= -0.0037) {
tmp = t_1;
} else if (z <= 1.35e+19) {
tmp = 0.5 / (t / (x + y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (0.5 / t) * (x - z) tmp = 0 if z <= -0.0037: tmp = t_1 elif z <= 1.35e+19: tmp = 0.5 / (t / (x + y)) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(0.5 / t) * Float64(x - z)) tmp = 0.0 if (z <= -0.0037) tmp = t_1; elseif (z <= 1.35e+19) tmp = Float64(0.5 / Float64(t / Float64(x + y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (0.5 / t) * (x - z); tmp = 0.0; if (z <= -0.0037) tmp = t_1; elseif (z <= 1.35e+19) tmp = 0.5 / (t / (x + y)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(0.5 / t), $MachinePrecision] * N[(x - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -0.0037], t$95$1, If[LessEqual[z, 1.35e+19], N[(0.5 / N[(t / N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{0.5}{t} \cdot \left(x - z\right)\\
\mathbf{if}\;z \leq -0.0037:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{+19}:\\
\;\;\;\;\frac{0.5}{\frac{t}{x + y}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -0.0037000000000000002 or 1.35e19 < z Initial program 99.2%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f64100.0%
Simplified100.0%
associate-/l/N/A
clear-numN/A
associate-/r/N/A
*-lowering-*.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
metadata-evalN/A
sub-negN/A
+-lowering-+.f64N/A
neg-sub0N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
--lowering--.f6499.8%
Applied egg-rr99.8%
Taylor expanded in y around 0
--lowering--.f6485.0%
Simplified85.0%
if -0.0037000000000000002 < z < 1.35e19Initial program 99.9%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f6499.9%
Simplified99.9%
Taylor expanded in z around 0
*-lft-identityN/A
metadata-evalN/A
associate-*r*N/A
*-lft-identityN/A
metadata-evalN/A
associate-*r*N/A
distribute-lft-outN/A
distribute-lft-inN/A
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
associate-*l/N/A
associate-*r/N/A
*-commutativeN/A
neg-mul-1N/A
/-lowering-/.f64N/A
Simplified91.1%
div-invN/A
clear-numN/A
metadata-evalN/A
associate-*l/N/A
metadata-evalN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6490.8%
Applied egg-rr90.8%
(FPCore (x y z t) :precision binary64 (if (<= x -1.75e+31) (/ (/ x t) 2.0) (if (<= x 2.3e-162) (/ (* z -0.5) t) (/ (/ y t) 2.0))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.75e+31) {
tmp = (x / t) / 2.0;
} else if (x <= 2.3e-162) {
tmp = (z * -0.5) / t;
} else {
tmp = (y / t) / 2.0;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x <= (-1.75d+31)) then
tmp = (x / t) / 2.0d0
else if (x <= 2.3d-162) then
tmp = (z * (-0.5d0)) / t
else
tmp = (y / t) / 2.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.75e+31) {
tmp = (x / t) / 2.0;
} else if (x <= 2.3e-162) {
tmp = (z * -0.5) / t;
} else {
tmp = (y / t) / 2.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -1.75e+31: tmp = (x / t) / 2.0 elif x <= 2.3e-162: tmp = (z * -0.5) / t else: tmp = (y / t) / 2.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -1.75e+31) tmp = Float64(Float64(x / t) / 2.0); elseif (x <= 2.3e-162) tmp = Float64(Float64(z * -0.5) / t); else tmp = Float64(Float64(y / t) / 2.0); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -1.75e+31) tmp = (x / t) / 2.0; elseif (x <= 2.3e-162) tmp = (z * -0.5) / t; else tmp = (y / t) / 2.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -1.75e+31], N[(N[(x / t), $MachinePrecision] / 2.0), $MachinePrecision], If[LessEqual[x, 2.3e-162], N[(N[(z * -0.5), $MachinePrecision] / t), $MachinePrecision], N[(N[(y / t), $MachinePrecision] / 2.0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.75 \cdot 10^{+31}:\\
\;\;\;\;\frac{\frac{x}{t}}{2}\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-162}:\\
\;\;\;\;\frac{z \cdot -0.5}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{y}{t}}{2}\\
\end{array}
\end{array}
if x < -1.75e31Initial program 99.8%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f6499.8%
Simplified99.8%
Taylor expanded in x around inf
/-lowering-/.f6461.0%
Simplified61.0%
if -1.75e31 < x < 2.2999999999999998e-162Initial program 99.1%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in z around inf
associate-*r/N/A
metadata-evalN/A
associate-*r*N/A
mul-1-negN/A
/-lowering-/.f64N/A
mul-1-negN/A
associate-*r*N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6447.4%
Simplified47.4%
if 2.2999999999999998e-162 < x Initial program 100.0%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in y around inf
/-lowering-/.f6431.0%
Simplified31.0%
(FPCore (x y z t) :precision binary64 (if (<= x -3.1e+31) (/ (/ x t) 2.0) (if (<= x 1.15e-159) (/ (* z -0.5) t) (/ 0.5 (/ t y)))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -3.1e+31) {
tmp = (x / t) / 2.0;
} else if (x <= 1.15e-159) {
tmp = (z * -0.5) / t;
} else {
tmp = 0.5 / (t / y);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x <= (-3.1d+31)) then
tmp = (x / t) / 2.0d0
else if (x <= 1.15d-159) then
tmp = (z * (-0.5d0)) / t
else
tmp = 0.5d0 / (t / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -3.1e+31) {
tmp = (x / t) / 2.0;
} else if (x <= 1.15e-159) {
tmp = (z * -0.5) / t;
} else {
tmp = 0.5 / (t / y);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -3.1e+31: tmp = (x / t) / 2.0 elif x <= 1.15e-159: tmp = (z * -0.5) / t else: tmp = 0.5 / (t / y) return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -3.1e+31) tmp = Float64(Float64(x / t) / 2.0); elseif (x <= 1.15e-159) tmp = Float64(Float64(z * -0.5) / t); else tmp = Float64(0.5 / Float64(t / y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -3.1e+31) tmp = (x / t) / 2.0; elseif (x <= 1.15e-159) tmp = (z * -0.5) / t; else tmp = 0.5 / (t / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -3.1e+31], N[(N[(x / t), $MachinePrecision] / 2.0), $MachinePrecision], If[LessEqual[x, 1.15e-159], N[(N[(z * -0.5), $MachinePrecision] / t), $MachinePrecision], N[(0.5 / N[(t / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.1 \cdot 10^{+31}:\\
\;\;\;\;\frac{\frac{x}{t}}{2}\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{-159}:\\
\;\;\;\;\frac{z \cdot -0.5}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{0.5}{\frac{t}{y}}\\
\end{array}
\end{array}
if x < -3.1000000000000002e31Initial program 99.8%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f6499.8%
Simplified99.8%
Taylor expanded in x around inf
/-lowering-/.f6461.0%
Simplified61.0%
if -3.1000000000000002e31 < x < 1.14999999999999989e-159Initial program 99.1%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in z around inf
associate-*r/N/A
metadata-evalN/A
associate-*r*N/A
mul-1-negN/A
/-lowering-/.f64N/A
mul-1-negN/A
associate-*r*N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6447.4%
Simplified47.4%
if 1.14999999999999989e-159 < x Initial program 100.0%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in y around inf
/-lowering-/.f6431.0%
Simplified31.0%
div-invN/A
clear-numN/A
metadata-evalN/A
associate-*l/N/A
metadata-evalN/A
/-lowering-/.f64N/A
/-lowering-/.f6431.0%
Applied egg-rr31.0%
(FPCore (x y z t) :precision binary64 (if (<= x -2.2e+31) (/ 0.5 (/ t x)) (if (<= x 1e-160) (/ (* z -0.5) t) (/ 0.5 (/ t y)))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -2.2e+31) {
tmp = 0.5 / (t / x);
} else if (x <= 1e-160) {
tmp = (z * -0.5) / t;
} else {
tmp = 0.5 / (t / y);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x <= (-2.2d+31)) then
tmp = 0.5d0 / (t / x)
else if (x <= 1d-160) then
tmp = (z * (-0.5d0)) / t
else
tmp = 0.5d0 / (t / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -2.2e+31) {
tmp = 0.5 / (t / x);
} else if (x <= 1e-160) {
tmp = (z * -0.5) / t;
} else {
tmp = 0.5 / (t / y);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -2.2e+31: tmp = 0.5 / (t / x) elif x <= 1e-160: tmp = (z * -0.5) / t else: tmp = 0.5 / (t / y) return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -2.2e+31) tmp = Float64(0.5 / Float64(t / x)); elseif (x <= 1e-160) tmp = Float64(Float64(z * -0.5) / t); else tmp = Float64(0.5 / Float64(t / y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -2.2e+31) tmp = 0.5 / (t / x); elseif (x <= 1e-160) tmp = (z * -0.5) / t; else tmp = 0.5 / (t / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -2.2e+31], N[(0.5 / N[(t / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1e-160], N[(N[(z * -0.5), $MachinePrecision] / t), $MachinePrecision], N[(0.5 / N[(t / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.2 \cdot 10^{+31}:\\
\;\;\;\;\frac{0.5}{\frac{t}{x}}\\
\mathbf{elif}\;x \leq 10^{-160}:\\
\;\;\;\;\frac{z \cdot -0.5}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{0.5}{\frac{t}{y}}\\
\end{array}
\end{array}
if x < -2.2000000000000001e31Initial program 99.8%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f6499.8%
Simplified99.8%
Taylor expanded in x around inf
*-lft-identityN/A
associate-*l/N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6460.8%
Simplified60.8%
associate-*r/N/A
associate-*l/N/A
clear-numN/A
associate-*l/N/A
metadata-evalN/A
/-lowering-/.f64N/A
/-lowering-/.f6460.9%
Applied egg-rr60.9%
if -2.2000000000000001e31 < x < 9.9999999999999999e-161Initial program 99.1%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in z around inf
associate-*r/N/A
metadata-evalN/A
associate-*r*N/A
mul-1-negN/A
/-lowering-/.f64N/A
mul-1-negN/A
associate-*r*N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6447.4%
Simplified47.4%
if 9.9999999999999999e-161 < x Initial program 100.0%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in y around inf
/-lowering-/.f6431.0%
Simplified31.0%
div-invN/A
clear-numN/A
metadata-evalN/A
associate-*l/N/A
metadata-evalN/A
/-lowering-/.f64N/A
/-lowering-/.f6431.0%
Applied egg-rr31.0%
(FPCore (x y z t) :precision binary64 (if (<= x -1.4e+31) (/ 0.5 (/ t x)) (if (<= x 1e-159) (* z (/ -0.5 t)) (/ 0.5 (/ t y)))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.4e+31) {
tmp = 0.5 / (t / x);
} else if (x <= 1e-159) {
tmp = z * (-0.5 / t);
} else {
tmp = 0.5 / (t / y);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x <= (-1.4d+31)) then
tmp = 0.5d0 / (t / x)
else if (x <= 1d-159) then
tmp = z * ((-0.5d0) / t)
else
tmp = 0.5d0 / (t / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.4e+31) {
tmp = 0.5 / (t / x);
} else if (x <= 1e-159) {
tmp = z * (-0.5 / t);
} else {
tmp = 0.5 / (t / y);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -1.4e+31: tmp = 0.5 / (t / x) elif x <= 1e-159: tmp = z * (-0.5 / t) else: tmp = 0.5 / (t / y) return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -1.4e+31) tmp = Float64(0.5 / Float64(t / x)); elseif (x <= 1e-159) tmp = Float64(z * Float64(-0.5 / t)); else tmp = Float64(0.5 / Float64(t / y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -1.4e+31) tmp = 0.5 / (t / x); elseif (x <= 1e-159) tmp = z * (-0.5 / t); else tmp = 0.5 / (t / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -1.4e+31], N[(0.5 / N[(t / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1e-159], N[(z * N[(-0.5 / t), $MachinePrecision]), $MachinePrecision], N[(0.5 / N[(t / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.4 \cdot 10^{+31}:\\
\;\;\;\;\frac{0.5}{\frac{t}{x}}\\
\mathbf{elif}\;x \leq 10^{-159}:\\
\;\;\;\;z \cdot \frac{-0.5}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{0.5}{\frac{t}{y}}\\
\end{array}
\end{array}
if x < -1.40000000000000008e31Initial program 99.8%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f6499.8%
Simplified99.8%
Taylor expanded in x around inf
*-lft-identityN/A
associate-*l/N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6460.8%
Simplified60.8%
associate-*r/N/A
associate-*l/N/A
clear-numN/A
associate-*l/N/A
metadata-evalN/A
/-lowering-/.f64N/A
/-lowering-/.f6460.9%
Applied egg-rr60.9%
if -1.40000000000000008e31 < x < 9.99999999999999989e-160Initial program 99.1%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f64100.0%
Simplified100.0%
div-subN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64100.0%
Applied egg-rr100.0%
Taylor expanded in z around inf
metadata-evalN/A
distribute-lft-neg-inN/A
*-lft-identityN/A
associate-*l/N/A
associate-*l*N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6447.4%
Simplified47.4%
if 9.99999999999999989e-160 < x Initial program 100.0%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in y around inf
/-lowering-/.f6431.0%
Simplified31.0%
div-invN/A
clear-numN/A
metadata-evalN/A
associate-*l/N/A
metadata-evalN/A
/-lowering-/.f64N/A
/-lowering-/.f6431.0%
Applied egg-rr31.0%
(FPCore (x y z t) :precision binary64 (if (<= (+ x y) -2e-240) (/ (/ (- x z) t) 2.0) (/ (/ (- y z) t) 2.0)))
double code(double x, double y, double z, double t) {
double tmp;
if ((x + y) <= -2e-240) {
tmp = ((x - z) / t) / 2.0;
} else {
tmp = ((y - z) / t) / 2.0;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((x + y) <= (-2d-240)) then
tmp = ((x - z) / t) / 2.0d0
else
tmp = ((y - z) / t) / 2.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x + y) <= -2e-240) {
tmp = ((x - z) / t) / 2.0;
} else {
tmp = ((y - z) / t) / 2.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x + y) <= -2e-240: tmp = ((x - z) / t) / 2.0 else: tmp = ((y - z) / t) / 2.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(x + y) <= -2e-240) tmp = Float64(Float64(Float64(x - z) / t) / 2.0); else tmp = Float64(Float64(Float64(y - z) / t) / 2.0); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x + y) <= -2e-240) tmp = ((x - z) / t) / 2.0; else tmp = ((y - z) / t) / 2.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(x + y), $MachinePrecision], -2e-240], N[(N[(N[(x - z), $MachinePrecision] / t), $MachinePrecision] / 2.0), $MachinePrecision], N[(N[(N[(y - z), $MachinePrecision] / t), $MachinePrecision] / 2.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x + y \leq -2 \cdot 10^{-240}:\\
\;\;\;\;\frac{\frac{x - z}{t}}{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{y - z}{t}}{2}\\
\end{array}
\end{array}
if (+.f64 x y) < -1.9999999999999999e-240Initial program 100.0%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
/-lowering-/.f64N/A
--lowering--.f6463.3%
Simplified63.3%
if -1.9999999999999999e-240 < (+.f64 x y) Initial program 99.2%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
/-lowering-/.f64N/A
--lowering--.f6470.3%
Simplified70.3%
(FPCore (x y z t) :precision binary64 (if (<= y 2.2e+154) (* (/ 0.5 t) (- x z)) (/ (/ y t) 2.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 2.2e+154) {
tmp = (0.5 / t) * (x - z);
} else {
tmp = (y / t) / 2.0;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= 2.2d+154) then
tmp = (0.5d0 / t) * (x - z)
else
tmp = (y / t) / 2.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= 2.2e+154) {
tmp = (0.5 / t) * (x - z);
} else {
tmp = (y / t) / 2.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= 2.2e+154: tmp = (0.5 / t) * (x - z) else: tmp = (y / t) / 2.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= 2.2e+154) tmp = Float64(Float64(0.5 / t) * Float64(x - z)); else tmp = Float64(Float64(y / t) / 2.0); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= 2.2e+154) tmp = (0.5 / t) * (x - z); else tmp = (y / t) / 2.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, 2.2e+154], N[(N[(0.5 / t), $MachinePrecision] * N[(x - z), $MachinePrecision]), $MachinePrecision], N[(N[(y / t), $MachinePrecision] / 2.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.2 \cdot 10^{+154}:\\
\;\;\;\;\frac{0.5}{t} \cdot \left(x - z\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{y}{t}}{2}\\
\end{array}
\end{array}
if y < 2.2000000000000001e154Initial program 99.6%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f64100.0%
Simplified100.0%
associate-/l/N/A
clear-numN/A
associate-/r/N/A
*-lowering-*.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
metadata-evalN/A
sub-negN/A
+-lowering-+.f64N/A
neg-sub0N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
--lowering--.f6499.7%
Applied egg-rr99.7%
Taylor expanded in y around 0
--lowering--.f6469.8%
Simplified69.8%
if 2.2000000000000001e154 < y Initial program 99.9%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f6499.9%
Simplified99.9%
Taylor expanded in y around inf
/-lowering-/.f6472.1%
Simplified72.1%
(FPCore (x y z t) :precision binary64 (if (<= x -1.2e+31) (/ 0.5 (/ t x)) (* z (/ -0.5 t))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.2e+31) {
tmp = 0.5 / (t / x);
} else {
tmp = z * (-0.5 / t);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x <= (-1.2d+31)) then
tmp = 0.5d0 / (t / x)
else
tmp = z * ((-0.5d0) / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.2e+31) {
tmp = 0.5 / (t / x);
} else {
tmp = z * (-0.5 / t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -1.2e+31: tmp = 0.5 / (t / x) else: tmp = z * (-0.5 / t) return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -1.2e+31) tmp = Float64(0.5 / Float64(t / x)); else tmp = Float64(z * Float64(-0.5 / t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -1.2e+31) tmp = 0.5 / (t / x); else tmp = z * (-0.5 / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -1.2e+31], N[(0.5 / N[(t / x), $MachinePrecision]), $MachinePrecision], N[(z * N[(-0.5 / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.2 \cdot 10^{+31}:\\
\;\;\;\;\frac{0.5}{\frac{t}{x}}\\
\mathbf{else}:\\
\;\;\;\;z \cdot \frac{-0.5}{t}\\
\end{array}
\end{array}
if x < -1.19999999999999991e31Initial program 99.8%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f6499.8%
Simplified99.8%
Taylor expanded in x around inf
*-lft-identityN/A
associate-*l/N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6460.8%
Simplified60.8%
associate-*r/N/A
associate-*l/N/A
clear-numN/A
associate-*l/N/A
metadata-evalN/A
/-lowering-/.f64N/A
/-lowering-/.f6460.9%
Applied egg-rr60.9%
if -1.19999999999999991e31 < x Initial program 99.5%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f64100.0%
Simplified100.0%
div-subN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f6497.4%
Applied egg-rr97.4%
Taylor expanded in z around inf
metadata-evalN/A
distribute-lft-neg-inN/A
*-lft-identityN/A
associate-*l/N/A
associate-*l*N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6441.9%
Simplified41.9%
(FPCore (x y z t) :precision binary64 (if (<= x -1.65e+31) (* x (/ 0.5 t)) (* z (/ -0.5 t))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.65e+31) {
tmp = x * (0.5 / t);
} else {
tmp = z * (-0.5 / t);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x <= (-1.65d+31)) then
tmp = x * (0.5d0 / t)
else
tmp = z * ((-0.5d0) / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.65e+31) {
tmp = x * (0.5 / t);
} else {
tmp = z * (-0.5 / t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -1.65e+31: tmp = x * (0.5 / t) else: tmp = z * (-0.5 / t) return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -1.65e+31) tmp = Float64(x * Float64(0.5 / t)); else tmp = Float64(z * Float64(-0.5 / t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -1.65e+31) tmp = x * (0.5 / t); else tmp = z * (-0.5 / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -1.65e+31], N[(x * N[(0.5 / t), $MachinePrecision]), $MachinePrecision], N[(z * N[(-0.5 / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.65 \cdot 10^{+31}:\\
\;\;\;\;x \cdot \frac{0.5}{t}\\
\mathbf{else}:\\
\;\;\;\;z \cdot \frac{-0.5}{t}\\
\end{array}
\end{array}
if x < -1.64999999999999996e31Initial program 99.8%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f6499.8%
Simplified99.8%
Taylor expanded in x around inf
*-lft-identityN/A
associate-*l/N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6460.8%
Simplified60.8%
if -1.64999999999999996e31 < x Initial program 99.5%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f64100.0%
Simplified100.0%
div-subN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f6497.4%
Applied egg-rr97.4%
Taylor expanded in z around inf
metadata-evalN/A
distribute-lft-neg-inN/A
*-lft-identityN/A
associate-*l/N/A
associate-*l*N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6441.9%
Simplified41.9%
(FPCore (x y z t) :precision binary64 (* (/ 0.5 t) (+ x (- y z))))
double code(double x, double y, double z, double t) {
return (0.5 / t) * (x + (y - z));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (0.5d0 / t) * (x + (y - z))
end function
public static double code(double x, double y, double z, double t) {
return (0.5 / t) * (x + (y - z));
}
def code(x, y, z, t): return (0.5 / t) * (x + (y - z))
function code(x, y, z, t) return Float64(Float64(0.5 / t) * Float64(x + Float64(y - z))) end
function tmp = code(x, y, z, t) tmp = (0.5 / t) * (x + (y - z)); end
code[x_, y_, z_, t_] := N[(N[(0.5 / t), $MachinePrecision] * N[(x + N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{0.5}{t} \cdot \left(x + \left(y - z\right)\right)
\end{array}
Initial program 99.6%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f64100.0%
Simplified100.0%
associate-/l/N/A
clear-numN/A
associate-/r/N/A
*-lowering-*.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
metadata-evalN/A
sub-negN/A
+-lowering-+.f64N/A
neg-sub0N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
--lowering--.f6499.7%
Applied egg-rr99.7%
(FPCore (x y z t) :precision binary64 (* x (/ 0.5 t)))
double code(double x, double y, double z, double t) {
return x * (0.5 / t);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x * (0.5d0 / t)
end function
public static double code(double x, double y, double z, double t) {
return x * (0.5 / t);
}
def code(x, y, z, t): return x * (0.5 / t)
function code(x, y, z, t) return Float64(x * Float64(0.5 / t)) end
function tmp = code(x, y, z, t) tmp = x * (0.5 / t); end
code[x_, y_, z_, t_] := N[(x * N[(0.5 / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \frac{0.5}{t}
\end{array}
Initial program 99.6%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
associate-+l-N/A
--lowering--.f64N/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in x around inf
*-lft-identityN/A
associate-*l/N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6433.8%
Simplified33.8%
herbie shell --seed 2024155
(FPCore (x y z t)
:name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, B"
:precision binary64
(/ (- (+ x y) z) (* t 2.0)))