| Alternative 1 | |
|---|---|
| Accuracy | 100.0% |
| Cost | 12992 |
\[\log \left(\frac{x}{\log x}\right)
\]

(FPCore (x) :precision binary64 (- (log x) (log (log x))))
(FPCore (x) :precision binary64 (log (* x (/ 1.0 (log x)))))
double code(double x) {
return log(x) - log(log(x));
}
double code(double x) {
return log((x * (1.0 / log(x))));
}
real(8) function code(x)
real(8), intent (in) :: x
code = log(x) - log(log(x))
end function
real(8) function code(x)
real(8), intent (in) :: x
code = log((x * (1.0d0 / log(x))))
end function
public static double code(double x) {
return Math.log(x) - Math.log(Math.log(x));
}
public static double code(double x) {
return Math.log((x * (1.0 / Math.log(x))));
}
def code(x): return math.log(x) - math.log(math.log(x))
def code(x): return math.log((x * (1.0 / math.log(x))))
function code(x) return Float64(log(x) - log(log(x))) end
function code(x) return log(Float64(x * Float64(1.0 / log(x)))) end
function tmp = code(x) tmp = log(x) - log(log(x)); end
function tmp = code(x) tmp = log((x * (1.0 / log(x)))); end
code[x_] := N[(N[Log[x], $MachinePrecision] - N[Log[N[Log[x], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
code[x_] := N[Log[N[(x * N[(1.0 / N[Log[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\log x - \log \log x
\log \left(x \cdot \frac{1}{\log x}\right)
Results
Initial program 99.6%
Taylor expanded in x around inf 99.6%
Simplified100.0%
[Start]99.6 | \[ -1 \cdot \log \left(\frac{1}{x}\right) - \log \left(-1 \cdot \log \left(\frac{1}{x}\right)\right)
\] |
|---|---|
mul-1-neg [=>]99.6 | \[ -1 \cdot \log \left(\frac{1}{x}\right) - \log \color{blue}{\left(-\log \left(\frac{1}{x}\right)\right)}
\] |
log-rec [=>]99.6 | \[ -1 \cdot \log \left(\frac{1}{x}\right) - \log \left(-\color{blue}{\left(-\log x\right)}\right)
\] |
remove-double-neg [=>]99.6 | \[ -1 \cdot \log \left(\frac{1}{x}\right) - \log \color{blue}{\log x}
\] |
mul-1-neg [=>]99.6 | \[ \color{blue}{\left(-\log \left(\frac{1}{x}\right)\right)} - \log \log x
\] |
log-rec [=>]99.6 | \[ \left(-\color{blue}{\left(-\log x\right)}\right) - \log \log x
\] |
remove-double-neg [=>]99.6 | \[ \color{blue}{\log x} - \log \log x
\] |
log-div [<=]100.0 | \[ \color{blue}{\log \left(\frac{x}{\log x}\right)}
\] |
Applied egg-rr100.0%
[Start]100.0 | \[ \log \left(\frac{x}{\log x}\right)
\] |
|---|---|
clear-num [=>]100.0 | \[ \log \color{blue}{\left(\frac{1}{\frac{\log x}{x}}\right)}
\] |
associate-/r/ [=>]100.0 | \[ \log \color{blue}{\left(\frac{1}{\log x} \cdot x\right)}
\] |
Final simplification100.0%
| Alternative 1 | |
|---|---|
| Accuracy | 100.0% |
| Cost | 12992 |
herbie shell --seed 2023160
(FPCore (x)
:name "Jmat.Real.lambertw, estimator"
:precision binary64
(- (log x) (log (log x))))