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

Error

Bits error versus m

Bits error versus v

Derivation

  1. Initial program 0.2

    \[\left(\frac{m \cdot \left(1 - m\right)}{v} - 1\right) \cdot m\]
  2. Simplified0.2

    \[\leadsto \color{blue}{\frac{m}{v} \cdot \left(m - m \cdot m\right) - m}\]
  3. Using strategy rm
  4. Applied div-inv0.2

    \[\leadsto \color{blue}{\left(m \cdot \frac{1}{v}\right)} \cdot \left(m - m \cdot m\right) - m\]
  5. Applied associate-*l*0.2

    \[\leadsto \color{blue}{m \cdot \left(\frac{1}{v} \cdot \left(m - m \cdot m\right)\right)} - m\]
  6. Final simplification0.2

    \[\leadsto m \cdot \left(\frac{1}{v} \cdot \left(m - m \cdot m\right)\right) - m\]

Reproduce

herbie shell --seed 2019050 
(FPCore (m v)
  :name "a parameter of renormalized beta distribution"
  :pre (and (< 0 m) (< 0 v) (< v 0.25))
  (* (- (/ (* m (- 1 m)) v) 1) m))