Diagrams.Solve.Tridiagonal:solveCyclicTriDiagonal from diagrams-solve-0.1, B

Percentage Accurate: 74.8% → 91.8%
Time: 14.7s
Alternatives: 17
Speedup: 17.0×

Specification

?
\[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]

Your Program's Arguments

Results

Enter valid numbers for all inputs

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 17 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Alternative 1: 91.8% accurate, 0.2× speedup?

\[\begin{array}{l} t_1 := \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\ t_2 := \frac{1}{\frac{b}{z} + \frac{t}{y} \cdot \left(\frac{a + 1}{z} - \frac{x \cdot b}{z \cdot z}\right)}\\ \mathbf{if}\;t_1 \leq -\infty:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t_1 \leq -5 \cdot 10^{-126}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t_1 \leq 0:\\ \;\;\;\;\frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\ \mathbf{elif}\;t_1 \leq 5 \cdot 10^{+300}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t_1 \leq \infty:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \]
Derivation
  1. Split input into 4 regimes
  2. if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < -inf.0 or 5.00000000000000026e300 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < +inf.0

    1. Initial program 21.4%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative21.4%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*52.9%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/45.9%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified45.9%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Step-by-step derivation
      1. clear-num45.8%

        \[\leadsto \color{blue}{\frac{1}{\frac{\left(a + 1\right) + \frac{y}{t} \cdot b}{x + \frac{z}{\frac{t}{y}}}}} \]
      2. inv-pow45.8%

        \[\leadsto \color{blue}{{\left(\frac{\left(a + 1\right) + \frac{y}{t} \cdot b}{x + \frac{z}{\frac{t}{y}}}\right)}^{-1}} \]
      3. +-commutative45.8%

        \[\leadsto {\left(\frac{\color{blue}{\frac{y}{t} \cdot b + \left(a + 1\right)}}{x + \frac{z}{\frac{t}{y}}}\right)}^{-1} \]
      4. fma-def45.8%

        \[\leadsto {\left(\frac{\color{blue}{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}}{x + \frac{z}{\frac{t}{y}}}\right)}^{-1} \]
      5. +-commutative45.8%

        \[\leadsto {\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\color{blue}{\frac{z}{\frac{t}{y}} + x}}\right)}^{-1} \]
      6. div-inv45.9%

        \[\leadsto {\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\color{blue}{z \cdot \frac{1}{\frac{t}{y}}} + x}\right)}^{-1} \]
      7. clear-num45.8%

        \[\leadsto {\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{z \cdot \color{blue}{\frac{y}{t}} + x}\right)}^{-1} \]
      8. fma-udef45.8%

        \[\leadsto {\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\color{blue}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}}\right)}^{-1} \]
    5. Applied egg-rr45.8%

      \[\leadsto \color{blue}{{\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}\right)}^{-1}} \]
    6. Step-by-step derivation
      1. unpow-145.8%

        \[\leadsto \color{blue}{\frac{1}{\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}}} \]
      2. fma-udef45.8%

        \[\leadsto \frac{1}{\frac{\color{blue}{\frac{y}{t} \cdot b + \left(a + 1\right)}}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      3. associate-+r+45.8%

        \[\leadsto \frac{1}{\frac{\color{blue}{\left(\frac{y}{t} \cdot b + a\right) + 1}}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      4. associate-*l/52.8%

        \[\leadsto \frac{1}{\frac{\left(\color{blue}{\frac{y \cdot b}{t}} + a\right) + 1}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      5. +-commutative52.8%

        \[\leadsto \frac{1}{\frac{\color{blue}{1 + \left(\frac{y \cdot b}{t} + a\right)}}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      6. associate-*r/52.8%

        \[\leadsto \frac{1}{\frac{1 + \left(\color{blue}{y \cdot \frac{b}{t}} + a\right)}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      7. fma-def52.8%

        \[\leadsto \frac{1}{\frac{1 + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, a\right)}}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      8. fma-def52.8%

        \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{z \cdot \frac{y}{t} + x}}} \]
      9. associate-*r/21.4%

        \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{\frac{z \cdot y}{t}} + x}} \]
      10. associate-*l/52.9%

        \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{\frac{z}{t} \cdot y} + x}} \]
      11. *-commutative52.9%

        \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{y \cdot \frac{z}{t}} + x}} \]
      12. fma-def52.8%

        \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}} \]
    7. Simplified52.8%

      \[\leadsto \color{blue}{\frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}} \]
    8. Taylor expanded in y around inf 51.4%

      \[\leadsto \frac{1}{\color{blue}{\left(\frac{b}{z} + \frac{t \cdot \left(1 + a\right)}{y \cdot z}\right) - \frac{t \cdot \left(b \cdot x\right)}{y \cdot {z}^{2}}}} \]
    9. Step-by-step derivation
      1. associate--l+51.4%

        \[\leadsto \frac{1}{\color{blue}{\frac{b}{z} + \left(\frac{t \cdot \left(1 + a\right)}{y \cdot z} - \frac{t \cdot \left(b \cdot x\right)}{y \cdot {z}^{2}}\right)}} \]
      2. times-frac83.1%

        \[\leadsto \frac{1}{\frac{b}{z} + \left(\color{blue}{\frac{t}{y} \cdot \frac{1 + a}{z}} - \frac{t \cdot \left(b \cdot x\right)}{y \cdot {z}^{2}}\right)} \]
      3. times-frac86.4%

        \[\leadsto \frac{1}{\frac{b}{z} + \left(\frac{t}{y} \cdot \frac{1 + a}{z} - \color{blue}{\frac{t}{y} \cdot \frac{b \cdot x}{{z}^{2}}}\right)} \]
      4. distribute-lft-out--86.4%

        \[\leadsto \frac{1}{\frac{b}{z} + \color{blue}{\frac{t}{y} \cdot \left(\frac{1 + a}{z} - \frac{b \cdot x}{{z}^{2}}\right)}} \]
      5. *-commutative86.4%

        \[\leadsto \frac{1}{\frac{b}{z} + \frac{t}{y} \cdot \left(\frac{1 + a}{z} - \frac{\color{blue}{x \cdot b}}{{z}^{2}}\right)} \]
      6. unpow286.4%

        \[\leadsto \frac{1}{\frac{b}{z} + \frac{t}{y} \cdot \left(\frac{1 + a}{z} - \frac{x \cdot b}{\color{blue}{z \cdot z}}\right)} \]
    10. Simplified86.4%

      \[\leadsto \frac{1}{\color{blue}{\frac{b}{z} + \frac{t}{y} \cdot \left(\frac{1 + a}{z} - \frac{x \cdot b}{z \cdot z}\right)}} \]

    if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < -5.00000000000000006e-126 or 0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < 5.00000000000000026e300

    1. Initial program 99.8%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]

    if -5.00000000000000006e-126 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < 0.0

    1. Initial program 67.9%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative67.9%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*67.1%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/79.5%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified79.5%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Step-by-step derivation
      1. associate-/r/83.0%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y}{t} \cdot b} \]
    5. Applied egg-rr83.0%

      \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y}{t} \cdot b} \]

    if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t)))

    1. Initial program 0.0%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative0.0%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*0.5%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/15.3%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified15.3%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in t around 0 97.2%

      \[\leadsto \color{blue}{\frac{z}{b}} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification93.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \leq -\infty:\\ \;\;\;\;\frac{1}{\frac{b}{z} + \frac{t}{y} \cdot \left(\frac{a + 1}{z} - \frac{x \cdot b}{z \cdot z}\right)}\\ \mathbf{elif}\;\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \leq -5 \cdot 10^{-126}:\\ \;\;\;\;\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\ \mathbf{elif}\;\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \leq 0:\\ \;\;\;\;\frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\ \mathbf{elif}\;\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \leq 5 \cdot 10^{+300}:\\ \;\;\;\;\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\ \mathbf{elif}\;\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \leq \infty:\\ \;\;\;\;\frac{1}{\frac{b}{z} + \frac{t}{y} \cdot \left(\frac{a + 1}{z} - \frac{x \cdot b}{z \cdot z}\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \]

Alternative 2: 91.5% accurate, 0.2× speedup?

\[\begin{array}{l} t_1 := \frac{y \cdot b}{t}\\ t_2 := \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + t_1}\\ t_3 := \frac{y}{t} \cdot \frac{z}{1 + \left(a + t_1\right)}\\ \mathbf{if}\;t_2 \leq -\infty:\\ \;\;\;\;t_3\\ \mathbf{elif}\;t_2 \leq -5 \cdot 10^{-126}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t_2 \leq 0:\\ \;\;\;\;\frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\ \mathbf{elif}\;t_2 \leq 5 \cdot 10^{+300}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t_2 \leq \infty:\\ \;\;\;\;t_3\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \]
Derivation
  1. Split input into 4 regimes
  2. if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < -inf.0 or 5.00000000000000026e300 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < +inf.0

    1. Initial program 21.4%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative21.4%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*52.9%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/45.9%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified45.9%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in x around 0 45.6%

      \[\leadsto \color{blue}{\frac{y \cdot z}{t \cdot \left(1 + \left(\frac{y \cdot b}{t} + a\right)\right)}} \]
    5. Step-by-step derivation
      1. times-frac83.1%

        \[\leadsto \color{blue}{\frac{y}{t} \cdot \frac{z}{1 + \left(\frac{y \cdot b}{t} + a\right)}} \]
      2. +-commutative83.1%

        \[\leadsto \frac{y}{t} \cdot \frac{z}{1 + \color{blue}{\left(a + \frac{y \cdot b}{t}\right)}} \]
    6. Applied egg-rr83.1%

      \[\leadsto \color{blue}{\frac{y}{t} \cdot \frac{z}{1 + \left(a + \frac{y \cdot b}{t}\right)}} \]

    if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < -5.00000000000000006e-126 or 0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < 5.00000000000000026e300

    1. Initial program 99.8%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]

    if -5.00000000000000006e-126 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < 0.0

    1. Initial program 67.9%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative67.9%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*67.1%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/79.5%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified79.5%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Step-by-step derivation
      1. associate-/r/83.0%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y}{t} \cdot b} \]
    5. Applied egg-rr83.0%

      \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y}{t} \cdot b} \]

    if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t)))

    1. Initial program 0.0%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative0.0%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*0.5%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/15.3%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified15.3%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in t around 0 97.2%

      \[\leadsto \color{blue}{\frac{z}{b}} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification92.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \leq -\infty:\\ \;\;\;\;\frac{y}{t} \cdot \frac{z}{1 + \left(a + \frac{y \cdot b}{t}\right)}\\ \mathbf{elif}\;\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \leq -5 \cdot 10^{-126}:\\ \;\;\;\;\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\ \mathbf{elif}\;\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \leq 0:\\ \;\;\;\;\frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\ \mathbf{elif}\;\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \leq 5 \cdot 10^{+300}:\\ \;\;\;\;\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\ \mathbf{elif}\;\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \leq \infty:\\ \;\;\;\;\frac{y}{t} \cdot \frac{z}{1 + \left(a + \frac{y \cdot b}{t}\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \]

Alternative 3: 66.8% accurate, 0.7× speedup?

\[\begin{array}{l} t_1 := x + \frac{y \cdot z}{t}\\ t_2 := \frac{z}{b} + \frac{t}{y} \cdot \frac{x}{b}\\ \mathbf{if}\;y \leq -2.2 \cdot 10^{+81}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq -5.3 \cdot 10^{+39}:\\ \;\;\;\;\frac{x}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\ \mathbf{elif}\;y \leq -8 \cdot 10^{-77}:\\ \;\;\;\;\frac{y \cdot z}{y \cdot b + t \cdot \left(a + 1\right)}\\ \mathbf{elif}\;y \leq 1.5 \cdot 10^{-59}:\\ \;\;\;\;\frac{t_1}{a + 1}\\ \mathbf{elif}\;y \leq 1.6 \cdot 10^{+122}:\\ \;\;\;\;\frac{t_1}{1 + \frac{y \cdot b}{t}}\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Derivation
  1. Split input into 5 regimes
  2. if y < -2.19999999999999987e81 or 1.60000000000000006e122 < y

    1. Initial program 37.4%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative37.4%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*38.9%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/48.1%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified48.1%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in b around inf 28.4%

      \[\leadsto \color{blue}{\frac{t \cdot \left(\frac{y \cdot z}{t} + x\right)}{y \cdot b}} \]
    5. Taylor expanded in t around 0 62.7%

      \[\leadsto \color{blue}{\frac{t \cdot x}{y \cdot b} + \frac{z}{b}} \]
    6. Step-by-step derivation
      1. +-commutative62.7%

        \[\leadsto \color{blue}{\frac{z}{b} + \frac{t \cdot x}{y \cdot b}} \]
      2. times-frac67.7%

        \[\leadsto \frac{z}{b} + \color{blue}{\frac{t}{y} \cdot \frac{x}{b}} \]
    7. Simplified67.7%

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

    if -2.19999999999999987e81 < y < -5.29999999999999979e39

    1. Initial program 52.1%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative52.1%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*64.0%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/87.3%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified87.3%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in x around inf 88.0%

      \[\leadsto \frac{\color{blue}{x}}{\left(a + 1\right) + \frac{y}{t} \cdot b} \]

    if -5.29999999999999979e39 < y < -7.9999999999999994e-77

    1. Initial program 82.0%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative82.0%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*82.1%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/82.0%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified82.0%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in x around 0 56.2%

      \[\leadsto \color{blue}{\frac{y \cdot z}{t \cdot \left(1 + \left(\frac{y \cdot b}{t} + a\right)\right)}} \]
    5. Taylor expanded in t around 0 73.5%

      \[\leadsto \frac{y \cdot z}{\color{blue}{y \cdot b + t \cdot \left(1 + a\right)}} \]

    if -7.9999999999999994e-77 < y < 1.5e-59

    1. Initial program 96.9%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative96.9%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*97.8%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/97.8%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified97.8%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in b around 0 80.0%

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

    if 1.5e-59 < y < 1.60000000000000006e122

    1. Initial program 71.8%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. +-commutative71.8%

        \[\leadsto \frac{\color{blue}{\frac{y \cdot z}{t} + x}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. *-commutative71.8%

        \[\leadsto \frac{\frac{\color{blue}{z \cdot y}}{t} + x}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*r/74.4%

        \[\leadsto \frac{\color{blue}{z \cdot \frac{y}{t}} + x}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      4. fma-def74.4%

        \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      5. associate-+l+74.4%

        \[\leadsto \frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{\color{blue}{a + \left(1 + \frac{y \cdot b}{t}\right)}} \]
      6. +-commutative74.4%

        \[\leadsto \frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{a + \color{blue}{\left(\frac{y \cdot b}{t} + 1\right)}} \]
      7. associate-*r/74.4%

        \[\leadsto \frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{a + \left(\color{blue}{y \cdot \frac{b}{t}} + 1\right)} \]
      8. fma-def74.4%

        \[\leadsto \frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{a + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, 1\right)}} \]
    3. Simplified74.4%

      \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{a + \mathsf{fma}\left(y, \frac{b}{t}, 1\right)}} \]
    4. Taylor expanded in a around 0 66.1%

      \[\leadsto \color{blue}{\frac{\frac{y \cdot z}{t} + x}{\frac{y \cdot b}{t} + 1}} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification73.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.2 \cdot 10^{+81}:\\ \;\;\;\;\frac{z}{b} + \frac{t}{y} \cdot \frac{x}{b}\\ \mathbf{elif}\;y \leq -5.3 \cdot 10^{+39}:\\ \;\;\;\;\frac{x}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\ \mathbf{elif}\;y \leq -8 \cdot 10^{-77}:\\ \;\;\;\;\frac{y \cdot z}{y \cdot b + t \cdot \left(a + 1\right)}\\ \mathbf{elif}\;y \leq 1.5 \cdot 10^{-59}:\\ \;\;\;\;\frac{x + \frac{y \cdot z}{t}}{a + 1}\\ \mathbf{elif}\;y \leq 1.6 \cdot 10^{+122}:\\ \;\;\;\;\frac{x + \frac{y \cdot z}{t}}{1 + \frac{y \cdot b}{t}}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b} + \frac{t}{y} \cdot \frac{x}{b}\\ \end{array} \]

Alternative 4: 68.3% accurate, 0.7× speedup?

\[\begin{array}{l} \mathbf{if}\;a + 1 \leq -1:\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a}\\ \mathbf{elif}\;a + 1 \leq 5 \cdot 10^{+27}:\\ \;\;\;\;\frac{x + \frac{y \cdot z}{t}}{1 + b \cdot \frac{y}{t}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a}\\ \end{array} \]
Derivation
  1. Split input into 3 regimes
  2. if (+.f64 a 1) < -1

    1. Initial program 62.6%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative62.6%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*66.5%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/67.7%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified67.7%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in a around inf 51.1%

      \[\leadsto \color{blue}{\frac{\frac{y \cdot z}{t} + x}{a}} \]
    5. Step-by-step derivation
      1. *-un-lft-identity51.1%

        \[\leadsto \frac{\color{blue}{1 \cdot \frac{y \cdot z}{t}} + x}{a} \]
      2. associate-/l*59.5%

        \[\leadsto \frac{1 \cdot \color{blue}{\frac{y}{\frac{t}{z}}} + x}{a} \]
    6. Applied egg-rr59.5%

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

    if -1 < (+.f64 a 1) < 4.99999999999999979e27

    1. Initial program 72.7%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. +-commutative72.7%

        \[\leadsto \frac{\color{blue}{\frac{y \cdot z}{t} + x}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. *-commutative72.7%

        \[\leadsto \frac{\frac{\color{blue}{z \cdot y}}{t} + x}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*r/73.3%

        \[\leadsto \frac{\color{blue}{z \cdot \frac{y}{t}} + x}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      4. fma-def73.3%

        \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      5. associate-+l+73.3%

        \[\leadsto \frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{\color{blue}{a + \left(1 + \frac{y \cdot b}{t}\right)}} \]
      6. +-commutative73.3%

        \[\leadsto \frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{a + \color{blue}{\left(\frac{y \cdot b}{t} + 1\right)}} \]
      7. associate-*r/76.1%

        \[\leadsto \frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{a + \left(\color{blue}{y \cdot \frac{b}{t}} + 1\right)} \]
      8. fma-def76.1%

        \[\leadsto \frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{a + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, 1\right)}} \]
    3. Simplified76.1%

      \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{a + \mathsf{fma}\left(y, \frac{b}{t}, 1\right)}} \]
    4. Taylor expanded in a around 0 71.6%

      \[\leadsto \color{blue}{\frac{\frac{y \cdot z}{t} + x}{\frac{y \cdot b}{t} + 1}} \]
    5. Step-by-step derivation
      1. associate-*l/74.5%

        \[\leadsto \frac{\frac{y \cdot z}{t} + x}{\color{blue}{\frac{y}{t} \cdot b} + 1} \]
    6. Applied egg-rr74.5%

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

    if 4.99999999999999979e27 < (+.f64 a 1)

    1. Initial program 67.5%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative67.5%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*69.0%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/72.7%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified72.7%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in b around 0 60.0%

      \[\leadsto \color{blue}{\frac{\frac{y \cdot z}{t} + x}{1 + a}} \]
    5. Taylor expanded in a around inf 60.0%

      \[\leadsto \color{blue}{\frac{\frac{y \cdot z}{t} + x}{a}} \]
    6. Step-by-step derivation
      1. associate-/l*61.7%

        \[\leadsto \frac{\color{blue}{\frac{y}{\frac{t}{z}}} + x}{a} \]
      2. +-commutative61.7%

        \[\leadsto \frac{\color{blue}{x + \frac{y}{\frac{t}{z}}}}{a} \]
      3. associate-/r/63.4%

        \[\leadsto \frac{x + \color{blue}{\frac{y}{t} \cdot z}}{a} \]
    7. Simplified63.4%

      \[\leadsto \color{blue}{\frac{x + \frac{y}{t} \cdot z}{a}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification68.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a + 1 \leq -1:\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a}\\ \mathbf{elif}\;a + 1 \leq 5 \cdot 10^{+27}:\\ \;\;\;\;\frac{x + \frac{y \cdot z}{t}}{1 + b \cdot \frac{y}{t}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a}\\ \end{array} \]

Alternative 5: 81.0% accurate, 0.8× speedup?

\[\begin{array}{l} \mathbf{if}\;y \leq -1.5 \cdot 10^{+83} \lor \neg \left(y \leq 4.4 \cdot 10^{+140}\right):\\ \;\;\;\;\frac{z}{b} + \frac{t}{y} \cdot \frac{x}{b}\\ \mathbf{else}:\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\ \end{array} \]
Derivation
  1. Split input into 2 regimes
  2. if y < -1.5e83 or 4.3999999999999997e140 < y

    1. Initial program 36.8%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative36.8%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*38.3%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/46.9%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified46.9%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in b around inf 28.5%

      \[\leadsto \color{blue}{\frac{t \cdot \left(\frac{y \cdot z}{t} + x\right)}{y \cdot b}} \]
    5. Taylor expanded in t around 0 63.3%

      \[\leadsto \color{blue}{\frac{t \cdot x}{y \cdot b} + \frac{z}{b}} \]
    6. Step-by-step derivation
      1. +-commutative63.3%

        \[\leadsto \color{blue}{\frac{z}{b} + \frac{t \cdot x}{y \cdot b}} \]
      2. times-frac67.4%

        \[\leadsto \frac{z}{b} + \color{blue}{\frac{t}{y} \cdot \frac{x}{b}} \]
    7. Simplified67.4%

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

    if -1.5e83 < y < 4.3999999999999997e140

    1. Initial program 86.2%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative86.2%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*87.8%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/90.1%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified90.1%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Step-by-step derivation
      1. div-inv90.1%

        \[\leadsto \frac{x + \color{blue}{z \cdot \frac{1}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y}{t} \cdot b} \]
      2. clear-num90.1%

        \[\leadsto \frac{x + z \cdot \color{blue}{\frac{y}{t}}}{\left(a + 1\right) + \frac{y}{t} \cdot b} \]
    5. Applied egg-rr90.1%

      \[\leadsto \frac{x + \color{blue}{z \cdot \frac{y}{t}}}{\left(a + 1\right) + \frac{y}{t} \cdot b} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification82.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.5 \cdot 10^{+83} \lor \neg \left(y \leq 4.4 \cdot 10^{+140}\right):\\ \;\;\;\;\frac{z}{b} + \frac{t}{y} \cdot \frac{x}{b}\\ \mathbf{else}:\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\ \end{array} \]

Alternative 6: 53.2% accurate, 0.9× speedup?

\[\begin{array}{l} t_1 := \frac{x}{a + 1}\\ \mathbf{if}\;t \leq -1.35 \cdot 10^{-19}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -6.2 \cdot 10^{-189}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;t \leq -3.2 \cdot 10^{-217}:\\ \;\;\;\;\frac{x}{1 + \frac{y \cdot b}{t}}\\ \mathbf{elif}\;t \leq 8.2 \cdot 10^{-31}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;t \leq 2.1 \cdot 10^{+151}:\\ \;\;\;\;\frac{x}{1 + \frac{y}{\frac{t}{b}}}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Derivation
  1. Split input into 4 regimes
  2. if t < -1.35e-19 or 2.1000000000000001e151 < t

    1. Initial program 75.5%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative75.5%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*82.4%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/94.6%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified94.6%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in t around inf 65.1%

      \[\leadsto \color{blue}{\frac{x}{1 + a}} \]

    if -1.35e-19 < t < -6.2000000000000001e-189 or -3.2000000000000001e-217 < t < 8.1999999999999993e-31

    1. Initial program 56.0%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative56.0%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*50.7%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/48.5%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified48.5%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in t around 0 59.5%

      \[\leadsto \color{blue}{\frac{z}{b}} \]

    if -6.2000000000000001e-189 < t < -3.2000000000000001e-217

    1. Initial program 89.2%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. +-commutative89.2%

        \[\leadsto \frac{\color{blue}{\frac{y \cdot z}{t} + x}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. *-commutative89.2%

        \[\leadsto \frac{\frac{\color{blue}{z \cdot y}}{t} + x}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*r/99.7%

        \[\leadsto \frac{\color{blue}{z \cdot \frac{y}{t}} + x}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      4. fma-def99.7%

        \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      5. associate-+l+99.7%

        \[\leadsto \frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{\color{blue}{a + \left(1 + \frac{y \cdot b}{t}\right)}} \]
      6. +-commutative99.7%

        \[\leadsto \frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{a + \color{blue}{\left(\frac{y \cdot b}{t} + 1\right)}} \]
      7. associate-*r/89.0%

        \[\leadsto \frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{a + \left(\color{blue}{y \cdot \frac{b}{t}} + 1\right)} \]
      8. fma-def89.0%

        \[\leadsto \frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{a + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, 1\right)}} \]
    3. Simplified89.0%

      \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{a + \mathsf{fma}\left(y, \frac{b}{t}, 1\right)}} \]
    4. Taylor expanded in a around 0 78.5%

      \[\leadsto \color{blue}{\frac{\frac{y \cdot z}{t} + x}{\frac{y \cdot b}{t} + 1}} \]
    5. Taylor expanded in z around 0 67.9%

      \[\leadsto \color{blue}{\frac{x}{\frac{y \cdot b}{t} + 1}} \]

    if 8.1999999999999993e-31 < t < 2.1000000000000001e151

    1. Initial program 80.7%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative80.7%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*83.4%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/83.4%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified83.4%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in x around inf 63.3%

      \[\leadsto \frac{\color{blue}{x}}{\left(a + 1\right) + \frac{y}{t} \cdot b} \]
    5. Step-by-step derivation
      1. div-inv63.2%

        \[\leadsto \color{blue}{x \cdot \frac{1}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
      2. associate-+l+63.2%

        \[\leadsto x \cdot \frac{1}{\color{blue}{a + \left(1 + \frac{y}{t} \cdot b\right)}} \]
      3. associate-*l/63.1%

        \[\leadsto x \cdot \frac{1}{a + \left(1 + \color{blue}{\frac{y \cdot b}{t}}\right)} \]
      4. +-commutative63.1%

        \[\leadsto x \cdot \frac{1}{a + \color{blue}{\left(\frac{y \cdot b}{t} + 1\right)}} \]
      5. associate-*l/63.2%

        \[\leadsto x \cdot \frac{1}{a + \left(\color{blue}{\frac{y}{t} \cdot b} + 1\right)} \]
      6. fma-def63.2%

        \[\leadsto x \cdot \frac{1}{a + \color{blue}{\mathsf{fma}\left(\frac{y}{t}, b, 1\right)}} \]
    6. Applied egg-rr63.2%

      \[\leadsto \color{blue}{x \cdot \frac{1}{a + \mathsf{fma}\left(\frac{y}{t}, b, 1\right)}} \]
    7. Taylor expanded in a around 0 51.0%

      \[\leadsto \color{blue}{\frac{x}{\frac{y \cdot b}{t} + 1}} \]
    8. Step-by-step derivation
      1. +-commutative51.0%

        \[\leadsto \frac{x}{\color{blue}{1 + \frac{y \cdot b}{t}}} \]
      2. associate-/l*51.0%

        \[\leadsto \frac{x}{1 + \color{blue}{\frac{y}{\frac{t}{b}}}} \]
    9. Simplified51.0%

      \[\leadsto \color{blue}{\frac{x}{1 + \frac{y}{\frac{t}{b}}}} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification61.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.35 \cdot 10^{-19}:\\ \;\;\;\;\frac{x}{a + 1}\\ \mathbf{elif}\;t \leq -6.2 \cdot 10^{-189}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;t \leq -3.2 \cdot 10^{-217}:\\ \;\;\;\;\frac{x}{1 + \frac{y \cdot b}{t}}\\ \mathbf{elif}\;t \leq 8.2 \cdot 10^{-31}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;t \leq 2.1 \cdot 10^{+151}:\\ \;\;\;\;\frac{x}{1 + \frac{y}{\frac{t}{b}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a + 1}\\ \end{array} \]

Alternative 7: 64.1% accurate, 0.9× speedup?

\[\begin{array}{l} t_1 := \frac{z}{b} + \frac{t}{y} \cdot \frac{x}{b}\\ t_2 := \frac{x}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\ \mathbf{if}\;t \leq -1.6 \cdot 10^{-20}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -5.6 \cdot 10^{-102}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -2.6 \cdot 10^{-164}:\\ \;\;\;\;\frac{x + \frac{y \cdot z}{t}}{a + 1}\\ \mathbf{elif}\;t \leq 1.8 \cdot 10^{-130}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Derivation
  1. Split input into 3 regimes
  2. if t < -1.59999999999999985e-20 or 1.8000000000000001e-130 < t

    1. Initial program 75.4%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative75.4%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*80.0%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/88.2%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified88.2%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in x around inf 69.0%

      \[\leadsto \frac{\color{blue}{x}}{\left(a + 1\right) + \frac{y}{t} \cdot b} \]

    if -1.59999999999999985e-20 < t < -5.60000000000000026e-102 or -2.6000000000000002e-164 < t < 1.8000000000000001e-130

    1. Initial program 53.9%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative53.9%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*49.9%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/47.3%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified47.3%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in b around inf 44.5%

      \[\leadsto \color{blue}{\frac{t \cdot \left(\frac{y \cdot z}{t} + x\right)}{y \cdot b}} \]
    5. Taylor expanded in t around 0 78.5%

      \[\leadsto \color{blue}{\frac{t \cdot x}{y \cdot b} + \frac{z}{b}} \]
    6. Step-by-step derivation
      1. +-commutative78.5%

        \[\leadsto \color{blue}{\frac{z}{b} + \frac{t \cdot x}{y \cdot b}} \]
      2. times-frac72.3%

        \[\leadsto \frac{z}{b} + \color{blue}{\frac{t}{y} \cdot \frac{x}{b}} \]
    7. Simplified72.3%

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

    if -5.60000000000000026e-102 < t < -2.6000000000000002e-164

    1. Initial program 92.4%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative92.4%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*92.2%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/92.2%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified92.2%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in b around 0 76.7%

      \[\leadsto \color{blue}{\frac{\frac{y \cdot z}{t} + x}{1 + a}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification70.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.6 \cdot 10^{-20}:\\ \;\;\;\;\frac{x}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\ \mathbf{elif}\;t \leq -5.6 \cdot 10^{-102}:\\ \;\;\;\;\frac{z}{b} + \frac{t}{y} \cdot \frac{x}{b}\\ \mathbf{elif}\;t \leq -2.6 \cdot 10^{-164}:\\ \;\;\;\;\frac{x + \frac{y \cdot z}{t}}{a + 1}\\ \mathbf{elif}\;t \leq 1.8 \cdot 10^{-130}:\\ \;\;\;\;\frac{z}{b} + \frac{t}{y} \cdot \frac{x}{b}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\ \end{array} \]

Alternative 8: 54.0% accurate, 1.1× speedup?

\[\begin{array}{l} t_1 := \frac{x}{a + 1}\\ \mathbf{if}\;t \leq -1.02 \cdot 10^{-19}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 6.5 \cdot 10^{-29}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;t \leq 3.4 \cdot 10^{+151}:\\ \;\;\;\;\frac{x}{1 + \frac{y}{\frac{t}{b}}}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Derivation
  1. Split input into 3 regimes
  2. if t < -1.02000000000000004e-19 or 3.4e151 < t

    1. Initial program 75.5%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative75.5%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*82.4%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/94.6%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified94.6%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in t around inf 65.1%

      \[\leadsto \color{blue}{\frac{x}{1 + a}} \]

    if -1.02000000000000004e-19 < t < 6.5e-29

    1. Initial program 58.7%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative58.7%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*54.7%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/52.7%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified52.7%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in t around 0 56.0%

      \[\leadsto \color{blue}{\frac{z}{b}} \]

    if 6.5e-29 < t < 3.4e151

    1. Initial program 80.7%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative80.7%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*83.4%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/83.4%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified83.4%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in x around inf 63.3%

      \[\leadsto \frac{\color{blue}{x}}{\left(a + 1\right) + \frac{y}{t} \cdot b} \]
    5. Step-by-step derivation
      1. div-inv63.2%

        \[\leadsto \color{blue}{x \cdot \frac{1}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
      2. associate-+l+63.2%

        \[\leadsto x \cdot \frac{1}{\color{blue}{a + \left(1 + \frac{y}{t} \cdot b\right)}} \]
      3. associate-*l/63.1%

        \[\leadsto x \cdot \frac{1}{a + \left(1 + \color{blue}{\frac{y \cdot b}{t}}\right)} \]
      4. +-commutative63.1%

        \[\leadsto x \cdot \frac{1}{a + \color{blue}{\left(\frac{y \cdot b}{t} + 1\right)}} \]
      5. associate-*l/63.2%

        \[\leadsto x \cdot \frac{1}{a + \left(\color{blue}{\frac{y}{t} \cdot b} + 1\right)} \]
      6. fma-def63.2%

        \[\leadsto x \cdot \frac{1}{a + \color{blue}{\mathsf{fma}\left(\frac{y}{t}, b, 1\right)}} \]
    6. Applied egg-rr63.2%

      \[\leadsto \color{blue}{x \cdot \frac{1}{a + \mathsf{fma}\left(\frac{y}{t}, b, 1\right)}} \]
    7. Taylor expanded in a around 0 51.0%

      \[\leadsto \color{blue}{\frac{x}{\frac{y \cdot b}{t} + 1}} \]
    8. Step-by-step derivation
      1. +-commutative51.0%

        \[\leadsto \frac{x}{\color{blue}{1 + \frac{y \cdot b}{t}}} \]
      2. associate-/l*51.0%

        \[\leadsto \frac{x}{1 + \color{blue}{\frac{y}{\frac{t}{b}}}} \]
    9. Simplified51.0%

      \[\leadsto \color{blue}{\frac{x}{1 + \frac{y}{\frac{t}{b}}}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification59.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.02 \cdot 10^{-19}:\\ \;\;\;\;\frac{x}{a + 1}\\ \mathbf{elif}\;t \leq 6.5 \cdot 10^{-29}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;t \leq 3.4 \cdot 10^{+151}:\\ \;\;\;\;\frac{x}{1 + \frac{y}{\frac{t}{b}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a + 1}\\ \end{array} \]

Alternative 9: 54.6% accurate, 1.1× speedup?

\[\begin{array}{l} t_1 := \frac{x + z \cdot \frac{y}{t}}{a}\\ \mathbf{if}\;a \leq -2.75:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -2.05 \cdot 10^{-190}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq 4 \cdot 10^{+27}:\\ \;\;\;\;\frac{x}{1 + \frac{y}{\frac{t}{b}}}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Derivation
  1. Split input into 3 regimes
  2. if a < -2.75 or 4.0000000000000001e27 < a

    1. Initial program 64.8%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative64.8%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*67.6%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/69.9%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified69.9%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in b around 0 55.9%

      \[\leadsto \color{blue}{\frac{\frac{y \cdot z}{t} + x}{1 + a}} \]
    5. Taylor expanded in a around inf 55.0%

      \[\leadsto \color{blue}{\frac{\frac{y \cdot z}{t} + x}{a}} \]
    6. Step-by-step derivation
      1. associate-/l*60.5%

        \[\leadsto \frac{\color{blue}{\frac{y}{\frac{t}{z}}} + x}{a} \]
      2. +-commutative60.5%

        \[\leadsto \frac{\color{blue}{x + \frac{y}{\frac{t}{z}}}}{a} \]
      3. associate-/r/61.2%

        \[\leadsto \frac{x + \color{blue}{\frac{y}{t} \cdot z}}{a} \]
    7. Simplified61.2%

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

    if -2.75 < a < -2.0500000000000001e-190

    1. Initial program 75.4%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative75.4%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*73.0%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/77.6%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified77.6%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in t around 0 54.1%

      \[\leadsto \color{blue}{\frac{z}{b}} \]

    if -2.0500000000000001e-190 < a < 4.0000000000000001e27

    1. Initial program 71.6%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative71.6%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*73.4%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/80.4%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified80.4%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in x around inf 63.2%

      \[\leadsto \frac{\color{blue}{x}}{\left(a + 1\right) + \frac{y}{t} \cdot b} \]
    5. Step-by-step derivation
      1. div-inv63.1%

        \[\leadsto \color{blue}{x \cdot \frac{1}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
      2. associate-+l+63.1%

        \[\leadsto x \cdot \frac{1}{\color{blue}{a + \left(1 + \frac{y}{t} \cdot b\right)}} \]
      3. associate-*l/59.8%

        \[\leadsto x \cdot \frac{1}{a + \left(1 + \color{blue}{\frac{y \cdot b}{t}}\right)} \]
      4. +-commutative59.8%

        \[\leadsto x \cdot \frac{1}{a + \color{blue}{\left(\frac{y \cdot b}{t} + 1\right)}} \]
      5. associate-*l/63.1%

        \[\leadsto x \cdot \frac{1}{a + \left(\color{blue}{\frac{y}{t} \cdot b} + 1\right)} \]
      6. fma-def63.1%

        \[\leadsto x \cdot \frac{1}{a + \color{blue}{\mathsf{fma}\left(\frac{y}{t}, b, 1\right)}} \]
    6. Applied egg-rr63.1%

      \[\leadsto \color{blue}{x \cdot \frac{1}{a + \mathsf{fma}\left(\frac{y}{t}, b, 1\right)}} \]
    7. Taylor expanded in a around 0 59.4%

      \[\leadsto \color{blue}{\frac{x}{\frac{y \cdot b}{t} + 1}} \]
    8. Step-by-step derivation
      1. +-commutative59.4%

        \[\leadsto \frac{x}{\color{blue}{1 + \frac{y \cdot b}{t}}} \]
      2. associate-/l*59.7%

        \[\leadsto \frac{x}{1 + \color{blue}{\frac{y}{\frac{t}{b}}}} \]
    9. Simplified59.7%

      \[\leadsto \color{blue}{\frac{x}{1 + \frac{y}{\frac{t}{b}}}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification59.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.75:\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a}\\ \mathbf{elif}\;a \leq -2.05 \cdot 10^{-190}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq 4 \cdot 10^{+27}:\\ \;\;\;\;\frac{x}{1 + \frac{y}{\frac{t}{b}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a}\\ \end{array} \]

Alternative 10: 57.9% accurate, 1.1× speedup?

\[\begin{array}{l} \mathbf{if}\;t \leq -6.5 \cdot 10^{-19} \lor \neg \left(t \leq 8.6 \cdot 10^{+114}\right):\\ \;\;\;\;\frac{x}{a + 1}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b} + \frac{t}{y} \cdot \frac{x}{b}\\ \end{array} \]
Derivation
  1. Split input into 2 regimes
  2. if t < -6.5000000000000001e-19 or 8.6000000000000001e114 < t

    1. Initial program 77.3%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative77.3%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*83.7%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/95.0%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified95.0%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in t around inf 63.8%

      \[\leadsto \color{blue}{\frac{x}{1 + a}} \]

    if -6.5000000000000001e-19 < t < 8.6000000000000001e114

    1. Initial program 61.7%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative61.7%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*59.1%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/57.5%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified57.5%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in b around inf 37.5%

      \[\leadsto \color{blue}{\frac{t \cdot \left(\frac{y \cdot z}{t} + x\right)}{y \cdot b}} \]
    5. Taylor expanded in t around 0 62.7%

      \[\leadsto \color{blue}{\frac{t \cdot x}{y \cdot b} + \frac{z}{b}} \]
    6. Step-by-step derivation
      1. +-commutative62.7%

        \[\leadsto \color{blue}{\frac{z}{b} + \frac{t \cdot x}{y \cdot b}} \]
      2. times-frac58.9%

        \[\leadsto \frac{z}{b} + \color{blue}{\frac{t}{y} \cdot \frac{x}{b}} \]
    7. Simplified58.9%

      \[\leadsto \color{blue}{\frac{z}{b} + \frac{t}{y} \cdot \frac{x}{b}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification61.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -6.5 \cdot 10^{-19} \lor \neg \left(t \leq 8.6 \cdot 10^{+114}\right):\\ \;\;\;\;\frac{x}{a + 1}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b} + \frac{t}{y} \cdot \frac{x}{b}\\ \end{array} \]

Alternative 11: 65.2% accurate, 1.1× speedup?

\[\begin{array}{l} \mathbf{if}\;y \leq -8.4 \cdot 10^{+21} \lor \neg \left(y \leq 1.45 \cdot 10^{+93}\right):\\ \;\;\;\;\frac{z}{b} + \frac{t}{y} \cdot \frac{x}{b}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{1 + \left(a + \frac{y \cdot b}{t}\right)}\\ \end{array} \]
Derivation
  1. Split input into 2 regimes
  2. if y < -8.4e21 or 1.4499999999999999e93 < y

    1. Initial program 41.1%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative41.1%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*43.2%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/52.6%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified52.6%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in b around inf 28.5%

      \[\leadsto \color{blue}{\frac{t \cdot \left(\frac{y \cdot z}{t} + x\right)}{y \cdot b}} \]
    5. Taylor expanded in t around 0 61.3%

      \[\leadsto \color{blue}{\frac{t \cdot x}{y \cdot b} + \frac{z}{b}} \]
    6. Step-by-step derivation
      1. +-commutative61.3%

        \[\leadsto \color{blue}{\frac{z}{b} + \frac{t \cdot x}{y \cdot b}} \]
      2. times-frac65.5%

        \[\leadsto \frac{z}{b} + \color{blue}{\frac{t}{y} \cdot \frac{x}{b}} \]
    7. Simplified65.5%

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

    if -8.4e21 < y < 1.4499999999999999e93

    1. Initial program 90.7%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative90.7%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*91.9%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/92.6%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified92.6%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in x around inf 70.2%

      \[\leadsto \color{blue}{\frac{x}{1 + \left(\frac{y \cdot b}{t} + a\right)}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification68.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -8.4 \cdot 10^{+21} \lor \neg \left(y \leq 1.45 \cdot 10^{+93}\right):\\ \;\;\;\;\frac{z}{b} + \frac{t}{y} \cdot \frac{x}{b}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{1 + \left(a + \frac{y \cdot b}{t}\right)}\\ \end{array} \]

Alternative 12: 64.5% accurate, 1.1× speedup?

\[\begin{array}{l} \mathbf{if}\;t \leq -2.5 \cdot 10^{-20} \lor \neg \left(t \leq 1.8 \cdot 10^{-130}\right):\\ \;\;\;\;\frac{x}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b} + \frac{t}{y} \cdot \frac{x}{b}\\ \end{array} \]
Derivation
  1. Split input into 2 regimes
  2. if t < -2.4999999999999999e-20 or 1.8000000000000001e-130 < t

    1. Initial program 75.4%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative75.4%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*80.0%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/88.2%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified88.2%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in x around inf 69.0%

      \[\leadsto \frac{\color{blue}{x}}{\left(a + 1\right) + \frac{y}{t} \cdot b} \]

    if -2.4999999999999999e-20 < t < 1.8000000000000001e-130

    1. Initial program 57.3%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative57.3%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*53.6%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/51.2%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified51.2%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in b around inf 42.9%

      \[\leadsto \color{blue}{\frac{t \cdot \left(\frac{y \cdot z}{t} + x\right)}{y \cdot b}} \]
    5. Taylor expanded in t around 0 73.9%

      \[\leadsto \color{blue}{\frac{t \cdot x}{y \cdot b} + \frac{z}{b}} \]
    6. Step-by-step derivation
      1. +-commutative73.9%

        \[\leadsto \color{blue}{\frac{z}{b} + \frac{t \cdot x}{y \cdot b}} \]
      2. times-frac68.2%

        \[\leadsto \frac{z}{b} + \color{blue}{\frac{t}{y} \cdot \frac{x}{b}} \]
    7. Simplified68.2%

      \[\leadsto \color{blue}{\frac{z}{b} + \frac{t}{y} \cdot \frac{x}{b}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification68.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2.5 \cdot 10^{-20} \lor \neg \left(t \leq 1.8 \cdot 10^{-130}\right):\\ \;\;\;\;\frac{x}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b} + \frac{t}{y} \cdot \frac{x}{b}\\ \end{array} \]

Alternative 13: 40.8% accurate, 1.5× speedup?

\[\begin{array}{l} \mathbf{if}\;y \leq -6.4 \cdot 10^{-77}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;y \leq 7 \cdot 10^{-257}:\\ \;\;\;\;\frac{x}{a}\\ \mathbf{elif}\;y \leq 1.05 \cdot 10^{+45}:\\ \;\;\;\;x - x \cdot a\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \]
Derivation
  1. Split input into 3 regimes
  2. if y < -6.39999999999999999e-77 or 1.04999999999999997e45 < y

    1. Initial program 48.2%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative48.2%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*50.5%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/58.4%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified58.4%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in t around 0 50.5%

      \[\leadsto \color{blue}{\frac{z}{b}} \]

    if -6.39999999999999999e-77 < y < 7.00000000000000058e-257

    1. Initial program 96.9%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative96.9%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*98.2%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/98.2%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified98.2%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in x around inf 77.3%

      \[\leadsto \frac{\color{blue}{x}}{\left(a + 1\right) + \frac{y}{t} \cdot b} \]
    5. Taylor expanded in a around inf 44.0%

      \[\leadsto \color{blue}{\frac{x}{a}} \]

    if 7.00000000000000058e-257 < y < 1.04999999999999997e45

    1. Initial program 94.2%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative94.2%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*94.2%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/94.2%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified94.2%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Step-by-step derivation
      1. clear-num94.0%

        \[\leadsto \color{blue}{\frac{1}{\frac{\left(a + 1\right) + \frac{y}{t} \cdot b}{x + \frac{z}{\frac{t}{y}}}}} \]
      2. inv-pow94.0%

        \[\leadsto \color{blue}{{\left(\frac{\left(a + 1\right) + \frac{y}{t} \cdot b}{x + \frac{z}{\frac{t}{y}}}\right)}^{-1}} \]
      3. +-commutative94.0%

        \[\leadsto {\left(\frac{\color{blue}{\frac{y}{t} \cdot b + \left(a + 1\right)}}{x + \frac{z}{\frac{t}{y}}}\right)}^{-1} \]
      4. fma-def94.0%

        \[\leadsto {\left(\frac{\color{blue}{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}}{x + \frac{z}{\frac{t}{y}}}\right)}^{-1} \]
      5. +-commutative94.0%

        \[\leadsto {\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\color{blue}{\frac{z}{\frac{t}{y}} + x}}\right)}^{-1} \]
      6. div-inv94.0%

        \[\leadsto {\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\color{blue}{z \cdot \frac{1}{\frac{t}{y}}} + x}\right)}^{-1} \]
      7. clear-num94.0%

        \[\leadsto {\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{z \cdot \color{blue}{\frac{y}{t}} + x}\right)}^{-1} \]
      8. fma-udef94.0%

        \[\leadsto {\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\color{blue}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}}\right)}^{-1} \]
    5. Applied egg-rr94.0%

      \[\leadsto \color{blue}{{\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}\right)}^{-1}} \]
    6. Step-by-step derivation
      1. unpow-194.0%

        \[\leadsto \color{blue}{\frac{1}{\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}}} \]
      2. fma-udef94.0%

        \[\leadsto \frac{1}{\frac{\color{blue}{\frac{y}{t} \cdot b + \left(a + 1\right)}}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      3. associate-+r+94.0%

        \[\leadsto \frac{1}{\frac{\color{blue}{\left(\frac{y}{t} \cdot b + a\right) + 1}}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      4. associate-*l/94.0%

        \[\leadsto \frac{1}{\frac{\left(\color{blue}{\frac{y \cdot b}{t}} + a\right) + 1}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      5. +-commutative94.0%

        \[\leadsto \frac{1}{\frac{\color{blue}{1 + \left(\frac{y \cdot b}{t} + a\right)}}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      6. associate-*r/88.2%

        \[\leadsto \frac{1}{\frac{1 + \left(\color{blue}{y \cdot \frac{b}{t}} + a\right)}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      7. fma-def88.2%

        \[\leadsto \frac{1}{\frac{1 + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, a\right)}}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      8. fma-def88.2%

        \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{z \cdot \frac{y}{t} + x}}} \]
      9. associate-*r/88.2%

        \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{\frac{z \cdot y}{t}} + x}} \]
      10. associate-*l/84.2%

        \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{\frac{z}{t} \cdot y} + x}} \]
      11. *-commutative84.2%

        \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{y \cdot \frac{z}{t}} + x}} \]
      12. fma-def84.2%

        \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}} \]
    7. Simplified84.2%

      \[\leadsto \color{blue}{\frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}} \]
    8. Taylor expanded in y around 0 56.3%

      \[\leadsto \frac{1}{\color{blue}{\frac{1 + a}{x}}} \]
    9. Taylor expanded in a around 0 38.4%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot x\right) + x} \]
    10. Step-by-step derivation
      1. +-commutative38.4%

        \[\leadsto \color{blue}{x + -1 \cdot \left(a \cdot x\right)} \]
      2. mul-1-neg38.4%

        \[\leadsto x + \color{blue}{\left(-a \cdot x\right)} \]
      3. unsub-neg38.4%

        \[\leadsto \color{blue}{x - a \cdot x} \]
      4. *-commutative38.4%

        \[\leadsto x - \color{blue}{x \cdot a} \]
    11. Simplified38.4%

      \[\leadsto \color{blue}{x - x \cdot a} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification46.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -6.4 \cdot 10^{-77}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;y \leq 7 \cdot 10^{-257}:\\ \;\;\;\;\frac{x}{a}\\ \mathbf{elif}\;y \leq 1.05 \cdot 10^{+45}:\\ \;\;\;\;x - x \cdot a\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \]

Alternative 14: 41.0% accurate, 1.9× speedup?

\[\begin{array}{l} \mathbf{if}\;y \leq -8 \cdot 10^{-77}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;y \leq 4.5 \cdot 10^{-253}:\\ \;\;\;\;\frac{x}{a}\\ \mathbf{elif}\;y \leq 5.5 \cdot 10^{+43}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \]
Derivation
  1. Split input into 3 regimes
  2. if y < -7.9999999999999994e-77 or 5.49999999999999989e43 < y

    1. Initial program 48.2%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative48.2%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*50.5%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/58.4%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified58.4%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in t around 0 50.5%

      \[\leadsto \color{blue}{\frac{z}{b}} \]

    if -7.9999999999999994e-77 < y < 4.50000000000000029e-253

    1. Initial program 96.9%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative96.9%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*98.2%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/98.2%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified98.2%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in x around inf 77.3%

      \[\leadsto \frac{\color{blue}{x}}{\left(a + 1\right) + \frac{y}{t} \cdot b} \]
    5. Taylor expanded in a around inf 44.0%

      \[\leadsto \color{blue}{\frac{x}{a}} \]

    if 4.50000000000000029e-253 < y < 5.49999999999999989e43

    1. Initial program 94.2%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative94.2%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*94.2%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/94.2%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified94.2%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Step-by-step derivation
      1. clear-num94.0%

        \[\leadsto \color{blue}{\frac{1}{\frac{\left(a + 1\right) + \frac{y}{t} \cdot b}{x + \frac{z}{\frac{t}{y}}}}} \]
      2. inv-pow94.0%

        \[\leadsto \color{blue}{{\left(\frac{\left(a + 1\right) + \frac{y}{t} \cdot b}{x + \frac{z}{\frac{t}{y}}}\right)}^{-1}} \]
      3. +-commutative94.0%

        \[\leadsto {\left(\frac{\color{blue}{\frac{y}{t} \cdot b + \left(a + 1\right)}}{x + \frac{z}{\frac{t}{y}}}\right)}^{-1} \]
      4. fma-def94.0%

        \[\leadsto {\left(\frac{\color{blue}{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}}{x + \frac{z}{\frac{t}{y}}}\right)}^{-1} \]
      5. +-commutative94.0%

        \[\leadsto {\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\color{blue}{\frac{z}{\frac{t}{y}} + x}}\right)}^{-1} \]
      6. div-inv94.0%

        \[\leadsto {\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\color{blue}{z \cdot \frac{1}{\frac{t}{y}}} + x}\right)}^{-1} \]
      7. clear-num94.0%

        \[\leadsto {\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{z \cdot \color{blue}{\frac{y}{t}} + x}\right)}^{-1} \]
      8. fma-udef94.0%

        \[\leadsto {\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\color{blue}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}}\right)}^{-1} \]
    5. Applied egg-rr94.0%

      \[\leadsto \color{blue}{{\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}\right)}^{-1}} \]
    6. Step-by-step derivation
      1. unpow-194.0%

        \[\leadsto \color{blue}{\frac{1}{\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}}} \]
      2. fma-udef94.0%

        \[\leadsto \frac{1}{\frac{\color{blue}{\frac{y}{t} \cdot b + \left(a + 1\right)}}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      3. associate-+r+94.0%

        \[\leadsto \frac{1}{\frac{\color{blue}{\left(\frac{y}{t} \cdot b + a\right) + 1}}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      4. associate-*l/94.0%

        \[\leadsto \frac{1}{\frac{\left(\color{blue}{\frac{y \cdot b}{t}} + a\right) + 1}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      5. +-commutative94.0%

        \[\leadsto \frac{1}{\frac{\color{blue}{1 + \left(\frac{y \cdot b}{t} + a\right)}}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      6. associate-*r/88.2%

        \[\leadsto \frac{1}{\frac{1 + \left(\color{blue}{y \cdot \frac{b}{t}} + a\right)}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      7. fma-def88.2%

        \[\leadsto \frac{1}{\frac{1 + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, a\right)}}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      8. fma-def88.2%

        \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{z \cdot \frac{y}{t} + x}}} \]
      9. associate-*r/88.2%

        \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{\frac{z \cdot y}{t}} + x}} \]
      10. associate-*l/84.2%

        \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{\frac{z}{t} \cdot y} + x}} \]
      11. *-commutative84.2%

        \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{y \cdot \frac{z}{t}} + x}} \]
      12. fma-def84.2%

        \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}} \]
    7. Simplified84.2%

      \[\leadsto \color{blue}{\frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}} \]
    8. Taylor expanded in y around 0 56.3%

      \[\leadsto \frac{1}{\color{blue}{\frac{1 + a}{x}}} \]
    9. Taylor expanded in a around 0 38.3%

      \[\leadsto \color{blue}{x} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification46.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -8 \cdot 10^{-77}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;y \leq 4.5 \cdot 10^{-253}:\\ \;\;\;\;\frac{x}{a}\\ \mathbf{elif}\;y \leq 5.5 \cdot 10^{+43}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \]

Alternative 15: 56.0% accurate, 1.9× speedup?

\[\begin{array}{l} \mathbf{if}\;y \leq -1.15 \cdot 10^{+81}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;y \leq 3.2 \cdot 10^{+97}:\\ \;\;\;\;\frac{x}{a + 1}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \]
Derivation
  1. Split input into 2 regimes
  2. if y < -1.1499999999999999e81 or 3.20000000000000016e97 < y

    1. Initial program 38.4%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative38.4%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*39.8%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/49.4%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified49.4%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in t around 0 55.4%

      \[\leadsto \color{blue}{\frac{z}{b}} \]

    if -1.1499999999999999e81 < y < 3.20000000000000016e97

    1. Initial program 88.3%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative88.3%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*90.1%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/91.2%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified91.2%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in t around inf 56.3%

      \[\leadsto \color{blue}{\frac{x}{1 + a}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification56.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.15 \cdot 10^{+81}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;y \leq 3.2 \cdot 10^{+97}:\\ \;\;\;\;\frac{x}{a + 1}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \]

Alternative 16: 41.7% accurate, 2.4× speedup?

\[\begin{array}{l} \mathbf{if}\;a \leq -1:\\ \;\;\;\;\frac{x}{a}\\ \mathbf{elif}\;a \leq 1:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a}\\ \end{array} \]
Derivation
  1. Split input into 2 regimes
  2. if a < -1 or 1 < a

    1. Initial program 63.1%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative63.1%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*65.7%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/69.5%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified69.5%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Taylor expanded in x around inf 54.6%

      \[\leadsto \frac{\color{blue}{x}}{\left(a + 1\right) + \frac{y}{t} \cdot b} \]
    5. Taylor expanded in a around inf 44.6%

      \[\leadsto \color{blue}{\frac{x}{a}} \]

    if -1 < a < 1

    1. Initial program 74.6%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative74.6%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      2. associate-/l*75.3%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/80.4%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
    3. Simplified80.4%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
    4. Step-by-step derivation
      1. clear-num80.3%

        \[\leadsto \color{blue}{\frac{1}{\frac{\left(a + 1\right) + \frac{y}{t} \cdot b}{x + \frac{z}{\frac{t}{y}}}}} \]
      2. inv-pow80.3%

        \[\leadsto \color{blue}{{\left(\frac{\left(a + 1\right) + \frac{y}{t} \cdot b}{x + \frac{z}{\frac{t}{y}}}\right)}^{-1}} \]
      3. +-commutative80.3%

        \[\leadsto {\left(\frac{\color{blue}{\frac{y}{t} \cdot b + \left(a + 1\right)}}{x + \frac{z}{\frac{t}{y}}}\right)}^{-1} \]
      4. fma-def80.3%

        \[\leadsto {\left(\frac{\color{blue}{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}}{x + \frac{z}{\frac{t}{y}}}\right)}^{-1} \]
      5. +-commutative80.3%

        \[\leadsto {\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\color{blue}{\frac{z}{\frac{t}{y}} + x}}\right)}^{-1} \]
      6. div-inv80.3%

        \[\leadsto {\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\color{blue}{z \cdot \frac{1}{\frac{t}{y}}} + x}\right)}^{-1} \]
      7. clear-num80.3%

        \[\leadsto {\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{z \cdot \color{blue}{\frac{y}{t}} + x}\right)}^{-1} \]
      8. fma-udef80.3%

        \[\leadsto {\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\color{blue}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}}\right)}^{-1} \]
    5. Applied egg-rr80.3%

      \[\leadsto \color{blue}{{\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}\right)}^{-1}} \]
    6. Step-by-step derivation
      1. unpow-180.3%

        \[\leadsto \color{blue}{\frac{1}{\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}}} \]
      2. fma-udef80.3%

        \[\leadsto \frac{1}{\frac{\color{blue}{\frac{y}{t} \cdot b + \left(a + 1\right)}}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      3. associate-+r+80.3%

        \[\leadsto \frac{1}{\frac{\color{blue}{\left(\frac{y}{t} \cdot b + a\right) + 1}}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      4. associate-*l/75.2%

        \[\leadsto \frac{1}{\frac{\left(\color{blue}{\frac{y \cdot b}{t}} + a\right) + 1}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      5. +-commutative75.2%

        \[\leadsto \frac{1}{\frac{\color{blue}{1 + \left(\frac{y \cdot b}{t} + a\right)}}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      6. associate-*r/76.7%

        \[\leadsto \frac{1}{\frac{1 + \left(\color{blue}{y \cdot \frac{b}{t}} + a\right)}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      7. fma-def76.7%

        \[\leadsto \frac{1}{\frac{1 + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, a\right)}}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
      8. fma-def76.7%

        \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{z \cdot \frac{y}{t} + x}}} \]
      9. associate-*r/73.1%

        \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{\frac{z \cdot y}{t}} + x}} \]
      10. associate-*l/74.5%

        \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{\frac{z}{t} \cdot y} + x}} \]
      11. *-commutative74.5%

        \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{y \cdot \frac{z}{t}} + x}} \]
      12. fma-def74.5%

        \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}} \]
    7. Simplified74.5%

      \[\leadsto \color{blue}{\frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}} \]
    8. Taylor expanded in y around 0 35.1%

      \[\leadsto \frac{1}{\color{blue}{\frac{1 + a}{x}}} \]
    9. Taylor expanded in a around 0 34.7%

      \[\leadsto \color{blue}{x} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification39.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1:\\ \;\;\;\;\frac{x}{a}\\ \mathbf{elif}\;a \leq 1:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a}\\ \end{array} \]

Alternative 17: 20.2% accurate, 17.0× speedup?

\[x \]
Derivation
  1. Initial program 69.0%

    \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
  2. Step-by-step derivation
    1. *-commutative69.0%

      \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. associate-/l*70.6%

      \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    3. associate-*l/75.1%

      \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
  3. Simplified75.1%

    \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \frac{y}{t} \cdot b}} \]
  4. Step-by-step derivation
    1. clear-num74.9%

      \[\leadsto \color{blue}{\frac{1}{\frac{\left(a + 1\right) + \frac{y}{t} \cdot b}{x + \frac{z}{\frac{t}{y}}}}} \]
    2. inv-pow74.9%

      \[\leadsto \color{blue}{{\left(\frac{\left(a + 1\right) + \frac{y}{t} \cdot b}{x + \frac{z}{\frac{t}{y}}}\right)}^{-1}} \]
    3. +-commutative74.9%

      \[\leadsto {\left(\frac{\color{blue}{\frac{y}{t} \cdot b + \left(a + 1\right)}}{x + \frac{z}{\frac{t}{y}}}\right)}^{-1} \]
    4. fma-def74.9%

      \[\leadsto {\left(\frac{\color{blue}{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}}{x + \frac{z}{\frac{t}{y}}}\right)}^{-1} \]
    5. +-commutative74.9%

      \[\leadsto {\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\color{blue}{\frac{z}{\frac{t}{y}} + x}}\right)}^{-1} \]
    6. div-inv74.9%

      \[\leadsto {\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\color{blue}{z \cdot \frac{1}{\frac{t}{y}}} + x}\right)}^{-1} \]
    7. clear-num74.9%

      \[\leadsto {\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{z \cdot \color{blue}{\frac{y}{t}} + x}\right)}^{-1} \]
    8. fma-udef74.9%

      \[\leadsto {\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\color{blue}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}}\right)}^{-1} \]
  5. Applied egg-rr74.9%

    \[\leadsto \color{blue}{{\left(\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}\right)}^{-1}} \]
  6. Step-by-step derivation
    1. unpow-174.9%

      \[\leadsto \color{blue}{\frac{1}{\frac{\mathsf{fma}\left(\frac{y}{t}, b, a + 1\right)}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}}} \]
    2. fma-udef74.9%

      \[\leadsto \frac{1}{\frac{\color{blue}{\frac{y}{t} \cdot b + \left(a + 1\right)}}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
    3. associate-+r+74.9%

      \[\leadsto \frac{1}{\frac{\color{blue}{\left(\frac{y}{t} \cdot b + a\right) + 1}}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
    4. associate-*l/70.5%

      \[\leadsto \frac{1}{\frac{\left(\color{blue}{\frac{y \cdot b}{t}} + a\right) + 1}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
    5. +-commutative70.5%

      \[\leadsto \frac{1}{\frac{\color{blue}{1 + \left(\frac{y \cdot b}{t} + a\right)}}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
    6. associate-*r/72.4%

      \[\leadsto \frac{1}{\frac{1 + \left(\color{blue}{y \cdot \frac{b}{t}} + a\right)}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
    7. fma-def72.4%

      \[\leadsto \frac{1}{\frac{1 + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, a\right)}}{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}} \]
    8. fma-def72.4%

      \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{z \cdot \frac{y}{t} + x}}} \]
    9. associate-*r/68.9%

      \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{\frac{z \cdot y}{t}} + x}} \]
    10. associate-*l/72.9%

      \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{\frac{z}{t} \cdot y} + x}} \]
    11. *-commutative72.9%

      \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{y \cdot \frac{z}{t}} + x}} \]
    12. fma-def72.9%

      \[\leadsto \frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}} \]
  7. Simplified72.9%

    \[\leadsto \color{blue}{\frac{1}{\frac{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}} \]
  8. Taylor expanded in y around 0 40.1%

    \[\leadsto \frac{1}{\color{blue}{\frac{1 + a}{x}}} \]
  9. Taylor expanded in a around 0 19.5%

    \[\leadsto \color{blue}{x} \]
  10. Final simplification19.5%

    \[\leadsto x \]

Developer target: 78.8% accurate, 0.7× speedup?

\[\begin{array}{l} \mathbf{if}\;t < -1.3659085366310088 \cdot 10^{-271}:\\ \;\;\;\;1 \cdot \left(\left(x + \frac{y}{t} \cdot z\right) \cdot \frac{1}{\left(a + 1\right) + \frac{y}{t} \cdot b}\right)\\ \mathbf{elif}\;t < 3.036967103737246 \cdot 10^{-130}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{else}:\\ \;\;\;\;1 \cdot \left(\left(x + \frac{y}{t} \cdot z\right) \cdot \frac{1}{\left(a + 1\right) + \frac{y}{t} \cdot b}\right)\\ \end{array} \]

Reproduce

?
herbie shell --seed 2023167 
(FPCore (x y z t a b)
  :name "Diagrams.Solve.Tridiagonal:solveCyclicTriDiagonal from diagrams-solve-0.1, B"
  :precision binary64

  :herbie-target
  (if (< t -1.3659085366310088e-271) (* 1.0 (* (+ x (* (/ y t) z)) (/ 1.0 (+ (+ a 1.0) (* (/ y t) b))))) (if (< t 3.036967103737246e-130) (/ z b) (* 1.0 (* (+ x (* (/ y t) z)) (/ 1.0 (+ (+ a 1.0) (* (/ y t) b)))))))

  (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))