



Bits error versus wj




Bits error versus x
Results
| Original | 13.9 |
|---|---|
| Target | 13.3 |
| Herbie | 1.0 |
if wj < 4.458584244320131e-09Initial program 13.6
Taylor expanded around 0 0.9
if 4.458584244320131e-09 < wj Initial program 24.5
rmApplied *-un-lft-identity24.5
Applied *-un-lft-identity24.5
Applied times-frac24.5
Simplified24.5
Simplified3.1
rmApplied add-sqr-sqrt3.2
Applied associate-/r*3.2
Final simplification1.0
herbie shell --seed 2019002
(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.9s)Debug log
1 calls. Slowest were:
| 156.0ms | (- wj (/ (- (* wj (exp wj)) x) (+ (exp wj) (* wj (exp wj))))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 14.7b
Found 4 expressions with local error:
| 4.8b | (- wj (/ (- (* wj (exp wj)) x) (+ (exp wj) (* wj (exp wj))))) |
| 0.3b | (/ (- (* 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:
| 14.0ms | (/ (- (* wj (exp wj)) x) (+ (exp wj) (* wj (exp wj)))) |
| 5.0ms | (* wj (exp wj)) |
| 3.0ms | (+ (exp wj) (* wj (exp wj))) |
4 calls. Slowest were:
| 53.0ms | (- wj (/ (- (* wj (exp wj)) x) (+ (exp wj) (* wj (exp wj))))) |
| 40.0ms | (/ (- (* wj (exp wj)) x) (+ (exp wj) (* wj (exp wj)))) |
| 30.0ms | (* wj (exp wj)) |
| 24.0ms | (+ (exp wj) (* wj (exp wj))) |
64 calls. Slowest were:
| 815.0ms | (/ (- (* wj (exp wj)) x) (+ (exp wj) (* wj (exp wj)))) |
| 614.0ms | (/ (* wj (exp wj)) (+ (exp wj) (* wj (exp wj)))) |
| 159.0ms | (/ (* (* (- (* wj (exp wj)) x) (- (* wj (exp wj)) x)) (- (* wj (exp wj)) x)) (* (* (+ (exp wj) (* wj (exp 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 3 expressions with local error:
| 0.0b | (- (+ (pow wj 2) x) (* 2 (* x wj))) |
| 0.0b | (* 2 (* x wj)) |
| 0.0b | (+ (pow wj 2) x) |
3 calls. Slowest were:
| 14.0ms | (- (+ (pow wj 2) x) (* 2 (* x wj))) |
| 2.0ms | (+ (pow wj 2) x) |
| 1.0ms | (* 2 (* x wj)) |
3 calls. Slowest were:
| 24.0ms | (- (+ (pow wj 2) x) (* 2 (* x wj))) |
| 15.0ms | (* 2 (* x wj)) |
| 11.0ms | (+ (pow wj 2) x) |
11 calls. Slowest were:
| 207.0ms | (/ (exp (+ (pow wj 2) x)) (exp (* 2 (* x wj)))) |
| 86.0ms | (- (+ x (pow wj 2)) (* 2 (* x wj))) |
| 62.0ms | (- (+ x (pow wj 2)) (* 2 (* x wj))) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.2b
Found 3 expressions with local error:
| 4.8b | (- 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:
| 5.0ms | (/ (- wj (/ x (exp wj))) (+ wj 1)) |
| 1.0ms | (- wj (* 1 (/ (- wj (/ x (exp wj))) (+ wj 1)))) |
| 1.0ms | (/ x (exp wj)) |
3 calls. Slowest were:
| 56.0ms | (- wj (* 1 (/ (- wj (/ x (exp wj))) (+ wj 1)))) |
| 48.0ms | (/ (- wj (/ x (exp wj))) (+ wj 1)) |
| 31.0ms | (/ x (exp wj)) |
42 calls. Slowest were:
| 338.0ms | (- (pow wj 3) (pow (/ x (exp wj)) 3)) |
| 293.0ms | (/ (* (* (- wj (/ x (exp wj))) (- wj (/ x (exp wj)))) (- wj (/ x (exp wj)))) (* (* (+ wj 1) (+ wj 1)) (+ wj 1))) |
| 168.0ms | (- (* wj wj) (* (/ x (exp wj)) (/ x (exp wj)))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.2b
Found 4 expressions with local error:
| 4.8b | (- wj (* 1 (/ (- wj (/ (/ x (sqrt (exp wj))) (sqrt (exp wj)))) (+ wj 1)))) |
| 0.0b | (/ (- wj (/ (/ x (sqrt (exp wj))) (sqrt (exp wj)))) (+ wj 1)) |
| 0.0b | (/ (/ x (sqrt (exp wj))) (sqrt (exp wj))) |
| 0.0b | (sqrt (exp wj)) |
4 calls. Slowest were:
| 8.0ms | (/ (/ x (sqrt (exp wj))) (sqrt (exp wj))) |
| 6.0ms | (/ (- wj (/ (/ x (sqrt (exp wj))) (sqrt (exp wj)))) (+ wj 1)) |
| 1.0ms | (- wj (* 1 (/ (- wj (/ (/ x (sqrt (exp wj))) (sqrt (exp wj)))) (+ wj 1)))) |
4 calls. Slowest were:
| 59.0ms | (- wj (* 1 (/ (- wj (/ (/ x (sqrt (exp wj))) (sqrt (exp wj)))) (+ wj 1)))) |
| 48.0ms | (/ (- wj (/ (/ x (sqrt (exp wj))) (sqrt (exp wj)))) (+ wj 1)) |
| 36.0ms | (/ (/ x (sqrt (exp wj))) (sqrt (exp wj))) |
| 13.0ms | (sqrt (exp wj)) |
104 calls. Slowest were:
| 510.0ms | (/ (* (* (/ x (sqrt (exp wj))) (/ x (sqrt (exp wj)))) (/ x (sqrt (exp wj)))) (* (* (sqrt (exp wj)) (sqrt (exp wj))) (sqrt (exp wj)))) |
| 348.0ms | (/ (* (* (- wj (/ (/ x (sqrt (exp wj))) (sqrt (exp wj)))) (- wj (/ (/ x (sqrt (exp wj))) (sqrt (exp wj))))) (- wj (/ (/ x (sqrt (exp wj))) (sqrt (exp wj))))) (* (* (+ wj 1) (+ wj 1)) (+ wj 1))) |
| 249.0ms | (- (* wj wj) (* (/ (/ x (sqrt (exp wj))) (sqrt (exp wj))) (/ (/ x (sqrt (exp wj))) (sqrt (exp wj))))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.2b
62.9% (0.7b remaining)
Error of 1.0b against oracle of 0.3b and baseline of 2.2b