\[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: 18.7 s
Input Error: 3.6
Output Error: 2.1
Log:
Profile: 🕒
\(\begin{cases} x + \frac{y - z}{{\left(\left(t + 1.0\right) - z\right)}^{1}} \cdot \left(a - x\right) & \text{when } x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right) \le -9.8015595f-37 \\ a + \frac{y}{z} \cdot \left(x - a\right) & \text{when } x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right) \le 2.1036342f-38 \\ x + \frac{y - z}{{\left(\left(t + 1.0\right) - z\right)}^{1}} \cdot \left(a - x\right) & \text{otherwise} \end{cases}\)

    if (+ x (* (/ (- y z) (- (+ t 1.0) z)) (- a x))) < -9.8015595f-37 or 2.1036342f-38 < (+ x (* (/ (- y z) (- (+ t 1.0) z)) (- a x)))

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

    if -9.8015595f-37 < (+ x (* (/ (- y z) (- (+ t 1.0) z)) (- a x))) < 2.1036342f-38

    1. Started with
      \[x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right)\]
      29.5
    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}\]
      18.2
    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}}\]
      18.2
    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)}\]
      16.0

  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))))