Average Error: 14.1 → 0.3
Time: 15.8s
Precision: 64
Internal Precision: 384
\[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
\[\begin{array}{l} \mathbf{if}\;y \cdot x = -\infty:\\ \;\;\;\;\frac{1}{\frac{\frac{z}{y}}{x}}\\ \mathbf{if}\;y \cdot x \le -4.8315632142517525 \cdot 10^{-203}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{if}\;y \cdot x \le 1.53082369955485 \cdot 10^{-305}:\\ \;\;\;\;\frac{\frac{x}{z}}{\frac{1}{y}}\\ \mathbf{if}\;y \cdot x \le 1.973061321617615 \cdot 10^{+200}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{\frac{z}{y}}{x}}\\ \end{array}\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Derivation

  1. Split input into 3 regimes
  2. if (* y x) or 1.973061321617615e+200 < (* y x)

    1. Initial program 9.1

      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
    2. Applied simplify0.4

      \[\leadsto \color{blue}{\frac{x}{\frac{z}{y}}}\]
    3. Using strategy rm
    4. Applied clear-num0.4

      \[\leadsto \color{blue}{\frac{1}{\frac{\frac{z}{y}}{x}}}\]

    if (* y x) < -4.8315632142517525e-203 or 1.53082369955485e-305 < (* y x) < 1.973061321617615e+200

    1. Initial program 17.6

      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
    2. Applied simplify7.7

      \[\leadsto \color{blue}{\frac{x}{\frac{z}{y}}}\]
    3. Taylor expanded around 0 0.2

      \[\leadsto \color{blue}{\frac{y \cdot x}{z}}\]

    if -4.8315632142517525e-203 < (* y x) < 1.53082369955485e-305

    1. Initial program 4.2

      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
    2. Applied simplify0.4

      \[\leadsto \color{blue}{\frac{x}{\frac{z}{y}}}\]
    3. Using strategy rm
    4. Applied div-inv0.4

      \[\leadsto \frac{x}{\color{blue}{z \cdot \frac{1}{y}}}\]
    5. Applied associate-/r*0.4

      \[\leadsto \color{blue}{\frac{\frac{x}{z}}{\frac{1}{y}}}\]
  3. Recombined 3 regimes into one program.

Runtime

Time bar (total: 15.8s)Debug logProfile

herbie shell --seed '#(1070258749 1877548225 2229079127 1588002776 3179087814 1886870650)' 
(FPCore (x y z t)
  :name "Graphics.Rendering.Chart.Backend.Diagrams:calcFontMetrics from Chart-diagrams-1.5.1"
  (* x (/ (* (/ y z) t) t)))