Average Error: 0.7 → 0.7
Time: 18.1s
Precision: 64
Internal Precision: 320
\[\frac{e^{a}}{e^{a} + e^{b}}\]
\[\log \left(e^{\frac{e^{a}}{e^{a} + e^{b}}}\right)\]

Error

Bits error versus a

Bits error versus b

Target

Original0.7
Target0.0
Herbie0.7
\[\frac{1}{1 + e^{b - a}}\]

Derivation

  1. Initial program 0.7

    \[\frac{e^{a}}{e^{a} + e^{b}}\]
  2. Using strategy rm
  3. Applied add-log-exp0.7

    \[\leadsto \color{blue}{\log \left(e^{\frac{e^{a}}{e^{a} + e^{b}}}\right)}\]

Runtime

Time bar (total: 18.1s)Debug logProfile

herbie shell --seed '#(1071373924 2949776965 1885069702 3247780810 90874544 2263903749)' 
(FPCore (a b)
  :name "Quotient of sum of exps"

  :herbie-target
  (/ 1 (+ 1 (exp (- b a))))

  (/ (exp a) (+ (exp a) (exp b))))