Average Error: 0.1 → 0.3
Time: 21.4s
Precision: 64
Internal precision: 128
\[\cosh x \cdot \frac{\sin y}{y}\]
\[\cosh x \cdot \left(\sin y \cdot \frac{1}{y}\right)\]

Error

Bits error versus x

Bits error versus y

Target

Original0.1
Comparison0.1
Herbie0.3
\[ \frac{\cosh x \cdot \sin y}{y} \]

Derivation

  1. Initial program 0.1

    \[\cosh x \cdot \frac{\sin y}{y}\]
  2. Using strategy rm
  3. Applied div-inv 0.3

    \[\leadsto \cosh x \cdot \color{blue}{\left(\sin y \cdot \frac{1}{y}\right)}\]
  4. Removed slow pow expressions

Runtime

Time bar (total: 21.4s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(4158101595 1803908561 2920638477 1546082804 3068242006 4080702751)'
(FPCore (x y)
  :name "Linear.Quaternion:$csinh from linear-1.19.1.3"

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

  (* (cosh x) (/ (sin y) y)))