| Alternative 1 | |
|---|---|
| Error | 0.0 |
| Cost | 12992 |
\[\log \left(\frac{x}{\log x}\right)
\]
(FPCore (x) :precision binary64 (- (log x) (log (log x))))
(FPCore (x) :precision binary64 (log1p (+ (/ x (log x)) -1.0)))
double code(double x) {
return log(x) - log(log(x));
}
double code(double x) {
return log1p(((x / log(x)) + -1.0));
}
public static double code(double x) {
return Math.log(x) - Math.log(Math.log(x));
}
public static double code(double x) {
return Math.log1p(((x / Math.log(x)) + -1.0));
}
def code(x): return math.log(x) - math.log(math.log(x))
def code(x): return math.log1p(((x / math.log(x)) + -1.0))
function code(x) return Float64(log(x) - log(log(x))) end
function code(x) return log1p(Float64(Float64(x / log(x)) + -1.0)) end
code[x_] := N[(N[Log[x], $MachinePrecision] - N[Log[N[Log[x], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
code[x_] := N[Log[1 + N[(N[(x / N[Log[x], $MachinePrecision]), $MachinePrecision] + -1.0), $MachinePrecision]], $MachinePrecision]
\log x - \log \log x
\mathsf{log1p}\left(\frac{x}{\log x} + -1\right)
Results
Initial program 0.3
Applied egg-rr0.0
Final simplification0.0
| Alternative 1 | |
|---|---|
| Error | 0.0 |
| Cost | 12992 |

herbie shell --seed 2022298
(FPCore (x)
:name "Jmat.Real.lambertw, estimator"
:precision binary64
(- (log x) (log (log x))))