


Bits error versus x
Results
Initial program 0.3
rmApplied flip-+0.4
Applied associate-/r/0.4
rmApplied add-exp-log0.5
Final simplification0.5
herbie shell --seed 2019022
(FPCore (x)
:name "Trigonometry B"
(/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))
Time bar (total: 16.7s)Debug log
| 106.0ms | 45× | body | 1280 | valid |
| 28.0ms | 143× | body | 80 | valid |
| 28.0ms | 31× | body | 640 | valid |
| 16.0ms | 25× | body | 320 | valid |
| 5.0ms | 12× | body | 160 | valid |
| 67.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.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))) |
| 16× | add-cube-cbrt |
| 16× | *-un-lft-identity |
| 16× | add-sqr-sqrt |
| 14× | pow1 |
| 10× | add-exp-log |
| 10× | add-cbrt-cube |
| 9× | times-frac |
| 8× | tan-quot |
| 6× | associate-*l* |
| 6× | associate-*r* |
| 4× | add-log-exp |
| 3× | associate-/l* |
| 3× | associate-/r* |
| 2× | associate-/l/ |
| 2× | flip-- |
| 2× | cbrt-unprod |
| 2× | pow-prod-up |
| 2× | *-commutative |
| 2× | associate-/r/ |
| 2× | associate-*r/ |
| 2× | prod-exp |
| 2× | associate-*l/ |
| 2× | pow-prod-down |
| 2× | flip3-- |
| 2× | pow-plus |
| 2× | frac-times |
| 2× | pow2 |
| 1× | div-inv |
| 1× | flip-+ |
| 1× | div-exp |
| 1× | div-sub |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 5.0ms | (* (tan x) (tan x)) |
| 4.0ms | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
| 4.0ms | (* (tan x) (tan x)) |
| 1.0ms | (- 1 (* (tan x) (tan x))) |
| 100.0ms | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
| 52.0ms | (* (tan x) (tan x)) |
| 46.0ms | (* (tan x) (tan x)) |
| 23.0ms | (- 1 (* (tan x) (tan x))) |
| 419.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))))) |
| 213.0ms | (+ (* 1 1) (- (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* 1 (* (tan x) (tan x))))) |
| 165.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 159.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 47.0ms | (- (pow 1 3) (pow (* (tan x) (tan x)) 3)) |
13 alts after pruning (13 fresh and 0 done)
Merged error: 0.0b
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))) |
| 0.2b | (/ 1 (+ 1 (* (tan x) (tan x)))) |
| 15× | pow1 |
| 9× | add-cube-cbrt |
| 9× | add-exp-log |
| 9× | *-un-lft-identity |
| 9× | add-sqr-sqrt |
| 8× | tan-quot |
| 8× | add-cbrt-cube |
| 6× | associate-*l* |
| 6× | associate-*r* |
| 4× | add-log-exp |
| 3× | associate-/r* |
| 2× | cbrt-unprod |
| 2× | pow-prod-up |
| 2× | *-commutative |
| 2× | associate-/r/ |
| 2× | associate-*r/ |
| 2× | prod-exp |
| 2× | associate-*l/ |
| 2× | pow-prod-down |
| 2× | pow-plus |
| 2× | frac-times |
| 2× | pow2 |
| 1× | inv-pow |
| 1× | flip-- |
| 1× | pow-flip |
| 1× | div-inv |
| 1× | flip-+ |
| 1× | flip3-- |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | rec-exp |
| 7.0ms | (* (tan x) (tan x)) |
| 7.0ms | (* (tan x) (tan x)) |
| 2.0ms | (- 1 (* (tan x) (tan x))) |
| 2.0ms | (/ 1 (+ 1 (* (tan x) (tan x)))) |
| 39.0ms | (/ 1 (+ 1 (* (tan x) (tan x)))) |
| 31.0ms | (* (tan x) (tan x)) |
| 28.0ms | (* (tan x) (tan x)) |
| 24.0ms | (- 1 (* (tan x) (tan x))) |
| 256.0ms | (+ (* 1 1) (- (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* 1 (* (tan x) (tan x))))) |
| 46.0ms | (- 1 (+ (pow x 2) (* 2/3 (pow x 4)))) |
| 41.0ms | (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) |
| 30.0ms | (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) |
| 24.0ms | (/ 1 (+ (/ (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.3b | (* (* (tan x) (tan x)) (* (tan x) (tan x))) |
| 0.3b | (* (tan x) (tan x)) |
| 0.3b | (* (tan x) (tan x)) |
| 0.3b | (* (tan x) (tan x)) |
| 76× | pow1 |
| 44× | tan-quot |
| 26× | pow-prod-up |
| 22× | add-exp-log |
| 22× | add-cbrt-cube |
| 21× | pow-prod-down |
| 20× | frac-times |
| 15× | pow-plus |
| 14× | associate-*r/ |
| 14× | associate-*l/ |
| 12× | pow2 |
| 11× | cbrt-unprod |
| 11× | prod-exp |
| 10× | add-cube-cbrt |
| 10× | associate-*l* |
| 10× | associate-*r* |
| 10× | *-un-lft-identity |
| 10× | add-sqr-sqrt |
| 4× | add-log-exp |
| 4× | *-commutative |
| 31.0ms | (* (* (tan x) (tan x)) (* (tan x) (tan x))) |
| 8.0ms | (* (tan x) (tan x)) |
| 4.0ms | (* (tan x) (tan x)) |
| 4.0ms | (* (tan x) (tan x)) |
| 45.0ms | (* (tan x) (tan x)) |
| 41.0ms | (* (tan x) (tan x)) |
| 39.0ms | (* (* (tan x) (tan x)) (* (tan x) (tan x))) |
| 26.0ms | (* (tan x) (tan x)) |
| 133.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)))) |
| 92.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)))) |
| 91.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)))) |
| 78.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)))) |
| 30.0ms | (* (* (* (tan x) (tan x)) (tan x)) (* (* (tan x) (tan x)) (tan x))) |
12 alts after pruning (12 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 17.4b | (log (* (tan x) (tan x))) |
| 1.5b | (exp (log (* (tan x) (tan x)))) |
| 0.3b | (* (* (tan x) (tan x)) (* (tan x) (tan x))) |
| 0.3b | (* (tan x) (tan x)) |
| 78× | pow1 |
| 44× | tan-quot |
| 26× | pow-prod-up |
| 21× | add-exp-log |
| 21× | pow-prod-down |
| 20× | frac-times |
| 18× | add-cbrt-cube |
| 15× | pow-plus |
| 14× | associate-*r/ |
| 14× | associate-*l/ |
| 12× | pow2 |
| 10× | log-pow |
| 10× | prod-exp |
| 9× | cbrt-unprod |
| 8× | exp-prod |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 6× | log-div |
| 4× | add-log-exp |
| 4× | associate-*l* |
| 4× | associate-*r* |
| 3× | exp-diff |
| 2× | *-commutative |
| 2× | rem-log-exp |
| 2× | log-prod |
| 1× | rem-exp-log |
| 1× | exp-sum |
| 31.0ms | (* (* (tan x) (tan x)) (* (tan x) (tan x))) |
| 13.0ms | (exp (log (* (tan x) (tan x)))) |
| 7.0ms | (* (tan x) (tan x)) |
| 3.0ms | (log (* (tan x) (tan x))) |
| 119.0ms | (log (* (tan x) (tan x))) |
| 55.0ms | (* (* (tan x) (tan x)) (* (tan x) (tan x))) |
| 46.0ms | (exp (log (* (tan x) (tan x)))) |
| 41.0ms | (* (tan x) (tan x)) |
| 94.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)))) |
| 88.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)))) |
| 85.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)))) |
| 79.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)))) |
| 40.0ms | (log (/ (pow (sin x) 2) (pow (cos x) 2))) |
12 alts after pruning (11 fresh and 1 done)
Merged error: 0.0b
0% (0.4b remaining)
Error of 0.5b against oracle of 0.1b and baseline of 0.5b
| 3.2s | 1523× | body | 1280 | valid |
| 1.2s | 1167× | body | 640 | valid |
| 999.0ms | 4354× | body | 80 | valid |
| 399.0ms | 632× | body | 320 | valid |
| 179.0ms | 324× | body | 160 | valid |