Average Error: 33.5 → 33.5
Time: 55.7s
Precision: 64
\[\left|\left(\left(\tan^{-1}_* \frac{\mathsf{expm1}\left(\sin \left(\mathsf{expm1}\left(a\right)\right)\right)}{\tan^{-1} a}\right) \bmod a\right)\right|\]
\[\left|\left(\left(\tan^{-1}_* \frac{\mathsf{expm1}\left(\sin \left(\sqrt[3]{\mathsf{expm1}\left(a\right)} \cdot \left(\sqrt[3]{\mathsf{expm1}\left(a\right)} \cdot \sqrt[3]{\mathsf{expm1}\left(a\right)}\right)\right)\right)}{\tan^{-1} a}\right) \bmod a\right)\right|\]
\left|\left(\left(\tan^{-1}_* \frac{\mathsf{expm1}\left(\sin \left(\mathsf{expm1}\left(a\right)\right)\right)}{\tan^{-1} a}\right) \bmod a\right)\right|
\left|\left(\left(\tan^{-1}_* \frac{\mathsf{expm1}\left(\sin \left(\sqrt[3]{\mathsf{expm1}\left(a\right)} \cdot \left(\sqrt[3]{\mathsf{expm1}\left(a\right)} \cdot \sqrt[3]{\mathsf{expm1}\left(a\right)}\right)\right)\right)}{\tan^{-1} a}\right) \bmod a\right)\right|
double f(double a) {
        double r631028 = a;
        double r631029 = expm1(r631028);
        double r631030 = sin(r631029);
        double r631031 = expm1(r631030);
        double r631032 = atan(r631028);
        double r631033 = atan2(r631031, r631032);
        double r631034 = fmod(r631033, r631028);
        double r631035 = fabs(r631034);
        return r631035;
}

double f(double a) {
        double r631036 = a;
        double r631037 = expm1(r631036);
        double r631038 = cbrt(r631037);
        double r631039 = r631038 * r631038;
        double r631040 = r631038 * r631039;
        double r631041 = sin(r631040);
        double r631042 = expm1(r631041);
        double r631043 = atan(r631036);
        double r631044 = atan2(r631042, r631043);
        double r631045 = fmod(r631044, r631036);
        double r631046 = fabs(r631045);
        return r631046;
}

Error

Bits error versus a

Derivation

  1. Initial program 33.5

    \[\left|\left(\left(\tan^{-1}_* \frac{\mathsf{expm1}\left(\sin \left(\mathsf{expm1}\left(a\right)\right)\right)}{\tan^{-1} a}\right) \bmod a\right)\right|\]
  2. Using strategy rm
  3. Applied add-cube-cbrt33.5

    \[\leadsto \left|\left(\left(\tan^{-1}_* \frac{\mathsf{expm1}\left(\sin \color{blue}{\left(\left(\sqrt[3]{\mathsf{expm1}\left(a\right)} \cdot \sqrt[3]{\mathsf{expm1}\left(a\right)}\right) \cdot \sqrt[3]{\mathsf{expm1}\left(a\right)}\right)}\right)}{\tan^{-1} a}\right) \bmod a\right)\right|\]
  4. Final simplification33.5

    \[\leadsto \left|\left(\left(\tan^{-1}_* \frac{\mathsf{expm1}\left(\sin \left(\sqrt[3]{\mathsf{expm1}\left(a\right)} \cdot \left(\sqrt[3]{\mathsf{expm1}\left(a\right)} \cdot \sqrt[3]{\mathsf{expm1}\left(a\right)}\right)\right)\right)}{\tan^{-1} a}\right) \bmod a\right)\right|\]

Reproduce

herbie shell --seed 2019151 +o rules:numerics
(FPCore (a)
  :name "Random Jason Timeout Test 006"
  (fabs (fmod (atan2 (expm1 (sin (expm1 a))) (atan a)) a)))