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

Error

Bits error versus m

Bits error versus v

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

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 associate-/l*0.2

    \[\leadsto \left(\color{blue}{\frac{m}{\frac{v}{1 - m}}} - 1\right) \cdot m\]
  4. Taylor expanded around inf 7.0

    \[\leadsto \color{blue}{\frac{{m}^{2}}{v} - \left(m + \frac{{m}^{3}}{v}\right)}\]
  5. Simplified0.2

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

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

Runtime

Time bar (total: 20.0s)Debug logProfile

herbie shell --seed 2018274 
(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))