Average Error: 0.0 → 0.6
Time: 24.1s
Precision: 64
\[\left(\left(\sinh c\right) \bmod \left(c - {\left( -2.9807307601812193 \cdot 10^{+165} \right)}^{2}\right)\right)\]
\[\left(\left(\mathsf{fma}\left(c \cdot \left(c \cdot c\right), \frac{1}{6}, \mathsf{fma}\left(\frac{1}{120}, {c}^{5}, c\right)\right)\right) \bmod \left(c - -2.9807307601812193 \cdot 10^{+165} \cdot -2.9807307601812193 \cdot 10^{+165}\right)\right)\]
\left(\left(\sinh c\right) \bmod \left(c - {\left( -2.9807307601812193 \cdot 10^{+165} \right)}^{2}\right)\right)
\left(\left(\mathsf{fma}\left(c \cdot \left(c \cdot c\right), \frac{1}{6}, \mathsf{fma}\left(\frac{1}{120}, {c}^{5}, c\right)\right)\right) \bmod \left(c - -2.9807307601812193 \cdot 10^{+165} \cdot -2.9807307601812193 \cdot 10^{+165}\right)\right)
double f(double c) {
        double r342842 = c;
        double r342843 = sinh(r342842);
        double r342844 = -2.9807307601812193e+165;
        double r342845 = 2.0;
        double r342846 = pow(r342844, r342845);
        double r342847 = r342842 - r342846;
        double r342848 = fmod(r342843, r342847);
        return r342848;
}

double f(double c) {
        double r342849 = c;
        double r342850 = r342849 * r342849;
        double r342851 = r342849 * r342850;
        double r342852 = 0.16666666666666666;
        double r342853 = 0.008333333333333333;
        double r342854 = 5.0;
        double r342855 = pow(r342849, r342854);
        double r342856 = fma(r342853, r342855, r342849);
        double r342857 = fma(r342851, r342852, r342856);
        double r342858 = -2.9807307601812193e+165;
        double r342859 = r342858 * r342858;
        double r342860 = r342849 - r342859;
        double r342861 = fmod(r342857, r342860);
        return r342861;
}

Error

Bits error versus c

Derivation

  1. Initial program 0.0

    \[\left(\left(\sinh c\right) \bmod \left(c - {\left( -2.9807307601812193 \cdot 10^{+165} \right)}^{2}\right)\right)\]
  2. Simplified0.0

    \[\leadsto \color{blue}{\left(\left(\sinh c\right) \bmod \left(c - -2.9807307601812193 \cdot 10^{+165} \cdot -2.9807307601812193 \cdot 10^{+165}\right)\right)}\]
  3. Taylor expanded around 0 0.6

    \[\leadsto \left(\color{blue}{\left(\frac{1}{6} \cdot {c}^{3} + \left(\frac{1}{120} \cdot {c}^{5} + c\right)\right)} \bmod \left(c - -2.9807307601812193 \cdot 10^{+165} \cdot -2.9807307601812193 \cdot 10^{+165}\right)\right)\]
  4. Simplified0.6

    \[\leadsto \left(\color{blue}{\left(\mathsf{fma}\left(c \cdot \left(c \cdot c\right), \frac{1}{6}, \mathsf{fma}\left(\frac{1}{120}, {c}^{5}, c\right)\right)\right)} \bmod \left(c - -2.9807307601812193 \cdot 10^{+165} \cdot -2.9807307601812193 \cdot 10^{+165}\right)\right)\]
  5. Final simplification0.6

    \[\leadsto \left(\left(\mathsf{fma}\left(c \cdot \left(c \cdot c\right), \frac{1}{6}, \mathsf{fma}\left(\frac{1}{120}, {c}^{5}, c\right)\right)\right) \bmod \left(c - -2.9807307601812193 \cdot 10^{+165} \cdot -2.9807307601812193 \cdot 10^{+165}\right)\right)\]

Reproduce

herbie shell --seed 2019153 +o rules:numerics
(FPCore (c)
  :name "Random Jason Timeout Test 014"
  (fmod (sinh c) (- c (pow -2.9807307601812193e+165 2))))