Average Error: 0.1 → 0.1
Time: 9.6s
Precision: 64
\[\sin \left(2 \cdot \cos x\right)\]
\[\sin \left(2 \cdot \cos x\right)\]
\sin \left(2 \cdot \cos x\right)
\sin \left(2 \cdot \cos x\right)
double f(double x) {
        double r150674 = 2.0;
        double r150675 = x;
        double r150676 = cos(r150675);
        double r150677 = r150674 * r150676;
        double r150678 = sin(r150677);
        return r150678;
}

double f(double x) {
        double r150679 = 2.0;
        double r150680 = x;
        double r150681 = cos(r150680);
        double r150682 = r150679 * r150681;
        double r150683 = sin(r150682);
        return r150683;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[\sin \left(2 \cdot \cos x\right)\]
  2. Final simplification0.1

    \[\leadsto \sin \left(2 \cdot \cos x\right)\]

Reproduce

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