


Bits error versus x
Results
Initial program 0.3
Initial simplification0.3
Taylor expanded around -inf 0.4
rmApplied log1p-expm1-u0.4
Final simplification0.4
herbie shell --seed 2018362 +o rules:numerics
(FPCore (x)
:name "Trigonometry B"
(/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))
Time bar (total: 9.8s)Debug log
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.2b
Found 4 expressions with local error:
| 0.2b | (* (tan x) (tan x)) |
| 0.2b | (- 1 (* (tan x) (tan x))) |
| 0.2b | (fma (tan x) (tan x) 1) |
| 0.1b | (/ (- 1 (* (tan x) (tan x))) (fma (tan x) (tan x) 1)) |
4 calls. Slowest were:
| 5.0ms | (* (tan x) (tan x)) |
| 4.0ms | (/ (- 1 (* (tan x) (tan x))) (fma (tan x) (tan x) 1)) |
| 1.0ms | (- 1 (* (tan x) (tan x))) |
4 calls. Slowest were:
| 105.0ms | (/ (- 1 (* (tan x) (tan x))) (fma (tan x) (tan x) 1)) |
| 38.0ms | (* (tan x) (tan x)) |
| 32.0ms | (- 1 (* (tan x) (tan x))) |
| 31.0ms | (fma (tan x) (tan x) 1) |
55 calls. Slowest were:
| 324.0ms | (/ (* (* (- 1 (* (tan x) (tan x))) (- 1 (* (tan x) (tan x)))) (- 1 (* (tan x) (tan x)))) (* (* (fma (tan x) (tan x) 1) (fma (tan x) (tan x) 1)) (fma (tan x) (tan x) 1))) |
| 264.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 220.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
11 alts after pruning (11 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) |
| 19.0ms | (pow (sin x) 2) |
| 15.0ms | (pow (cos x) 2) |
| 13.0ms | (pow (cos x) 2) |
32 calls. Slowest were:
| 80.0ms | (- (+ (pow x 2) (* 2/45 (pow x 6))) (* 1/3 (pow x 4))) |
| 57.0ms | (- (+ (* 1/3 (pow x 4)) 1) (pow x 2)) |
| 49.0ms | (- (+ (pow x 2) (* 2/45 (pow x 6))) (* 1/3 (pow x 4))) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.7b | (expm1 (pow (cos x) 2)) |
| 0.2b | (pow (cos x) 2) |
| 0.2b | (pow (cos x) 2) |
| 0.2b | (pow (sin x) 2) |
4 calls. Slowest were:
| 1.0ms | (pow (sin x) 2) |
| 1.0ms | (pow (cos x) 2) |
| 1.0ms | (pow (cos x) 2) |
4 calls. Slowest were:
| 92.0ms | (expm1 (pow (cos x) 2)) |
| 25.0ms | (pow (sin x) 2) |
| 23.0ms | (pow (cos x) 2) |
| 19.0ms | (pow (cos x) 2) |
28 calls. Slowest were:
| 230.0ms | (- (+ (* 5/6 (* (pow x 4) E)) E) (+ (* (pow x 2) E) 1)) |
| 71.0ms | (- (+ (pow x 2) (* 2/45 (pow x 6))) (* 1/3 (pow x 4))) |
| 35.0ms | (- (+ (* 1/3 (pow x 4)) 1) (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 | (- 1 (* (tan x) (tan x))) |
| 0.2b | (/ 1 (/ (fma (tan x) (tan x) 1) (- 1 (* (tan x) (tan x))))) |
| 0.2b | (fma (tan x) (tan x) 1) |
4 calls. Slowest were:
| 4.0ms | (* (tan x) (tan x)) |
| 2.0ms | (/ 1 (/ (fma (tan x) (tan x) 1) (- 1 (* (tan x) (tan x))))) |
| 1.0ms | (- 1 (* (tan x) (tan x))) |
4 calls. Slowest were:
| 93.0ms | (/ 1 (/ (fma (tan x) (tan x) 1) (- 1 (* (tan x) (tan x))))) |
| 52.0ms | (fma (tan x) (tan x) 1) |
| 42.0ms | (* (tan x) (tan x)) |
| 23.0ms | (- 1 (* (tan x) (tan x))) |
44 calls. Slowest were:
| 213.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 205.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 96.0ms | (+ (* 1 1) (+ (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* 1 (* (tan x) (tan x))))) |
10 alts after pruning (9 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