Average Error: 0.1 → 0.1
Time: 1.9m
Precision: 64
Internal Precision: 384
\[\left(\frac{m \cdot \left(1 - m\right)}{v} - 1\right) \cdot \left(1 - m\right)\]
\[\left(\frac{m}{v} \cdot \left(1 - m\right) - 1\right) \cdot \left(1 - m\right)\]

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. Using strategy rm
  3. Applied *-un-lft-identity0.1

    \[\leadsto \left(\frac{m \cdot \left(1 - m\right)}{v} - 1\right) \cdot \color{blue}{\left(1 \cdot \left(1 - m\right)\right)}\]
  4. Applied associate-*r*0.1

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

    \[\leadsto \color{blue}{\left(\frac{m}{v} \cdot \left(1 - m\right) - 1\right)} \cdot \left(1 - m\right)\]
  6. Removed slow pow expressions.

Runtime

Time bar (total: 1.9m)Debug logProfile

herbie shell --seed '#(1063185673 2139736501 2393378123 1907444849 1070993796 1007244912)' 
(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)))