


Bits error versus x
Results
Initial program 0.3
Initial simplification0.3
rmApplied div-sub0.4
rmApplied tan-quot0.4
Applied tan-quot0.4
Applied frac-times0.4
rmApplied frac-sub0.4
Final simplification0.4
herbie shell --seed 2018362
(FPCore (x)
:name "Trigonometry B"
(/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))
Time bar (total: 11.7s)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:
| 10.0ms | (* (tan x) (tan x)) |
| 7.0ms | (/ (- 1 (* (tan x) (tan x))) (+ (* (tan x) (tan x)) 1)) |
| 4.0ms | (* (tan x) (tan x)) |
4 calls. Slowest were:
| 101.0ms | (/ (- 1 (* (tan x) (tan x))) (+ (* (tan x) (tan x)) 1)) |
| 59.0ms | (* (tan x) (tan x)) |
| 37.0ms | (* (tan x) (tan x)) |
| 24.0ms | (- 1 (* (tan x) (tan x))) |
72 calls. Slowest were:
| 495.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 302.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))) |
| 194.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
12 alts after pruning (12 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.2b | (pow (cos x) 2) |
| 0.2b | (pow (cos x) 2) |
| 0.2b | (pow (sin x) 2) |
| 0.2b | (pow (sin x) 2) |
4 calls. Slowest were:
| 1.0ms | (pow (cos x) 2) |
| 1.0ms | (pow (sin x) 2) |
| 1.0ms | (pow (cos x) 2) |
4 calls. Slowest were:
| 25.0ms | (pow (sin x) 2) |
| 16.0ms | (pow (sin x) 2) |
| 15.0ms | (pow (cos x) 2) |
| 12.0ms | (pow (cos x) 2) |
32 calls. Slowest were:
| 46.0ms | (- (+ (* 1/3 (pow x 4)) 1) (pow x 2)) |
| 46.0ms | (- (+ (pow x 2) (* 2/45 (pow x 6))) (* 1/3 (pow x 4))) |
| 44.0ms | (- (+ (pow x 2) (* 2/45 (pow x 6))) (* 1/3 (pow x 4))) |
11 alts after pruning (11 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.3b | (- (/ 1 (+ (* (tan x) (tan x)) 1)) (/ (* (tan x) (tan x)) (+ (* (tan x) (tan x)) 1))) |
| 0.2b | (* (tan x) (tan x)) |
| 0.2b | (* (tan x) (tan x)) |
| 0.2b | (* (tan x) (tan x)) |
4 calls. Slowest were:
| 47.0ms | (- (/ 1 (+ (* (tan x) (tan x)) 1)) (/ (* (tan x) (tan x)) (+ (* (tan x) (tan x)) 1))) |
| 4.0ms | (* (tan x) (tan x)) |
| 4.0ms | (* (tan x) (tan x)) |
4 calls. Slowest were:
| 139.0ms | (- (/ 1 (+ (* (tan x) (tan x)) 1)) (/ (* (tan x) (tan x)) (+ (* (tan x) (tan x)) 1))) |
| 44.0ms | (* (tan x) (tan x)) |
| 39.0ms | (* (tan x) (tan x)) |
| 26.0ms | (* (tan x) (tan x)) |
76 calls. Slowest were:
| 320.0ms | (- (/ 1 (- (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* 1 1))) (/ (* (tan x) (tan x)) (- (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* 1 1)))) |
| 297.0ms | (- (* 1 (+ (* (tan x) (tan x)) 1)) (* (+ (* (tan x) (tan x)) 1) (* (tan x) (tan x)))) |
| 271.0ms | (+ (* (* (tan x) (tan x)) (* (tan x) (tan x))) (- (* 1 1) (* (* (tan x) (tan x)) 1))) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.3b | (- (/ 1 (+ (/ (* (sin x) (sin x)) (* (cos x) (cos x))) 1)) (/ (* (tan x) (tan x)) (+ (* (tan x) (tan x)) 1))) |
| 0.2b | (* (tan x) (tan x)) |
| 0.2b | (* (tan x) (tan x)) |
| 0.2b | (* (cos x) (cos x)) |
4 calls. Slowest were:
| 16.0ms | (- (/ 1 (+ (/ (* (sin x) (sin x)) (* (cos x) (cos x))) 1)) (/ (* (tan x) (tan x)) (+ (* (tan x) (tan x)) 1))) |
| 7.0ms | (* (tan x) (tan x)) |
| 7.0ms | (* (cos x) (cos x)) |
4 calls. Slowest were:
| 119.0ms | (- (/ 1 (+ (/ (* (sin x) (sin x)) (* (cos x) (cos x))) 1)) (/ (* (tan x) (tan x)) (+ (* (tan x) (tan x)) 1))) |
| 29.0ms | (* (tan x) (tan x)) |
| 26.0ms | (* (tan x) (tan x)) |
| 12.0ms | (* (cos x) (cos x)) |
64 calls. Slowest were:
| 179.0ms | (* (+ (/ (* (sin x) (sin x)) (* (cos x) (cos x))) 1) (+ (* (tan x) (tan x)) 1)) |
| 163.0ms | (- (/ 1 (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) (/ (pow (sin x) 2) (* (pow (cos x) 2) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)))) |
| 140.0ms | (- (/ 1 (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) (/ (pow (sin x) 2) (* (pow (cos x) 2) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)))) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 0.0b
0% (0.3b remaining)
Error of 0.4b against oracle of 0.1b and baseline of 0.4b