Average Error: 0.1 → 0.1
Time: 29.3s
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(m \cdot m - 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-lft-in0.1

    \[\leadsto \color{blue}{(\left(1 - m\right) \cdot \left(\frac{m}{v}\right) + -1)_* \cdot 1 + (\left(1 - m\right) \cdot \left(\frac{m}{v}\right) + -1)_* \cdot \left(-m\right)}\]
  6. Taylor expanded around -inf 0.1

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

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

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

Runtime

Time bar (total: 29.3s)Debug logProfile

BaselineHerbieOracleSpan%
Regimes0.10.10.00.10%
herbie shell --seed 2018355 +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)))