Average Error: 0.1 → 0.1
Time: 23.8s
Precision: 64
Internal precision: 128
\[\left(\frac{m \cdot \left(1 - m\right)}{v} - 1\right) \cdot \left(1 - m\right)\]
\[\left(\left(1 - m\right) \cdot \frac{m}{v} - 1\right) \cdot \left(1 - m\right)\]

Error

Bits error versus m

Bits error versus v

Derivation

  1. Initial program 0.1

    \[\left(\frac{m \cdot \left(1 - m\right)}{v} - 1\right) \cdot \left(1 - m\right)\]
  2. Using strategy rm
  3. Applied *-un-lft-identity 0.1

    \[\leadsto \left(\frac{m \cdot \left(1 - m\right)}{v} - 1\right) \cdot \color{blue}{\left(1 \cdot \left(1 - m\right)\right)}\]
  4. Applied associate-*r* 0.1

    \[\leadsto \color{blue}{\left(\left(\frac{m \cdot \left(1 - m\right)}{v} - 1\right) \cdot 1\right) \cdot \left(1 - m\right)}\]
  5. Applied simplify 0.1

    \[\leadsto \color{blue}{\left(\left(1 - m\right) \cdot \frac{m}{v} - 1\right)} \cdot \left(1 - m\right)\]
  6. Removed slow pow expressions

Runtime

Time bar (total: 23.8s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(2219725007 176567173 4113309965 4009585117 2916880441 3627445945)'
(FPCore (m v)
  :name "b parameter of renormalized beta distribution"
  :pre (and (< 0 m) (< 0 v) (< v 0.25))
  (* (- (/ (* m (- 1 m)) v) 1) (- 1 m)))