


Bits error versus x
Results
Initial program 0.3
Taylor expanded around -inf 0.4
rmApplied add-cbrt-cube0.4
Final simplification0.4
herbie shell --seed 2019010
(FPCore (x)
:name "Trigonometry B"
(/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))
Time bar (total: 16.2s)Debug log
| 52.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.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 |
| 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 |
| 9.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))) |
| 483.0ms | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
| 56.0ms | (* (tan x) (tan x)) |
| 40.0ms | (* (tan x) (tan x)) |
| 39.0ms | (- 1 (* (tan x) (tan x))) |
| 494.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))))) |
| 295.0ms | (+ (* 1 1) (- (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* 1 (* (tan x) (tan x))))) |
| 190.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 163.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 77.0ms | (- (pow 1 3) (pow (* (tan x) (tan x)) 3)) |
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) |
| 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× | pow-exp |
| 4× | add-cbrt-cube |
| 4× | pow-pow |
| 4× | pow-to-exp |
| 1.0ms | (pow (cos x) 2) |
| 1.0ms | (pow (sin x) 2) |
| 1.0ms | (pow (sin x) 2) |
| 1.0ms | (pow (cos x) 2) |
| 22.0ms | (pow (sin x) 2) |
| 19.0ms | (pow (sin x) 2) |
| 18.0ms | (pow (cos x) 2) |
| 12.0ms | (pow (cos x) 2) |
| 59.0ms | (- (+ (pow x 2) (* 2/45 (pow x 6))) (* 1/3 (pow x 4))) |
| 51.0ms | (- (+ (pow x 2) (* 2/45 (pow x 6))) (* 1/3 (pow x 4))) |
| 50.0ms | (- (+ (* 1/3 (pow x 4)) 1) (pow x 2)) |
| 49.0ms | (- (+ (* 1/3 (pow x 4)) 1) (pow x 2)) |
| 16.0ms | (pow (* (cbrt (sin x)) (cbrt (sin x))) 2) |
12 alts after pruning (12 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 12.0b | (cbrt (* (* (pow (sin x) 2) (pow (sin x) 2)) (pow (sin x) 2))) |
| 0.3b | (* (pow (sin x) 2) (pow (sin x) 2)) |
| 0.2b | (pow (cos x) 2) |
| 0.2b | (pow (cos x) 2) |
| 18× | add-exp-log |
| 12× | unpow-prod-down |
| 10× | add-cube-cbrt |
| 10× | *-un-lft-identity |
| 10× | add-sqr-sqrt |
| 9× | prod-exp |
| 8× | pow-exp |
| 8× | pow-to-exp |
| 7× | associate-*l* |
| 7× | associate-*r* |
| 6× | add-cbrt-cube |
| 6× | pow1 |
| 4× | add-log-exp |
| 4× | unpow2 |
| 2× | pow-pow |
| 1× | cbrt-unprod |
| 1× | rem-cbrt-cube |
| 1× | pow-prod-up |
| 1× | *-commutative |
| 1× | pow-prod-down |
| 1× | pow3 |
| 1× | pow1/3 |
| 1× | pow2 |
| 1× | cbrt-prod |
| 15.0ms | (* (pow (sin x) 2) (pow (sin x) 2)) |
| 14.0ms | (cbrt (* (* (pow (sin x) 2) (pow (sin x) 2)) (pow (sin x) 2))) |
| 2.0ms | (pow (cos x) 2) |
| 2.0ms | (pow (cos x) 2) |
| 35.0ms | (* (pow (sin x) 2) (pow (sin x) 2)) |
| 27.0ms | (cbrt (* (* (pow (sin x) 2) (pow (sin x) 2)) (pow (sin x) 2))) |
| 16.0ms | (pow (cos x) 2) |
| 12.0ms | (pow (cos x) 2) |
| 80.0ms | (* (* (* (pow (sin x) 2) (pow (sin x) 2)) (pow (sin x) 2)) (* (* (pow (sin x) 2) (pow (sin x) 2)) (pow (sin x) 2))) |
| 59.0ms | (- (+ (* 1/5 (pow x 8)) (pow x 4)) (* 2/3 (pow x 6))) |
| 58.0ms | (- (+ (pow x 2) (* 2/45 (pow x 6))) (* 1/3 (pow x 4))) |
| 50.0ms | (- (+ (* 1/3 (pow x 4)) 1) (pow x 2)) |
| 39.0ms | (- (+ (* 1/3 (pow x 4)) 1) (pow x 2)) |
12 alts after pruning (11 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.3b | (- (/ 1 (+ 1 (* (tan x) (tan x)))) (/ (* (tan x) (tan x)) (+ 1 (* (tan x) (tan x))))) |
| 0.2b | (* (tan x) (tan x)) |
| 0.2b | (* (tan x) (tan x)) |
| 0.2b | (* (tan x) (tan x)) |
| 19× | pow1 |
| 14× | *-un-lft-identity |
| 14× | add-sqr-sqrt |
| 12× | tan-quot |
| 10× | add-cube-cbrt |
| 10× | add-exp-log |
| 10× | add-cbrt-cube |
| 9× | associate-*l* |
| 9× | associate-*r* |
| 6× | add-log-exp |
| 4× | div-inv |
| 4× | associate-/r/ |
| 4× | distribute-rgt-out-- |
| 3× | cbrt-unprod |
| 3× | pow-prod-up |
| 3× | *-commutative |
| 3× | associate-*r/ |
| 3× | prod-exp |
| 3× | associate-*l/ |
| 3× | pow-prod-down |
| 3× | pow-plus |
| 3× | frac-times |
| 3× | pow2 |
| 2× | difference-of-squares |
| 2× | distribute-lft-out-- |
| 2× | flip-+ |
| 2× | flip3-+ |
| 1× | sub-div |
| 1× | flip-- |
| 1× | frac-sub |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | times-frac |
| 1× | sub-neg |
| 12.0ms | (- (/ 1 (+ 1 (* (tan x) (tan x)))) (/ (* (tan x) (tan x)) (+ 1 (* (tan x) (tan x))))) |
| 8.0ms | (* (tan x) (tan x)) |
| 5.0ms | (* (tan x) (tan x)) |
| 4.0ms | (* (tan x) (tan x)) |
| 110.0ms | (- (/ 1 (+ 1 (* (tan x) (tan x)))) (/ (* (tan x) (tan x)) (+ 1 (* (tan x) (tan x))))) |
| 40.0ms | (* (tan x) (tan x)) |
| 36.0ms | (* (tan x) (tan x)) |
| 26.0ms | (* (tan x) (tan x)) |
| 404.0ms | (- (* 1 (+ 1 (* (tan x) (tan x)))) (* (+ 1 (* (tan x) (tan x))) (* (tan x) (tan x)))) |
| 227.0ms | (+ (* 1 1) (- (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* 1 (* (tan x) (tan x))))) |
| 165.0ms | (* (+ 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
| 154.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)))) |
| 116.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)))) |
11 alts after pruning (10 fresh and 1 done)
Merged error: 0b
0% (0.3b remaining)
Error of 0.4b against oracle of 0.1b and baseline of 0.4b