Average Error: 44.5 → 44.5
Time: 21.8s
Precision: 64
Internal precision: 128
\[\left(x \cdot 1.0\right) \cdot \log \left(1.0 - \frac{y}{x}\right)\]
\[\left(x \cdot 1.0\right) \cdot \log \left(1.0 - \frac{y}{x}\right)\]

Error

Bits error versus x

Bits error versus y

Target

Original44.5
Comparison44.5
Herbie44.5
\[ x \cdot \log \left(1.0 - \frac{y}{x}\right) \]

Derivation

  1. Initial program 44.5

    \[\left(x \cdot 1.0\right) \cdot \log \left(1.0 - \frac{y}{x}\right)\]
  2. Removed slow pow expressions

Runtime

Time bar (total: 21.8s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(1571826985 1844927705 1134292638 2026011937 3213424739 3670201383)'
(FPCore (x y)
  :name "Data.HyperLogLog.Type:size from hyperloglog-0.3.4, A"

  :target
  (* x (log (- 1.0 (/ y x))))

  (* (* x 1.0) (log (- 1.0 (/ y x)))))