Average Error: 14.1 → 0.5
Time: 41.2s
Precision: 64
Internal Precision: 576
\[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
\[\begin{array}{l} \mathbf{if}\;x \cdot y \le -1.0500476354794358 \cdot 10^{+273}:\\ \;\;\;\;x \cdot \frac{y}{z}\\ \mathbf{if}\;x \cdot y \le -6.0262232586241356 \cdot 10^{-198}:\\ \;\;\;\;\frac{x \cdot y}{z}\\ \mathbf{if}\;x \cdot y \le 6.5216665251045 \cdot 10^{-322}:\\ \;\;\;\;x \cdot \frac{y}{z}\\ \mathbf{if}\;x \cdot y \le 3.010465017728942 \cdot 10^{+139}:\\ \;\;\;\;\frac{x \cdot y}{z}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{y}{z}\\ \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 2 regimes
  2. if (* x y) < -1.0500476354794358e+273 or -6.0262232586241356e-198 < (* x y) < 6.5216665251045e-322 or 3.010465017728942e+139 < (* x y)

    1. Initial program 7.0

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

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

    if -1.0500476354794358e+273 < (* x y) < -6.0262232586241356e-198 or 6.5216665251045e-322 < (* x y) < 3.010465017728942e+139

    1. Initial program 17.5

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

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

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

Runtime

Time bar (total: 41.2s)Debug logProfile

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