\[x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right)\]
Test:
Hakyll.Web.Tags:renderTagCloud from hakyll-4.7.2.3
Bits:
128 bits
Bits error versus x
Bits error versus y
Bits error versus z
Bits error versus t
Bits error versus a
Time: 1.2 m
Input Error: 10.7
Output Error: 5.7
Log:
Profile: 🕒
\(\begin{cases} a + \frac{y}{z} \cdot \left(x - a\right) & \text{when } z \le -2.4724579276140303 \cdot 10^{+244} \\ x + \frac{1}{\frac{\left(t + 1.0\right) - z}{y - z}} \cdot \left(a - x\right) & \text{when } z \le 1.7059758340520525 \cdot 10^{+174} \\ a + \frac{y}{z} \cdot \left(x - a\right) & \text{otherwise} \end{cases}\)

    if z < -2.4724579276140303e+244 or 1.7059758340520525e+174 < z

    1. Started with
      \[x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right)\]
      31.0
    2. Applied taylor to get
      \[x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right) \leadsto \left(\frac{y \cdot x}{z} + a\right) - \frac{y \cdot a}{z}\]
      11.9
    3. Taylor expanded around inf to get
      \[\color{red}{\left(\frac{y \cdot x}{z} + a\right) - \frac{y \cdot a}{z}} \leadsto \color{blue}{\left(\frac{y \cdot x}{z} + a\right) - \frac{y \cdot a}{z}}\]
      11.9
    4. Applied simplify to get
      \[\color{red}{\left(\frac{y \cdot x}{z} + a\right) - \frac{y \cdot a}{z}} \leadsto \color{blue}{a + \frac{y}{z} \cdot \left(x - a\right)}\]
      1.2

    if -2.4724579276140303e+244 < z < 1.7059758340520525e+174

    1. Started with
      \[x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right)\]
      6.5
    2. Using strategy rm
      6.5
    3. Applied clear-num to get
      \[x + \color{red}{\frac{y - z}{\left(t + 1.0\right) - z}} \cdot \left(a - x\right) \leadsto x + \color{blue}{\frac{1}{\frac{\left(t + 1.0\right) - z}{y - z}}} \cdot \left(a - x\right)\]
      6.6

  1. Removed slow pow expressions

Original test:


(lambda ((x default) (y default) (z default) (t default) (a default))
  #:name "Hakyll.Web.Tags:renderTagCloud from hakyll-4.7.2.3"
  (+ x (* (/ (- y z) (- (+ t 1.0) z)) (- a x))))