



Bits error versus wj




Bits error versus x
Results
| Original | 13.3 |
|---|---|
| Target | 12.6 |
| Herbie | 1.4 |
if wj < 8.047259273015902e-23Initial program 12.7
Taylor expanded around 0 0.9
if 8.047259273015902e-23 < wj Initial program 23.0
rmApplied *-un-lft-identity23.0
Applied *-un-lft-identity23.0
Applied times-frac23.0
Simplified23.0
Simplified10.9
rmApplied flip-+10.9
Applied associate-/r/10.7
Final simplification1.4
herbie shell --seed 2019007
(FPCore (wj x)
:name "Jmat.Real.lambertw, newton loop step"
:herbie-target
(- wj (- (/ wj (+ wj 1)) (/ x (+ (exp wj) (* wj (exp wj))))))
(- wj (/ (- (* wj (exp wj)) x) (+ (exp wj) (* wj (exp wj))))))
Time bar (total: 19.7s)Debug log
1 calls. Slowest were:
| 106.0ms | (- wj (/ (- (* wj (exp wj)) x) (+ (exp wj) (* wj (exp wj))))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 10.8b
Found 4 expressions with local error:
| 4.4b | (- wj (/ (- (* wj (exp wj)) x) (+ (exp wj) (* wj (exp wj))))) |
| 0.5b | (/ (- (* wj (exp wj)) x) (+ (exp wj) (* wj (exp wj)))) |
| 0.0b | (+ (exp wj) (* wj (exp wj))) |
| 0.0b | (* wj (exp wj)) |
4 calls. Slowest were:
| 17.0ms | (/ (- (* wj (exp wj)) x) (+ (exp wj) (* wj (exp wj)))) |
| 6.0ms | (+ (exp wj) (* wj (exp wj))) |
| 2.0ms | (* wj (exp wj)) |
4 calls. Slowest were:
| 66.0ms | (- wj (/ (- (* wj (exp wj)) x) (+ (exp wj) (* wj (exp wj))))) |
| 53.0ms | (/ (- (* wj (exp wj)) x) (+ (exp wj) (* wj (exp wj)))) |
| 33.0ms | (+ (exp wj) (* wj (exp wj))) |
| 27.0ms | (* wj (exp wj)) |
64 calls. Slowest were:
| 825.0ms | (/ (- (* wj (exp wj)) x) (+ (exp wj) (* wj (exp wj)))) |
| 759.0ms | (/ (* wj (exp wj)) (+ (exp wj) (* wj (exp wj)))) |
| 145.0ms | (+ (* (exp wj) (exp wj)) (- (* (* wj (exp wj)) (* wj (exp wj))) (* (exp wj) (* wj (exp wj))))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.2b
Found 2 expressions with local error:
| 0.0b | (+ (pow wj 2) x) |
| 0.0b | (* 2 (* x wj)) |
2 calls. Slowest were:
| 2.0ms | (+ (pow wj 2) x) |
| 1.0ms | (* 2 (* x wj)) |
2 calls. Slowest were:
| 12.0ms | (* 2 (* x wj)) |
| 11.0ms | (+ (pow wj 2) x) |
6 calls. Slowest were:
| 12.0ms | (* 2 (* x wj)) |
| 12.0ms | (* 2 (* x wj)) |
| 8.0ms | (* 2 (* x wj)) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 0.6b | (cbrt (+ (pow wj 2) x)) |
| 0.6b | (cbrt (+ (pow wj 2) x)) |
| 0.6b | (cbrt (+ (pow wj 2) x)) |
| 0.5b | (* (cbrt (+ (pow wj 2) x)) (cbrt (+ (pow wj 2) x))) |
4 calls. Slowest were:
| 20.0ms | (* (cbrt (+ (pow wj 2) x)) (cbrt (+ (pow wj 2) x))) |
| 3.0ms | (cbrt (+ (pow wj 2) x)) |
| 3.0ms | (cbrt (+ (pow wj 2) x)) |
4 calls. Slowest were:
| 120.0ms | (cbrt (+ (pow wj 2) x)) |
| 115.0ms | (* (cbrt (+ (pow wj 2) x)) (cbrt (+ (pow wj 2) x))) |
| 102.0ms | (cbrt (+ (pow wj 2) x)) |
| 94.0ms | (cbrt (+ (pow wj 2) x)) |
59 calls. Slowest were:
| 152.0ms | (* (cbrt (- (* (pow wj 2) (pow wj 2)) (* x x))) (cbrt (+ (pow (pow wj 2) 3) (pow x 3)))) |
| 115.0ms | (* (cbrt (+ (pow (pow wj 2) 3) (pow x 3))) (cbrt (- (* (pow wj 2) (pow wj 2)) (* x x)))) |
| 103.0ms | (cbrt (+ (* (pow wj 2) (pow wj 2)) (- (* x x) (* (pow wj 2) x)))) |
6 alts after pruning (4 fresh and 2 done)
Merged error: 0.1b
Found 3 expressions with local error:
| 4.4b | (- wj (* 1 (/ (- wj (/ x (exp wj))) (+ wj 1)))) |
| 0.0b | (/ (- wj (/ x (exp wj))) (+ wj 1)) |
| 0.0b | (/ x (exp wj)) |
3 calls. Slowest were:
| 7.0ms | (/ (- wj (/ x (exp wj))) (+ wj 1)) |
| 2.0ms | (- wj (* 1 (/ (- wj (/ x (exp wj))) (+ wj 1)))) |
| 1.0ms | (/ x (exp wj)) |
3 calls. Slowest were:
| 58.0ms | (- wj (* 1 (/ (- wj (/ x (exp wj))) (+ wj 1)))) |
| 46.0ms | (/ x (exp wj)) |
| 36.0ms | (/ (- wj (/ x (exp wj))) (+ wj 1)) |
42 calls. Slowest were:
| 273.0ms | (/ (* (* (- wj (/ x (exp wj))) (- wj (/ x (exp wj)))) (- wj (/ x (exp wj)))) (* (* (+ wj 1) (+ wj 1)) (+ wj 1))) |
| 254.0ms | (- (pow wj 3) (pow (/ x (exp wj)) 3)) |
| 162.0ms | (- (* wj wj) (* (/ x (exp wj)) (/ x (exp wj)))) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.1b
46.6% (1.1b remaining)
Error of 1.4b against oracle of 0.3b and baseline of 2.3b