


Bits error versus x
Results
Initial program 0.3
rmApplied div-inv0.4
Final simplification0.4
herbie shell --seed 2019016
(FPCore (x)
:name "Trigonometry B"
(/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))
Time bar (total: 18.8s)Debug log
| 256× | (pre true 80) |
| 140× | (body real 80) |
| 53× | (body real 1280) |
| 36× | (body real 640) |
| 19× | (body real 320) |
| 8× | (body real 160) |
| 266.0ms | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.4b
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 (* (tan x) (tan x))) (+ 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 |
| 47.0ms | (* (tan x) (tan x)) |
| 11.0ms | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
| 6.0ms | (* (tan x) (tan x)) |
| 3.0ms | (- 1 (* (tan x) (tan x))) |
| 319.0ms | (* (tan x) (tan x)) |
| 75.0ms | (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) |
| 75.0ms | (* (tan x) (tan x)) |
| 34.0ms | (- 1 (* (tan x) (tan x))) |
| 351.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))))) |
| 276.0ms | (+ (* 1 1) (- (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* 1 (* (tan x) (tan x))))) |
| 206.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 179.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 74.0ms | (- 1 (+ (pow x 2) (* 2/3 (pow x 4)))) |
12 alts after pruning (12 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.3b | (pow (cos x) 2) |
| 0.3b | (pow (cos x) 2) |
| 0.3b | (pow (sin x) 2) |
| 0.3b | (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 |
| 2.0ms | (pow (cos x) 2) |
| 2.0ms | (pow (sin x) 2) |
| 2.0ms | (pow (cos x) 2) |
| 2.0ms | (pow (sin x) 2) |
| 25.0ms | (pow (sin x) 2) |
| 19.0ms | (pow (cos x) 2) |
| 19.0ms | (pow (cos x) 2) |
| 16.0ms | (pow (sin x) 2) |
| 54.0ms | (- (+ (pow x 2) (* 2/45 (pow x 6))) (* 1/3 (pow x 4))) |
| 52.0ms | (- (+ (pow x 2) (* 2/45 (pow x 6))) (* 1/3 (pow x 4))) |
| 42.0ms | (- (+ (* 1/3 (pow x 4)) 1) (pow x 2)) |
| 37.0ms | (- (+ (* 1/3 (pow x 4)) 1) (pow x 2)) |
| 16.0ms | (pow (* (cbrt (sin x)) (cbrt (sin x))) 2) |
12 alts after pruning (11 fresh and 1 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))) (/ 1 (+ 1 (* (tan x) (tan x))))) |
| 0.2b | (- 1 (* (tan x) (tan x))) |
| 16× | pow1 |
| 12× | add-exp-log |
| 12× | associate-*r* |
| 10× | add-cube-cbrt |
| 10× | add-cbrt-cube |
| 10× | *-un-lft-identity |
| 10× | add-sqr-sqrt |
| 9× | associate-*l* |
| 8× | tan-quot |
| 4× | add-log-exp |
| 4× | prod-exp |
| 4× | associate-*l/ |
| 4× | frac-times |
| 3× | flip-- |
| 3× | cbrt-unprod |
| 3× | *-commutative |
| 3× | associate-*r/ |
| 3× | pow-prod-down |
| 3× | flip3-- |
| 2× | pow-prod-up |
| 2× | associate-/r/ |
| 2× | pow-plus |
| 2× | pow2 |
| 1× | div-inv |
| 1× | flip-+ |
| 1× | un-div-inv |
| 1× | flip3-+ |
| 1× | sub-neg |
| 1× | rec-exp |
| 4.0ms | (* (- 1 (* (tan x) (tan x))) (/ 1 (+ 1 (* (tan x) (tan x))))) |
| 4.0ms | (* (tan x) (tan x)) |
| 4.0ms | (* (tan x) (tan x)) |
| 1.0ms | (- 1 (* (tan x) (tan x))) |
| 96.0ms | (* (- 1 (* (tan x) (tan x))) (/ 1 (+ 1 (* (tan x) (tan x))))) |
| 36.0ms | (- 1 (* (tan x) (tan x))) |
| 36.0ms | (* (tan x) (tan x)) |
| 26.0ms | (* (tan x) (tan x)) |
| 524.0ms | (* (- (* 1 1) (* (* (tan x) (tan x)) (* (tan x) (tan x)))) (/ 1 (+ 1 (* (tan x) (tan x))))) |
| 373.0ms | (* (+ (* 1 1) (+ (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* 1 (* (tan x) (tan x))))) (+ 1 (* (tan x) (tan x)))) |
| 313.0ms | (* (- (pow 1 3) (pow (* (tan x) (tan x)) 3)) (/ 1 (+ 1 (* (tan x) (tan x))))) |
| 245.0ms | (+ (* 1 1) (- (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* 1 (* (tan x) (tan x))))) |
| 245.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
12 alts after pruning (10 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.4b | (log (exp (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))) |
| 0.3b | (* (tan x) (tan x)) |
| 0.3b | (* (tan x) (tan x)) |
| 0.2b | (- 1 (* (tan x) (tan x))) |
| 16× | add-cube-cbrt |
| 16× | log-pow |
| 16× | *-un-lft-identity |
| 16× | add-sqr-sqrt |
| 15× | exp-prod |
| 15× | pow1 |
| 9× | times-frac |
| 8× | add-exp-log |
| 8× | tan-quot |
| 8× | add-cbrt-cube |
| 6× | associate-*l* |
| 6× | associate-*r* |
| 4× | add-log-exp |
| 3× | log-prod |
| 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× | flip-- |
| 1× | div-inv |
| 1× | flip-+ |
| 1× | rem-log-exp |
| 1× | div-sub |
| 1× | exp-diff |
| 1× | flip3-- |
| 1× | flip3-+ |
| 1× | sub-neg |
| 1× | log-div |
| 9.0ms | (log (exp (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))) |
| 8.0ms | (* (tan x) (tan x)) |
| 7.0ms | (* (tan x) (tan x)) |
| 2.0ms | (- 1 (* (tan x) (tan x))) |
| 95.0ms | (log (exp (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))) |
| 26.0ms | (* (tan x) (tan x)) |
| 26.0ms | (* (tan x) (tan x)) |
| 23.0ms | (- 1 (* (tan x) (tan x))) |
| 241.0ms | (+ (* 1 1) (- (* (* (tan x) (tan x)) (* (tan x) (tan x))) (* 1 (* (tan x) (tan x))))) |
| 189.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 178.0ms | (/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ (/ (pow (sin x) 2) (pow (cos x) 2)) 1)) |
| 71.0ms | (- (+ (* 2/3 (pow x 4)) 1) (* 2 (pow x 2))) |
| 69.0ms | (- 1 (+ (pow x 2) (* 2/3 (pow x 4)))) |
12 alts after pruning (11 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
| 8000× | (pre true 80) |
| 4290× | (body real 80) |
| 1584× | (body real 1280) |
| 1190× | (body real 640) |
| 617× | (body real 320) |
| 319× | (body real 160) |