



Bits error versus x
Results
| Original | 60.0 |
|---|---|
| Target | 0.1 |
| Herbie | 0.3 |
Initial program 60.0
Taylor expanded around 0 0.3
Final simplification0.3
herbie shell --seed 2019002
(FPCore (x)
:name "invcot (example 3.9)"
:pre (and (< -0.026 x) (< x 0.026))
:herbie-target
(if (< (fabs x) 0.026) (* (/ x 3) (+ 1 (/ (* x x) 15))) (- (/ 1 x) (/ 1 (tan x))))
(- (/ 1 x) (/ 1 (tan x))))
Time bar (total: 22.5s)Debug log
1 calls. Slowest were:
| 5.0ms | (- (/ 1 x) (/ 1 (tan x))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 60.2b
Found 2 expressions with local error:
| 2.9b | (- (/ 1 x) (/ 1 (tan x))) |
| 0.0b | (/ 1 (tan x)) |
2 calls. Slowest were:
| 6.0ms | (- (/ 1 x) (/ 1 (tan x))) |
| 1.0ms | (/ 1 (tan x)) |
2 calls. Slowest were:
| 86.0ms | (- (/ 1 x) (/ 1 (tan x))) |
| 49.0ms | (/ 1 (tan x)) |
20 calls. Slowest were:
| 142.0ms | (- (/ 1 x) (+ (* 1/3 x) (* 1/45 (pow x 3)))) |
| 30.0ms | (+ (* 1/3 x) (+ (* 1/45 (pow x 3)) (* 2/945 (pow x 5)))) |
| 25.0ms | (/ (exp (/ 1 x)) (exp (/ 1 (tan x)))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.3b
Found 4 expressions with local error:
| 0.3b | (* 1/3 x) |
| 0.1b | (* 1/45 (pow x 3)) |
| 0.1b | (* 2/945 (pow x 5)) |
| 0.0b | (+ (* 1/45 (pow x 3)) (* 2/945 (pow x 5))) |
4 calls. Slowest were:
| 3.0ms | (+ (* 1/45 (pow x 3)) (* 2/945 (pow x 5))) |
| 1.0ms | (* 1/45 (pow x 3)) |
| 1.0ms | (* 2/945 (pow x 5)) |
4 calls. Slowest were:
| 97.0ms | (+ (* 1/45 (pow x 3)) (* 2/945 (pow x 5))) |
| 20.0ms | (* 2/945 (pow x 5)) |
| 15.0ms | (* 1/45 (pow x 3)) |
| 7.0ms | (* 1/3 x) |
20 calls. Slowest were:
| 31.0ms | (* (exp (* 1/45 (pow x 3))) (exp (* 2/945 (pow x 5)))) |
| 21.0ms | (+ (* 1/45 (pow x 3)) (* 2/945 (pow x 5))) |
| 21.0ms | (+ (* 1/45 (pow x 3)) (* 2/945 (pow x 5))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.3b
Found 4 expressions with local error:
| 0.6b | (cbrt (* 1/3 x)) |
| 0.6b | (cbrt (* 1/3 x)) |
| 0.6b | (cbrt (* 1/3 x)) |
| 0.5b | (* (cbrt (* 1/3 x)) (cbrt (* 1/3 x))) |
4 calls. Slowest were:
| 4.0ms | (* (cbrt (* 1/3 x)) (cbrt (* 1/3 x))) |
| 1.0ms | (cbrt (* 1/3 x)) |
| 0.0ms | (cbrt (* 1/3 x)) |
4 calls. Slowest were:
| 357.0ms | (* (cbrt (* 1/3 x)) (cbrt (* 1/3 x))) |
| 338.0ms | (cbrt (* 1/3 x)) |
| 324.0ms | (cbrt (* 1/3 x)) |
| 256.0ms | (cbrt (* 1/3 x)) |
31 calls. Slowest were:
| 18.0ms | (* (pow (cbrt -1/3) 2) (pow (pow x 2) 1/3)) |
| 17.0ms | (* (pow (cbrt 1/3) 2) (pow (pow x 2) 1/3)) |
| 16.0ms | (* (pow (cbrt 1/3) 2) (pow (pow x 2) 1/3)) |
13 alts after pruning (12 fresh and 1 done)
Merged error: 0.2b
Found 4 expressions with local error:
| 0.6b | (cbrt x) |
| 0.6b | (cbrt (* 1/3 x)) |
| 0.6b | (cbrt (* 1/3 x)) |
| 0.5b | (* (cbrt 1/3) (* (cbrt x) (cbrt (* 1/3 x)))) |
4 calls. Slowest were:
| 11.0ms | (* (cbrt 1/3) (* (cbrt x) (cbrt (* 1/3 x)))) |
| 0.0ms | (cbrt (* 1/3 x)) |
| 0.0ms | (cbrt (* 1/3 x)) |
4 calls. Slowest were:
| 416.0ms | (* (cbrt 1/3) (* (cbrt x) (cbrt (* 1/3 x)))) |
| 299.0ms | (cbrt x) |
| 293.0ms | (cbrt (* 1/3 x)) |
| 280.0ms | (cbrt (* 1/3 x)) |
24 calls. Slowest were:
| 442.0ms | (* 1/3 (* (* (* (cbrt x) (cbrt (* 1/3 x))) (* (cbrt x) (cbrt (* 1/3 x)))) (* (cbrt x) (cbrt (* 1/3 x))))) |
| 73.0ms | (* (* (cbrt -1/3) (* (cbrt 1/3) (cbrt -1))) (pow (pow x 2) 1/3)) |
| 22.0ms | (+ (log (cbrt 1/3)) (log (* (cbrt x) (cbrt (* 1/3 x))))) |
16 alts after pruning (15 fresh and 1 done)
Merged error: 0.1b
0% (0.2b remaining)
Error of 0.3b against oracle of 0.2b and baseline of 0.3b