


Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus a
Results
Initial program 13.3
rmApplied tan-sum0.2
rmApplied tan-quot0.2
Applied associate-*l/0.2
rmApplied add-log-exp0.3
rmApplied exp-sum0.3
Final simplification0.3
herbie shell --seed 2019010 +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: 1.1m)Debug log
| 46.0ms | (+ x (- (tan (+ y z)) (tan a))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 10.7b
Found 3 expressions with local error:
| 3.0b | (tan (+ y z)) |
| 0.2b | (- (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 | (- (tan (+ y z)) (tan a)) |
| 10.0ms | (+ x (- (tan (+ y z)) (tan a))) |
| 3.0ms | (tan (+ y z)) |
| 103.0ms | (+ x (- (tan (+ y z)) (tan a))) |
| 103.0ms | (- (tan (+ y z)) (tan a)) |
| 69.0ms | (tan (+ y z)) |
| 231.0ms | (- (* (+ (tan y) (tan z)) (cos a)) (* (- 1 (* (tan y) (tan z))) (sin a))) |
| 156.0ms | (* (- 1 (* (tan y) (tan z))) (cos a)) |
| 51.0ms | (- (+ (/ (sin (+ z y)) (cos (+ z y))) x) (/ (sin a) (cos a))) |
| 44.0ms | (fma (sqrt (tan (+ y z))) (sqrt (tan (+ y z))) (- (* (sqrt (tan a)) (sqrt (tan a))))) |
| 39.0ms | (fma 1 (tan (+ y z)) (- (* (tan a) 1))) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 0.2b | (- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a)) |
| 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)) |
| 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 |
| 42.0ms | (+ x (- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a))) |
| 38.0ms | (- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a)) |
| 4.0ms | (* (tan y) (tan z)) |
| 4.0ms | (+ (tan y) (tan z)) |
| 463.0ms | (- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a)) |
| 433.0ms | (+ x (- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a))) |
| 121.0ms | (* (tan y) (tan z)) |
| 115.0ms | (+ (tan y) (tan z)) |
| 516.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)))))) |
| 488.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))) |
| 472.0ms | (fma (/ (* (cbrt (+ (tan y) (tan z))) (cbrt (+ (tan y) (tan z)))) 1) (/ (cbrt (+ (tan y) (tan z))) (- 1 (* (tan y) (tan z)))) (- (* (tan a) 1))) |
| 466.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))) |
| 460.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)))))) |
13 alts after pruning (13 fresh and 0 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 0.2b | (* (sin y) (tan z)) |
| 0.2b | (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (sin y) (tan z)) (cos y)))) (tan a)) |
| 0.2b | (/ (* (sin y) (tan z)) (cos y)) |
| 0.1b | (+ x (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (sin y) (tan z)) (cos y)))) (tan a))) |
| 144× | *-un-lft-identity |
| 108× | prod-diff |
| 105× | add-sqr-sqrt |
| 100× | add-cube-cbrt |
| 88× | times-frac |
| 56× | associate-+r+ |
| 21× | distribute-lft-out |
| 18× | fma-neg |
| 14× | associate-/r/ |
| 11× | add-exp-log |
| 11× | add-cbrt-cube |
| 8× | flip-- |
| 8× | div-inv |
| 8× | flip3-- |
| 6× | add-log-exp |
| 6× | pow1 |
| 4× | log1p-expm1-u |
| 4× | expm1-log1p-u |
| 3× | tan-quot |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 3× | associate-/r* |
| 2× | difference-of-squares |
| 2× | cbrt-unprod |
| 2× | associate-*r/ |
| 2× | prod-exp |
| 2× | div-exp |
| 2× | sub-neg |
| 2× | cbrt-undiv |
| 1× | associate-/l/ |
| 1× | distribute-lft-out-- |
| 1× | associate-/l* |
| 1× | flip-+ |
| 1× | frac-sub |
| 1× | *-commutative |
| 1× | pow-prod-down |
| 1× | diff-log |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | associate-+r- |
| 1× | clear-num |
| 1× | +-commutative |
| 56.0ms | (+ x (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (sin y) (tan z)) (cos y)))) (tan a))) |
| 47.0ms | (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (sin y) (tan z)) (cos y)))) (tan a)) |
| 12.0ms | (* (sin y) (tan z)) |
| 7.0ms | (/ (* (sin y) (tan z)) (cos y)) |
| 426.0ms | (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (sin y) (tan z)) (cos y)))) (tan a)) |
| 326.0ms | (+ x (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (sin y) (tan z)) (cos y)))) (tan a))) |
| 106.0ms | (/ (* (sin y) (tan z)) (cos y)) |
| 75.0ms | (* (sin y) (tan z)) |
| 494.0ms | (/ (* (* (* (sin y) (tan z)) (* (sin y) (tan z))) (* (sin y) (tan z))) (* (* (cos y) (cos y)) (cos y))) |
| 407.0ms | (/ (* (* (* (sin y) (sin y)) (sin y)) (* (* (tan z) (tan z)) (tan z))) (* (* (cos y) (cos y)) (cos y))) |
| 381.0ms | (fma (/ 1 (* (cbrt (- 1 (/ (* (sin y) (tan z)) (cos y)))) (cbrt (- 1 (/ (* (sin y) (tan z)) (cos y)))))) (/ (+ (tan y) (tan z)) (cbrt (- 1 (/ (* (sin y) (tan z)) (cos y))))) (- (* (sqrt (tan a)) (sqrt (tan a))))) |
| 332.0ms | (fma (/ 1 (* (cbrt (- 1 (/ (* (sin y) (tan z)) (cos y)))) (cbrt (- 1 (/ (* (sin y) (tan z)) (cos y)))))) (/ (+ (tan y) (tan z)) (cbrt (- 1 (/ (* (sin y) (tan z)) (cos y))))) (- (* (sqrt (tan a)) (sqrt (tan a))))) |
| 328.0ms | (- (* (+ (tan y) (tan z)) (cos a)) (* (- 1 (/ (* (sin y) (tan z)) (cos y))) (sin a))) |
11 alts after pruning (11 fresh and 0 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 2.6b | (exp (+ x (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (sin y) (tan z)) (cos y)))) (tan a)))) |
| 0.2b | (* (sin y) (tan z)) |
| 0.2b | (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (sin y) (tan z)) (cos y)))) (tan a)) |
| 0.2b | (/ (* (sin y) (tan z)) (cos y)) |
| 85× | *-un-lft-identity |
| 64× | add-sqr-sqrt |
| 59× | add-cube-cbrt |
| 54× | prod-diff |
| 52× | times-frac |
| 18× | fma-neg |
| 12× | distribute-lft-out |
| 11× | add-exp-log |
| 11× | add-cbrt-cube |
| 8× | associate-/r/ |
| 7× | add-log-exp |
| 6× | pow1 |
| 5× | flip-- |
| 5× | div-inv |
| 5× | flip3-- |
| 4× | log1p-expm1-u |
| 4× | expm1-log1p-u |
| 3× | tan-quot |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 3× | associate-/r* |
| 3× | exp-prod |
| 2× | difference-of-squares |
| 2× | cbrt-unprod |
| 2× | associate-*r/ |
| 2× | prod-exp |
| 2× | div-exp |
| 2× | cbrt-undiv |
| 1× | associate-/l/ |
| 1× | rem-exp-log |
| 1× | distribute-lft-out-- |
| 1× | associate-/l* |
| 1× | frac-sub |
| 1× | *-commutative |
| 1× | pow-prod-down |
| 1× | exp-sum |
| 1× | diff-log |
| 1× | exp-diff |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | associate-+r- |
| 1× | clear-num |
| 80.0ms | (exp (+ x (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (sin y) (tan z)) (cos y)))) (tan a)))) |
| 48.0ms | (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (sin y) (tan z)) (cos y)))) (tan a)) |
| 8.0ms | (/ (* (sin y) (tan z)) (cos y)) |
| 4.0ms | (* (sin y) (tan z)) |
| 439.0ms | (exp (+ x (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (sin y) (tan z)) (cos y)))) (tan a)))) |
| 400.0ms | (- (/ (+ (tan y) (tan z)) (- 1 (/ (* (sin y) (tan z)) (cos y)))) (tan a)) |
| 128.0ms | (/ (* (sin y) (tan z)) (cos y)) |
| 81.0ms | (* (sin y) (tan z)) |
| 347.0ms | (/ (* (* (* (sin y) (tan z)) (* (sin y) (tan z))) (* (sin y) (tan z))) (* (* (cos y) (cos y)) (cos y))) |
| 336.0ms | (fma (/ 1 (* (cbrt (- 1 (/ (* (sin y) (tan z)) (cos y)))) (cbrt (- 1 (/ (* (sin y) (tan z)) (cos y)))))) (/ (+ (tan y) (tan z)) (cbrt (- 1 (/ (* (sin y) (tan z)) (cos y))))) (- (* (sqrt (tan a)) (sqrt (tan a))))) |
| 334.0ms | (/ (* (* (* (sin y) (sin y)) (sin y)) (* (* (tan z) (tan z)) (tan z))) (* (* (cos y) (cos y)) (cos y))) |
| 334.0ms | (fma (/ 1 (* (cbrt (- 1 (/ (* (sin y) (tan z)) (cos y)))) (cbrt (- 1 (/ (* (sin y) (tan z)) (cos y)))))) (/ (+ (tan y) (tan z)) (cbrt (- 1 (/ (* (sin y) (tan z)) (cos y))))) (- (* (sqrt (tan a)) (sqrt (tan a))))) |
| 238.0ms | (fma (/ 1 (sqrt (- 1 (/ (* (sin y) (tan z)) (cos y))))) (/ (+ (tan y) (tan z)) (sqrt (- 1 (/ (* (sin y) (tan z)) (cos y))))) (- (* (cbrt (tan a)) (* (cbrt (tan a)) (cbrt (tan a)))))) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 0.0b
0% (0.2b remaining)
Error of 0.3b against oracle of 0.1b and baseline of 0.3b