Average Error: 0 → 0
Time: 1.6s
Precision: 64
\[2 \cdot \log x\]
\[2 \cdot \log x\]
2 \cdot \log x
2 \cdot \log x
double f(double x) {
        double r2149116 = 2.0;
        double r2149117 = x;
        double r2149118 = log(r2149117);
        double r2149119 = r2149116 * r2149118;
        return r2149119;
}

double f(double x) {
        double r2149120 = 2.0;
        double r2149121 = x;
        double r2149122 = log(r2149121);
        double r2149123 = r2149120 * r2149122;
        return r2149123;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0

    \[2 \cdot \log x\]
  2. Final simplification0

    \[\leadsto 2 \cdot \log x\]

Reproduce

herbie shell --seed 1 
(FPCore (x)
  :name "2*log(x)"
  :precision binary64
  (* 2 (log x)))