Average Error: 14.3 → 1.8
Time: 16.3s
Precision: 64
Internal Precision: 576
\[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
\[\begin{array}{l} \mathbf{if}\;\frac{z}{x} \le -1.489621586324841 \cdot 10^{+84}:\\ \;\;\;\;\frac{y}{z} \cdot x\\ \mathbf{if}\;\frac{z}{x} \le -1.4602807494355828 \cdot 10^{-158}:\\ \;\;\;\;\frac{y}{\frac{z}{x}}\\ \mathbf{if}\;\frac{z}{x} \le 6.564452799338788 \cdot 10^{-204}:\\ \;\;\;\;\frac{x}{\frac{z}{y}}\\ \mathbf{if}\;\frac{z}{x} \le 3.844362876556608 \cdot 10^{+64}:\\ \;\;\;\;\frac{y}{\frac{z}{x}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{\frac{z}{y}}\\ \end{array}\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Split input into 3 regimes
  2. if (/ z x) < -1.489621586324841e+84

    1. Initial program 9.2

      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
    2. Applied simplify2.6

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

    if -1.489621586324841e+84 < (/ z x) < -1.4602807494355828e-158 or 6.564452799338788e-204 < (/ z x) < 3.844362876556608e+64

    1. Initial program 21.7

      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
    2. Applied simplify11.6

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

      \[\leadsto x \cdot \color{blue}{\left(y \cdot \frac{1}{z}\right)}\]
    5. Applied associate-*r*10.1

      \[\leadsto \color{blue}{\left(x \cdot y\right) \cdot \frac{1}{z}}\]
    6. Using strategy rm
    7. Applied pow110.1

      \[\leadsto \left(x \cdot y\right) \cdot \color{blue}{{\left(\frac{1}{z}\right)}^{1}}\]
    8. Applied pow110.1

      \[\leadsto \color{blue}{{\left(x \cdot y\right)}^{1}} \cdot {\left(\frac{1}{z}\right)}^{1}\]
    9. Applied pow-prod-down10.1

      \[\leadsto \color{blue}{{\left(\left(x \cdot y\right) \cdot \frac{1}{z}\right)}^{1}}\]
    10. Applied simplify0.3

      \[\leadsto {\color{blue}{\left(\frac{y}{\frac{z}{x}}\right)}}^{1}\]

    if -1.4602807494355828e-158 < (/ z x) < 6.564452799338788e-204 or 3.844362876556608e+64 < (/ z x)

    1. Initial program 9.6

      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
    2. Applied simplify2.8

      \[\leadsto \color{blue}{x \cdot \frac{y}{z}}\]
    3. Using strategy rm
    4. Applied associate-*r/2.2

      \[\leadsto \color{blue}{\frac{x \cdot y}{z}}\]
    5. Using strategy rm
    6. Applied associate-/l*2.9

      \[\leadsto \color{blue}{\frac{x}{\frac{z}{y}}}\]
  3. Recombined 3 regimes into one program.
  4. Applied simplify1.8

    \[\leadsto \color{blue}{\begin{array}{l} \mathbf{if}\;\frac{z}{x} \le -1.489621586324841 \cdot 10^{+84}:\\ \;\;\;\;\frac{y}{z} \cdot x\\ \mathbf{if}\;\frac{z}{x} \le -1.4602807494355828 \cdot 10^{-158}:\\ \;\;\;\;\frac{y}{\frac{z}{x}}\\ \mathbf{if}\;\frac{z}{x} \le 6.564452799338788 \cdot 10^{-204}:\\ \;\;\;\;\frac{x}{\frac{z}{y}}\\ \mathbf{if}\;\frac{z}{x} \le 3.844362876556608 \cdot 10^{+64}:\\ \;\;\;\;\frac{y}{\frac{z}{x}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{\frac{z}{y}}\\ \end{array}}\]

Runtime

Time bar (total: 16.3s)Debug logProfile

herbie shell --seed 2018167 
(FPCore (x y z t)
  :name "Graphics.Rendering.Chart.Backend.Diagrams:calcFontMetrics from Chart-diagrams-1.5.1"
  (* x (/ (* (/ y z) t) t)))