


Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus a
Results
Initial program 13.2
rmApplied tan-sum0.2
rmApplied tan-quot0.2
Applied tan-quot0.2
Applied frac-add0.2
Final simplification0.2
herbie shell --seed 2019016
(FPCore (x y z a)
:name "(+ x (- (tan (+ y z)) (tan a)))"
:pre (and (or (== x 0) (<= 0.5884142 x 505.5909)) (or (<= -1.796658e+308 y -9.425585e-310) (<= 1.284938e-309 y 1.751224e+308)) (or (<= -1.776707e+308 z -8.599796e-310) (<= 3.293145e-311 z 1.725154e+308)) (or (<= -1.796658e+308 a -9.425585e-310) (<= 1.284938e-309 a 1.751224e+308)))
(+ x (- (tan (+ y z)) (tan a))))
Time bar (total: 33.8s)Debug log
| 256× | (pre true 80) |
| 125× | (body real 1280) |
| 67× | (body real 640) |
| 31× | (body real 80) |
| 21× | (body real 320) |
| 12× | (body real 160) |
| 462.0ms | (+ x (- (tan (+ y z)) (tan a))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 14.8b
Found 3 expressions with local error:
| 3.5b | (tan (+ y z)) |
| 0.1b | (- (tan (+ y z)) (tan a)) |
| 0.1b | (+ x (- (tan (+ y z)) (tan a))) |
| 5× | add-log-exp |
| 5× | *-un-lft-identity |
| 5× | add-sqr-sqrt |
| 4× | tan-quot |
| 3× | add-cube-cbrt |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 2× | frac-sub |
| 2× | sub-neg |
| 2× | associate-+r+ |
| 2× | tan-sum |
| 1× | difference-of-squares |
| 1× | distribute-lft-out-- |
| 1× | flip-- |
| 1× | flip-+ |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | flip3-+ |
| 1× | associate-+r- |
| 1× | +-commutative |
| 5.0ms | (- (tan (+ y z)) (tan a)) |
| 4.0ms | (+ x (- (tan (+ y z)) (tan a))) |
| 1.0ms | (tan (+ y z)) |
| 175.0ms | (+ x (- (tan (+ y z)) (tan a))) |
| 159.0ms | (- (tan (+ y z)) (tan a)) |
| 77.0ms | (tan (+ y z)) |
| 175.0ms | (- (* (+ (tan y) (tan z)) (cos a)) (* (- 1 (* (tan y) (tan z))) (sin a))) |
| 139.0ms | (* (- 1 (* (tan y) (tan z))) (cos a)) |
| 36.0ms | (- (+ (/ (sin (+ z y)) (cos (+ z y))) x) (/ (sin a) (cos a))) |
| 31.0ms | (+ (* 1/3 (pow y 3)) (+ z y)) |
| 27.0ms | (/ (exp (tan (+ y z))) (exp (tan a))) |
6 alts after pruning (6 fresh and 0 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 0.2b | (* (tan y) (tan z)) |
| 0.1b | (+ x (- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a))) |
| 0.1b | (- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a)) |
| 0.1b | (+ (tan y) (tan z)) |
| 11× | add-sqr-sqrt |
| 10× | *-un-lft-identity |
| 8× | add-log-exp |
| 7× | tan-quot |
| 6× | add-cube-cbrt |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 6× | pow1 |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 2× | difference-of-squares |
| 2× | flip-+ |
| 2× | flip3-+ |
| 2× | sub-neg |
| 2× | associate-+r+ |
| 2× | +-commutative |
| 1× | distribute-lft-out-- |
| 1× | distribute-lft-out |
| 1× | flip-- |
| 1× | cbrt-unprod |
| 1× | frac-sub |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | prod-exp |
| 1× | frac-add |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | times-frac |
| 1× | sum-log |
| 1× | associate-+r- |
| 1× | frac-times |
| 40.0ms | (- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a)) |
| 34.0ms | (+ x (- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a))) |
| 5.0ms | (+ (tan y) (tan z)) |
| 4.0ms | (* (tan y) (tan z)) |
| 438.0ms | (+ x (- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a))) |
| 407.0ms | (- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a)) |
| 122.0ms | (+ (tan y) (tan z)) |
| 105.0ms | (* (tan y) (tan z)) |
| 371.0ms | (+ (* 1/3 (* (pow z 3) y)) (+ (* 1/3 (* z (pow y 3))) (* z y))) |
| 254.0ms | (- (+ (/ (sin z) (* (cos z) (- 1 (/ (* (sin z) (sin y)) (* (cos y) (cos z)))))) (+ (/ (sin y) (* (cos y) (- 1 (/ (* (sin z) (sin y)) (* (cos y) (cos z)))))) x)) (/ (sin a) (cos a))) |
| 249.0ms | (- (+ (/ (sin z) (* (cos z) (- 1 (/ (* (sin z) (sin y)) (* (cos y) (cos z)))))) (+ (/ (sin y) (* (cos y) (- 1 (/ (* (sin z) (sin y)) (* (cos y) (cos z)))))) x)) (/ (sin a) (cos a))) |
| 232.0ms | (- (+ (/ (sin z) (* (cos z) (- 1 (/ (* (sin z) (sin y)) (* (cos y) (cos z)))))) (/ (sin y) (* (cos y) (- 1 (/ (* (sin z) (sin y)) (* (cos y) (cos z))))))) (/ (sin a) (cos a))) |
| 227.0ms | (- (+ (/ (sin z) (* (cos z) (- 1 (/ (* (sin z) (sin y)) (* (cos y) (cos z)))))) (/ (sin y) (* (cos y) (- 1 (/ (* (sin z) (sin y)) (* (cos y) (cos z))))))) (/ (sin a) (cos a))) |
7 alts after pruning (7 fresh and 0 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 0.2b | (* (tan y) (sin z)) |
| 0.2b | (/ (* (tan y) (sin z)) (cos z)) |
| 0.1b | (+ x (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (tan y) (sin z)) (cos z)))) (tan a))) |
| 0.1b | (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (tan y) (sin z)) (cos z)))) (tan a)) |
| 13× | add-sqr-sqrt |
| 11× | add-exp-log |
| 11× | add-cbrt-cube |
| 10× | *-un-lft-identity |
| 8× | add-cube-cbrt |
| 6× | add-log-exp |
| 6× | pow1 |
| 4× | times-frac |
| 3× | tan-quot |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 3× | associate-/r* |
| 2× | difference-of-squares |
| 2× | cbrt-unprod |
| 2× | prod-exp |
| 2× | associate-*l/ |
| 2× | div-exp |
| 2× | sub-neg |
| 2× | associate-+r+ |
| 2× | cbrt-undiv |
| 1× | associate-/l/ |
| 1× | distribute-lft-out-- |
| 1× | associate-/l* |
| 1× | flip-- |
| 1× | div-inv |
| 1× | flip-+ |
| 1× | frac-sub |
| 1× | *-commutative |
| 1× | pow-prod-down |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | associate-+r- |
| 1× | clear-num |
| 1× | +-commutative |
| 60.0ms | (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (tan y) (sin z)) (cos z)))) (tan a)) |
| 49.0ms | (+ x (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (tan y) (sin z)) (cos z)))) (tan a))) |
| 19.0ms | (/ (* (tan y) (sin z)) (cos z)) |
| 8.0ms | (* (tan y) (sin z)) |
| 447.0ms | (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (tan y) (sin z)) (cos z)))) (tan a)) |
| 375.0ms | (+ x (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (tan y) (sin z)) (cos z)))) (tan a))) |
| 117.0ms | (/ (* (tan y) (sin z)) (cos z)) |
| 101.0ms | (* (tan y) (sin z)) |
| 543.0ms | (/ (* (* (* (tan y) (sin z)) (* (tan y) (sin z))) (* (tan y) (sin z))) (* (* (cos z) (cos z)) (cos z))) |
| 508.0ms | (/ (* (* (* (tan y) (tan y)) (tan y)) (* (* (sin z) (sin z)) (sin z))) (* (* (cos z) (cos z)) (cos z))) |
| 279.0ms | (+ (* 1/3 (* (pow z 3) y)) (+ (* 1/3 (* z (pow y 3))) (* z y))) |
| 278.0ms | (- (+ (/ (sin z) (* (cos z) (- 1 (/ (* (sin z) (sin y)) (* (cos y) (cos z)))))) (+ (/ (sin y) (* (cos y) (- 1 (/ (* (sin z) (sin y)) (* (cos y) (cos z)))))) x)) (/ (sin a) (cos a))) |
| 272.0ms | (- (+ (* 1/3 (* z (pow y 3))) (* z y)) (* 1/6 (* (pow z 3) y))) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.2b | (* (tan y) (sin z)) |
| 0.2b | (/ (* (tan y) (sin z)) (cos z)) |
| 0.1b | (+ (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (tan y) (sin z)) (cos z)))) (tan a)) x) |
| 0.1b | (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (tan y) (sin z)) (cos z)))) (tan a)) |
| 13× | add-sqr-sqrt |
| 11× | add-exp-log |
| 11× | add-cbrt-cube |
| 10× | *-un-lft-identity |
| 8× | add-cube-cbrt |
| 6× | add-log-exp |
| 6× | pow1 |
| 4× | times-frac |
| 3× | tan-quot |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 3× | associate-/r* |
| 2× | difference-of-squares |
| 2× | cbrt-unprod |
| 2× | prod-exp |
| 2× | associate-*l/ |
| 2× | div-exp |
| 2× | sub-neg |
| 2× | associate-+l+ |
| 2× | cbrt-undiv |
| 1× | associate-/l/ |
| 1× | distribute-lft-out-- |
| 1× | associate-/l* |
| 1× | flip-- |
| 1× | div-inv |
| 1× | flip-+ |
| 1× | associate-+l- |
| 1× | frac-sub |
| 1× | *-commutative |
| 1× | pow-prod-down |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | +-commutative |
| 169.0ms | (+ (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (tan y) (sin z)) (cos z)))) (tan a)) x) |
| 39.0ms | (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (tan y) (sin z)) (cos z)))) (tan a)) |
| 7.0ms | (/ (* (tan y) (sin z)) (cos z)) |
| 4.0ms | (* (tan y) (sin z)) |
| 933.0ms | (+ (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (tan y) (sin z)) (cos z)))) (tan a)) x) |
| 393.0ms | (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (tan y) (sin z)) (cos z)))) (tan a)) |
| 95.0ms | (/ (* (tan y) (sin z)) (cos z)) |
| 70.0ms | (* (tan y) (sin z)) |
| 509.0ms | (/ (* (* (* (tan y) (sin z)) (* (tan y) (sin z))) (* (tan y) (sin z))) (* (* (cos z) (cos z)) (cos z))) |
| 461.0ms | (/ (* (* (* (tan y) (tan y)) (tan y)) (* (* (sin z) (sin z)) (sin z))) (* (* (cos z) (cos z)) (cos z))) |
| 290.0ms | (- (+ (/ (sin z) (* (cos z) (- 1 (/ (* (sin z) (sin y)) (* (cos y) (cos z)))))) (/ (sin y) (* (cos y) (- 1 (/ (* (sin z) (sin y)) (* (cos y) (cos z))))))) (/ (sin a) (cos a))) |
| 286.0ms | (- (+ (/ (sin z) (* (cos z) (- 1 (/ (* (sin z) (sin y)) (* (cos y) (cos z)))))) (+ (/ (sin y) (* (cos y) (- 1 (/ (* (sin z) (sin y)) (* (cos y) (cos z)))))) x)) (/ (sin a) (cos a))) |
| 281.0ms | (- (+ (* 1/3 (* z (pow y 3))) (* z y)) (* 1/6 (* (pow z 3) y))) |
7 alts after pruning (7 fresh and 0 done)
Merged error: 0.0b
0% (0.1b remaining)
Error of 0.2b against oracle of 0.1b and baseline of 0.2b
| 8000× | (pre true 80) |
| 3936× | (body real 1280) |
| 1957× | (body real 640) |
| 1124× | (body real 80) |
| 713× | (body real 320) |
| 270× | (body real 160) |