


Bits error versus x
Results
Initial program 0.3
Initial simplification0.3
rmApplied flip-+0.4
Applied associate-/r/0.4
Final simplification0.4
herbie shell --seed 2018360
(FPCore (x)
:name "Trigonometry B"
(/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))
Time bar (total: 12.6s)Debug log
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))) |
| 0.1b | (/ (- 1 (* (tan x) (tan x))) (+ (* (tan x) (tan x)) 1)) |
4 calls. Slowest were:
| 8.0ms | (/ (- 1 (* (tan x) (tan x))) (+ (* (tan x) (tan x)) 1)) |
| 6.0ms | (* (tan x) (tan x)) |
| 5.0ms | (* (tan x) (tan x)) |
4 calls. Slowest were:
| 103.0ms | (/ (- 1 (* (tan x) (tan x))) (+ (* (tan x) (tan x)) 1)) |
| 57.0ms | (* (tan x) (tan x)) |
| 54.0ms | (* (tan x) (tan x)) |
| 39.0ms | (- 1 (* (tan x) (tan x))) |
72 calls. Slowest were:
| 405.0ms | (/ (* (* (- 1 (* (tan x) (tan x))) (- 1 (* (tan x) (tan x)))) (- 1 (* (tan x) (tan x)))) (* (* (+ (* (tan x) (tan x)) 1) (+ (* (tan x) (tan x)) 1)) (+ (* (tan x) (tan x)) 1))) |
| 259.0ms | (+ (* (* (tan x) (tan x)) (* (tan x) (tan x))) (- (* 1 1) (* (* (tan x) (tan x)) 1))) |
| 210.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.1b
Found 4 expressions with local error:
| 0.3b | (* (* (tan x) (tan x)) (* (tan x) (tan x))) |
| 0.2b | (* (tan x) (tan x)) |
| 0.2b | (* (tan x) (tan x)) |
| 0.2b | (* (tan x) (tan x)) |
4 calls. Slowest were:
| 21.0ms | (* (* (tan x) (tan x)) (* (tan x) (tan x))) |
| 8.0ms | (* (tan x) (tan x)) |
| 8.0ms | (* (tan x) (tan x)) |
4 calls. Slowest were:
| 41.0ms | (* (* (tan x) (tan x)) (* (tan x) (tan x))) |
| 32.0ms | (* (tan x) (tan x)) |
| 31.0ms | (* (tan x) (tan x)) |
| 26.0ms | (* (tan x) (tan x)) |
132 calls. Slowest were:
| 120.0ms | (* (* (* (* (tan x) (tan x)) (tan x)) (* (* (tan x) (tan x)) (tan x))) (* (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* (tan x) (tan x)))) |
| 117.0ms | (* (* (* (* (tan x) (tan x)) (tan x)) (* (* (tan x) (tan x)) (tan x))) (* (* (* (tan x) (tan x)) (tan x)) (* (* (tan x) (tan x)) (tan x)))) |
| 113.0ms | (* (* (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* (tan x) (tan x))) (* (* (* (tan x) (tan x)) (tan x)) (* (* (tan x) (tan x)) (tan x)))) |
10 alts after pruning (9 fresh and 1 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 0.2b | (* (tan x) (tan x)) |
| 0.2b | (- 1 (/ (* (tan x) (sin x)) (cos x))) |
| 0.2b | (* (tan x) (sin x)) |
| 0.2b | (/ (* (tan x) (sin x)) (cos x)) |
4 calls. Slowest were:
| 11.0ms | (/ (* (tan x) (sin x)) (cos x)) |
| 4.0ms | (* (tan x) (tan x)) |
| 4.0ms | (* (tan x) (sin x)) |
4 calls. Slowest were:
| 77.0ms | (/ (* (tan x) (sin x)) (cos x)) |
| 52.0ms | (- 1 (/ (* (tan x) (sin x)) (cos x))) |
| 43.0ms | (* (tan x) (sin x)) |
| 33.0ms | (* (tan x) (tan x)) |
51 calls. Slowest were:
| 566.0ms | (/ (* (* (* (tan x) (sin x)) (* (tan x) (sin x))) (* (tan x) (sin x))) (* (* (cos x) (cos x)) (cos x))) |
| 522.0ms | (/ (* (* (* (tan x) (tan x)) (tan x)) (* (* (sin x) (sin x)) (sin x))) (* (* (cos x) (cos x)) (cos x))) |
| 63.0ms | (- 1 (+ (pow x 2) (* 2/3 (pow x 4)))) |
12 alts after pruning (11 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.3b | (* (sin x) (sin x)) |
| 0.2b | (* (cos x) (cos x)) |
| 0.2b | (- 1 (/ (* (tan x) (sin x)) (cos x))) |
| 0.2b | (* (tan x) (sin x)) |
4 calls. Slowest were:
| 4.0ms | (* (tan x) (sin x)) |
| 4.0ms | (* (sin x) (sin x)) |
| 3.0ms | (* (cos x) (cos x)) |
4 calls. Slowest were:
| 64.0ms | (- 1 (/ (* (tan x) (sin x)) (cos x))) |
| 43.0ms | (* (tan x) (sin x)) |
| 25.0ms | (* (cos x) (cos x)) |
| 24.0ms | (* (sin x) (sin x)) |
47 calls. Slowest were:
| 84.0ms | (* (* (* (tan x) (tan x)) (tan x)) (* (* (sin x) (sin x)) (sin x))) |
| 73.0ms | (- 1 (+ (pow x 2) (* 2/3 (pow x 4)))) |
| 67.0ms | (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) |
12 alts after pruning (10 fresh and 2 done)
Merged error: 0.0b
0% (0.3b remaining)
Error of 0.4b against oracle of 0.1b and baseline of 0.4b