Average Error: 0.4 → 0.4
Time: 9.9s
Precision: 64
\[\sin x + \tanh x\]
\[\sin x + \tanh x\]
\sin x + \tanh x
\sin x + \tanh x
double f(double x) {
        double r154942 = x;
        double r154943 = sin(r154942);
        double r154944 = tanh(r154942);
        double r154945 = r154943 + r154944;
        return r154945;
}

double f(double x) {
        double r154946 = x;
        double r154947 = sin(r154946);
        double r154948 = tanh(r154946);
        double r154949 = r154947 + r154948;
        return r154949;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.4

    \[\sin x + \tanh x\]
  2. Final simplification0.4

    \[\leadsto \sin x + \tanh x\]

Reproduce

herbie shell --seed 1 
(FPCore (x)
  :name "sin(x) + tanh(x)"
  :precision binary64
  (+ (sin x) (tanh x)))