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

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. Initial simplification0.1

    \[\leadsto (\left(1 - m\right) \cdot \left(\frac{m}{v}\right) + -1)_* \cdot \left(1 - m\right)\]
  3. Using strategy rm
  4. Applied sub-neg0.1

    \[\leadsto (\left(1 - m\right) \cdot \left(\frac{m}{v}\right) + -1)_* \cdot \color{blue}{\left(1 + \left(-m\right)\right)}\]
  5. Applied distribute-rgt-in0.1

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

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

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

Runtime

Time bar (total: 35.8s)Debug logProfile

BaselineHerbieOracleSpan%
Regimes0.10.10.00.10%
herbie shell --seed 2018354 +o rules:numerics
(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)))