Average Error: 0.1 → 0.1
Time: 14.5s
Precision: 64
\[\sin \left({\left(\sqrt{\tan^{-1}_* \frac{b}{b}}\right)}^{\left(b - a\right)}\right)\]
\[\sin \left({\left(\sqrt{\sqrt{\tan^{-1}_* \frac{b}{b}}}\right)}^{\left(b - a\right)} \cdot \mathsf{expm1}\left(\mathsf{log1p}\left({\left(\sqrt{\sqrt{\tan^{-1}_* \frac{b}{b}}}\right)}^{\left(b - a\right)}\right)\right)\right)\]
\sin \left({\left(\sqrt{\tan^{-1}_* \frac{b}{b}}\right)}^{\left(b - a\right)}\right)
\sin \left({\left(\sqrt{\sqrt{\tan^{-1}_* \frac{b}{b}}}\right)}^{\left(b - a\right)} \cdot \mathsf{expm1}\left(\mathsf{log1p}\left({\left(\sqrt{\sqrt{\tan^{-1}_* \frac{b}{b}}}\right)}^{\left(b - a\right)}\right)\right)\right)
double f(double a, double b) {
        double r17455 = b;
        double r17456 = atan2(r17455, r17455);
        double r17457 = sqrt(r17456);
        double r17458 = a;
        double r17459 = r17455 - r17458;
        double r17460 = pow(r17457, r17459);
        double r17461 = sin(r17460);
        return r17461;
}

double f(double a, double b) {
        double r17462 = b;
        double r17463 = atan2(r17462, r17462);
        double r17464 = sqrt(r17463);
        double r17465 = sqrt(r17464);
        double r17466 = a;
        double r17467 = r17462 - r17466;
        double r17468 = pow(r17465, r17467);
        double r17469 = log1p(r17468);
        double r17470 = expm1(r17469);
        double r17471 = r17468 * r17470;
        double r17472 = sin(r17471);
        return r17472;
}

Error

Bits error versus a

Bits error versus b

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[\sin \left({\left(\sqrt{\tan^{-1}_* \frac{b}{b}}\right)}^{\left(b - a\right)}\right)\]
  2. Using strategy rm
  3. Applied add-sqr-sqrt0.1

    \[\leadsto \sin \left({\left(\sqrt{\color{blue}{\sqrt{\tan^{-1}_* \frac{b}{b}} \cdot \sqrt{\tan^{-1}_* \frac{b}{b}}}}\right)}^{\left(b - a\right)}\right)\]
  4. Applied sqrt-prod0.1

    \[\leadsto \sin \left({\color{blue}{\left(\sqrt{\sqrt{\tan^{-1}_* \frac{b}{b}}} \cdot \sqrt{\sqrt{\tan^{-1}_* \frac{b}{b}}}\right)}}^{\left(b - a\right)}\right)\]
  5. Applied unpow-prod-down0.1

    \[\leadsto \sin \color{blue}{\left({\left(\sqrt{\sqrt{\tan^{-1}_* \frac{b}{b}}}\right)}^{\left(b - a\right)} \cdot {\left(\sqrt{\sqrt{\tan^{-1}_* \frac{b}{b}}}\right)}^{\left(b - a\right)}\right)}\]
  6. Using strategy rm
  7. Applied expm1-log1p-u0.1

    \[\leadsto \sin \left({\left(\sqrt{\sqrt{\tan^{-1}_* \frac{b}{b}}}\right)}^{\left(b - a\right)} \cdot \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left({\left(\sqrt{\sqrt{\tan^{-1}_* \frac{b}{b}}}\right)}^{\left(b - a\right)}\right)\right)}\right)\]
  8. Final simplification0.1

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

Reproduce

herbie shell --seed 2020047 +o rules:numerics
(FPCore (a b)
  :name "Random Jason Timeout Test 003"
  :precision binary64
  (sin (pow (sqrt (atan2 b b)) (- b a))))