


Bits error versus x
Results
Initial program 0.3
Taylor expanded around -inf 0.4
Final simplification0.4
herbie shell --seed 2019004 +o rules:numerics
(FPCore (x)
:name "Trigonometry B"
(/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))
Time bar (total: 18.9s)Debug log
1 calls. Slowest were:
| 58.0ms | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.3b
Found 4 expressions with local error:
| 0.3b | (* (tan x) (tan x)) |
| 0.3b | (* (tan x) (tan x)) |
| 0.2b | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
| 0.2b | (- 1 (* (tan x) (tan x))) |
4 calls. Slowest were:
| 6.0ms | (* (tan x) (tan x)) |
| 4.0ms | (* (tan x) (tan x)) |
| 4.0ms | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
4 calls. Slowest were:
| 66.0ms | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
| 37.0ms | (* (tan x) (tan x)) |
| 28.0ms | (* (tan x) (tan x)) |
| 24.0ms | (- 1 (* (tan x) (tan x))) |
72 calls. Slowest were:
| 576.0ms | (/ (* (* (- 1 (* (tan x) (tan x))) (- 1 (* (tan x) (tan x)))) (- 1 (* (tan x) (tan x)))) (* (* (+ 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (+ 1 (* (tan x) (tan x))))) |
| 438.0ms | (+ (* 1 1) (- (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* 1 (* (tan x) (tan x))))) |
| 215.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
15 alts after pruning (15 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.4b | (pow (* (tan x) (tan x)) 3) |
| 0.3b | (fma (tan x) (tan x) -1) |
| 0.3b | (* (tan x) (tan x)) |
| 0.3b | (* (tan x) (tan x)) |
4 calls. Slowest were:
| 12.0ms | (* (tan x) (tan x)) |
| 8.0ms | (* (tan x) (tan x)) |
| 7.0ms | (pow (* (tan x) (tan x)) 3) |
4 calls. Slowest were:
| 70.0ms | (pow (* (tan x) (tan x)) 3) |
| 54.0ms | (fma (tan x) (tan x) -1) |
| 38.0ms | (* (tan x) (tan x)) |
| 28.0ms | (* (tan x) (tan x)) |
56 calls. Slowest were:
| 56.0ms | (- (+ (pow x 2) (* 2/3 (pow x 4))) 1) |
| 51.0ms | (- (/ (pow (sin x) 2) (pow (cos x) 2)) 1) |
| 39.0ms | (pow (* (tan x) (sin x)) 3) |
12 alts after pruning (12 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.4b | (log (exp (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))) |
| 0.3b | (* (tan x) (tan x)) |
| 0.3b | (* (tan x) (tan x)) |
| 0.2b | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
4 calls. Slowest were:
| 5.0ms | (log (exp (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))) |
| 4.0ms | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
| 4.0ms | (* (tan x) (tan x)) |
4 calls. Slowest were:
| 89.0ms | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
| 81.0ms | (log (exp (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))) |
| 32.0ms | (* (tan x) (tan x)) |
| 29.0ms | (* (tan x) (tan x)) |
92 calls. Slowest were:
| 510.0ms | (/ (* (* (- 1 (* (tan x) (tan x))) (- 1 (* (tan x) (tan x)))) (- 1 (* (tan x) (tan x)))) (* (* (+ 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (+ 1 (* (tan x) (tan x))))) |
| 458.0ms | (+ (* 1 1) (- (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* 1 (* (tan x) (tan x))))) |
| 458.0ms | (+ (* 1 1) (- (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* 1 (* (tan x) (tan x))))) |
12 alts after pruning (12 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.3b | (pow (cos x) 2) |
| 0.3b | (pow (cos x) 2) |
| 0.2b | (pow (sin x) 2) |
| 0.2b | (pow (sin x) 2) |
4 calls. Slowest were:
| 2.0ms | (pow (cos x) 2) |
| 2.0ms | (pow (sin x) 2) |
| 2.0ms | (pow (sin x) 2) |
4 calls. Slowest were:
| 25.0ms | (pow (sin x) 2) |
| 24.0ms | (pow (sin x) 2) |
| 19.0ms | (pow (cos x) 2) |
| 18.0ms | (pow (cos x) 2) |
32 calls. Slowest were:
| 51.0ms | (- (+ (pow x 2) (* 2/45 (pow x 6))) (* 1/3 (pow x 4))) |
| 50.0ms | (- (+ (pow x 2) (* 2/45 (pow x 6))) (* 1/3 (pow x 4))) |
| 40.0ms | (- (+ (* 1/3 (pow x 4)) 1) (pow x 2)) |
12 alts after pruning (11 fresh and 1 done)
Merged error: 0.0b
0% (0.3b remaining)
Error of 0.4b against oracle of 0.1b and baseline of 0.4b