


Bits error versus x
Results
Initial program 0.3
rmApplied tan-quot0.4
Applied associate-*r/0.4
rmApplied *-commutative0.4
rmApplied tan-quot0.4
Applied associate-*l/0.3
Final simplification0.3
herbie shell --seed 2019008
(FPCore (x)
:name "Trigonometry B"
(/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))
Time bar (total: 23.4s)Debug log
1 calls. Slowest were:
| 78.0ms | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.3b
Found 4 expressions with local error:
| 0.2b | (* (tan x) (tan x)) |
| 0.2b | (* (tan x) (tan x)) |
| 0.2b | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
| 0.1b | (- 1 (* (tan x) (tan x))) |
4 calls. Slowest were:
| 11.0ms | (* (tan x) (tan x)) |
| 8.0ms | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
| 8.0ms | (* (tan x) (tan x)) |
4 calls. Slowest were:
| 96.0ms | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
| 73.0ms | (* (tan x) (tan x)) |
| 47.0ms | (* (tan x) (tan x)) |
| 41.0ms | (- 1 (* (tan x) (tan x))) |
72 calls. Slowest were:
| 433.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))))) |
| 238.0ms | (+ (* 1 1) (- (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* 1 (* (tan x) (tan x))))) |
| 192.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.2b | (* (tan x) (tan x)) |
| 0.2b | (* (tan x) (tan x)) |
| 0.2b | (/ 1 (/ (+ 1 (* (tan x) (tan x))) (- 1 (* (tan x) (tan x))))) |
| 0.1b | (- 1 (* (tan x) (tan x))) |
4 calls. Slowest were:
| 10.0ms | (* (tan x) (tan x)) |
| 8.0ms | (* (tan x) (tan x)) |
| 3.0ms | (/ 1 (/ (+ 1 (* (tan x) (tan x))) (- 1 (* (tan x) (tan x))))) |
4 calls. Slowest were:
| 83.0ms | (/ 1 (/ (+ 1 (* (tan x) (tan x))) (- 1 (* (tan x) (tan x))))) |
| 44.0ms | (* (tan x) (tan x)) |
| 44.0ms | (* (tan x) (tan x)) |
| 35.0ms | (- 1 (* (tan x) (tan x))) |
59 calls. Slowest were:
| 242.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 203.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 69.0ms | (- (+ (* 2/3 (pow x 4)) 1) (* 2 (pow x 2))) |
11 alts after pruning (10 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.2b | (* (tan x) (tan x)) |
| 0.2b | (/ (* (tan x) (sin x)) (cos x)) |
| 0.2b | (* (tan x) (sin x)) |
| 0.2b | (/ (- 1 (/ (* (tan x) (sin x)) (cos x))) (+ 1 (* (tan x) (tan x)))) |
4 calls. Slowest were:
| 11.0ms | (/ (- 1 (/ (* (tan x) (sin x)) (cos x))) (+ 1 (* (tan x) (tan x)))) |
| 7.0ms | (/ (* (tan x) (sin x)) (cos x)) |
| 5.0ms | (* (tan x) (sin x)) |
4 calls. Slowest were:
| 87.0ms | (/ (- 1 (/ (* (tan x) (sin x)) (cos x))) (+ 1 (* (tan x) (tan x)))) |
| 65.0ms | (* (tan x) (sin x)) |
| 64.0ms | (/ (* (tan x) (sin x)) (cos x)) |
| 28.0ms | (* (tan x) (tan x)) |
81 calls. Slowest were:
| 568.0ms | (/ (* (* (* (tan x) (tan x)) (tan x)) (* (* (sin x) (sin x)) (sin x))) (* (* (cos x) (cos x)) (cos x))) |
| 501.0ms | (/ (* (* (* (tan x) (sin x)) (* (tan x) (sin x))) (* (tan x) (sin x))) (* (* (cos x) (cos x)) (cos x))) |
| 387.0ms | (/ (* (* (- 1 (/ (* (tan x) (sin x)) (cos x))) (- 1 (/ (* (tan x) (sin x)) (cos x)))) (- 1 (/ (* (tan x) (sin x)) (cos x)))) (* (* (+ 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (+ 1 (* (tan x) (tan x))))) |
11 alts after pruning (10 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.2b | (* (tan x) (tan x)) |
| 0.2b | (/ (* (sin x) (tan x)) (cos x)) |
| 0.2b | (* (sin x) (tan x)) |
| 0.2b | (/ (- 1 (/ (* (sin x) (tan x)) (cos x))) (+ 1 (* (tan x) (tan x)))) |
4 calls. Slowest were:
| 10.0ms | (/ (* (sin x) (tan x)) (cos x)) |
| 7.0ms | (* (tan x) (tan x)) |
| 6.0ms | (/ (- 1 (/ (* (sin x) (tan x)) (cos x))) (+ 1 (* (tan x) (tan x)))) |
4 calls. Slowest were:
| 89.0ms | (/ (* (sin x) (tan x)) (cos x)) |
| 83.0ms | (/ (- 1 (/ (* (sin x) (tan x)) (cos x))) (+ 1 (* (tan x) (tan x)))) |
| 41.0ms | (* (sin x) (tan x)) |
| 29.0ms | (* (tan x) (tan x)) |
81 calls. Slowest were:
| 622.0ms | (/ (* (* (* (sin x) (sin x)) (sin x)) (* (* (tan x) (tan x)) (tan x))) (* (* (cos x) (cos x)) (cos x))) |
| 483.0ms | (/ (* (* (- 1 (/ (* (sin x) (tan x)) (cos x))) (- 1 (/ (* (sin x) (tan x)) (cos x)))) (- 1 (/ (* (sin x) (tan x)) (cos x)))) (* (* (+ 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (+ 1 (* (tan x) (tan x))))) |
| 482.0ms | (/ (* (* (* (sin x) (tan x)) (* (sin x) (tan x))) (* (sin x) (tan x))) (* (* (cos x) (cos x)) (cos x))) |
11 alts after pruning (9 fresh and 2 done)
Merged error: 0.0b
0% (0.2b remaining)
Error of 0.3b against oracle of 0.1b and baseline of 0.3b