Average Error: 14.8 → 0.4
Time: 8.2s
Precision: binary64
\[\]
\[\]
double code(double r, double a, double b) {
	return ((double) (r * ((double) (((double) sin(b)) / ((double) cos(((double) (a + b))))))));
}
double code(double r, double a, double b) {
	return ((double) (r * ((double) (((double) sin(b)) / ((double) (((double) (((double) cos(a)) * ((double) cos(b)))) - ((double) (((double) sin(b)) * ((double) log(((double) exp(((double) sin(a))))))))))))));
}

Error

Bits error versus r

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 14.8

    \[\]
  2. Using strategy rm
  3. Applied cos-sum0.3

    \[\leadsto \]
  4. Using strategy rm
  5. Applied add-log-exp0.4

    \[\leadsto \]
  6. Simplified0.4

    \[\leadsto \]
  7. Using strategy rm
  8. Applied pow-to-exp0.4

    \[\leadsto \]
  9. Applied rem-log-exp0.4

    \[\leadsto \]
  10. Final simplification0.4

    \[\leadsto \]

Reproduce

herbie shell --seed 2020179 
(FPCore (r a b)
  :name "rsin B"
  :precision binary64
  (* r (/ (sin b) (cos (+ a b)))))