\[\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}
\]
↓
\[\begin{array}{l}
\mathbf{if}\;z \leq -12.6 \lor \neg \left(z \leq 5 \cdot 10^{-30}\right):\\
\;\;\;\;\left(\frac{0.083333333333333}{x} + \left(\frac{z \cdot -0.0027777777777778}{x} + z \cdot \left(\frac{z}{x} \cdot \left(y + 0.0007936500793651\right)\right)\right)\right) + \left(x \cdot \log x - x\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(x + -0.5\right) \cdot \log x + \left(0.91893853320467 - x\right)\right) + \frac{0.083333333333333 + z \cdot \left(-0.0027777777777778 + z \cdot \left(y + 0.0007936500793651\right)\right)}{x}\\
\end{array}
\]
(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
(if (or (<= z -12.6) (not (<= z 5e-30)))
(+
(+
(/ 0.083333333333333 x)
(+
(/ (* z -0.0027777777777778) x)
(* z (* (/ z x) (+ y 0.0007936500793651)))))
(- (* x (log x)) x))
(+
(+ (* (+ x -0.5) (log x)) (- 0.91893853320467 x))
(/
(+
0.083333333333333
(* z (+ -0.0027777777777778 (* z (+ y 0.0007936500793651)))))
x))))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) {
double tmp;
if ((z <= -12.6) || !(z <= 5e-30)) {
tmp = ((0.083333333333333 / x) + (((z * -0.0027777777777778) / x) + (z * ((z / x) * (y + 0.0007936500793651))))) + ((x * log(x)) - x);
} else {
tmp = (((x + -0.5) * log(x)) + (0.91893853320467 - x)) + ((0.083333333333333 + (z * (-0.0027777777777778 + (z * (y + 0.0007936500793651))))) / x);
}
return tmp;
}
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
real(8) :: tmp
if ((z <= (-12.6d0)) .or. (.not. (z <= 5d-30))) then
tmp = ((0.083333333333333d0 / x) + (((z * (-0.0027777777777778d0)) / x) + (z * ((z / x) * (y + 0.0007936500793651d0))))) + ((x * log(x)) - x)
else
tmp = (((x + (-0.5d0)) * log(x)) + (0.91893853320467d0 - x)) + ((0.083333333333333d0 + (z * ((-0.0027777777777778d0) + (z * (y + 0.0007936500793651d0))))) / x)
end if
code = tmp
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) {
double tmp;
if ((z <= -12.6) || !(z <= 5e-30)) {
tmp = ((0.083333333333333 / x) + (((z * -0.0027777777777778) / x) + (z * ((z / x) * (y + 0.0007936500793651))))) + ((x * Math.log(x)) - x);
} else {
tmp = (((x + -0.5) * Math.log(x)) + (0.91893853320467 - x)) + ((0.083333333333333 + (z * (-0.0027777777777778 + (z * (y + 0.0007936500793651))))) / x);
}
return tmp;
}
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):
tmp = 0
if (z <= -12.6) or not (z <= 5e-30):
tmp = ((0.083333333333333 / x) + (((z * -0.0027777777777778) / x) + (z * ((z / x) * (y + 0.0007936500793651))))) + ((x * math.log(x)) - x)
else:
tmp = (((x + -0.5) * math.log(x)) + (0.91893853320467 - x)) + ((0.083333333333333 + (z * (-0.0027777777777778 + (z * (y + 0.0007936500793651))))) / x)
return tmp
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)
tmp = 0.0
if ((z <= -12.6) || !(z <= 5e-30))
tmp = Float64(Float64(Float64(0.083333333333333 / x) + Float64(Float64(Float64(z * -0.0027777777777778) / x) + Float64(z * Float64(Float64(z / x) * Float64(y + 0.0007936500793651))))) + Float64(Float64(x * log(x)) - x));
else
tmp = Float64(Float64(Float64(Float64(x + -0.5) * log(x)) + Float64(0.91893853320467 - x)) + Float64(Float64(0.083333333333333 + Float64(z * Float64(-0.0027777777777778 + Float64(z * Float64(y + 0.0007936500793651))))) / x));
end
return tmp
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_2 = code(x, y, z)
tmp = 0.0;
if ((z <= -12.6) || ~((z <= 5e-30)))
tmp = ((0.083333333333333 / x) + (((z * -0.0027777777777778) / x) + (z * ((z / x) * (y + 0.0007936500793651))))) + ((x * log(x)) - x);
else
tmp = (((x + -0.5) * log(x)) + (0.91893853320467 - x)) + ((0.083333333333333 + (z * (-0.0027777777777778 + (z * (y + 0.0007936500793651))))) / x);
end
tmp_2 = tmp;
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_] := If[Or[LessEqual[z, -12.6], N[Not[LessEqual[z, 5e-30]], $MachinePrecision]], N[(N[(N[(0.083333333333333 / x), $MachinePrecision] + N[(N[(N[(z * -0.0027777777777778), $MachinePrecision] / x), $MachinePrecision] + N[(z * N[(N[(z / x), $MachinePrecision] * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(x + -0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] + N[(0.91893853320467 - x), $MachinePrecision]), $MachinePrecision] + N[(N[(0.083333333333333 + N[(z * N[(-0.0027777777777778 + N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $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}
↓
\begin{array}{l}
\mathbf{if}\;z \leq -12.6 \lor \neg \left(z \leq 5 \cdot 10^{-30}\right):\\
\;\;\;\;\left(\frac{0.083333333333333}{x} + \left(\frac{z \cdot -0.0027777777777778}{x} + z \cdot \left(\frac{z}{x} \cdot \left(y + 0.0007936500793651\right)\right)\right)\right) + \left(x \cdot \log x - x\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(x + -0.5\right) \cdot \log x + \left(0.91893853320467 - x\right)\right) + \frac{0.083333333333333 + z \cdot \left(-0.0027777777777778 + z \cdot \left(y + 0.0007936500793651\right)\right)}{x}\\
\end{array}
Alternatives
| Alternative 1 |
|---|
| Error | 0.72% |
|---|
| Cost | 14656 |
|---|
\[\left(0.91893853320467 + \left(\left(x + -0.5\right) \cdot \log x - x\right)\right) + \left(\left(z \cdot \frac{z}{x}\right) \cdot y + \left(\frac{0.083333333333333}{x} + \frac{\mathsf{fma}\left(0.0007936500793651, z, -0.0027777777777778\right)}{\frac{x}{z}}\right)\right)
\]
| Alternative 2 |
|---|
| Error | 1.41% |
|---|
| Cost | 9160 |
|---|
\[\begin{array}{l}
t_0 := z \cdot \left(y + 0.0007936500793651\right)\\
t_1 := z \cdot \left(-0.0027777777777778 + t_0\right)\\
t_2 := 0.91893853320467 + \left(\left(x + -0.5\right) \cdot \log x - x\right)\\
\mathbf{if}\;t_1 \leq -1 \cdot 10^{+107}:\\
\;\;\;\;\left(x \cdot \log x - x\right) + y \cdot \frac{z}{\frac{x}{z}}\\
\mathbf{elif}\;t_1 \leq 5 \cdot 10^{+72}:\\
\;\;\;\;t_2 + \frac{0.083333333333333 + t_1}{x}\\
\mathbf{else}:\\
\;\;\;\;t_2 + z \cdot \frac{t_0}{x}\\
\end{array}
\]
| Alternative 3 |
|---|
| Error | 1.41% |
|---|
| Cost | 9160 |
|---|
\[\begin{array}{l}
t_0 := z \cdot \left(y + 0.0007936500793651\right)\\
t_1 := z \cdot \left(-0.0027777777777778 + t_0\right)\\
t_2 := \left(x + -0.5\right) \cdot \log x\\
\mathbf{if}\;t_1 \leq -1 \cdot 10^{+107}:\\
\;\;\;\;\left(x \cdot \log x - x\right) + y \cdot \frac{z}{\frac{x}{z}}\\
\mathbf{elif}\;t_1 \leq 5 \cdot 10^{+72}:\\
\;\;\;\;\left(t_2 + \left(0.91893853320467 - x\right)\right) + \frac{0.083333333333333 + t_1}{x}\\
\mathbf{else}:\\
\;\;\;\;\left(0.91893853320467 + \left(t_2 - x\right)\right) + z \cdot \frac{t_0}{x}\\
\end{array}
\]
| Alternative 4 |
|---|
| Error | 2.18% |
|---|
| Cost | 8256 |
|---|
\[\left(\left(x + -0.5\right) \cdot \log x + \left(0.91893853320467 - x\right)\right) + \left(\frac{0.083333333333333}{x} + \left(\frac{z \cdot -0.0027777777777778}{x} + z \cdot \left(\frac{z}{x} \cdot \left(y + 0.0007936500793651\right)\right)\right)\right)
\]
| Alternative 5 |
|---|
| Error | 2.68% |
|---|
| Cost | 7880 |
|---|
\[\begin{array}{l}
t_0 := z \cdot \left(y + 0.0007936500793651\right)\\
\mathbf{if}\;x \leq 0.195:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(-0.0027777777777778 + t_0\right)}{x} + \left(0.91893853320467 + \log x \cdot -0.5\right)\\
\mathbf{elif}\;x \leq 2 \cdot 10^{+149}:\\
\;\;\;\;\left(0.91893853320467 + \left(\left(x + -0.5\right) \cdot \log x - x\right)\right) + z \cdot \frac{t_0}{x}\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot \log x - x\right) + y \cdot \frac{z}{\frac{x}{z}}\\
\end{array}
\]
| Alternative 6 |
|---|
| Error | 5.94% |
|---|
| Cost | 7748 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 0.45:\\
\;\;\;\;\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{else}:\\
\;\;\;\;\left(\left(x + -0.5\right) \cdot \log x + \left(0.91893853320467 - x\right)\right) + y \cdot \frac{z}{\frac{x}{z}}\\
\end{array}
\]
| Alternative 7 |
|---|
| Error | 6.34% |
|---|
| Cost | 7620 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 6:\\
\;\;\;\;\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(x + -0.5\right) \cdot \log x + \left(0.91893853320467 - x\right)\right) + y \cdot \frac{z}{\frac{x}{z}}\\
\end{array}
\]
| Alternative 8 |
|---|
| Error | 6.69% |
|---|
| Cost | 7496 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 9 \cdot 10^{-21}:\\
\;\;\;\;\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 3500000000000:\\
\;\;\;\;\left(0.91893853320467 + \left(\left(x + -0.5\right) \cdot \log x - x\right)\right) + \frac{0.083333333333333}{x}\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot \log x - x\right) + y \cdot \frac{z}{\frac{x}{z}}\\
\end{array}
\]
| Alternative 9 |
|---|
| Error | 6.66% |
|---|
| Cost | 7496 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 9 \cdot 10^{-21}:\\
\;\;\;\;\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 270000000000:\\
\;\;\;\;\frac{0.083333333333333}{x} + \left(\left(x + -0.5\right) \cdot \log x + \left(0.91893853320467 - x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot \log x - x\right) + y \cdot \frac{z}{\frac{x}{z}}\\
\end{array}
\]
| Alternative 10 |
|---|
| Error | 10.96% |
|---|
| Cost | 7364 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 9 \cdot 10^{-21}:\\
\;\;\;\;\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(0.91893853320467 + \left(\left(x + -0.5\right) \cdot \log x - x\right)\right) + \frac{0.083333333333333}{x}\\
\end{array}
\]
| Alternative 11 |
|---|
| Error | 11.18% |
|---|
| Cost | 7236 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 28000:\\
\;\;\;\;\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 12 |
|---|
| Error | 51.42% |
|---|
| Cost | 2632 |
|---|
\[\begin{array}{l}
t_0 := 0.083333333333333 + z \cdot \left(-0.0027777777777778 + z \cdot \left(y + 0.0007936500793651\right)\right)\\
\mathbf{if}\;t_0 \leq 0.083333332:\\
\;\;\;\;\left(0.91893853320467 - x\right) + \left(\frac{0.083333333333333}{x} + \left(\frac{z \cdot -0.0027777777777778}{x} + \frac{z \cdot z}{\frac{x}{y + 0.0007936500793651}}\right)\right)\\
\mathbf{elif}\;t_0 \leq 0.2:\\
\;\;\;\;\frac{z}{x} \cdot -0.0027777777777778 + \left(0.91893853320467 + \left(x + \frac{0.083333333333333}{x}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t_0}{x} + \left(0.91893853320467 - x\right)\\
\end{array}
\]
| Alternative 13 |
|---|
| Error | 52.81% |
|---|
| Cost | 1228 |
|---|
\[\begin{array}{l}
t_0 := \left(0.91893853320467 - x\right) + \left(y + 0.0007936500793651\right) \cdot \frac{z \cdot z}{x}\\
\mathbf{if}\;z \leq -3 \cdot 10^{-6}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq -1.35 \cdot 10^{-118}:\\
\;\;\;\;\left(0.91893853320467 - x\right) + \frac{0.083333333333333 + z \cdot \left(z \cdot y\right)}{x}\\
\mathbf{elif}\;z \leq 8.5:\\
\;\;\;\;\frac{z}{x} \cdot -0.0027777777777778 + \left(0.91893853320467 + \left(x + \frac{0.083333333333333}{x}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
| Alternative 14 |
|---|
| Error | 50.56% |
|---|
| Cost | 1220 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq 4.2 \cdot 10^{+120}:\\
\;\;\;\;\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(x + 0.91893853320467\right)\\
\end{array}
\]
| Alternative 15 |
|---|
| Error | 55.19% |
|---|
| Cost | 1097 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{-71} \lor \neg \left(z \leq 9\right):\\
\;\;\;\;\left(0.91893853320467 - x\right) + \left(y + 0.0007936500793651\right) \cdot \frac{z \cdot z}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{x} \cdot -0.0027777777777778 + \left(0.91893853320467 + \left(x + \frac{0.083333333333333}{x}\right)\right)\\
\end{array}
\]
| Alternative 16 |
|---|
| Error | 60.2% |
|---|
| Cost | 1096 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -1.2 \cdot 10^{+15}:\\
\;\;\;\;\left(0.91893853320467 - x\right) + \frac{y}{\frac{x}{z \cdot z}}\\
\mathbf{elif}\;z \leq 0.42:\\
\;\;\;\;\frac{z}{x} \cdot -0.0027777777777778 + \left(0.91893853320467 + \left(x + \frac{0.083333333333333}{x}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(0.91893853320467 - x\right) + \frac{z \cdot z}{\frac{x}{y}}\\
\end{array}
\]
| Alternative 17 |
|---|
| Error | 60.36% |
|---|
| Cost | 969 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -1.2 \cdot 10^{+15} \lor \neg \left(z \leq 14.5\right):\\
\;\;\;\;\left(0.91893853320467 - x\right) + \frac{y}{\frac{x}{z \cdot z}}\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333}{x} + \left(x + 0.91893853320467\right)\\
\end{array}
\]
| Alternative 18 |
|---|
| Error | 60.36% |
|---|
| Cost | 968 |
|---|
\[\begin{array}{l}
\mathbf{if}\;z \leq -1.2 \cdot 10^{+15}:\\
\;\;\;\;\left(0.91893853320467 - x\right) + \frac{y}{\frac{x}{z \cdot z}}\\
\mathbf{elif}\;z \leq 0.036:\\
\;\;\;\;\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 19 |
|---|
| Error | 66.88% |
|---|
| Cost | 448 |
|---|
\[0.91893853320467 + 0.083333333333333 \cdot \frac{1}{x}
\]
| Alternative 20 |
|---|
| Error | 62.16% |
|---|
| Cost | 448 |
|---|
\[\frac{0.083333333333333}{x} + \left(x + 0.91893853320467\right)
\]
| Alternative 21 |
|---|
| Error | 66.84% |
|---|
| Cost | 320 |
|---|
\[0.91893853320467 + \frac{0.083333333333333}{x}
\]
| Alternative 22 |
|---|
| Error | 97.47% |
|---|
| Cost | 192 |
|---|
\[0.91893853320467 - x
\]
| Alternative 23 |
|---|
| Error | 67.68% |
|---|
| Cost | 192 |
|---|
\[\frac{0.083333333333333}{x}
\]
| Alternative 24 |
|---|
| Error | 98.83% |
|---|
| Cost | 128 |
|---|
\[-x
\]