Average Error: 15.0 → 0.1
Time: 16.9s
Precision: 64
Internal precision: 128
\[\frac{\sin x \cdot \sinh y}{x}\]
\[\frac{\sin x}{x} \cdot \sinh y\]

Error

Bits error versus x

Bits error versus y

Target

Original15.0
Comparison0.2
Herbie0.1
\[ \sin x \cdot \frac{\sinh y}{x} \]

Derivation

  1. Initial program 15.0

    \[\frac{\sin x \cdot \sinh y}{x}\]
  2. Using strategy rm
  3. Applied associate-/l* 0.7

    \[\leadsto \color{blue}{\frac{\sin x}{\frac{x}{\sinh y}}}\]
  4. Using strategy rm
  5. Applied associate-/r/ 0.1

    \[\leadsto \color{blue}{\frac{\sin x}{x} \cdot \sinh y}\]
  6. Removed slow pow expressions

Runtime

Time bar (total: 16.9s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(2855526415 1441796192 2627853007 3233989333 332074463 1326938740)'
(FPCore (x y)
  :name "Linear.Quaternion:$ccosh from linear-1.19.1.3"

  :target
  (* (sin x) (/ (sinh y) x))

  (/ (* (sin x) (sinh y)) x))