Initial program 60.7%
\[s \cdot \log \left(\frac{1}{1 - 4 \cdot u}\right)
\]
- Add Preprocessing
Taylor expanded in u around 0
\[\leadsto s \cdot \color{blue}{\left(u \cdot \left(4 + u \cdot \left(8 + u \cdot \left(\frac{64}{3} + 64 \cdot u\right)\right)\right)\right)}
\]
Step-by-step derivation
lower-*.f32N/A
\[\leadsto s \cdot \color{blue}{\left(u \cdot \left(4 + u \cdot \left(8 + u \cdot \left(\frac{64}{3} + 64 \cdot u\right)\right)\right)\right)}
\]
+-commutativeN/A
\[\leadsto s \cdot \left(u \cdot \color{blue}{\left(u \cdot \left(8 + u \cdot \left(\frac{64}{3} + 64 \cdot u\right)\right) + 4\right)}\right)
\]
lower-fma.f32N/A
\[\leadsto s \cdot \left(u \cdot \color{blue}{\mathsf{fma}\left(u, 8 + u \cdot \left(\frac{64}{3} + 64 \cdot u\right), 4\right)}\right)
\]
+-commutativeN/A
\[\leadsto s \cdot \left(u \cdot \mathsf{fma}\left(u, \color{blue}{u \cdot \left(\frac{64}{3} + 64 \cdot u\right) + 8}, 4\right)\right)
\]
lower-fma.f32N/A
\[\leadsto s \cdot \left(u \cdot \mathsf{fma}\left(u, \color{blue}{\mathsf{fma}\left(u, \frac{64}{3} + 64 \cdot u, 8\right)}, 4\right)\right)
\]
+-commutativeN/A
\[\leadsto s \cdot \left(u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, \color{blue}{64 \cdot u + \frac{64}{3}}, 8\right), 4\right)\right)
\]
*-commutativeN/A
\[\leadsto s \cdot \left(u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, \color{blue}{u \cdot 64} + \frac{64}{3}, 8\right), 4\right)\right)
\]
lower-fma.f3293.3
\[\leadsto s \cdot \left(u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, \color{blue}{\mathsf{fma}\left(u, 64, 21.333333333333332\right)}, 8\right), 4\right)\right)
\]
Simplified93.3%
\[\leadsto s \cdot \color{blue}{\left(u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, 21.333333333333332\right), 8\right), 4\right)\right)}
\]
Step-by-step derivation
lift-fma.f32N/A
\[\leadsto s \cdot \left(u \cdot \left(u \cdot \left(u \cdot \color{blue}{\mathsf{fma}\left(u, 64, \frac{64}{3}\right)} + 8\right) + 4\right)\right)
\]
lift-fma.f32N/A
\[\leadsto s \cdot \left(u \cdot \left(u \cdot \color{blue}{\mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right)} + 4\right)\right)
\]
lift-fma.f32N/A
\[\leadsto s \cdot \left(u \cdot \color{blue}{\mathsf{fma}\left(u, \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right), 4\right)}\right)
\]
associate-*r*N/A
\[\leadsto \color{blue}{\left(s \cdot u\right) \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right), 4\right)}
\]
lift-fma.f32N/A
\[\leadsto \left(s \cdot u\right) \cdot \color{blue}{\left(u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right) + 4\right)}
\]
flip-+N/A
\[\leadsto \left(s \cdot u\right) \cdot \color{blue}{\frac{\left(u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right)\right) \cdot \left(u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right)\right) - 4 \cdot 4}{u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right) - 4}}
\]
associate-*r/N/A
\[\leadsto \color{blue}{\frac{\left(s \cdot u\right) \cdot \left(\left(u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right)\right) \cdot \left(u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right)\right) - 4 \cdot 4\right)}{u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right) - 4}}
\]
div-invN/A
\[\leadsto \color{blue}{\left(\left(s \cdot u\right) \cdot \left(\left(u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right)\right) \cdot \left(u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right)\right) - 4 \cdot 4\right)\right) \cdot \frac{1}{u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right) - 4}}
\]
lower-*.f32N/A
\[\leadsto \color{blue}{\left(\left(s \cdot u\right) \cdot \left(\left(u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right)\right) \cdot \left(u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right)\right) - 4 \cdot 4\right)\right) \cdot \frac{1}{u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right) - 4}}
\]
Applied egg-rr92.9%
\[\leadsto \color{blue}{\left(\left(u \cdot s\right) \cdot \mathsf{fma}\left(u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, 21.333333333333332\right), 8\right), u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, 21.333333333333332\right), 8\right), -16\right)\right) \cdot \frac{1}{\mathsf{fma}\left(u, \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, 21.333333333333332\right), 8\right), -4\right)}}
\]
Taylor expanded in u around 0
\[\leadsto \left(\left(u \cdot s\right) \cdot \mathsf{fma}\left(u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right), u \cdot \mathsf{fma}\left(u, \color{blue}{\frac{64}{3}}, 8\right), -16\right)\right) \cdot \frac{1}{\mathsf{fma}\left(u, \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right), -4\right)}
\]
Simplified93.7%
\[\leadsto \left(\left(u \cdot s\right) \cdot \mathsf{fma}\left(u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, 21.333333333333332\right), 8\right), u \cdot \mathsf{fma}\left(u, \color{blue}{21.333333333333332}, 8\right), -16\right)\right) \cdot \frac{1}{\mathsf{fma}\left(u, \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, 21.333333333333332\right), 8\right), -4\right)}
\]
Taylor expanded in u around 0
\[\leadsto \color{blue}{\left(u \cdot \left(-16 \cdot s + {u}^{2} \cdot \left(64 \cdot s + u \cdot \left(\frac{1024}{3} \cdot s + \frac{8704}{9} \cdot \left(s \cdot u\right)\right)\right)\right)\right)} \cdot \frac{1}{\mathsf{fma}\left(u, \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right), -4\right)}
\]
Step-by-step derivation
lower-*.f32N/A
\[\leadsto \color{blue}{\left(u \cdot \left(-16 \cdot s + {u}^{2} \cdot \left(64 \cdot s + u \cdot \left(\frac{1024}{3} \cdot s + \frac{8704}{9} \cdot \left(s \cdot u\right)\right)\right)\right)\right)} \cdot \frac{1}{\mathsf{fma}\left(u, \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right), -4\right)}
\]
+-commutativeN/A
\[\leadsto \left(u \cdot \color{blue}{\left({u}^{2} \cdot \left(64 \cdot s + u \cdot \left(\frac{1024}{3} \cdot s + \frac{8704}{9} \cdot \left(s \cdot u\right)\right)\right) + -16 \cdot s\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(u, \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right), -4\right)}
\]
unpow2N/A
\[\leadsto \left(u \cdot \left(\color{blue}{\left(u \cdot u\right)} \cdot \left(64 \cdot s + u \cdot \left(\frac{1024}{3} \cdot s + \frac{8704}{9} \cdot \left(s \cdot u\right)\right)\right) + -16 \cdot s\right)\right) \cdot \frac{1}{\mathsf{fma}\left(u, \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right), -4\right)}
\]
associate-*l*N/A
\[\leadsto \left(u \cdot \left(\color{blue}{u \cdot \left(u \cdot \left(64 \cdot s + u \cdot \left(\frac{1024}{3} \cdot s + \frac{8704}{9} \cdot \left(s \cdot u\right)\right)\right)\right)} + -16 \cdot s\right)\right) \cdot \frac{1}{\mathsf{fma}\left(u, \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right), -4\right)}
\]
lower-fma.f32N/A
\[\leadsto \left(u \cdot \color{blue}{\mathsf{fma}\left(u, u \cdot \left(64 \cdot s + u \cdot \left(\frac{1024}{3} \cdot s + \frac{8704}{9} \cdot \left(s \cdot u\right)\right)\right), -16 \cdot s\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(u, \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, \frac{64}{3}\right), 8\right), -4\right)}
\]
Simplified94.2%
\[\leadsto \color{blue}{\left(u \cdot \mathsf{fma}\left(u, u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(s \cdot u, 967.1111111111111, s \cdot 341.3333333333333\right), s \cdot 64\right), s \cdot -16\right)\right)} \cdot \frac{1}{\mathsf{fma}\left(u, \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, 21.333333333333332\right), 8\right), -4\right)}
\]
Final simplification94.2%
\[\leadsto \left(u \cdot \mathsf{fma}\left(u, u \cdot \mathsf{fma}\left(u, \mathsf{fma}\left(u \cdot s, 967.1111111111111, s \cdot 341.3333333333333\right), s \cdot 64\right), s \cdot -16\right)\right) \cdot \frac{1}{\mathsf{fma}\left(u, \mathsf{fma}\left(u, \mathsf{fma}\left(u, 64, 21.333333333333332\right), 8\right), -4\right)}
\]
- Add Preprocessing