Average Error: 0.0 → 0.0
Time: 1.3s
Precision: 64
\[x \cdot \left(1 - x \cdot 0.5\right)\]
\[x \cdot \left(1 - x \cdot 0.5\right)\]
x \cdot \left(1 - x \cdot 0.5\right)
x \cdot \left(1 - x \cdot 0.5\right)
double f(double x) {
        double r32585 = x;
        double r32586 = 1.0;
        double r32587 = 0.5;
        double r32588 = r32585 * r32587;
        double r32589 = r32586 - r32588;
        double r32590 = r32585 * r32589;
        return r32590;
}

double f(double x) {
        double r32591 = x;
        double r32592 = 1.0;
        double r32593 = 0.5;
        double r32594 = r32591 * r32593;
        double r32595 = r32592 - r32594;
        double r32596 = r32591 * r32595;
        return r32596;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[x \cdot \left(1 - x \cdot 0.5\right)\]
  2. Final simplification0.0

    \[\leadsto x \cdot \left(1 - x \cdot 0.5\right)\]

Reproduce

herbie shell --seed 2019199 
(FPCore (x)
  :name "Numeric.SpecFunctions:log1p from math-functions-0.1.5.2, B"
  (* x (- 1.0 (* x 0.5))))