


Bits error versus x
Initial program 0.3
Simplified0.3
rmApplied expm1-log1p-u0.4
Final simplification0.4
herbie shell --seed 2019022 +o rules:numerics
(FPCore (x)
:name "Trigonometry B"
(/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))
Time bar (total: 19.6s)Debug log
| 51.0ms | 45× | body | 1280 | valid |
| 27.0ms | 143× | body | 80 | valid |
| 26.0ms | 31× | body | 640 | valid |
| 15.0ms | 25× | body | 320 | valid |
| 5.0ms | 12× | body | 160 | valid |
| 102.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.3b | (* (tan x) (tan x)) |
| 0.2b | (/ (- 1 (* (tan x) (tan x))) (fma (tan x) (tan x) 1)) |
| 0.2b | (- 1 (* (tan x) (tan x))) |
| 0.1b | (fma (tan x) (tan x) 1) |
| 14× | add-cube-cbrt |
| 14× | *-un-lft-identity |
| 14× | add-sqr-sqrt |
| 9× | times-frac |
| 9× | pow1 |
| 8× | add-exp-log |
| 8× | add-cbrt-cube |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | tan-quot |
| 4× | expm1-log1p-u |
| 3× | associate-/l* |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 3× | associate-/r* |
| 2× | associate-/l/ |
| 2× | flip-- |
| 2× | flip3-- |
| 1× | div-inv |
| 1× | fma-udef |
| 1× | cbrt-unprod |
| 1× | pow-prod-up |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | prod-exp |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | div-exp |
| 1× | div-sub |
| 1× | pow-plus |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 1× | frac-times |
| 1× | pow2 |
| 10.0ms | (* (tan x) (tan x)) |
| 7.0ms | (/ (- 1 (* (tan x) (tan x))) (fma (tan x) (tan x) 1)) |
| 2.0ms | (- 1 (* (tan x) (tan x))) |
| 0.0ms | (fma (tan x) (tan x) 1) |
| 89.0ms | (/ (- 1 (* (tan x) (tan x))) (fma (tan x) (tan x) 1)) |
| 79.0ms | (* (tan x) (tan x)) |
| 49.0ms | (fma (tan x) (tan x) 1) |
| 24.0ms | (- 1 (* (tan x) (tan x))) |
| 233.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))) |
| 198.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 190.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 61.0ms | (- (+ (* 2/3 (pow x 4)) 1) (* 2 (pow x 2))) |
| 60.0ms | (- 1 (+ (pow x 2) (* 2/3 (pow x 4)))) |
14 alts after pruning (14 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.3b | (* (tan x) (tan x)) |
| 0.2b | (/ (- 1 (* (tan x) (tan x))) (fma (tan x) (tan x) 1)) |
| 0.2b | (log1p (/ (- 1 (* (tan x) (tan x))) (fma (tan x) (tan x) 1))) |
| 0.2b | (- 1 (* (tan x) (tan x))) |
| 14× | add-cube-cbrt |
| 14× | *-un-lft-identity |
| 14× | add-sqr-sqrt |
| 9× | times-frac |
| 9× | pow1 |
| 8× | add-exp-log |
| 8× | add-cbrt-cube |
| 5× | expm1-log1p-u |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | tan-quot |
| 3× | associate-/l* |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 3× | associate-/r* |
| 2× | associate-/l/ |
| 2× | flip-- |
| 2× | flip3-- |
| 1× | div-inv |
| 1× | cbrt-unprod |
| 1× | pow-prod-up |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | log1p-expm1 |
| 1× | prod-exp |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | div-exp |
| 1× | div-sub |
| 1× | pow-plus |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | log1p-udef |
| 1× | cbrt-undiv |
| 1× | frac-times |
| 1× | pow2 |
| 8.0ms | (* (tan x) (tan x)) |
| 8.0ms | (/ (- 1 (* (tan x) (tan x))) (fma (tan x) (tan x) 1)) |
| 2.0ms | (- 1 (* (tan x) (tan x))) |
| 1.0ms | (log1p (/ (- 1 (* (tan x) (tan x))) (fma (tan x) (tan x) 1))) |
| 196.0ms | (log1p (/ (- 1 (* (tan x) (tan x))) (fma (tan x) (tan x) 1))) |
| 119.0ms | (/ (- 1 (* (tan x) (tan x))) (fma (tan x) (tan x) 1)) |
| 42.0ms | (* (tan x) (tan x)) |
| 23.0ms | (- 1 (* (tan x) (tan x))) |
| 266.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 257.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))) |
| 239.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 193.0ms | (log (- (+ (/ 1 (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) 1) (/ (pow (sin x) 2) (* (pow (cos x) 2) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1))))) |
| 167.0ms | (log (- (+ (/ 1 (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) 1) (/ (pow (sin x) 2) (* (pow (cos x) 2) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1))))) |
14 alts after pruning (13 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.3b | (* (tan x) (tan x)) |
| 0.2b | (- 1 (* (tan x) (tan x))) |
| 0.2b | (/ 1 (fma (tan x) (tan x) 1)) |
| 0.1b | (* (- 1 (* (tan x) (tan x))) (/ 1 (fma (tan x) (tan x) 1))) |
| 12× | pow1 |
| 11× | add-exp-log |
| 9× | add-cube-cbrt |
| 9× | *-un-lft-identity |
| 9× | add-sqr-sqrt |
| 8× | add-cbrt-cube |
| 7× | associate-*r* |
| 6× | associate-*l* |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | tan-quot |
| 4× | expm1-log1p-u |
| 3× | flip-- |
| 3× | prod-exp |
| 3× | associate-*l/ |
| 3× | flip3-- |
| 3× | associate-/r* |
| 3× | frac-times |
| 2× | div-inv |
| 2× | cbrt-unprod |
| 2× | *-commutative |
| 2× | associate-*r/ |
| 2× | pow-prod-down |
| 2× | rec-exp |
| 1× | inv-pow |
| 1× | pow-flip |
| 1× | pow-prod-up |
| 1× | un-div-inv |
| 1× | pow-plus |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | pow2 |
| 5.0ms | (* (- 1 (* (tan x) (tan x))) (/ 1 (fma (tan x) (tan x) 1))) |
| 4.0ms | (* (tan x) (tan x)) |
| 1.0ms | (- 1 (* (tan x) (tan x))) |
| 1.0ms | (/ 1 (fma (tan x) (tan x) 1)) |
| 113.0ms | (* (- 1 (* (tan x) (tan x))) (/ 1 (fma (tan x) (tan x) 1))) |
| 50.0ms | (/ 1 (fma (tan x) (tan x) 1)) |
| 35.0ms | (- 1 (* (tan x) (tan x))) |
| 30.0ms | (* (tan x) (tan x)) |
| 484.0ms | (* (+ (* 1 1) (+ (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* 1 (* (tan x) (tan x))))) (fma (tan x) (tan x) 1)) |
| 413.0ms | (* (- (pow 1 3) (pow (* (tan x) (tan x)) 3)) (/ 1 (fma (tan x) (tan x) 1))) |
| 294.0ms | (* (- (pow 1 3) (pow (* (tan x) (tan x)) 3)) 1) |
| 266.0ms | (* (* (* (- 1 (* (tan x) (tan x))) (- 1 (* (tan x) (tan x)))) (- 1 (* (tan x) (tan x)))) (* (* (/ 1 (fma (tan x) (tan x) 1)) (/ 1 (fma (tan x) (tan x) 1))) (/ 1 (fma (tan x) (tan x) 1)))) |
| 219.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
13 alts after pruning (12 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 9.1b | (cbrt (pow (tan x) 6)) |
| 0.6b | (pow (tan x) 6) |
| 0.2b | (/ (- 1 (cbrt (pow (tan x) 6))) (fma (tan x) (tan x) 1)) |
| 0.2b | (- 1 (cbrt (pow (tan x) 6))) |
| 15× | add-cube-cbrt |
| 15× | *-un-lft-identity |
| 15× | add-sqr-sqrt |
| 9× | times-frac |
| 7× | add-exp-log |
| 6× | add-cbrt-cube |
| 6× | unpow-prod-down |
| 6× | cbrt-prod |
| 5× | pow1 |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | expm1-log1p-u |
| 3× | associate-/l* |
| 3× | associate-/r* |
| 2× | associate-/l/ |
| 2× | flip-- |
| 2× | flip3-- |
| 1× | div-inv |
| 1× | pow-exp |
| 1× | div-exp |
| 1× | div-sub |
| 1× | pow1/3 |
| 1× | frac-2neg |
| 1× | pow-pow |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 1× | pow-to-exp |
| 7.0ms | (/ (- 1 (cbrt (pow (tan x) 6))) (fma (tan x) (tan x) 1)) |
| 2.0ms | (- 1 (cbrt (pow (tan x) 6))) |
| 1.0ms | (pow (tan x) 6) |
| 1.0ms | (cbrt (pow (tan x) 6)) |
| 87.0ms | (/ (- 1 (cbrt (pow (tan x) 6))) (fma (tan x) (tan x) 1)) |
| 40.0ms | (pow (tan x) 6) |
| 33.0ms | (- 1 (cbrt (pow (tan x) 6))) |
| 25.0ms | (cbrt (pow (tan x) 6)) |
| 260.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 204.0ms | (/ (* (* (- 1 (cbrt (pow (tan x) 6))) (- 1 (cbrt (pow (tan x) 6)))) (- 1 (cbrt (pow (tan x) 6)))) (* (* (fma (tan x) (tan x) 1) (fma (tan x) (tan x) 1)) (fma (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)) |
| 93.0ms | (- 1 (+ (pow x 2) (* 2/3 (pow x 4)))) |
| 62.0ms | (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) |
13 alts after pruning (11 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
| 2.2s | 1523× | body | 1280 | valid |
| 1.6s | 1167× | body | 640 | valid |
| 1.3s | 4354× | body | 80 | valid |
| 622.0ms | 632× | body | 320 | valid |
| 179.0ms | 324× | body | 160 | valid |