


Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus a
Initial program 13.2
rmApplied tan-sum0.2
rmApplied add-sqr-sqrt30.9
Applied flip--30.9
Applied associate-/r/30.9
Applied prod-diff30.9
Simplified30.9
Simplified0.2
rmApplied tan-quot0.2
Applied associate-*l/0.2
Final simplification0.2
herbie shell --seed 2019016 +o rules:numerics
(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: 45.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) |
| 23.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))) |
| 18× | prod-diff |
| 18× | *-un-lft-identity |
| 18× | add-sqr-sqrt |
| 16× | add-cube-cbrt |
| 11× | associate-+r+ |
| 5× | add-log-exp |
| 4× | tan-quot |
| 3× | log1p-expm1-u |
| 3× | add-exp-log |
| 3× | fma-neg |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 2× | frac-sub |
| 2× | sub-neg |
| 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 |
| 12.0ms | (+ x (- (tan (+ y z)) (tan a))) |
| 11.0ms | (- (tan (+ y z)) (tan a)) |
| 3.0ms | (tan (+ y z)) |
| 145.0ms | (+ x (- (tan (+ y z)) (tan a))) |
| 101.0ms | (- (tan (+ y z)) (tan a)) |
| 45.0ms | (tan (+ y z)) |
| 210.0ms | (- (* (+ (tan y) (tan z)) (cos a)) (* (- 1 (* (tan y) (tan z))) (sin a))) |
| 131.0ms | (* (- 1 (* (tan y) (tan z))) (cos a)) |
| 45.0ms | (+ (* 1/3 (pow y 3)) (+ z y)) |
| 43.0ms | (fma (sqrt (tan (+ y z))) (sqrt (tan (+ y z))) (- (* (sqrt (tan a)) (sqrt (tan a))))) |
| 43.0ms | (- (+ (/ (sin (+ z y)) (cos (+ z y))) x) (/ (sin a) (cos 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)) |
| 145× | *-un-lft-identity |
| 108× | prod-diff |
| 104× | add-sqr-sqrt |
| 99× | add-cube-cbrt |
| 85× | times-frac |
| 56× | associate-+r+ |
| 22× | distribute-lft-out |
| 18× | fma-neg |
| 14× | associate-/r/ |
| 8× | add-log-exp |
| 8× | flip-- |
| 8× | flip3-- |
| 7× | div-inv |
| 7× | tan-quot |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 6× | pow1 |
| 4× | log1p-expm1-u |
| 4× | expm1-log1p-u |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 3× | fma-def |
| 2× | difference-of-squares |
| 2× | flip-+ |
| 2× | flip3-+ |
| 2× | sub-neg |
| 2× | +-commutative |
| 1× | distribute-lft-out-- |
| 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× | sum-log |
| 1× | associate-+r- |
| 1× | frac-times |
| 58.0ms | (- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a)) |
| 32.0ms | (+ x (- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a))) |
| 9.0ms | (* (tan y) (tan z)) |
| 4.0ms | (+ (tan y) (tan z)) |
| 485.0ms | (+ x (- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a))) |
| 467.0ms | (- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a)) |
| 139.0ms | (+ (tan y) (tan z)) |
| 107.0ms | (* (tan y) (tan z)) |
| 607.0ms | (fma (/ 1 (sqrt (- 1 (* (tan y) (tan z))))) (/ (+ (tan y) (tan z)) (sqrt (- 1 (* (tan y) (tan z))))) (- (* (sqrt (tan a)) (sqrt (tan a))))) |
| 543.0ms | (fma (/ 1 (* (cbrt (- 1 (* (tan y) (tan z)))) (cbrt (- 1 (* (tan y) (tan z)))))) (/ (+ (tan y) (tan z)) (cbrt (- 1 (* (tan y) (tan z))))) (- (* (tan a) 1))) |
| 464.0ms | (fma (/ 1 (* (cbrt (- 1 (* (tan y) (tan z)))) (cbrt (- 1 (* (tan y) (tan z)))))) (/ (+ (tan y) (tan z)) (cbrt (- 1 (* (tan y) (tan z))))) (- (* (cbrt (tan a)) (* (cbrt (tan a)) (cbrt (tan a)))))) |
| 419.0ms | (fma (/ (+ (tan y) (tan z)) (- (pow 1 3) (pow (* (tan y) (tan z)) 3))) (+ (* 1 1) (+ (* (* (tan y) (tan z)) (* (tan y) (tan z))) (* 1 (* (tan y) (tan z))))) (- (* (sqrt (tan a)) (sqrt (tan a))))) |
| 393.0ms | (fma (/ 1 (* (cbrt (- 1 (* (tan y) (tan z)))) (cbrt (- 1 (* (tan y) (tan z)))))) (/ (+ (tan y) (tan z)) (cbrt (- 1 (* (tan y) (tan z))))) (- (* (sqrt (tan a)) (sqrt (tan a))))) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.3b | (* (* (tan z) (tan y)) (* (tan z) (tan y))) |
| 0.2b | (* (tan z) (tan y)) |
| 0.2b | (* (tan z) (tan y)) |
| 0.2b | (* (tan z) (tan y)) |
| 44× | tan-quot |
| 37× | pow1 |
| 22× | add-exp-log |
| 22× | add-cbrt-cube |
| 20× | frac-times |
| 16× | pow-prod-down |
| 14× | associate-*r/ |
| 14× | associate-*l/ |
| 11× | cbrt-unprod |
| 11× | prod-exp |
| 10× | add-cube-cbrt |
| 10× | associate-*l* |
| 10× | associate-*r* |
| 10× | *-un-lft-identity |
| 10× | add-sqr-sqrt |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | pow-prod-up |
| 4× | *-commutative |
| 4× | expm1-log1p-u |
| 2× | pow-plus |
| 1× | pow2 |
| 23.0ms | (* (* (tan z) (tan y)) (* (tan z) (tan y))) |
| 8.0ms | (* (tan z) (tan y)) |
| 4.0ms | (* (tan z) (tan y)) |
| 4.0ms | (* (tan z) (tan y)) |
| 129.0ms | (* (* (tan z) (tan y)) (* (tan z) (tan y))) |
| 95.0ms | (* (tan z) (tan y)) |
| 95.0ms | (* (tan z) (tan y)) |
| 87.0ms | (* (tan z) (tan y)) |
| 599.0ms | (* (* (* (* (tan z) (tan y)) (* (tan z) (tan y))) (* (tan z) (tan y))) (* (* (* (tan z) (tan z)) (tan z)) (* (* (tan y) (tan y)) (tan y)))) |
| 541.0ms | (* (* (* (* (tan z) (tan z)) (tan z)) (* (* (tan y) (tan y)) (tan y))) (* (* (* (tan z) (tan y)) (* (tan z) (tan y))) (* (tan z) (tan y)))) |
| 533.0ms | (* (* (* (* (tan z) (tan y)) (* (tan z) (tan y))) (* (tan z) (tan y))) (* (* (* (tan z) (tan y)) (* (tan z) (tan y))) (* (tan z) (tan y)))) |
| 376.0ms | (/ (* (pow (sin z) 2) (pow (sin y) 2)) (* (pow (cos y) 2) (pow (cos z) 2))) |
| 360.0ms | (/ (* (pow (sin z) 2) (pow (sin y) 2)) (* (pow (cos y) 2) (pow (cos z) 2))) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.3b | (* (* (tan z) (tan y)) (* (tan z) (tan y))) |
| 0.2b | (* (sin z) (tan y)) |
| 0.2b | (* (tan z) (tan y)) |
| 0.2b | (* (tan z) (tan y)) |
| 41× | tan-quot |
| 37× | pow1 |
| 22× | add-exp-log |
| 22× | add-cbrt-cube |
| 19× | frac-times |
| 16× | pow-prod-down |
| 14× | associate-*r/ |
| 13× | associate-*l/ |
| 11× | cbrt-unprod |
| 11× | prod-exp |
| 10× | add-cube-cbrt |
| 10× | associate-*l* |
| 10× | associate-*r* |
| 10× | *-un-lft-identity |
| 10× | add-sqr-sqrt |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | pow-prod-up |
| 4× | *-commutative |
| 4× | expm1-log1p-u |
| 2× | pow-plus |
| 1× | pow2 |
| 19.0ms | (* (* (tan z) (tan y)) (* (tan z) (tan y))) |
| 4.0ms | (* (tan z) (tan y)) |
| 4.0ms | (* (tan z) (tan y)) |
| 4.0ms | (* (sin z) (tan y)) |
| 109.0ms | (* (sin z) (tan y)) |
| 106.0ms | (* (* (tan z) (tan y)) (* (tan z) (tan y))) |
| 94.0ms | (* (tan z) (tan y)) |
| 86.0ms | (* (tan z) (tan y)) |
| 476.0ms | (* (* (* (* (tan z) (tan y)) (* (tan z) (tan y))) (* (tan z) (tan y))) (* (* (* (tan z) (tan z)) (tan z)) (* (* (tan y) (tan y)) (tan y)))) |
| 449.0ms | (* (* (* (* (tan z) (tan z)) (tan z)) (* (* (tan y) (tan y)) (tan y))) (* (* (* (tan z) (tan y)) (* (tan z) (tan y))) (* (tan z) (tan y)))) |
| 413.0ms | (* (* (* (* (tan z) (tan y)) (* (tan z) (tan y))) (* (tan z) (tan y))) (* (* (* (tan z) (tan y)) (* (tan z) (tan y))) (* (tan z) (tan y)))) |
| 327.0ms | (/ (* (pow (sin z) 2) (pow (sin y) 2)) (* (pow (cos y) 2) (pow (cos z) 2))) |
| 283.0ms | (/ (* (pow (sin z) 2) (pow (sin y) 2)) (* (pow (cos y) 2) (pow (cos z) 2))) |
8 alts after pruning (7 fresh and 1 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) |