Average Error: 0 → 0
Time: 5.7s
Precision: 64
\[\frac{\sin x}{\cos x}\]
\[\frac{\sin x}{\cos x}\]
\frac{\sin x}{\cos x}
\frac{\sin x}{\cos x}
double f(double x) {
        double r1622974 = x;
        double r1622975 = sin(r1622974);
        double r1622976 = cos(r1622974);
        double r1622977 = r1622975 / r1622976;
        return r1622977;
}

double f(double x) {
        double r1622978 = x;
        double r1622979 = sin(r1622978);
        double r1622980 = cos(r1622978);
        double r1622981 = r1622979 / r1622980;
        return r1622981;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0

    \[\frac{\sin x}{\cos x}\]
  2. Final simplification0

    \[\leadsto \frac{\sin x}{\cos x}\]

Reproduce

herbie shell --seed 1 
(FPCore (x)
  :name "sin(x)/cos(x)"
  :precision binary32
  (/ (sin x) (cos x)))