
(FPCore (x y z t) :precision binary64 (/ x (* (- y z) (- t z))))
double code(double x, double y, double z, double t) {
return x / ((y - z) * (t - 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 = x / ((y - z) * (t - z))
end function
public static double code(double x, double y, double z, double t) {
return x / ((y - z) * (t - z));
}
def code(x, y, z, t): return x / ((y - z) * (t - z))
function code(x, y, z, t) return Float64(x / Float64(Float64(y - z) * Float64(t - z))) end
function tmp = code(x, y, z, t) tmp = x / ((y - z) * (t - z)); end
code[x_, y_, z_, t_] := N[(x / N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\left(y - z\right) \cdot \left(t - z\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (/ x (* (- y z) (- t z))))
double code(double x, double y, double z, double t) {
return x / ((y - z) * (t - 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 = x / ((y - z) * (t - z))
end function
public static double code(double x, double y, double z, double t) {
return x / ((y - z) * (t - z));
}
def code(x, y, z, t): return x / ((y - z) * (t - z))
function code(x, y, z, t) return Float64(x / Float64(Float64(y - z) * Float64(t - z))) end
function tmp = code(x, y, z, t) tmp = x / ((y - z) * (t - z)); end
code[x_, y_, z_, t_] := N[(x / N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\left(y - z\right) \cdot \left(t - z\right)}
\end{array}
x_m = (fabs.f64 x) x_s = (copysign.f64 1 x) (FPCore (x_s x_m y z t) :precision binary64 (let* ((t_1 (/ x_m (* (- y z) (- t z))))) (* x_s (if (<= t_1 -1e-306) t_1 (/ (/ x_m (- y z)) (- t z))))))
x_m = fabs(x);
x_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double t_1 = x_m / ((y - z) * (t - z));
double tmp;
if (t_1 <= -1e-306) {
tmp = t_1;
} else {
tmp = (x_m / (y - z)) / (t - z);
}
return x_s * tmp;
}
x_m = abs(x)
x_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
real(8), intent (in) :: x_m
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_m / ((y - z) * (t - z))
if (t_1 <= (-1d-306)) then
tmp = t_1
else
tmp = (x_m / (y - z)) / (t - z)
end if
code = x_s * tmp
end function
x_m = Math.abs(x);
x_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double t_1 = x_m / ((y - z) * (t - z));
double tmp;
if (t_1 <= -1e-306) {
tmp = t_1;
} else {
tmp = (x_m / (y - z)) / (t - z);
}
return x_s * tmp;
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): t_1 = x_m / ((y - z) * (t - z)) tmp = 0 if t_1 <= -1e-306: tmp = t_1 else: tmp = (x_m / (y - z)) / (t - z) return x_s * tmp
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) t_1 = Float64(x_m / Float64(Float64(y - z) * Float64(t - z))) tmp = 0.0 if (t_1 <= -1e-306) tmp = t_1; else tmp = Float64(Float64(x_m / Float64(y - z)) / Float64(t - z)); end return Float64(x_s * tmp) end
x_m = abs(x); x_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) t_1 = x_m / ((y - z) * (t - z)); tmp = 0.0; if (t_1 <= -1e-306) tmp = t_1; else tmp = (x_m / (y - z)) / (t - z); end tmp_2 = x_s * tmp; end
x_m = N[Abs[x], $MachinePrecision]
x_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(x$95$m / N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[t$95$1, -1e-306], t$95$1, N[(N[(x$95$m / N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
\begin{array}{l}
t_1 := \frac{x\_m}{\left(y - z\right) \cdot \left(t - z\right)}\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-306}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x\_m}{y - z}}{t - z}\\
\end{array}
\end{array}
\end{array}
if (/.f64 x (*.f64 (-.f64 y z) (-.f64 t z))) < -1.00000000000000003e-306Initial program 96.6%
if -1.00000000000000003e-306 < (/.f64 x (*.f64 (-.f64 y z) (-.f64 t z))) Initial program 81.8%
Taylor expanded in x around 0 81.8%
associate-/l/98.5%
Simplified98.5%
Final simplification98.1%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= y -1.5e+291)
(* (/ -1.0 z) (/ x_m y))
(if (<= y -4.6e+68)
(/ (/ x_m y) t)
(if (<= y -1.3e+24)
(/ x_m (- (* y z)))
(if (<= y -8.2e-66)
(* (/ x_m t) (/ 1.0 y))
(if (<= y 14500.0) (/ (/ x_m (- t)) z) (/ 1.0 (* y (/ t x_m))))))))))x_m = fabs(x);
x_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (y <= -1.5e+291) {
tmp = (-1.0 / z) * (x_m / y);
} else if (y <= -4.6e+68) {
tmp = (x_m / y) / t;
} else if (y <= -1.3e+24) {
tmp = x_m / -(y * z);
} else if (y <= -8.2e-66) {
tmp = (x_m / t) * (1.0 / y);
} else if (y <= 14500.0) {
tmp = (x_m / -t) / z;
} else {
tmp = 1.0 / (y * (t / x_m));
}
return x_s * tmp;
}
x_m = abs(x)
x_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-1.5d+291)) then
tmp = ((-1.0d0) / z) * (x_m / y)
else if (y <= (-4.6d+68)) then
tmp = (x_m / y) / t
else if (y <= (-1.3d+24)) then
tmp = x_m / -(y * z)
else if (y <= (-8.2d-66)) then
tmp = (x_m / t) * (1.0d0 / y)
else if (y <= 14500.0d0) then
tmp = (x_m / -t) / z
else
tmp = 1.0d0 / (y * (t / x_m))
end if
code = x_s * tmp
end function
x_m = Math.abs(x);
x_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (y <= -1.5e+291) {
tmp = (-1.0 / z) * (x_m / y);
} else if (y <= -4.6e+68) {
tmp = (x_m / y) / t;
} else if (y <= -1.3e+24) {
tmp = x_m / -(y * z);
} else if (y <= -8.2e-66) {
tmp = (x_m / t) * (1.0 / y);
} else if (y <= 14500.0) {
tmp = (x_m / -t) / z;
} else {
tmp = 1.0 / (y * (t / x_m));
}
return x_s * tmp;
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): tmp = 0 if y <= -1.5e+291: tmp = (-1.0 / z) * (x_m / y) elif y <= -4.6e+68: tmp = (x_m / y) / t elif y <= -1.3e+24: tmp = x_m / -(y * z) elif y <= -8.2e-66: tmp = (x_m / t) * (1.0 / y) elif y <= 14500.0: tmp = (x_m / -t) / z else: tmp = 1.0 / (y * (t / x_m)) return x_s * tmp
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if (y <= -1.5e+291) tmp = Float64(Float64(-1.0 / z) * Float64(x_m / y)); elseif (y <= -4.6e+68) tmp = Float64(Float64(x_m / y) / t); elseif (y <= -1.3e+24) tmp = Float64(x_m / Float64(-Float64(y * z))); elseif (y <= -8.2e-66) tmp = Float64(Float64(x_m / t) * Float64(1.0 / y)); elseif (y <= 14500.0) tmp = Float64(Float64(x_m / Float64(-t)) / z); else tmp = Float64(1.0 / Float64(y * Float64(t / x_m))); end return Float64(x_s * tmp) end
x_m = abs(x); x_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) tmp = 0.0; if (y <= -1.5e+291) tmp = (-1.0 / z) * (x_m / y); elseif (y <= -4.6e+68) tmp = (x_m / y) / t; elseif (y <= -1.3e+24) tmp = x_m / -(y * z); elseif (y <= -8.2e-66) tmp = (x_m / t) * (1.0 / y); elseif (y <= 14500.0) tmp = (x_m / -t) / z; else tmp = 1.0 / (y * (t / x_m)); end tmp_2 = x_s * tmp; end
x_m = N[Abs[x], $MachinePrecision]
x_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[y, -1.5e+291], N[(N[(-1.0 / z), $MachinePrecision] * N[(x$95$m / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4.6e+68], N[(N[(x$95$m / y), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[y, -1.3e+24], N[(x$95$m / (-N[(y * z), $MachinePrecision])), $MachinePrecision], If[LessEqual[y, -8.2e-66], N[(N[(x$95$m / t), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 14500.0], N[(N[(x$95$m / (-t)), $MachinePrecision] / z), $MachinePrecision], N[(1.0 / N[(y * N[(t / x$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]), $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;y \leq -1.5 \cdot 10^{+291}:\\
\;\;\;\;\frac{-1}{z} \cdot \frac{x\_m}{y}\\
\mathbf{elif}\;y \leq -4.6 \cdot 10^{+68}:\\
\;\;\;\;\frac{\frac{x\_m}{y}}{t}\\
\mathbf{elif}\;y \leq -1.3 \cdot 10^{+24}:\\
\;\;\;\;\frac{x\_m}{-y \cdot z}\\
\mathbf{elif}\;y \leq -8.2 \cdot 10^{-66}:\\
\;\;\;\;\frac{x\_m}{t} \cdot \frac{1}{y}\\
\mathbf{elif}\;y \leq 14500:\\
\;\;\;\;\frac{\frac{x\_m}{-t}}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{y \cdot \frac{t}{x\_m}}\\
\end{array}
\end{array}
if y < -1.50000000000000008e291Initial program 76.5%
associate-/l/100.0%
Simplified100.0%
Taylor expanded in t around 0 100.0%
associate-*r/100.0%
neg-mul-1100.0%
Simplified100.0%
div-inv100.0%
associate-/l*76.5%
add-sqr-sqrt49.6%
sqrt-unprod52.2%
sqr-neg52.2%
sqrt-unprod26.5%
add-sqr-sqrt28.6%
Applied egg-rr28.6%
associate-/r*28.6%
associate-*r/28.6%
*-rgt-identity28.6%
Simplified28.6%
Taylor expanded in z around 0 28.6%
*-commutative28.6%
Simplified28.6%
frac-2neg28.6%
neg-mul-128.6%
distribute-rgt-neg-out28.6%
times-frac27.9%
add-sqr-sqrt27.9%
sqrt-unprod29.4%
sqr-neg29.4%
sqrt-unprod0.0%
add-sqr-sqrt81.9%
Applied egg-rr81.9%
if -1.50000000000000008e291 < y < -4.6e68Initial program 81.7%
associate-/r*99.7%
div-inv99.6%
Applied egg-rr99.6%
*-commutative99.6%
clear-num99.6%
un-div-inv99.6%
Applied egg-rr99.6%
Taylor expanded in z around 0 61.8%
associate-/l/71.9%
Simplified71.9%
if -4.6e68 < y < -1.2999999999999999e24Initial program 99.6%
associate-/l/100.0%
Simplified100.0%
Taylor expanded in t around 0 76.2%
associate-*r/76.2%
neg-mul-176.2%
Simplified76.2%
Taylor expanded in z around 0 76.2%
mul-1-neg76.2%
distribute-neg-frac276.2%
*-commutative76.2%
distribute-rgt-neg-out76.2%
Simplified76.2%
if -1.2999999999999999e24 < y < -8.19999999999999996e-66Initial program 78.3%
Taylor expanded in z around 0 53.7%
associate-/r*53.6%
div-inv53.4%
Applied egg-rr53.4%
if -8.19999999999999996e-66 < y < 14500Initial program 92.7%
Taylor expanded in t around inf 67.4%
associate-/r*63.5%
Simplified63.5%
Taylor expanded in y around 0 48.7%
mul-1-neg48.7%
associate-/r*47.8%
distribute-neg-frac247.8%
Simplified47.8%
if 14500 < y Initial program 74.5%
Taylor expanded in z around 0 44.2%
clear-num45.6%
inv-pow45.6%
*-commutative45.6%
associate-/l*55.1%
Applied egg-rr55.1%
unpow-155.1%
Simplified55.1%
Final simplification56.2%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(let* ((t_1 (* (- y z) (- t z))))
(*
x_s
(if (<= t_1 (- INFINITY))
(/ 1.0 (* (- y z) (/ t x_m)))
(if (<= t_1 2e+307) (/ x_m t_1) (/ (/ x_m z) (- z y)))))))x_m = fabs(x);
x_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double t_1 = (y - z) * (t - z);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = 1.0 / ((y - z) * (t / x_m));
} else if (t_1 <= 2e+307) {
tmp = x_m / t_1;
} else {
tmp = (x_m / z) / (z - y);
}
return x_s * tmp;
}
x_m = Math.abs(x);
x_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double t_1 = (y - z) * (t - z);
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = 1.0 / ((y - z) * (t / x_m));
} else if (t_1 <= 2e+307) {
tmp = x_m / t_1;
} else {
tmp = (x_m / z) / (z - y);
}
return x_s * tmp;
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): t_1 = (y - z) * (t - z) tmp = 0 if t_1 <= -math.inf: tmp = 1.0 / ((y - z) * (t / x_m)) elif t_1 <= 2e+307: tmp = x_m / t_1 else: tmp = (x_m / z) / (z - y) return x_s * tmp
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) t_1 = Float64(Float64(y - z) * Float64(t - z)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(1.0 / Float64(Float64(y - z) * Float64(t / x_m))); elseif (t_1 <= 2e+307) tmp = Float64(x_m / t_1); else tmp = Float64(Float64(x_m / z) / Float64(z - y)); end return Float64(x_s * tmp) end
x_m = abs(x); x_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) t_1 = (y - z) * (t - z); tmp = 0.0; if (t_1 <= -Inf) tmp = 1.0 / ((y - z) * (t / x_m)); elseif (t_1 <= 2e+307) tmp = x_m / t_1; else tmp = (x_m / z) / (z - y); end tmp_2 = x_s * tmp; end
x_m = N[Abs[x], $MachinePrecision]
x_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[t$95$1, (-Infinity)], N[(1.0 / N[(N[(y - z), $MachinePrecision] * N[(t / x$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+307], N[(x$95$m / t$95$1), $MachinePrecision], N[(N[(x$95$m / z), $MachinePrecision] / N[(z - y), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
\begin{array}{l}
t_1 := \left(y - z\right) \cdot \left(t - z\right)\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\frac{1}{\left(y - z\right) \cdot \frac{t}{x\_m}}\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+307}:\\
\;\;\;\;\frac{x\_m}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x\_m}{z}}{z - y}\\
\end{array}
\end{array}
\end{array}
if (*.f64 (-.f64 y z) (-.f64 t z)) < -inf.0Initial program 52.8%
Taylor expanded in t around inf 45.9%
associate-/r*77.3%
Simplified77.3%
clear-num77.2%
inv-pow77.2%
div-inv77.1%
clear-num77.2%
Applied egg-rr77.2%
unpow-177.2%
Simplified77.2%
if -inf.0 < (*.f64 (-.f64 y z) (-.f64 t z)) < 1.99999999999999997e307Initial program 97.8%
if 1.99999999999999997e307 < (*.f64 (-.f64 y z) (-.f64 t z)) Initial program 73.7%
associate-/l/99.9%
Simplified99.9%
Taylor expanded in t around 0 87.8%
associate-*r/87.8%
neg-mul-187.8%
Simplified87.8%
Final simplification92.4%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(let* ((t_1 (* (- y z) (- t z))))
(*
x_s
(if (<= t_1 (- INFINITY))
(/ 1.0 (* (- y z) (/ t x_m)))
(if (<= t_1 2e+307) (/ x_m t_1) (/ (/ -1.0 z) (/ (- y z) x_m)))))))x_m = fabs(x);
x_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double t_1 = (y - z) * (t - z);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = 1.0 / ((y - z) * (t / x_m));
} else if (t_1 <= 2e+307) {
tmp = x_m / t_1;
} else {
tmp = (-1.0 / z) / ((y - z) / x_m);
}
return x_s * tmp;
}
x_m = Math.abs(x);
x_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double t_1 = (y - z) * (t - z);
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = 1.0 / ((y - z) * (t / x_m));
} else if (t_1 <= 2e+307) {
tmp = x_m / t_1;
} else {
tmp = (-1.0 / z) / ((y - z) / x_m);
}
return x_s * tmp;
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): t_1 = (y - z) * (t - z) tmp = 0 if t_1 <= -math.inf: tmp = 1.0 / ((y - z) * (t / x_m)) elif t_1 <= 2e+307: tmp = x_m / t_1 else: tmp = (-1.0 / z) / ((y - z) / x_m) return x_s * tmp
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) t_1 = Float64(Float64(y - z) * Float64(t - z)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(1.0 / Float64(Float64(y - z) * Float64(t / x_m))); elseif (t_1 <= 2e+307) tmp = Float64(x_m / t_1); else tmp = Float64(Float64(-1.0 / z) / Float64(Float64(y - z) / x_m)); end return Float64(x_s * tmp) end
x_m = abs(x); x_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) t_1 = (y - z) * (t - z); tmp = 0.0; if (t_1 <= -Inf) tmp = 1.0 / ((y - z) * (t / x_m)); elseif (t_1 <= 2e+307) tmp = x_m / t_1; else tmp = (-1.0 / z) / ((y - z) / x_m); end tmp_2 = x_s * tmp; end
x_m = N[Abs[x], $MachinePrecision]
x_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[t$95$1, (-Infinity)], N[(1.0 / N[(N[(y - z), $MachinePrecision] * N[(t / x$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+307], N[(x$95$m / t$95$1), $MachinePrecision], N[(N[(-1.0 / z), $MachinePrecision] / N[(N[(y - z), $MachinePrecision] / x$95$m), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
\begin{array}{l}
t_1 := \left(y - z\right) \cdot \left(t - z\right)\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\frac{1}{\left(y - z\right) \cdot \frac{t}{x\_m}}\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+307}:\\
\;\;\;\;\frac{x\_m}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{-1}{z}}{\frac{y - z}{x\_m}}\\
\end{array}
\end{array}
\end{array}
if (*.f64 (-.f64 y z) (-.f64 t z)) < -inf.0Initial program 52.8%
Taylor expanded in t around inf 45.9%
associate-/r*77.3%
Simplified77.3%
clear-num77.2%
inv-pow77.2%
div-inv77.1%
clear-num77.2%
Applied egg-rr77.2%
unpow-177.2%
Simplified77.2%
if -inf.0 < (*.f64 (-.f64 y z) (-.f64 t z)) < 1.99999999999999997e307Initial program 97.8%
if 1.99999999999999997e307 < (*.f64 (-.f64 y z) (-.f64 t z)) Initial program 73.7%
associate-/r*99.9%
div-inv99.8%
Applied egg-rr99.8%
*-commutative99.8%
clear-num99.8%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in t around 0 91.3%
Final simplification93.4%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= t -3.2e-275)
(/ (/ x_m y) (- t z))
(if (<= t 8.6e-141)
(/ (/ x_m z) (- z y))
(if (<= t 0.006)
(/ (/ x_m z) (- z t))
(if (<= t 2.95e+175)
(/ x_m (* (- y z) t))
(/ 1.0 (* (- y z) (/ t x_m)))))))))x_m = fabs(x);
x_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (t <= -3.2e-275) {
tmp = (x_m / y) / (t - z);
} else if (t <= 8.6e-141) {
tmp = (x_m / z) / (z - y);
} else if (t <= 0.006) {
tmp = (x_m / z) / (z - t);
} else if (t <= 2.95e+175) {
tmp = x_m / ((y - z) * t);
} else {
tmp = 1.0 / ((y - z) * (t / x_m));
}
return x_s * tmp;
}
x_m = abs(x)
x_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (t <= (-3.2d-275)) then
tmp = (x_m / y) / (t - z)
else if (t <= 8.6d-141) then
tmp = (x_m / z) / (z - y)
else if (t <= 0.006d0) then
tmp = (x_m / z) / (z - t)
else if (t <= 2.95d+175) then
tmp = x_m / ((y - z) * t)
else
tmp = 1.0d0 / ((y - z) * (t / x_m))
end if
code = x_s * tmp
end function
x_m = Math.abs(x);
x_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (t <= -3.2e-275) {
tmp = (x_m / y) / (t - z);
} else if (t <= 8.6e-141) {
tmp = (x_m / z) / (z - y);
} else if (t <= 0.006) {
tmp = (x_m / z) / (z - t);
} else if (t <= 2.95e+175) {
tmp = x_m / ((y - z) * t);
} else {
tmp = 1.0 / ((y - z) * (t / x_m));
}
return x_s * tmp;
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): tmp = 0 if t <= -3.2e-275: tmp = (x_m / y) / (t - z) elif t <= 8.6e-141: tmp = (x_m / z) / (z - y) elif t <= 0.006: tmp = (x_m / z) / (z - t) elif t <= 2.95e+175: tmp = x_m / ((y - z) * t) else: tmp = 1.0 / ((y - z) * (t / x_m)) return x_s * tmp
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if (t <= -3.2e-275) tmp = Float64(Float64(x_m / y) / Float64(t - z)); elseif (t <= 8.6e-141) tmp = Float64(Float64(x_m / z) / Float64(z - y)); elseif (t <= 0.006) tmp = Float64(Float64(x_m / z) / Float64(z - t)); elseif (t <= 2.95e+175) tmp = Float64(x_m / Float64(Float64(y - z) * t)); else tmp = Float64(1.0 / Float64(Float64(y - z) * Float64(t / x_m))); end return Float64(x_s * tmp) end
x_m = abs(x); x_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) tmp = 0.0; if (t <= -3.2e-275) tmp = (x_m / y) / (t - z); elseif (t <= 8.6e-141) tmp = (x_m / z) / (z - y); elseif (t <= 0.006) tmp = (x_m / z) / (z - t); elseif (t <= 2.95e+175) tmp = x_m / ((y - z) * t); else tmp = 1.0 / ((y - z) * (t / x_m)); end tmp_2 = x_s * tmp; end
x_m = N[Abs[x], $MachinePrecision]
x_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[t, -3.2e-275], N[(N[(x$95$m / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.6e-141], N[(N[(x$95$m / z), $MachinePrecision] / N[(z - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.006], N[(N[(x$95$m / z), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.95e+175], N[(x$95$m / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(y - z), $MachinePrecision] * N[(t / x$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]), $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;t \leq -3.2 \cdot 10^{-275}:\\
\;\;\;\;\frac{\frac{x\_m}{y}}{t - z}\\
\mathbf{elif}\;t \leq 8.6 \cdot 10^{-141}:\\
\;\;\;\;\frac{\frac{x\_m}{z}}{z - y}\\
\mathbf{elif}\;t \leq 0.006:\\
\;\;\;\;\frac{\frac{x\_m}{z}}{z - t}\\
\mathbf{elif}\;t \leq 2.95 \cdot 10^{+175}:\\
\;\;\;\;\frac{x\_m}{\left(y - z\right) \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\left(y - z\right) \cdot \frac{t}{x\_m}}\\
\end{array}
\end{array}
if t < -3.2e-275Initial program 84.7%
Taylor expanded in y around inf 61.5%
associate-/r*69.4%
Simplified69.4%
if -3.2e-275 < t < 8.59999999999999948e-141Initial program 79.5%
associate-/l/99.8%
Simplified99.8%
Taylor expanded in t around 0 89.5%
associate-*r/89.5%
neg-mul-189.5%
Simplified89.5%
if 8.59999999999999948e-141 < t < 0.0060000000000000001Initial program 96.3%
Taylor expanded in x around 0 96.3%
associate-/l/97.1%
Simplified97.1%
Taylor expanded in y around 0 64.3%
mul-1-neg64.3%
associate-/r*67.9%
distribute-neg-frac267.9%
neg-sub067.9%
associate--r-67.9%
neg-sub067.9%
Simplified67.9%
if 0.0060000000000000001 < t < 2.95000000000000015e175Initial program 86.5%
Taylor expanded in t around inf 79.5%
if 2.95000000000000015e175 < t Initial program 83.5%
Taylor expanded in t around inf 83.5%
associate-/r*99.7%
Simplified99.7%
clear-num99.8%
inv-pow99.8%
div-inv99.7%
clear-num99.7%
Applied egg-rr99.7%
unpow-199.7%
Simplified99.7%
Final simplification78.2%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= t -3.2e-275)
(/ (/ x_m y) (- t z))
(if (<= t 3e-139)
(/ (/ x_m z) (- z y))
(if (<= t 0.0048)
(/ (/ x_m z) (- z t))
(if (<= t 5.8e+174) (/ x_m (* (- y z) t)) (/ (/ x_m t) (- y z))))))))x_m = fabs(x);
x_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (t <= -3.2e-275) {
tmp = (x_m / y) / (t - z);
} else if (t <= 3e-139) {
tmp = (x_m / z) / (z - y);
} else if (t <= 0.0048) {
tmp = (x_m / z) / (z - t);
} else if (t <= 5.8e+174) {
tmp = x_m / ((y - z) * t);
} else {
tmp = (x_m / t) / (y - z);
}
return x_s * tmp;
}
x_m = abs(x)
x_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (t <= (-3.2d-275)) then
tmp = (x_m / y) / (t - z)
else if (t <= 3d-139) then
tmp = (x_m / z) / (z - y)
else if (t <= 0.0048d0) then
tmp = (x_m / z) / (z - t)
else if (t <= 5.8d+174) then
tmp = x_m / ((y - z) * t)
else
tmp = (x_m / t) / (y - z)
end if
code = x_s * tmp
end function
x_m = Math.abs(x);
x_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (t <= -3.2e-275) {
tmp = (x_m / y) / (t - z);
} else if (t <= 3e-139) {
tmp = (x_m / z) / (z - y);
} else if (t <= 0.0048) {
tmp = (x_m / z) / (z - t);
} else if (t <= 5.8e+174) {
tmp = x_m / ((y - z) * t);
} else {
tmp = (x_m / t) / (y - z);
}
return x_s * tmp;
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): tmp = 0 if t <= -3.2e-275: tmp = (x_m / y) / (t - z) elif t <= 3e-139: tmp = (x_m / z) / (z - y) elif t <= 0.0048: tmp = (x_m / z) / (z - t) elif t <= 5.8e+174: tmp = x_m / ((y - z) * t) else: tmp = (x_m / t) / (y - z) return x_s * tmp
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if (t <= -3.2e-275) tmp = Float64(Float64(x_m / y) / Float64(t - z)); elseif (t <= 3e-139) tmp = Float64(Float64(x_m / z) / Float64(z - y)); elseif (t <= 0.0048) tmp = Float64(Float64(x_m / z) / Float64(z - t)); elseif (t <= 5.8e+174) tmp = Float64(x_m / Float64(Float64(y - z) * t)); else tmp = Float64(Float64(x_m / t) / Float64(y - z)); end return Float64(x_s * tmp) end
x_m = abs(x); x_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) tmp = 0.0; if (t <= -3.2e-275) tmp = (x_m / y) / (t - z); elseif (t <= 3e-139) tmp = (x_m / z) / (z - y); elseif (t <= 0.0048) tmp = (x_m / z) / (z - t); elseif (t <= 5.8e+174) tmp = x_m / ((y - z) * t); else tmp = (x_m / t) / (y - z); end tmp_2 = x_s * tmp; end
x_m = N[Abs[x], $MachinePrecision]
x_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[t, -3.2e-275], N[(N[(x$95$m / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3e-139], N[(N[(x$95$m / z), $MachinePrecision] / N[(z - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.0048], N[(N[(x$95$m / z), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.8e+174], N[(x$95$m / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], N[(N[(x$95$m / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]]]]), $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;t \leq -3.2 \cdot 10^{-275}:\\
\;\;\;\;\frac{\frac{x\_m}{y}}{t - z}\\
\mathbf{elif}\;t \leq 3 \cdot 10^{-139}:\\
\;\;\;\;\frac{\frac{x\_m}{z}}{z - y}\\
\mathbf{elif}\;t \leq 0.0048:\\
\;\;\;\;\frac{\frac{x\_m}{z}}{z - t}\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{+174}:\\
\;\;\;\;\frac{x\_m}{\left(y - z\right) \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x\_m}{t}}{y - z}\\
\end{array}
\end{array}
if t < -3.2e-275Initial program 84.7%
Taylor expanded in y around inf 61.5%
associate-/r*69.4%
Simplified69.4%
if -3.2e-275 < t < 2.9999999999999999e-139Initial program 79.5%
associate-/l/99.8%
Simplified99.8%
Taylor expanded in t around 0 89.5%
associate-*r/89.5%
neg-mul-189.5%
Simplified89.5%
if 2.9999999999999999e-139 < t < 0.00479999999999999958Initial program 96.3%
Taylor expanded in x around 0 96.3%
associate-/l/97.1%
Simplified97.1%
Taylor expanded in y around 0 64.3%
mul-1-neg64.3%
associate-/r*67.9%
distribute-neg-frac267.9%
neg-sub067.9%
associate--r-67.9%
neg-sub067.9%
Simplified67.9%
if 0.00479999999999999958 < t < 5.7999999999999999e174Initial program 86.5%
Taylor expanded in t around inf 79.5%
if 5.7999999999999999e174 < t Initial program 83.5%
Taylor expanded in t around inf 83.5%
associate-/r*99.7%
Simplified99.7%
Final simplification78.2%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(let* ((t_1 (/ (/ x_m (- t)) z)))
(*
x_s
(if (<= z -6.8e-106)
t_1
(if (<= z 4.6e+104)
(/ (/ x_m y) t)
(if (<= z 8.5e+173)
t_1
(if (<= z 1.85e+247) (/ (/ x_m z) y) (/ x_m (* z (- t))))))))))x_m = fabs(x);
x_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double t_1 = (x_m / -t) / z;
double tmp;
if (z <= -6.8e-106) {
tmp = t_1;
} else if (z <= 4.6e+104) {
tmp = (x_m / y) / t;
} else if (z <= 8.5e+173) {
tmp = t_1;
} else if (z <= 1.85e+247) {
tmp = (x_m / z) / y;
} else {
tmp = x_m / (z * -t);
}
return x_s * tmp;
}
x_m = abs(x)
x_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
real(8), intent (in) :: x_m
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_m / -t) / z
if (z <= (-6.8d-106)) then
tmp = t_1
else if (z <= 4.6d+104) then
tmp = (x_m / y) / t
else if (z <= 8.5d+173) then
tmp = t_1
else if (z <= 1.85d+247) then
tmp = (x_m / z) / y
else
tmp = x_m / (z * -t)
end if
code = x_s * tmp
end function
x_m = Math.abs(x);
x_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double t_1 = (x_m / -t) / z;
double tmp;
if (z <= -6.8e-106) {
tmp = t_1;
} else if (z <= 4.6e+104) {
tmp = (x_m / y) / t;
} else if (z <= 8.5e+173) {
tmp = t_1;
} else if (z <= 1.85e+247) {
tmp = (x_m / z) / y;
} else {
tmp = x_m / (z * -t);
}
return x_s * tmp;
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): t_1 = (x_m / -t) / z tmp = 0 if z <= -6.8e-106: tmp = t_1 elif z <= 4.6e+104: tmp = (x_m / y) / t elif z <= 8.5e+173: tmp = t_1 elif z <= 1.85e+247: tmp = (x_m / z) / y else: tmp = x_m / (z * -t) return x_s * tmp
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) t_1 = Float64(Float64(x_m / Float64(-t)) / z) tmp = 0.0 if (z <= -6.8e-106) tmp = t_1; elseif (z <= 4.6e+104) tmp = Float64(Float64(x_m / y) / t); elseif (z <= 8.5e+173) tmp = t_1; elseif (z <= 1.85e+247) tmp = Float64(Float64(x_m / z) / y); else tmp = Float64(x_m / Float64(z * Float64(-t))); end return Float64(x_s * tmp) end
x_m = abs(x); x_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) t_1 = (x_m / -t) / z; tmp = 0.0; if (z <= -6.8e-106) tmp = t_1; elseif (z <= 4.6e+104) tmp = (x_m / y) / t; elseif (z <= 8.5e+173) tmp = t_1; elseif (z <= 1.85e+247) tmp = (x_m / z) / y; else tmp = x_m / (z * -t); end tmp_2 = x_s * tmp; end
x_m = N[Abs[x], $MachinePrecision]
x_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x$95$m / (-t)), $MachinePrecision] / z), $MachinePrecision]}, N[(x$95$s * If[LessEqual[z, -6.8e-106], t$95$1, If[LessEqual[z, 4.6e+104], N[(N[(x$95$m / y), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[z, 8.5e+173], t$95$1, If[LessEqual[z, 1.85e+247], N[(N[(x$95$m / z), $MachinePrecision] / y), $MachinePrecision], N[(x$95$m / N[(z * (-t)), $MachinePrecision]), $MachinePrecision]]]]]), $MachinePrecision]]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
\begin{array}{l}
t_1 := \frac{\frac{x\_m}{-t}}{z}\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;z \leq -6.8 \cdot 10^{-106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{+104}:\\
\;\;\;\;\frac{\frac{x\_m}{y}}{t}\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{+173}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.85 \cdot 10^{+247}:\\
\;\;\;\;\frac{\frac{x\_m}{z}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x\_m}{z \cdot \left(-t\right)}\\
\end{array}
\end{array}
\end{array}
if z < -6.79999999999999965e-106 or 4.59999999999999969e104 < z < 8.5000000000000003e173Initial program 80.5%
Taylor expanded in t around inf 49.1%
associate-/r*49.9%
Simplified49.9%
Taylor expanded in y around 0 43.0%
mul-1-neg43.0%
associate-/r*41.9%
distribute-neg-frac241.9%
Simplified41.9%
if -6.79999999999999965e-106 < z < 4.59999999999999969e104Initial program 89.4%
associate-/r*96.7%
div-inv96.6%
Applied egg-rr96.6%
*-commutative96.6%
clear-num96.6%
un-div-inv96.6%
Applied egg-rr96.6%
Taylor expanded in z around 0 60.0%
associate-/l/67.4%
Simplified67.4%
if 8.5000000000000003e173 < z < 1.8499999999999999e247Initial program 78.1%
associate-/l/100.0%
Simplified100.0%
Taylor expanded in t around 0 100.0%
associate-*r/100.0%
neg-mul-1100.0%
Simplified100.0%
div-inv99.9%
associate-/l*78.1%
add-sqr-sqrt46.6%
sqrt-unprod76.9%
sqr-neg76.9%
sqrt-unprod31.6%
add-sqr-sqrt78.1%
Applied egg-rr78.1%
associate-/r*78.1%
associate-*r/78.1%
*-rgt-identity78.1%
Simplified78.1%
Taylor expanded in z around 0 43.5%
*-commutative43.5%
Simplified43.5%
Taylor expanded in x around 0 43.5%
*-commutative43.5%
associate-/r*65.0%
Simplified65.0%
if 1.8499999999999999e247 < z Initial program 85.6%
Taylor expanded in t around inf 53.9%
associate-/r*47.5%
Simplified47.5%
div-inv47.5%
associate-/l*48.3%
Applied egg-rr48.3%
Taylor expanded in y around 0 53.9%
mul-1-neg53.9%
distribute-frac-neg53.9%
*-commutative53.9%
Simplified53.9%
Final simplification56.8%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= t -2.1e-186)
(/ x_m (* y (- t z)))
(if (<= t 3.25e-112)
(/ x_m (* z (- z y)))
(if (<= t 5.8e+174) (/ x_m (* (- y z) t)) (/ (/ x_m t) (- y z)))))))x_m = fabs(x);
x_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (t <= -2.1e-186) {
tmp = x_m / (y * (t - z));
} else if (t <= 3.25e-112) {
tmp = x_m / (z * (z - y));
} else if (t <= 5.8e+174) {
tmp = x_m / ((y - z) * t);
} else {
tmp = (x_m / t) / (y - z);
}
return x_s * tmp;
}
x_m = abs(x)
x_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (t <= (-2.1d-186)) then
tmp = x_m / (y * (t - z))
else if (t <= 3.25d-112) then
tmp = x_m / (z * (z - y))
else if (t <= 5.8d+174) then
tmp = x_m / ((y - z) * t)
else
tmp = (x_m / t) / (y - z)
end if
code = x_s * tmp
end function
x_m = Math.abs(x);
x_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (t <= -2.1e-186) {
tmp = x_m / (y * (t - z));
} else if (t <= 3.25e-112) {
tmp = x_m / (z * (z - y));
} else if (t <= 5.8e+174) {
tmp = x_m / ((y - z) * t);
} else {
tmp = (x_m / t) / (y - z);
}
return x_s * tmp;
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): tmp = 0 if t <= -2.1e-186: tmp = x_m / (y * (t - z)) elif t <= 3.25e-112: tmp = x_m / (z * (z - y)) elif t <= 5.8e+174: tmp = x_m / ((y - z) * t) else: tmp = (x_m / t) / (y - z) return x_s * tmp
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if (t <= -2.1e-186) tmp = Float64(x_m / Float64(y * Float64(t - z))); elseif (t <= 3.25e-112) tmp = Float64(x_m / Float64(z * Float64(z - y))); elseif (t <= 5.8e+174) tmp = Float64(x_m / Float64(Float64(y - z) * t)); else tmp = Float64(Float64(x_m / t) / Float64(y - z)); end return Float64(x_s * tmp) end
x_m = abs(x); x_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) tmp = 0.0; if (t <= -2.1e-186) tmp = x_m / (y * (t - z)); elseif (t <= 3.25e-112) tmp = x_m / (z * (z - y)); elseif (t <= 5.8e+174) tmp = x_m / ((y - z) * t); else tmp = (x_m / t) / (y - z); end tmp_2 = x_s * tmp; end
x_m = N[Abs[x], $MachinePrecision]
x_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[t, -2.1e-186], N[(x$95$m / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.25e-112], N[(x$95$m / N[(z * N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.8e+174], N[(x$95$m / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], N[(N[(x$95$m / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;t \leq -2.1 \cdot 10^{-186}:\\
\;\;\;\;\frac{x\_m}{y \cdot \left(t - z\right)}\\
\mathbf{elif}\;t \leq 3.25 \cdot 10^{-112}:\\
\;\;\;\;\frac{x\_m}{z \cdot \left(z - y\right)}\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{+174}:\\
\;\;\;\;\frac{x\_m}{\left(y - z\right) \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x\_m}{t}}{y - z}\\
\end{array}
\end{array}
if t < -2.1000000000000002e-186Initial program 83.4%
Taylor expanded in y around inf 61.9%
*-commutative61.9%
Simplified61.9%
if -2.1000000000000002e-186 < t < 3.24999999999999978e-112Initial program 83.2%
*-commutative83.2%
sub-neg83.2%
distribute-lft-in76.6%
Applied egg-rr76.6%
Taylor expanded in t around 0 65.7%
associate-*r*65.7%
unpow265.7%
distribute-rgt-out70.6%
+-commutative70.6%
mul-1-neg70.6%
unsub-neg70.6%
Simplified70.6%
if 3.24999999999999978e-112 < t < 5.7999999999999999e174Initial program 90.5%
Taylor expanded in t around inf 70.2%
if 5.7999999999999999e174 < t Initial program 83.5%
Taylor expanded in t around inf 83.5%
associate-/r*99.7%
Simplified99.7%
Final simplification70.5%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= t -1.7e-290)
(/ (/ x_m y) (- t z))
(if (<= t 9.2e-111)
(/ x_m (* z (- z y)))
(if (<= t 5.5e+174) (/ x_m (* (- y z) t)) (/ (/ x_m t) (- y z)))))))x_m = fabs(x);
x_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (t <= -1.7e-290) {
tmp = (x_m / y) / (t - z);
} else if (t <= 9.2e-111) {
tmp = x_m / (z * (z - y));
} else if (t <= 5.5e+174) {
tmp = x_m / ((y - z) * t);
} else {
tmp = (x_m / t) / (y - z);
}
return x_s * tmp;
}
x_m = abs(x)
x_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (t <= (-1.7d-290)) then
tmp = (x_m / y) / (t - z)
else if (t <= 9.2d-111) then
tmp = x_m / (z * (z - y))
else if (t <= 5.5d+174) then
tmp = x_m / ((y - z) * t)
else
tmp = (x_m / t) / (y - z)
end if
code = x_s * tmp
end function
x_m = Math.abs(x);
x_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (t <= -1.7e-290) {
tmp = (x_m / y) / (t - z);
} else if (t <= 9.2e-111) {
tmp = x_m / (z * (z - y));
} else if (t <= 5.5e+174) {
tmp = x_m / ((y - z) * t);
} else {
tmp = (x_m / t) / (y - z);
}
return x_s * tmp;
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): tmp = 0 if t <= -1.7e-290: tmp = (x_m / y) / (t - z) elif t <= 9.2e-111: tmp = x_m / (z * (z - y)) elif t <= 5.5e+174: tmp = x_m / ((y - z) * t) else: tmp = (x_m / t) / (y - z) return x_s * tmp
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if (t <= -1.7e-290) tmp = Float64(Float64(x_m / y) / Float64(t - z)); elseif (t <= 9.2e-111) tmp = Float64(x_m / Float64(z * Float64(z - y))); elseif (t <= 5.5e+174) tmp = Float64(x_m / Float64(Float64(y - z) * t)); else tmp = Float64(Float64(x_m / t) / Float64(y - z)); end return Float64(x_s * tmp) end
x_m = abs(x); x_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) tmp = 0.0; if (t <= -1.7e-290) tmp = (x_m / y) / (t - z); elseif (t <= 9.2e-111) tmp = x_m / (z * (z - y)); elseif (t <= 5.5e+174) tmp = x_m / ((y - z) * t); else tmp = (x_m / t) / (y - z); end tmp_2 = x_s * tmp; end
x_m = N[Abs[x], $MachinePrecision]
x_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[t, -1.7e-290], N[(N[(x$95$m / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.2e-111], N[(x$95$m / N[(z * N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e+174], N[(x$95$m / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], N[(N[(x$95$m / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;t \leq -1.7 \cdot 10^{-290}:\\
\;\;\;\;\frac{\frac{x\_m}{y}}{t - z}\\
\mathbf{elif}\;t \leq 9.2 \cdot 10^{-111}:\\
\;\;\;\;\frac{x\_m}{z \cdot \left(z - y\right)}\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{+174}:\\
\;\;\;\;\frac{x\_m}{\left(y - z\right) \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x\_m}{t}}{y - z}\\
\end{array}
\end{array}
if t < -1.69999999999999992e-290Initial program 84.1%
Taylor expanded in y around inf 61.4%
associate-/r*69.7%
Simplified69.7%
if -1.69999999999999992e-290 < t < 9.2e-111Initial program 82.2%
*-commutative82.2%
sub-neg82.2%
distribute-lft-in75.8%
Applied egg-rr75.8%
Taylor expanded in t around 0 61.6%
associate-*r*61.6%
unpow261.6%
distribute-rgt-out65.9%
+-commutative65.9%
mul-1-neg65.9%
unsub-neg65.9%
Simplified65.9%
if 9.2e-111 < t < 5.4999999999999998e174Initial program 90.2%
Taylor expanded in t around inf 72.1%
if 5.4999999999999998e174 < t Initial program 83.5%
Taylor expanded in t around inf 83.5%
associate-/r*99.7%
Simplified99.7%
Final simplification73.0%
x_m = (fabs.f64 x) x_s = (copysign.f64 1 x) (FPCore (x_s x_m y z t) :precision binary64 (let* ((t_1 (/ x_m (* (- y z) (- t z))))) (* x_s (if (<= t_1 -5e-254) t_1 (/ (/ x_m (- t z)) (- y z))))))
x_m = fabs(x);
x_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double t_1 = x_m / ((y - z) * (t - z));
double tmp;
if (t_1 <= -5e-254) {
tmp = t_1;
} else {
tmp = (x_m / (t - z)) / (y - z);
}
return x_s * tmp;
}
x_m = abs(x)
x_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
real(8), intent (in) :: x_m
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_m / ((y - z) * (t - z))
if (t_1 <= (-5d-254)) then
tmp = t_1
else
tmp = (x_m / (t - z)) / (y - z)
end if
code = x_s * tmp
end function
x_m = Math.abs(x);
x_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double t_1 = x_m / ((y - z) * (t - z));
double tmp;
if (t_1 <= -5e-254) {
tmp = t_1;
} else {
tmp = (x_m / (t - z)) / (y - z);
}
return x_s * tmp;
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): t_1 = x_m / ((y - z) * (t - z)) tmp = 0 if t_1 <= -5e-254: tmp = t_1 else: tmp = (x_m / (t - z)) / (y - z) return x_s * tmp
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) t_1 = Float64(x_m / Float64(Float64(y - z) * Float64(t - z))) tmp = 0.0 if (t_1 <= -5e-254) tmp = t_1; else tmp = Float64(Float64(x_m / Float64(t - z)) / Float64(y - z)); end return Float64(x_s * tmp) end
x_m = abs(x); x_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) t_1 = x_m / ((y - z) * (t - z)); tmp = 0.0; if (t_1 <= -5e-254) tmp = t_1; else tmp = (x_m / (t - z)) / (y - z); end tmp_2 = x_s * tmp; end
x_m = N[Abs[x], $MachinePrecision]
x_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(x$95$m / N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[t$95$1, -5e-254], t$95$1, N[(N[(x$95$m / N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
\begin{array}{l}
t_1 := \frac{x\_m}{\left(y - z\right) \cdot \left(t - z\right)}\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-254}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x\_m}{t - z}}{y - z}\\
\end{array}
\end{array}
\end{array}
if (/.f64 x (*.f64 (-.f64 y z) (-.f64 t z))) < -5.0000000000000003e-254Initial program 96.5%
if -5.0000000000000003e-254 < (/.f64 x (*.f64 (-.f64 y z) (-.f64 t z))) Initial program 82.0%
associate-/l/97.5%
Simplified97.5%
Final simplification97.3%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= t -1.75e-151)
(/ (/ x_m y) t)
(if (<= t 6.9e-146) (* (/ -1.0 z) (/ x_m y)) (/ x_m (* (- y z) t))))))x_m = fabs(x);
x_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (t <= -1.75e-151) {
tmp = (x_m / y) / t;
} else if (t <= 6.9e-146) {
tmp = (-1.0 / z) * (x_m / y);
} else {
tmp = x_m / ((y - z) * t);
}
return x_s * tmp;
}
x_m = abs(x)
x_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (t <= (-1.75d-151)) then
tmp = (x_m / y) / t
else if (t <= 6.9d-146) then
tmp = ((-1.0d0) / z) * (x_m / y)
else
tmp = x_m / ((y - z) * t)
end if
code = x_s * tmp
end function
x_m = Math.abs(x);
x_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (t <= -1.75e-151) {
tmp = (x_m / y) / t;
} else if (t <= 6.9e-146) {
tmp = (-1.0 / z) * (x_m / y);
} else {
tmp = x_m / ((y - z) * t);
}
return x_s * tmp;
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): tmp = 0 if t <= -1.75e-151: tmp = (x_m / y) / t elif t <= 6.9e-146: tmp = (-1.0 / z) * (x_m / y) else: tmp = x_m / ((y - z) * t) return x_s * tmp
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if (t <= -1.75e-151) tmp = Float64(Float64(x_m / y) / t); elseif (t <= 6.9e-146) tmp = Float64(Float64(-1.0 / z) * Float64(x_m / y)); else tmp = Float64(x_m / Float64(Float64(y - z) * t)); end return Float64(x_s * tmp) end
x_m = abs(x); x_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) tmp = 0.0; if (t <= -1.75e-151) tmp = (x_m / y) / t; elseif (t <= 6.9e-146) tmp = (-1.0 / z) * (x_m / y); else tmp = x_m / ((y - z) * t); end tmp_2 = x_s * tmp; end
x_m = N[Abs[x], $MachinePrecision]
x_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[t, -1.75e-151], N[(N[(x$95$m / y), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[t, 6.9e-146], N[(N[(-1.0 / z), $MachinePrecision] * N[(x$95$m / y), $MachinePrecision]), $MachinePrecision], N[(x$95$m / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;t \leq -1.75 \cdot 10^{-151}:\\
\;\;\;\;\frac{\frac{x\_m}{y}}{t}\\
\mathbf{elif}\;t \leq 6.9 \cdot 10^{-146}:\\
\;\;\;\;\frac{-1}{z} \cdot \frac{x\_m}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x\_m}{\left(y - z\right) \cdot t}\\
\end{array}
\end{array}
if t < -1.74999999999999998e-151Initial program 81.3%
associate-/r*98.7%
div-inv98.6%
Applied egg-rr98.6%
*-commutative98.6%
clear-num98.5%
un-div-inv98.5%
Applied egg-rr98.5%
Taylor expanded in z around 0 52.3%
associate-/l/60.0%
Simplified60.0%
if -1.74999999999999998e-151 < t < 6.9000000000000002e-146Initial program 85.4%
associate-/l/96.9%
Simplified96.9%
Taylor expanded in t around 0 86.6%
associate-*r/86.6%
neg-mul-186.6%
Simplified86.6%
div-inv86.4%
associate-/l*77.1%
add-sqr-sqrt42.9%
sqrt-unprod46.8%
sqr-neg46.8%
sqrt-unprod11.6%
add-sqr-sqrt28.0%
Applied egg-rr28.0%
associate-/r*28.0%
associate-*r/28.0%
*-rgt-identity28.0%
Simplified28.0%
Taylor expanded in z around 0 21.8%
*-commutative21.8%
Simplified21.8%
frac-2neg21.8%
neg-mul-121.8%
distribute-rgt-neg-out21.8%
times-frac18.6%
add-sqr-sqrt7.6%
sqrt-unprod26.7%
sqr-neg26.7%
sqrt-unprod26.6%
add-sqr-sqrt57.1%
Applied egg-rr57.1%
if 6.9000000000000002e-146 < t Initial program 88.3%
Taylor expanded in t around inf 72.4%
Final simplification64.3%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= t -3e-151)
(/ (/ x_m y) t)
(if (<= t 8.5e-111) (/ x_m (* z (- z y))) (/ x_m (* (- y z) t))))))x_m = fabs(x);
x_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (t <= -3e-151) {
tmp = (x_m / y) / t;
} else if (t <= 8.5e-111) {
tmp = x_m / (z * (z - y));
} else {
tmp = x_m / ((y - z) * t);
}
return x_s * tmp;
}
x_m = abs(x)
x_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (t <= (-3d-151)) then
tmp = (x_m / y) / t
else if (t <= 8.5d-111) then
tmp = x_m / (z * (z - y))
else
tmp = x_m / ((y - z) * t)
end if
code = x_s * tmp
end function
x_m = Math.abs(x);
x_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (t <= -3e-151) {
tmp = (x_m / y) / t;
} else if (t <= 8.5e-111) {
tmp = x_m / (z * (z - y));
} else {
tmp = x_m / ((y - z) * t);
}
return x_s * tmp;
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): tmp = 0 if t <= -3e-151: tmp = (x_m / y) / t elif t <= 8.5e-111: tmp = x_m / (z * (z - y)) else: tmp = x_m / ((y - z) * t) return x_s * tmp
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if (t <= -3e-151) tmp = Float64(Float64(x_m / y) / t); elseif (t <= 8.5e-111) tmp = Float64(x_m / Float64(z * Float64(z - y))); else tmp = Float64(x_m / Float64(Float64(y - z) * t)); end return Float64(x_s * tmp) end
x_m = abs(x); x_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) tmp = 0.0; if (t <= -3e-151) tmp = (x_m / y) / t; elseif (t <= 8.5e-111) tmp = x_m / (z * (z - y)); else tmp = x_m / ((y - z) * t); end tmp_2 = x_s * tmp; end
x_m = N[Abs[x], $MachinePrecision]
x_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[t, -3e-151], N[(N[(x$95$m / y), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[t, 8.5e-111], N[(x$95$m / N[(z * N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x$95$m / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;t \leq -3 \cdot 10^{-151}:\\
\;\;\;\;\frac{\frac{x\_m}{y}}{t}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-111}:\\
\;\;\;\;\frac{x\_m}{z \cdot \left(z - y\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x\_m}{\left(y - z\right) \cdot t}\\
\end{array}
\end{array}
if t < -3e-151Initial program 81.3%
associate-/r*98.7%
div-inv98.6%
Applied egg-rr98.6%
*-commutative98.6%
clear-num98.5%
un-div-inv98.5%
Applied egg-rr98.5%
Taylor expanded in z around 0 52.3%
associate-/l/60.0%
Simplified60.0%
if -3e-151 < t < 8.5000000000000003e-111Initial program 86.0%
*-commutative86.0%
sub-neg86.0%
distribute-lft-in79.3%
Applied egg-rr79.3%
Taylor expanded in t around 0 67.6%
associate-*r*67.6%
unpow267.6%
distribute-rgt-out73.0%
+-commutative73.0%
mul-1-neg73.0%
unsub-neg73.0%
Simplified73.0%
if 8.5000000000000003e-111 < t Initial program 88.1%
Taylor expanded in t around inf 75.6%
Final simplification69.6%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= t -1.2e-186)
(/ x_m (* y (- t z)))
(if (<= t 4.5e-112) (/ x_m (* z (- z y))) (/ x_m (* (- y z) t))))))x_m = fabs(x);
x_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (t <= -1.2e-186) {
tmp = x_m / (y * (t - z));
} else if (t <= 4.5e-112) {
tmp = x_m / (z * (z - y));
} else {
tmp = x_m / ((y - z) * t);
}
return x_s * tmp;
}
x_m = abs(x)
x_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (t <= (-1.2d-186)) then
tmp = x_m / (y * (t - z))
else if (t <= 4.5d-112) then
tmp = x_m / (z * (z - y))
else
tmp = x_m / ((y - z) * t)
end if
code = x_s * tmp
end function
x_m = Math.abs(x);
x_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (t <= -1.2e-186) {
tmp = x_m / (y * (t - z));
} else if (t <= 4.5e-112) {
tmp = x_m / (z * (z - y));
} else {
tmp = x_m / ((y - z) * t);
}
return x_s * tmp;
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): tmp = 0 if t <= -1.2e-186: tmp = x_m / (y * (t - z)) elif t <= 4.5e-112: tmp = x_m / (z * (z - y)) else: tmp = x_m / ((y - z) * t) return x_s * tmp
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if (t <= -1.2e-186) tmp = Float64(x_m / Float64(y * Float64(t - z))); elseif (t <= 4.5e-112) tmp = Float64(x_m / Float64(z * Float64(z - y))); else tmp = Float64(x_m / Float64(Float64(y - z) * t)); end return Float64(x_s * tmp) end
x_m = abs(x); x_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) tmp = 0.0; if (t <= -1.2e-186) tmp = x_m / (y * (t - z)); elseif (t <= 4.5e-112) tmp = x_m / (z * (z - y)); else tmp = x_m / ((y - z) * t); end tmp_2 = x_s * tmp; end
x_m = N[Abs[x], $MachinePrecision]
x_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[t, -1.2e-186], N[(x$95$m / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.5e-112], N[(x$95$m / N[(z * N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x$95$m / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;t \leq -1.2 \cdot 10^{-186}:\\
\;\;\;\;\frac{x\_m}{y \cdot \left(t - z\right)}\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-112}:\\
\;\;\;\;\frac{x\_m}{z \cdot \left(z - y\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x\_m}{\left(y - z\right) \cdot t}\\
\end{array}
\end{array}
if t < -1.20000000000000002e-186Initial program 83.4%
Taylor expanded in y around inf 61.9%
*-commutative61.9%
Simplified61.9%
if -1.20000000000000002e-186 < t < 4.50000000000000012e-112Initial program 83.2%
*-commutative83.2%
sub-neg83.2%
distribute-lft-in76.6%
Applied egg-rr76.6%
Taylor expanded in t around 0 65.7%
associate-*r*65.7%
unpow265.7%
distribute-rgt-out70.6%
+-commutative70.6%
mul-1-neg70.6%
unsub-neg70.6%
Simplified70.6%
if 4.50000000000000012e-112 < t Initial program 88.4%
Taylor expanded in t around inf 74.2%
Final simplification68.6%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (or (<= z -8e-106) (not (<= z 7.8e+94)))
(/ x_m (* z (- t)))
(/ (/ x_m y) t))))x_m = fabs(x);
x_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if ((z <= -8e-106) || !(z <= 7.8e+94)) {
tmp = x_m / (z * -t);
} else {
tmp = (x_m / y) / t;
}
return x_s * tmp;
}
x_m = abs(x)
x_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((z <= (-8d-106)) .or. (.not. (z <= 7.8d+94))) then
tmp = x_m / (z * -t)
else
tmp = (x_m / y) / t
end if
code = x_s * tmp
end function
x_m = Math.abs(x);
x_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if ((z <= -8e-106) || !(z <= 7.8e+94)) {
tmp = x_m / (z * -t);
} else {
tmp = (x_m / y) / t;
}
return x_s * tmp;
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): tmp = 0 if (z <= -8e-106) or not (z <= 7.8e+94): tmp = x_m / (z * -t) else: tmp = (x_m / y) / t return x_s * tmp
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if ((z <= -8e-106) || !(z <= 7.8e+94)) tmp = Float64(x_m / Float64(z * Float64(-t))); else tmp = Float64(Float64(x_m / y) / t); end return Float64(x_s * tmp) end
x_m = abs(x); x_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) tmp = 0.0; if ((z <= -8e-106) || ~((z <= 7.8e+94))) tmp = x_m / (z * -t); else tmp = (x_m / y) / t; end tmp_2 = x_s * tmp; end
x_m = N[Abs[x], $MachinePrecision]
x_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[Or[LessEqual[z, -8e-106], N[Not[LessEqual[z, 7.8e+94]], $MachinePrecision]], N[(x$95$m / N[(z * (-t)), $MachinePrecision]), $MachinePrecision], N[(N[(x$95$m / y), $MachinePrecision] / t), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;z \leq -8 \cdot 10^{-106} \lor \neg \left(z \leq 7.8 \cdot 10^{+94}\right):\\
\;\;\;\;\frac{x\_m}{z \cdot \left(-t\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x\_m}{y}}{t}\\
\end{array}
\end{array}
if z < -7.99999999999999953e-106 or 7.79999999999999971e94 < z Initial program 81.2%
Taylor expanded in t around inf 48.3%
associate-/r*47.4%
Simplified47.4%
div-inv47.4%
associate-/l*46.1%
Applied egg-rr46.1%
Taylor expanded in y around 0 43.8%
mul-1-neg43.8%
distribute-frac-neg43.8%
*-commutative43.8%
Simplified43.8%
if -7.99999999999999953e-106 < z < 7.79999999999999971e94Initial program 89.3%
associate-/r*96.7%
div-inv96.6%
Applied egg-rr96.6%
*-commutative96.6%
clear-num96.5%
un-div-inv96.6%
Applied egg-rr96.6%
Taylor expanded in z around 0 60.9%
associate-/l/68.5%
Simplified68.5%
Final simplification56.0%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (or (<= z -3.4e+88) (not (<= z 7.8e+93)))
(/ x_m (* y z))
(/ x_m (* y t)))))x_m = fabs(x);
x_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if ((z <= -3.4e+88) || !(z <= 7.8e+93)) {
tmp = x_m / (y * z);
} else {
tmp = x_m / (y * t);
}
return x_s * tmp;
}
x_m = abs(x)
x_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((z <= (-3.4d+88)) .or. (.not. (z <= 7.8d+93))) then
tmp = x_m / (y * z)
else
tmp = x_m / (y * t)
end if
code = x_s * tmp
end function
x_m = Math.abs(x);
x_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if ((z <= -3.4e+88) || !(z <= 7.8e+93)) {
tmp = x_m / (y * z);
} else {
tmp = x_m / (y * t);
}
return x_s * tmp;
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): tmp = 0 if (z <= -3.4e+88) or not (z <= 7.8e+93): tmp = x_m / (y * z) else: tmp = x_m / (y * t) return x_s * tmp
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if ((z <= -3.4e+88) || !(z <= 7.8e+93)) tmp = Float64(x_m / Float64(y * z)); else tmp = Float64(x_m / Float64(y * t)); end return Float64(x_s * tmp) end
x_m = abs(x); x_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) tmp = 0.0; if ((z <= -3.4e+88) || ~((z <= 7.8e+93))) tmp = x_m / (y * z); else tmp = x_m / (y * t); end tmp_2 = x_s * tmp; end
x_m = N[Abs[x], $MachinePrecision]
x_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[Or[LessEqual[z, -3.4e+88], N[Not[LessEqual[z, 7.8e+93]], $MachinePrecision]], N[(x$95$m / N[(y * z), $MachinePrecision]), $MachinePrecision], N[(x$95$m / N[(y * t), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;z \leq -3.4 \cdot 10^{+88} \lor \neg \left(z \leq 7.8 \cdot 10^{+93}\right):\\
\;\;\;\;\frac{x\_m}{y \cdot z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x\_m}{y \cdot t}\\
\end{array}
\end{array}
if z < -3.40000000000000004e88 or 7.8000000000000005e93 < z Initial program 77.2%
associate-/l/99.9%
Simplified99.9%
Taylor expanded in t around 0 95.0%
associate-*r/95.0%
neg-mul-195.0%
Simplified95.0%
div-inv94.9%
associate-/l*74.8%
add-sqr-sqrt43.6%
sqrt-unprod69.4%
sqr-neg69.4%
sqrt-unprod28.2%
add-sqr-sqrt69.3%
Applied egg-rr69.3%
associate-/r*70.3%
associate-*r/70.3%
*-rgt-identity70.3%
Simplified70.3%
Taylor expanded in z around 0 42.8%
*-commutative42.8%
Simplified42.8%
if -3.40000000000000004e88 < z < 7.8000000000000005e93Initial program 89.8%
Taylor expanded in z around 0 53.2%
Final simplification49.4%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (or (<= z -1.7e+136) (not (<= z 1.05e+113)))
(/ x_m (* y z))
(/ (/ x_m t) y))))x_m = fabs(x);
x_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if ((z <= -1.7e+136) || !(z <= 1.05e+113)) {
tmp = x_m / (y * z);
} else {
tmp = (x_m / t) / y;
}
return x_s * tmp;
}
x_m = abs(x)
x_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((z <= (-1.7d+136)) .or. (.not. (z <= 1.05d+113))) then
tmp = x_m / (y * z)
else
tmp = (x_m / t) / y
end if
code = x_s * tmp
end function
x_m = Math.abs(x);
x_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if ((z <= -1.7e+136) || !(z <= 1.05e+113)) {
tmp = x_m / (y * z);
} else {
tmp = (x_m / t) / y;
}
return x_s * tmp;
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): tmp = 0 if (z <= -1.7e+136) or not (z <= 1.05e+113): tmp = x_m / (y * z) else: tmp = (x_m / t) / y return x_s * tmp
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if ((z <= -1.7e+136) || !(z <= 1.05e+113)) tmp = Float64(x_m / Float64(y * z)); else tmp = Float64(Float64(x_m / t) / y); end return Float64(x_s * tmp) end
x_m = abs(x); x_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) tmp = 0.0; if ((z <= -1.7e+136) || ~((z <= 1.05e+113))) tmp = x_m / (y * z); else tmp = (x_m / t) / y; end tmp_2 = x_s * tmp; end
x_m = N[Abs[x], $MachinePrecision]
x_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[Or[LessEqual[z, -1.7e+136], N[Not[LessEqual[z, 1.05e+113]], $MachinePrecision]], N[(x$95$m / N[(y * z), $MachinePrecision]), $MachinePrecision], N[(N[(x$95$m / t), $MachinePrecision] / y), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;z \leq -1.7 \cdot 10^{+136} \lor \neg \left(z \leq 1.05 \cdot 10^{+113}\right):\\
\;\;\;\;\frac{x\_m}{y \cdot z}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x\_m}{t}}{y}\\
\end{array}
\end{array}
if z < -1.69999999999999998e136 or 1.0499999999999999e113 < z Initial program 76.3%
associate-/l/99.9%
Simplified99.9%
Taylor expanded in t around 0 96.6%
associate-*r/96.6%
neg-mul-196.6%
Simplified96.6%
div-inv96.4%
associate-/l*75.7%
add-sqr-sqrt44.9%
sqrt-unprod70.7%
sqr-neg70.7%
sqrt-unprod28.6%
add-sqr-sqrt71.8%
Applied egg-rr71.8%
associate-/r*71.8%
associate-*r/71.8%
*-rgt-identity71.8%
Simplified71.8%
Taylor expanded in z around 0 43.8%
*-commutative43.8%
Simplified43.8%
if -1.69999999999999998e136 < z < 1.0499999999999999e113Initial program 89.4%
Taylor expanded in x around 0 89.4%
associate-/l/96.0%
Simplified96.0%
Taylor expanded in z around 0 50.6%
associate-/r*56.1%
Simplified56.1%
Final simplification52.2%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= z -6.6e+136)
(/ x_m (* y z))
(if (<= z 6.8e+95) (/ (/ x_m t) y) (/ (/ x_m z) y)))))x_m = fabs(x);
x_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (z <= -6.6e+136) {
tmp = x_m / (y * z);
} else if (z <= 6.8e+95) {
tmp = (x_m / t) / y;
} else {
tmp = (x_m / z) / y;
}
return x_s * tmp;
}
x_m = abs(x)
x_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (z <= (-6.6d+136)) then
tmp = x_m / (y * z)
else if (z <= 6.8d+95) then
tmp = (x_m / t) / y
else
tmp = (x_m / z) / y
end if
code = x_s * tmp
end function
x_m = Math.abs(x);
x_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (z <= -6.6e+136) {
tmp = x_m / (y * z);
} else if (z <= 6.8e+95) {
tmp = (x_m / t) / y;
} else {
tmp = (x_m / z) / y;
}
return x_s * tmp;
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): tmp = 0 if z <= -6.6e+136: tmp = x_m / (y * z) elif z <= 6.8e+95: tmp = (x_m / t) / y else: tmp = (x_m / z) / y return x_s * tmp
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if (z <= -6.6e+136) tmp = Float64(x_m / Float64(y * z)); elseif (z <= 6.8e+95) tmp = Float64(Float64(x_m / t) / y); else tmp = Float64(Float64(x_m / z) / y); end return Float64(x_s * tmp) end
x_m = abs(x); x_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) tmp = 0.0; if (z <= -6.6e+136) tmp = x_m / (y * z); elseif (z <= 6.8e+95) tmp = (x_m / t) / y; else tmp = (x_m / z) / y; end tmp_2 = x_s * tmp; end
x_m = N[Abs[x], $MachinePrecision]
x_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[z, -6.6e+136], N[(x$95$m / N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.8e+95], N[(N[(x$95$m / t), $MachinePrecision] / y), $MachinePrecision], N[(N[(x$95$m / z), $MachinePrecision] / y), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;z \leq -6.6 \cdot 10^{+136}:\\
\;\;\;\;\frac{x\_m}{y \cdot z}\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{+95}:\\
\;\;\;\;\frac{\frac{x\_m}{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x\_m}{z}}{y}\\
\end{array}
\end{array}
if z < -6.59999999999999984e136Initial program 77.9%
associate-/l/99.9%
Simplified99.9%
Taylor expanded in t around 0 99.9%
associate-*r/99.9%
neg-mul-199.9%
Simplified99.9%
div-inv99.8%
associate-/l*77.8%
add-sqr-sqrt45.1%
sqrt-unprod73.9%
sqr-neg73.9%
sqrt-unprod32.8%
add-sqr-sqrt75.1%
Applied egg-rr75.1%
associate-/r*75.1%
associate-*r/75.1%
*-rgt-identity75.1%
Simplified75.1%
Taylor expanded in z around 0 45.0%
*-commutative45.0%
Simplified45.0%
if -6.59999999999999984e136 < z < 6.80000000000000043e95Initial program 89.1%
Taylor expanded in x around 0 89.1%
associate-/l/95.9%
Simplified95.9%
Taylor expanded in z around 0 51.7%
associate-/r*57.4%
Simplified57.4%
if 6.80000000000000043e95 < z Initial program 77.5%
associate-/l/99.9%
Simplified99.9%
Taylor expanded in t around 0 93.0%
associate-*r/93.0%
neg-mul-193.0%
Simplified93.0%
div-inv92.9%
associate-/l*74.9%
add-sqr-sqrt42.6%
sqrt-unprod69.7%
sqr-neg69.7%
sqrt-unprod28.8%
add-sqr-sqrt68.7%
Applied egg-rr68.7%
associate-/r*68.8%
associate-*r/68.8%
*-rgt-identity68.8%
Simplified68.8%
Taylor expanded in z around 0 44.7%
*-commutative44.7%
Simplified44.7%
Taylor expanded in x around 0 44.7%
*-commutative44.7%
associate-/r*48.2%
Simplified48.2%
Final simplification53.9%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= z -4.2e-51)
(/ x_m (- (* y z)))
(if (<= z 2.7e+96) (/ (/ x_m y) t) (/ (/ x_m z) y)))))x_m = fabs(x);
x_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (z <= -4.2e-51) {
tmp = x_m / -(y * z);
} else if (z <= 2.7e+96) {
tmp = (x_m / y) / t;
} else {
tmp = (x_m / z) / y;
}
return x_s * tmp;
}
x_m = abs(x)
x_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (z <= (-4.2d-51)) then
tmp = x_m / -(y * z)
else if (z <= 2.7d+96) then
tmp = (x_m / y) / t
else
tmp = (x_m / z) / y
end if
code = x_s * tmp
end function
x_m = Math.abs(x);
x_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (z <= -4.2e-51) {
tmp = x_m / -(y * z);
} else if (z <= 2.7e+96) {
tmp = (x_m / y) / t;
} else {
tmp = (x_m / z) / y;
}
return x_s * tmp;
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): tmp = 0 if z <= -4.2e-51: tmp = x_m / -(y * z) elif z <= 2.7e+96: tmp = (x_m / y) / t else: tmp = (x_m / z) / y return x_s * tmp
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if (z <= -4.2e-51) tmp = Float64(x_m / Float64(-Float64(y * z))); elseif (z <= 2.7e+96) tmp = Float64(Float64(x_m / y) / t); else tmp = Float64(Float64(x_m / z) / y); end return Float64(x_s * tmp) end
x_m = abs(x); x_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) tmp = 0.0; if (z <= -4.2e-51) tmp = x_m / -(y * z); elseif (z <= 2.7e+96) tmp = (x_m / y) / t; else tmp = (x_m / z) / y; end tmp_2 = x_s * tmp; end
x_m = N[Abs[x], $MachinePrecision]
x_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[z, -4.2e-51], N[(x$95$m / (-N[(y * z), $MachinePrecision])), $MachinePrecision], If[LessEqual[z, 2.7e+96], N[(N[(x$95$m / y), $MachinePrecision] / t), $MachinePrecision], N[(N[(x$95$m / z), $MachinePrecision] / y), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;z \leq -4.2 \cdot 10^{-51}:\\
\;\;\;\;\frac{x\_m}{-y \cdot z}\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{+96}:\\
\;\;\;\;\frac{\frac{x\_m}{y}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x\_m}{z}}{y}\\
\end{array}
\end{array}
if z < -4.20000000000000003e-51Initial program 82.6%
associate-/l/98.4%
Simplified98.4%
Taylor expanded in t around 0 85.4%
associate-*r/85.4%
neg-mul-185.4%
Simplified85.4%
Taylor expanded in z around 0 36.8%
mul-1-neg36.8%
distribute-neg-frac236.8%
*-commutative36.8%
distribute-rgt-neg-out36.8%
Simplified36.8%
if -4.20000000000000003e-51 < z < 2.70000000000000022e96Initial program 89.4%
associate-/r*96.2%
div-inv96.2%
Applied egg-rr96.2%
*-commutative96.2%
clear-num96.1%
un-div-inv96.2%
Applied egg-rr96.2%
Taylor expanded in z around 0 57.6%
associate-/l/64.7%
Simplified64.7%
if 2.70000000000000022e96 < z Initial program 77.5%
associate-/l/99.9%
Simplified99.9%
Taylor expanded in t around 0 93.0%
associate-*r/93.0%
neg-mul-193.0%
Simplified93.0%
div-inv92.9%
associate-/l*74.9%
add-sqr-sqrt42.6%
sqrt-unprod69.7%
sqr-neg69.7%
sqrt-unprod28.8%
add-sqr-sqrt68.7%
Applied egg-rr68.7%
associate-/r*68.8%
associate-*r/68.8%
*-rgt-identity68.8%
Simplified68.8%
Taylor expanded in z around 0 44.7%
*-commutative44.7%
Simplified44.7%
Taylor expanded in x around 0 44.7%
*-commutative44.7%
associate-/r*48.2%
Simplified48.2%
Final simplification54.2%
x_m = (fabs.f64 x) x_s = (copysign.f64 1 x) (FPCore (x_s x_m y z t) :precision binary64 (* x_s (if (<= y -5.2e-63) (/ (/ x_m y) (- t z)) (/ (/ x_m z) (- z t)))))
x_m = fabs(x);
x_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (y <= -5.2e-63) {
tmp = (x_m / y) / (t - z);
} else {
tmp = (x_m / z) / (z - t);
}
return x_s * tmp;
}
x_m = abs(x)
x_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-5.2d-63)) then
tmp = (x_m / y) / (t - z)
else
tmp = (x_m / z) / (z - t)
end if
code = x_s * tmp
end function
x_m = Math.abs(x);
x_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (y <= -5.2e-63) {
tmp = (x_m / y) / (t - z);
} else {
tmp = (x_m / z) / (z - t);
}
return x_s * tmp;
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): tmp = 0 if y <= -5.2e-63: tmp = (x_m / y) / (t - z) else: tmp = (x_m / z) / (z - t) return x_s * tmp
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if (y <= -5.2e-63) tmp = Float64(Float64(x_m / y) / Float64(t - z)); else tmp = Float64(Float64(x_m / z) / Float64(z - t)); end return Float64(x_s * tmp) end
x_m = abs(x); x_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) tmp = 0.0; if (y <= -5.2e-63) tmp = (x_m / y) / (t - z); else tmp = (x_m / z) / (z - t); end tmp_2 = x_s * tmp; end
x_m = N[Abs[x], $MachinePrecision]
x_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[y, -5.2e-63], N[(N[(x$95$m / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], N[(N[(x$95$m / z), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;y \leq -5.2 \cdot 10^{-63}:\\
\;\;\;\;\frac{\frac{x\_m}{y}}{t - z}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x\_m}{z}}{z - t}\\
\end{array}
\end{array}
if y < -5.2000000000000003e-63Initial program 81.8%
Taylor expanded in y around inf 77.1%
associate-/r*85.0%
Simplified85.0%
if -5.2000000000000003e-63 < y Initial program 86.7%
Taylor expanded in x around 0 86.7%
associate-/l/97.1%
Simplified97.1%
Taylor expanded in y around 0 60.5%
mul-1-neg60.5%
associate-/r*64.8%
distribute-neg-frac264.8%
neg-sub064.8%
associate--r-64.8%
neg-sub064.8%
Simplified64.8%
Final simplification71.1%
x_m = (fabs.f64 x) x_s = (copysign.f64 1 x) (FPCore (x_s x_m y z t) :precision binary64 (* x_s (/ x_m (* y t))))
x_m = fabs(x);
x_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
return x_s * (x_m / (y * t));
}
x_m = abs(x)
x_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x_s * (x_m / (y * t))
end function
x_m = Math.abs(x);
x_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
return x_s * (x_m / (y * t));
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): return x_s * (x_m / (y * t))
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) return Float64(x_s * Float64(x_m / Float64(y * t))) end
x_m = abs(x); x_s = sign(x) * abs(1.0); function tmp = code(x_s, x_m, y, z, t) tmp = x_s * (x_m / (y * t)); end
x_m = N[Abs[x], $MachinePrecision]
x_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * N[(x$95$m / N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \frac{x\_m}{y \cdot t}
\end{array}
Initial program 85.2%
Taylor expanded in z around 0 40.8%
Final simplification40.8%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* (- y z) (- t z)))) (if (< (/ x t_1) 0.0) (/ (/ x (- y z)) (- t z)) (* x (/ 1.0 t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = (y - z) * (t - z);
double tmp;
if ((x / t_1) < 0.0) {
tmp = (x / (y - z)) / (t - z);
} else {
tmp = x * (1.0 / 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 = (y - z) * (t - z)
if ((x / t_1) < 0.0d0) then
tmp = (x / (y - z)) / (t - z)
else
tmp = x * (1.0d0 / t_1)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (y - z) * (t - z);
double tmp;
if ((x / t_1) < 0.0) {
tmp = (x / (y - z)) / (t - z);
} else {
tmp = x * (1.0 / t_1);
}
return tmp;
}
def code(x, y, z, t): t_1 = (y - z) * (t - z) tmp = 0 if (x / t_1) < 0.0: tmp = (x / (y - z)) / (t - z) else: tmp = x * (1.0 / t_1) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(y - z) * Float64(t - z)) tmp = 0.0 if (Float64(x / t_1) < 0.0) tmp = Float64(Float64(x / Float64(y - z)) / Float64(t - z)); else tmp = Float64(x * Float64(1.0 / t_1)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (y - z) * (t - z); tmp = 0.0; if ((x / t_1) < 0.0) tmp = (x / (y - z)) / (t - z); else tmp = x * (1.0 / t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[Less[N[(x / t$95$1), $MachinePrecision], 0.0], N[(N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - z\right) \cdot \left(t - z\right)\\
\mathbf{if}\;\frac{x}{t\_1} < 0:\\
\;\;\;\;\frac{\frac{x}{y - z}}{t - z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1}{t\_1}\\
\end{array}
\end{array}
herbie shell --seed 2024039
(FPCore (x y z t)
:name "Data.Random.Distribution.Triangular:triangularCDF from random-fu-0.2.6.2, B"
:precision binary64
:herbie-target
(if (< (/ x (* (- y z) (- t z))) 0.0) (/ (/ x (- y z)) (- t z)) (* x (/ 1.0 (* (- y z) (- t z)))))
(/ x (* (- y z) (- t z))))