Average Error: 0.2 → 0.2
Time: 1.0m
Precision: 64
Internal Precision: 384
\[\left(\frac{m \cdot \left(1 - m\right)}{v} - 1\right) \cdot m\]
\[1 \cdot (\left(\frac{m}{v}\right) \cdot \left(m - m \cdot m\right) + \left(-m\right))_*\]

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. Using strategy rm
  3. Applied div-inv0.3

    \[\leadsto \left(\color{blue}{\left(m \cdot \left(1 - m\right)\right) \cdot \frac{1}{v}} - 1\right) \cdot m\]
  4. Using strategy rm
  5. Applied *-un-lft-identity0.3

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

    \[\leadsto \color{blue}{1 \cdot \left(\left(\left(m \cdot \left(1 - m\right)\right) \cdot \frac{1}{v} - 1\right) \cdot m\right)}\]
  7. Applied simplify0.2

    \[\leadsto 1 \cdot \color{blue}{(\left(\frac{m}{v}\right) \cdot \left(m - m \cdot m\right) + \left(-m\right))_*}\]

Runtime

Time bar (total: 1.0m)Debug logProfile

herbie shell --seed '#(1070864556 424010669 783715395 1203517814 4070606583 4107618214)' +o rules:numerics
(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))