\[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
Test:
Graphics.Rendering.Chart.Backend.Diagrams:calcFontMetrics from Chart-diagrams-1.5.1
Bits:
128 bits
Bits error versus x
Bits error versus y
Bits error versus z
Bits error versus t
Time: 5.7 s
Input Error: 6.3
Output Error: 2.0
Log:
Profile: 🕒
\(\begin{cases} x \cdot \frac{y}{z} & \text{when } \frac{\frac{y}{z} \cdot t}{t} \le 1.2040923f+24 \\ \frac{1}{\frac{z}{y \cdot x}} & \text{otherwise} \end{cases}\)

    if (/ (* (/ y z) t) t) < 1.2040923f+24

    1. Started with
      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
      5.1
    2. Applied simplify to get
      \[\color{red}{x \cdot \frac{\frac{y}{z} \cdot t}{t}} \leadsto \color{blue}{x \cdot \frac{y}{z}}\]
      2.1

    if 1.2040923f+24 < (/ (* (/ y z) t) t)

    1. Started with
      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
      19.6
    2. Applied simplify to get
      \[\color{red}{x \cdot \frac{\frac{y}{z} \cdot t}{t}} \leadsto \color{blue}{x \cdot \frac{y}{z}}\]
      7.9
    3. Applied taylor to get
      \[x \cdot \frac{y}{z} \leadsto \frac{y \cdot x}{z}\]
      0.9
    4. Taylor expanded around 0 to get
      \[\color{red}{\frac{y \cdot x}{z}} \leadsto \color{blue}{\frac{y \cdot x}{z}}\]
      0.9
    5. Using strategy rm
      0.9
    6. Applied clear-num to get
      \[\color{red}{\frac{y \cdot x}{z}} \leadsto \color{blue}{\frac{1}{\frac{z}{y \cdot x}}}\]
      1.1

  1. Removed slow pow expressions

Original test:


(lambda ((x default) (y default) (z default) (t default))
  #:name "Graphics.Rendering.Chart.Backend.Diagrams:calcFontMetrics from Chart-diagrams-1.5.1"
  (* x (/ (* (/ y z) t) t)))