\[\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\]
↓
\[\left(\left(\left(x + -0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \left(\frac{z}{x} \cdot \left(z \cdot y\right) + \left(\frac{0.083333333333333}{x} + \frac{\mathsf{fma}\left(0.0007936500793651, z, -0.0027777777777778\right)}{\frac{x}{z}}\right)\right)
\]
(FPCore (x y z)
:precision binary64
(+
(+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)
(/
(+
(* (- (* (+ y 0.0007936500793651) z) 0.0027777777777778) z)
0.083333333333333)
x)))↓
(FPCore (x y z)
:precision binary64
(+
(+ (- (* (+ x -0.5) (log x)) x) 0.91893853320467)
(+
(* (/ z x) (* z y))
(+
(/ 0.083333333333333 x)
(/ (fma 0.0007936500793651 z -0.0027777777777778) (/ x z))))))double code(double x, double y, double z) {
return ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
}
↓
double code(double x, double y, double z) {
return ((((x + -0.5) * log(x)) - x) + 0.91893853320467) + (((z / x) * (z * y)) + ((0.083333333333333 / x) + (fma(0.0007936500793651, z, -0.0027777777777778) / (x / z))));
}
function code(x, y, z)
return Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) + Float64(Float64(Float64(Float64(Float64(Float64(y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x))
end
↓
function code(x, y, z)
return Float64(Float64(Float64(Float64(Float64(x + -0.5) * log(x)) - x) + 0.91893853320467) + Float64(Float64(Float64(z / x) * Float64(z * y)) + Float64(Float64(0.083333333333333 / x) + Float64(fma(0.0007936500793651, z, -0.0027777777777778) / Float64(x / z)))))
end
code[x_, y_, z_] := N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision] + N[(N[(N[(N[(N[(N[(y + 0.0007936500793651), $MachinePrecision] * z), $MachinePrecision] - 0.0027777777777778), $MachinePrecision] * z), $MachinePrecision] + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_] := N[(N[(N[(N[(N[(x + -0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision] + N[(N[(N[(z / x), $MachinePrecision] * N[(z * y), $MachinePrecision]), $MachinePrecision] + N[(N[(0.083333333333333 / x), $MachinePrecision] + N[(N[(0.0007936500793651 * z + -0.0027777777777778), $MachinePrecision] / N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
↓
\left(\left(\left(x + -0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \left(\frac{z}{x} \cdot \left(z \cdot y\right) + \left(\frac{0.083333333333333}{x} + \frac{\mathsf{fma}\left(0.0007936500793651, z, -0.0027777777777778\right)}{\frac{x}{z}}\right)\right)
Alternatives
| Alternative 1 |
|---|
| Error | 3.4 |
|---|
| Cost | 9417 |
|---|
\[\begin{array}{l}
t_0 := \left(\left(x + -0.5\right) \cdot \log x - x\right) + 0.91893853320467\\
t_1 := z \cdot \left(-0.0027777777777778 + z \cdot \left(y + 0.0007936500793651\right)\right)\\
\mathbf{if}\;t_1 \leq -\infty \lor \neg \left(t_1 \leq 2 \cdot 10^{+253}\right):\\
\;\;\;\;t_0 + \left(\frac{z}{x} \cdot \left(z \cdot y\right) + \left(\frac{0.083333333333333}{x} + \frac{z \cdot -0.0027777777777778}{x}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_0 + \frac{0.083333333333333 + t_1}{x}\\
\end{array}
\]
| Alternative 2 |
|---|
| Error | 1.9 |
|---|
| Cost | 8256 |
|---|
\[\left(\left(\left(x + -0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \left(\frac{z}{x} \cdot \left(z \cdot y\right) + \left(\frac{0.083333333333333}{x} + z \cdot \frac{z}{\frac{x}{0.0007936500793651}}\right)\right)
\]
| Alternative 3 |
|---|
| Error | 2.7 |
|---|
| Cost | 8004 |
|---|
\[\begin{array}{l}
t_0 := 0.91893853320467 + x \cdot \left(\log x + -1\right)\\
\mathbf{if}\;x \leq 1150000000000:\\
\;\;\;\;\left(\left(\left(x + -0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{0.083333333333333 + z \cdot \left(-0.0027777777777778 + z \cdot \left(y + 0.0007936500793651\right)\right)}{x}\\
\mathbf{elif}\;x \leq 6 \cdot 10^{+199}:\\
\;\;\;\;t_0 + \frac{z \cdot z}{x} \cdot \left(y + 0.0007936500793651\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333}{x} + t_0\\
\end{array}
\]
| Alternative 4 |
|---|
| Error | 3.1 |
|---|
| Cost | 7880 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 0.000155:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(-0.0027777777777778 + z \cdot \left(y + 0.0007936500793651\right)\right)}{x} + \left(0.91893853320467 + \log x \cdot -0.5\right)\\
\mathbf{elif}\;x \leq 5.2 \cdot 10^{+199}:\\
\;\;\;\;\left(\left(\left(x + -0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{z \cdot z}{x} \cdot \left(y + 0.0007936500793651\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333}{x} + \left(0.91893853320467 + x \cdot \left(\log x + -1\right)\right)\\
\end{array}
\]
| Alternative 5 |
|---|
| Error | 3.6 |
|---|
| Cost | 7752 |
|---|
\[\begin{array}{l}
t_0 := 0.91893853320467 + x \cdot \left(\log x + -1\right)\\
\mathbf{if}\;x \leq 0.000155:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(-0.0027777777777778 + z \cdot \left(y + 0.0007936500793651\right)\right)}{x} + \left(0.91893853320467 - x\right)\\
\mathbf{elif}\;x \leq 5 \cdot 10^{+199}:\\
\;\;\;\;t_0 + \frac{z \cdot z}{x} \cdot \left(y + 0.0007936500793651\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333}{x} + t_0\\
\end{array}
\]
| Alternative 6 |
|---|
| Error | 3.3 |
|---|
| Cost | 7752 |
|---|
\[\begin{array}{l}
t_0 := 0.91893853320467 + x \cdot \left(\log x + -1\right)\\
\mathbf{if}\;x \leq 0.000155:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(-0.0027777777777778 + z \cdot \left(y + 0.0007936500793651\right)\right)}{x} + \left(0.91893853320467 + \log x \cdot -0.5\right)\\
\mathbf{elif}\;x \leq 10^{+200}:\\
\;\;\;\;t_0 + \frac{z \cdot z}{x} \cdot \left(y + 0.0007936500793651\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333}{x} + t_0\\
\end{array}
\]
| Alternative 7 |
|---|
| Error | 4.9 |
|---|
| Cost | 7624 |
|---|
\[\begin{array}{l}
t_0 := 0.91893853320467 + x \cdot \left(\log x + -1\right)\\
\mathbf{if}\;x \leq 18:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(-0.0027777777777778 + z \cdot \left(y + 0.0007936500793651\right)\right)}{x} + \left(0.91893853320467 - x\right)\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{+199}:\\
\;\;\;\;t_0 + \frac{y}{\frac{x}{z \cdot z}}\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333}{x} + t_0\\
\end{array}
\]
| Alternative 8 |
|---|
| Error | 6.6 |
|---|
| Cost | 7364 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 3.1 \cdot 10^{-19}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(-0.0027777777777778 + z \cdot \left(y + 0.0007936500793651\right)\right)}{x} + \left(0.91893853320467 - x\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(x + -0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{0.083333333333333}{x}\\
\end{array}
\]
| Alternative 9 |
|---|
| Error | 7.2 |
|---|
| Cost | 7236 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 10^{+20}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(-0.0027777777777778 + z \cdot \left(y + 0.0007936500793651\right)\right)}{x} + \left(0.91893853320467 - x\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333}{x} + \left(0.91893853320467 + x \cdot \left(\log x + -1\right)\right)\\
\end{array}
\]
| Alternative 10 |
|---|
| Error | 32.4 |
|---|
| Cost | 2121 |
|---|
\[\begin{array}{l}
t_0 := z \cdot \left(-0.0027777777777778 + z \cdot \left(y + 0.0007936500793651\right)\right)\\
\mathbf{if}\;t_0 \leq -50000000000 \lor \neg \left(t_0 \leq 7.2\right):\\
\;\;\;\;\frac{z \cdot z}{x} \cdot \left(y + 0.0007936500793651\right) + \left(0.91893853320467 - x\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333}{x} + \left(x + 0.91893853320467\right)\\
\end{array}
\]
| Alternative 11 |
|---|
| Error | 37.1 |
|---|
| Cost | 1100 |
|---|
\[\begin{array}{l}
t_0 := \left(0.91893853320467 - x\right) + 0.0007936500793651 \cdot \frac{z \cdot z}{x}\\
\mathbf{if}\;z \leq -3.75 \cdot 10^{+36}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 22.5:\\
\;\;\;\;\frac{0.083333333333333}{x} + \left(x + 0.91893853320467\right)\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{+154}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;x + \left(0.91893853320467 + \frac{0.083333333333333}{x}\right)\\
\end{array}
\]
| Alternative 12 |
|---|
| Error | 37.9 |
|---|
| Cost | 968 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -4.2 \cdot 10^{+36}:\\
\;\;\;\;\left(0.91893853320467 - x\right) + 0.0007936500793651 \cdot \frac{z \cdot z}{x}\\
\mathbf{elif}\;z \leq 15.6:\\
\;\;\;\;\frac{0.083333333333333}{x} + \left(x + 0.91893853320467\right)\\
\mathbf{else}:\\
\;\;\;\;\left(0.91893853320467 - x\right) + \frac{y}{\frac{x}{z \cdot z}}\\
\end{array}
\]
| Alternative 13 |
|---|
| Error | 37.2 |
|---|
| Cost | 968 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -3.1 \cdot 10^{+36}:\\
\;\;\;\;\left(0.91893853320467 - x\right) + \frac{z \cdot 0.0007936500793651}{\frac{x}{z}}\\
\mathbf{elif}\;z \leq 14.8:\\
\;\;\;\;\frac{0.083333333333333}{x} + \left(x + 0.91893853320467\right)\\
\mathbf{else}:\\
\;\;\;\;\left(0.91893853320467 - x\right) + \frac{y}{\frac{x}{z \cdot z}}\\
\end{array}
\]
| Alternative 14 |
|---|
| Error | 37.2 |
|---|
| Cost | 968 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -4.2 \cdot 10^{+36}:\\
\;\;\;\;\left(0.91893853320467 - x\right) + \frac{z \cdot 0.0007936500793651}{\frac{x}{z}}\\
\mathbf{elif}\;z \leq 0.75:\\
\;\;\;\;\frac{0.083333333333333}{x} + \left(x + 0.91893853320467\right)\\
\mathbf{else}:\\
\;\;\;\;\left(0.91893853320467 - x\right) + \frac{z \cdot z}{\frac{x}{y}}\\
\end{array}
\]
| Alternative 15 |
|---|
| Error | 42.2 |
|---|
| Cost | 448 |
|---|
\[0.91893853320467 + 0.083333333333333 \cdot \frac{1}{x}
\]
| Alternative 16 |
|---|
| Error | 39.2 |
|---|
| Cost | 448 |
|---|
\[x + \left(0.91893853320467 + \frac{0.083333333333333}{x}\right)
\]
| Alternative 17 |
|---|
| Error | 39.2 |
|---|
| Cost | 448 |
|---|
\[\frac{0.083333333333333}{x} + \left(x + 0.91893853320467\right)
\]
| Alternative 18 |
|---|
| Error | 42.2 |
|---|
| Cost | 320 |
|---|
\[0.91893853320467 + \frac{0.083333333333333}{x}
\]
| Alternative 19 |
|---|
| Error | 42.7 |
|---|
| Cost | 192 |
|---|
\[\frac{0.083333333333333}{x}
\]
| Alternative 20 |
|---|
| Error | 63.3 |
|---|
| Cost | 128 |
|---|
\[-x
\]