\[\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{1}{x \cdot 12.000000000000048} + \left(\frac{z}{x} \cdot \left(z \cdot \left(0.0007936500793651 + y\right)\right) + \frac{z}{x} \cdot -0.0027777777777778\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)
(+
(/ 1.0 (* x 12.000000000000048))
(+
(* (/ z x) (* z (+ 0.0007936500793651 y)))
(* (/ z x) -0.0027777777777778)))))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) + ((1.0 / (x * 12.000000000000048)) + (((z / x) * (z * (0.0007936500793651 + y))) + ((z / x) * -0.0027777777777778)));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + ((((((y + 0.0007936500793651d0) * z) - 0.0027777777777778d0) * z) + 0.083333333333333d0) / x)
end function
↓
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((((x + (-0.5d0)) * log(x)) - x) + 0.91893853320467d0) + ((1.0d0 / (x * 12.000000000000048d0)) + (((z / x) * (z * (0.0007936500793651d0 + y))) + ((z / x) * (-0.0027777777777778d0))))
end function
public static double code(double x, double y, double z) {
return ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
}
↓
public static double code(double x, double y, double z) {
return ((((x + -0.5) * Math.log(x)) - x) + 0.91893853320467) + ((1.0 / (x * 12.000000000000048)) + (((z / x) * (z * (0.0007936500793651 + y))) + ((z / x) * -0.0027777777777778)));
}
def code(x, y, z):
return ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x)
↓
def code(x, y, z):
return ((((x + -0.5) * math.log(x)) - x) + 0.91893853320467) + ((1.0 / (x * 12.000000000000048)) + (((z / x) * (z * (0.0007936500793651 + y))) + ((z / x) * -0.0027777777777778)))
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(1.0 / Float64(x * 12.000000000000048)) + Float64(Float64(Float64(z / x) * Float64(z * Float64(0.0007936500793651 + y))) + Float64(Float64(z / x) * -0.0027777777777778))))
end
function tmp = code(x, y, z)
tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
end
↓
function tmp = code(x, y, z)
tmp = ((((x + -0.5) * log(x)) - x) + 0.91893853320467) + ((1.0 / (x * 12.000000000000048)) + (((z / x) * (z * (0.0007936500793651 + y))) + ((z / x) * -0.0027777777777778)));
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[(1.0 / N[(x * 12.000000000000048), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(z / x), $MachinePrecision] * N[(z * N[(0.0007936500793651 + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z / x), $MachinePrecision] * -0.0027777777777778), $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{1}{x \cdot 12.000000000000048} + \left(\frac{z}{x} \cdot \left(z \cdot \left(0.0007936500793651 + y\right)\right) + \frac{z}{x} \cdot -0.0027777777777778\right)\right)
Alternatives
| Alternative 1 |
|---|
| Error | 0.6 |
|---|
| Cost | 8264 |
|---|
\[\begin{array}{l}
t_0 := \left(x + -0.5\right) \cdot \log x\\
t_1 := \left(t_0 + \left(0.91893853320467 - x\right)\right) + z \cdot \left(\frac{z}{x} \cdot \left(0.0007936500793651 + y\right)\right)\\
\mathbf{if}\;z \leq -1 \cdot 10^{+66}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 10^{+20}:\\
\;\;\;\;\left(\left(t_0 - x\right) + 0.91893853320467\right) + \frac{0.083333333333333 + \left(z \cdot \left(z \cdot \left(0.0007936500793651 + y\right)\right) + z \cdot -0.0027777777777778\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 2 |
|---|
| Error | 1.4 |
|---|
| Cost | 8256 |
|---|
\[\left(\left(\left(x + -0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \left(\left(\frac{z}{x} \cdot \left(z \cdot \left(0.0007936500793651 + y\right)\right) + \frac{z}{x} \cdot -0.0027777777777778\right) + \frac{0.083333333333333}{x}\right)
\]
| Alternative 3 |
|---|
| Error | 0.6 |
|---|
| Cost | 8136 |
|---|
\[\begin{array}{l}
t_0 := \left(x + -0.5\right) \cdot \log x\\
t_1 := \left(t_0 + \left(0.91893853320467 - x\right)\right) + z \cdot \left(\frac{z}{x} \cdot \left(0.0007936500793651 + y\right)\right)\\
\mathbf{if}\;z \leq -1 \cdot 10^{+66}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 10^{+20}:\\
\;\;\;\;\left(\left(t_0 - x\right) + 0.91893853320467\right) + \frac{0.083333333333333 + z \cdot \left(-0.0027777777777778 + z \cdot \left(0.0007936500793651 + y\right)\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 4 |
|---|
| Error | 4.1 |
|---|
| Cost | 7880 |
|---|
\[\begin{array}{l}
t_0 := \left(x + -0.5\right) \cdot \log x + \left(0.91893853320467 - x\right)\\
t_1 := t_0 + z \cdot \left(\frac{z}{x} \cdot \left(0.0007936500793651 + y\right)\right)\\
\mathbf{if}\;z \leq -5.834454076510694 \cdot 10^{-71}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-13}:\\
\;\;\;\;\frac{0.083333333333333}{x} + t_0\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 5 |
|---|
| Error | 0.9 |
|---|
| Cost | 7876 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 1:\\
\;\;\;\;\frac{0.083333333333333 + \left(z \cdot \left(z \cdot \left(0.0007936500793651 + y\right)\right) + z \cdot -0.0027777777777778\right)}{x} + \left(0.91893853320467 + \log x \cdot -0.5\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(x + -0.5\right) \cdot \log x + \left(0.91893853320467 - x\right)\right) + z \cdot \left(\frac{z}{x} \cdot \left(0.0007936500793651 + y\right)\right)\\
\end{array}
\]
| Alternative 6 |
|---|
| Error | 7.2 |
|---|
| Cost | 7752 |
|---|
\[\begin{array}{l}
t_0 := \left(x + -0.5\right) \cdot \log x\\
t_1 := \left(\left(t_0 - x\right) + 0.91893853320467\right) + z \cdot \left(z \cdot \frac{0.0007936500793651}{x}\right)\\
\mathbf{if}\;z \leq -0.065:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-12}:\\
\;\;\;\;\frac{0.083333333333333}{x} + \left(t_0 + \left(0.91893853320467 - x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 7 |
|---|
| Error | 7.2 |
|---|
| Cost | 7752 |
|---|
\[\begin{array}{l}
t_0 := \left(x + -0.5\right) \cdot \log x\\
t_1 := \left(\left(t_0 - x\right) + 0.91893853320467\right) + z \cdot \left(z \cdot \frac{0.0007936500793651}{x}\right)\\
\mathbf{if}\;z \leq -0.065:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-12}:\\
\;\;\;\;\left(t_0 + \left(0.91893853320467 - x\right)\right) + \frac{0.083333333333333 + z \cdot -0.0027777777777778}{x}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 8 |
|---|
| Error | 8.3 |
|---|
| Cost | 7752 |
|---|
\[\begin{array}{l}
t_0 := \left(\left(x + -0.5\right) \cdot \log x - x\right) + 0.91893853320467\\
\mathbf{if}\;x \leq 3.7 \cdot 10^{-19}:\\
\;\;\;\;\left(0.91893853320467 + \log x \cdot -0.5\right) + \frac{0.083333333333333 + \left(z \cdot -0.0027777777777778 + z \cdot \left(z \cdot 0.0007936500793651\right)\right)}{x}\\
\mathbf{elif}\;x \leq 2.2489889267123014 \cdot 10^{+86}:\\
\;\;\;\;t_0 + z \cdot \frac{z \cdot y}{x}\\
\mathbf{else}:\\
\;\;\;\;t_0 + z \cdot \left(z \cdot \frac{0.0007936500793651}{x}\right)\\
\end{array}
\]
| Alternative 9 |
|---|
| Error | 0.9 |
|---|
| Cost | 7748 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 1:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(-0.0027777777777778 + z \cdot \left(0.0007936500793651 + y\right)\right)}{x} + \left(0.91893853320467 + \log x \cdot -0.5\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(x + -0.5\right) \cdot \log x + \left(0.91893853320467 - x\right)\right) + z \cdot \left(\frac{z}{x} \cdot \left(0.0007936500793651 + y\right)\right)\\
\end{array}
\]
| Alternative 10 |
|---|
| Error | 12.5 |
|---|
| Cost | 7624 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -4.2 \cdot 10^{+82}:\\
\;\;\;\;\frac{0.083333333333333}{x} + x \cdot \left(\log x + -1\right)\\
\mathbf{elif}\;z \leq -0.065:\\
\;\;\;\;\left(0.91893853320467 + \log x \cdot -0.5\right) + \left(z \cdot z\right) \cdot \frac{0.0007936500793651 + y}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333}{x} + \left(\left(x + -0.5\right) \cdot \log x + \left(0.91893853320467 - x\right)\right)\\
\end{array}
\]
| Alternative 11 |
|---|
| Error | 10.0 |
|---|
| Cost | 7624 |
|---|
\[\begin{array}{l}
t_0 := \left(0.91893853320467 + x \cdot \left(\log x + -1\right)\right) + z \cdot \left(\frac{z}{x} \cdot y\right)\\
\mathbf{if}\;z \leq -5.834454076510694 \cdot 10^{-71}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-13}:\\
\;\;\;\;\frac{0.083333333333333}{x} + \left(\left(x + -0.5\right) \cdot \log x + \left(0.91893853320467 - x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
| Alternative 12 |
|---|
| Error | 10.4 |
|---|
| Cost | 7624 |
|---|
\[\begin{array}{l}
t_0 := \left(x + -0.5\right) \cdot \log x\\
\mathbf{if}\;z \leq -5.834454076510694 \cdot 10^{-71}:\\
\;\;\;\;\left(\left(t_0 - x\right) + 0.91893853320467\right) + z \cdot \frac{z \cdot y}{x}\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-13}:\\
\;\;\;\;\frac{0.083333333333333}{x} + \left(t_0 + \left(0.91893853320467 - x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(0.91893853320467 + x \cdot \left(\log x + -1\right)\right) + z \cdot \left(\frac{z}{x} \cdot y\right)\\
\end{array}
\]
| Alternative 13 |
|---|
| Error | 12.6 |
|---|
| Cost | 7232 |
|---|
\[\frac{0.083333333333333}{x} + \left(\left(x + -0.5\right) \cdot \log x + \left(0.91893853320467 - x\right)\right)
\]
| Alternative 14 |
|---|
| Error | 13.5 |
|---|
| Cost | 6976 |
|---|
\[\frac{0.083333333333333}{x} + x \cdot \left(\log x + -1\right)
\]
| Alternative 15 |
|---|
| Error | 43.0 |
|---|
| Cost | 6656 |
|---|
\[{\left(x \cdot 12.000000000000048\right)}^{-1}
\]
| Alternative 16 |
|---|
| Error | 43.0 |
|---|
| Cost | 192 |
|---|
\[\frac{0.083333333333333}{x}
\]