Average Error: 14.5 → 0.6
Time: 6.6s
Precision: 64
Internal Precision: 576
\[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
\[\begin{array}{l} \mathbf{if}\;\frac{y}{z} \le -4.200260900470741 \cdot 10^{+139}:\\ \;\;\;\;\frac{1}{\frac{z}{y \cdot x}}\\ \mathbf{elif}\;\frac{y}{z} \le -2.1698274862388855 \cdot 10^{-243}:\\ \;\;\;\;\frac{x}{\frac{z}{y}}\\ \mathbf{elif}\;\frac{y}{z} \le 5.7166694067783 \cdot 10^{-311}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{elif}\;\frac{y}{z} \le 3.76531826901489 \cdot 10^{+182}:\\ \;\;\;\;\frac{x}{\frac{z}{y}}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{z}{y \cdot x}}\\ \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 (/ y z) < -4.200260900470741e+139 or 3.76531826901489e+182 < (/ y z)

    1. Initial program 33.6

      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
    2. Initial simplification2.7

      \[\leadsto y \cdot \frac{x}{z}\]
    3. Taylor expanded around -inf 2.7

      \[\leadsto \color{blue}{\frac{x \cdot y}{z}}\]
    4. Using strategy rm
    5. Applied clear-num2.8

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

    if -4.200260900470741e+139 < (/ y z) < -2.1698274862388855e-243 or 5.7166694067783e-311 < (/ y z) < 3.76531826901489e+182

    1. Initial program 8.4

      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
    2. Initial simplification8.3

      \[\leadsto y \cdot \frac{x}{z}\]
    3. Taylor expanded around -inf 9.2

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

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

    if -2.1698274862388855e-243 < (/ y z) < 5.7166694067783e-311

    1. Initial program 20.0

      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
    2. Initial simplification0.2

      \[\leadsto y \cdot \frac{x}{z}\]
    3. Taylor expanded around -inf 0.2

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{y}{z} \le -4.200260900470741 \cdot 10^{+139}:\\ \;\;\;\;\frac{1}{\frac{z}{y \cdot x}}\\ \mathbf{elif}\;\frac{y}{z} \le -2.1698274862388855 \cdot 10^{-243}:\\ \;\;\;\;\frac{x}{\frac{z}{y}}\\ \mathbf{elif}\;\frac{y}{z} \le 5.7166694067783 \cdot 10^{-311}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{elif}\;\frac{y}{z} \le 3.76531826901489 \cdot 10^{+182}:\\ \;\;\;\;\frac{x}{\frac{z}{y}}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{z}{y \cdot x}}\\ \end{array}\]

Runtime

Time bar (total: 6.6s)Debug logProfile

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