Average Error: 0.0 → 0.0
Time: 381.0ms
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 r39955 = x;
        double r39956 = 1.0;
        double r39957 = 0.5;
        double r39958 = r39955 * r39957;
        double r39959 = r39956 - r39958;
        double r39960 = r39955 * r39959;
        return r39960;
}

double f(double x) {
        double r39961 = x;
        double r39962 = 1.0;
        double r39963 = 0.5;
        double r39964 = r39961 * r39963;
        double r39965 = r39962 - r39964;
        double r39966 = r39961 * r39965;
        return r39966;
}

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 2019353 
(FPCore (x)
  :name "Numeric.SpecFunctions:log1p from math-functions-0.1.5.2, B"
  :precision binary64
  (* x (- 1 (* x 0.5))))