


Bits error versus x
Results
Initial program 0.3
rmApplied flip3--0.4
Final simplification0.4
herbie shell --seed 2019010 +o rules:numerics
(FPCore (x)
:name "Trigonometry B"
(/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))
Time bar (total: 21.1s)Debug log
| 76.0ms | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
2 alts after pruning (2 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.1b | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
| 0.1b | (- 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 |
| 4× | log1p-expm1-u |
| 4× | expm1-log1p-u |
| 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 |
| 11.0ms | (* (tan x) (tan x)) |
| 7.0ms | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
| 7.0ms | (* (tan x) (tan x)) |
| 2.0ms | (- 1 (* (tan x) (tan x))) |
| 117.0ms | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
| 57.0ms | (* (tan x) (tan x)) |
| 38.0ms | (* (tan x) (tan x)) |
| 24.0ms | (- 1 (* (tan x) (tan x))) |
| 562.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))))) |
| 413.0ms | (+ (* 1 1) (- (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* 1 (* (tan x) (tan x))))) |
| 219.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 199.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 88.0ms | (- (+ (* 2/3 (pow x 4)) 1) (* 2 (pow x 2))) |
10 alts after pruning (10 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) |
| 12× | unpow-prod-down |
| 8× | add-cube-cbrt |
| 8× | add-exp-log |
| 8× | *-un-lft-identity |
| 8× | pow1 |
| 8× | add-sqr-sqrt |
| 4× | add-log-exp |
| 4× | unpow2 |
| 4× | log1p-expm1-u |
| 4× | pow-exp |
| 4× | add-cbrt-cube |
| 4× | pow-pow |
| 4× | pow-to-exp |
| 4× | expm1-log1p-u |
| 2.0ms | (pow (cos x) 2) |
| 2.0ms | (pow (sin x) 2) |
| 2.0ms | (pow (sin x) 2) |
| 2.0ms | (pow (cos x) 2) |
| 20.0ms | (pow (cos x) 2) |
| 19.0ms | (pow (cos x) 2) |
| 16.0ms | (pow (sin x) 2) |
| 15.0ms | (pow (sin x) 2) |
| 105.0ms | (- (+ (pow x 2) (* 2/45 (pow x 6))) (* 1/3 (pow x 4))) |
| 76.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)) |
| 31.0ms | (- (+ (* 1/3 (pow x 4)) 1) (pow x 2)) |
| 12.0ms | (pow (* (cbrt (cos x)) (cbrt (cos x))) 2) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.4b | (pow (* (tan x) (tan x)) 3) |
| 0.3b | (* (* (tan x) (tan x)) (* (tan x) (tan x))) |
| 0.2b | (* (tan x) (tan x)) |
| 0.2b | (* (tan x) (tan x)) |
| 77× | pow1 |
| 44× | tan-quot |
| 26× | pow-prod-up |
| 23× | add-exp-log |
| 23× | 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 |
| 8× | add-cube-cbrt |
| 8× | *-un-lft-identity |
| 8× | add-sqr-sqrt |
| 7× | associate-*l* |
| 7× | associate-*r* |
| 5× | pow-pow |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | expm1-log1p-u |
| 3× | *-commutative |
| 3× | cube-div |
| 2× | rem-cube-cbrt |
| 2× | pow-exp |
| 1× | cube-prod |
| 1× | unpow3 |
| 1× | unpow-prod-down |
| 1× | pow-to-exp |
| 1× | cube-mult |
| 42.0ms | (* (* (tan x) (tan x)) (* (tan x) (tan x))) |
| 7.0ms | (pow (* (tan x) (tan x)) 3) |
| 7.0ms | (* (tan x) (tan x)) |
| 4.0ms | (* (tan x) (tan x)) |
| 56.0ms | (* (* (tan x) (tan x)) (* (tan x) (tan x))) |
| 56.0ms | (pow (* (tan x) (tan x)) 3) |
| 38.0ms | (* (tan x) (tan x)) |
| 27.0ms | (* (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)))) |
| 96.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)))) |
| 84.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)))) |
| 35.0ms | (* (* (* (tan x) (tan x)) (tan x)) (* (* (tan x) (tan x)) (tan x))) |
10 alts after pruning (9 fresh and 1 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)))) |
| 0.2b | (* (- 1 (* (tan x) (tan x))) (/ 1 (+ 1 (* (tan x) (tan x))))) |
| 17× | pow1 |
| 13× | add-exp-log |
| 12× | associate-*r* |
| 11× | add-cube-cbrt |
| 11× | *-un-lft-identity |
| 11× | add-sqr-sqrt |
| 10× | add-cbrt-cube |
| 9× | associate-*l* |
| 8× | tan-quot |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | associate-/r/ |
| 4× | prod-exp |
| 4× | associate-*l/ |
| 4× | frac-times |
| 4× | expm1-log1p-u |
| 3× | cbrt-unprod |
| 3× | *-commutative |
| 3× | associate-*r/ |
| 3× | pow-prod-down |
| 3× | associate-/r* |
| 2× | flip-- |
| 2× | div-inv |
| 2× | flip-+ |
| 2× | pow-prod-up |
| 2× | flip3-- |
| 2× | pow-plus |
| 2× | flip3-+ |
| 2× | rec-exp |
| 2× | pow2 |
| 1× | inv-pow |
| 1× | pow-flip |
| 1× | un-div-inv |
| 1× | frac-2neg |
| 1× | clear-num |
| 7.0ms | (* (tan x) (tan x)) |
| 5.0ms | (* (- 1 (* (tan x) (tan x))) (/ 1 (+ 1 (* (tan x) (tan x))))) |
| 4.0ms | (* (tan x) (tan x)) |
| 1.0ms | (/ 1 (+ 1 (* (tan x) (tan x)))) |
| 86.0ms | (* (- 1 (* (tan x) (tan x))) (/ 1 (+ 1 (* (tan x) (tan x))))) |
| 45.0ms | (/ 1 (+ 1 (* (tan x) (tan x)))) |
| 41.0ms | (* (tan x) (tan x)) |
| 30.0ms | (* (tan x) (tan x)) |
| 500.0ms | (+ (* 1 1) (- (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* 1 (* (tan x) (tan x))))) |
| 499.0ms | (* (+ (* 1 1) (+ (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* 1 (* (tan x) (tan x))))) (+ 1 (* (tan x) (tan x)))) |
| 472.0ms | (+ (* 1 1) (- (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* 1 (* (tan x) (tan x))))) |
| 357.0ms | (* (- (pow 1 3) (pow (* (tan x) (tan x)) 3)) 1) |
| 342.0ms | (* (- (pow 1 3) (pow (* (tan x) (tan x)) 3)) (/ 1 (+ 1 (* (tan x) (tan x))))) |
10 alts after pruning (8 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