Average Error: 0.0 → 0.0
Time: 8.5s
Precision: 64
\[\log \left(1 + x\right) - 1\]
\[\log \left(1 + x\right) - 1\]
\log \left(1 + x\right) - 1
\log \left(1 + x\right) - 1
double f(double x) {
        double r31697482 = 1.0;
        double r31697483 = x;
        double r31697484 = r31697482 + r31697483;
        double r31697485 = log(r31697484);
        double r31697486 = r31697485 - r31697482;
        return r31697486;
}

double f(double x) {
        double r31697487 = 1.0;
        double r31697488 = x;
        double r31697489 = r31697487 + r31697488;
        double r31697490 = log(r31697489);
        double r31697491 = r31697490 - r31697487;
        return r31697491;
}

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

    \[\log \left(1 + x\right) - 1\]
  2. Final simplification0.0

    \[\leadsto \log \left(1 + x\right) - 1\]

Reproduce

herbie shell --seed 1 
(FPCore (x)
  :name "log(1+x)-1"
  (- (log (+ 1.0 x)) 1.0))