Initial program 99.4%
\[\cos^{-1} \left(\frac{1 - 5 \cdot \left(v \cdot v\right)}{v \cdot v - 1}\right)
\]
Taylor expanded in v around 0 99.5%
\[\leadsto \cos^{-1} \color{blue}{\left(\left(4 \cdot {v}^{2} + 4 \cdot {v}^{4}\right) - 1\right)}
\]
Step-by-step derivation
sub-neg99.5%
\[\leadsto \cos^{-1} \color{blue}{\left(\left(4 \cdot {v}^{2} + 4 \cdot {v}^{4}\right) + \left(-1\right)\right)}
\]
unpow299.5%
\[\leadsto \cos^{-1} \left(\left(4 \cdot \color{blue}{\left(v \cdot v\right)} + 4 \cdot {v}^{4}\right) + \left(-1\right)\right)
\]
distribute-lft-out99.5%
\[\leadsto \cos^{-1} \left(\color{blue}{4 \cdot \left(v \cdot v + {v}^{4}\right)} + \left(-1\right)\right)
\]
metadata-eval99.5%
\[\leadsto \cos^{-1} \left(4 \cdot \left(v \cdot v + {v}^{4}\right) + \color{blue}{-1}\right)
\]
Simplified99.5%
\[\leadsto \cos^{-1} \color{blue}{\left(4 \cdot \left(v \cdot v + {v}^{4}\right) + -1\right)}
\]
Step-by-step derivation
sqr-pow99.5%
\[\leadsto \cos^{-1} \left(4 \cdot \left(v \cdot v + \color{blue}{{v}^{\left(\frac{4}{2}\right)} \cdot {v}^{\left(\frac{4}{2}\right)}}\right) + -1\right)
\]
metadata-eval99.5%
\[\leadsto \cos^{-1} \left(4 \cdot \left(v \cdot v + {v}^{\color{blue}{2}} \cdot {v}^{\left(\frac{4}{2}\right)}\right) + -1\right)
\]
pow299.5%
\[\leadsto \cos^{-1} \left(4 \cdot \left(v \cdot v + \color{blue}{\left(v \cdot v\right)} \cdot {v}^{\left(\frac{4}{2}\right)}\right) + -1\right)
\]
metadata-eval99.5%
\[\leadsto \cos^{-1} \left(4 \cdot \left(v \cdot v + \left(v \cdot v\right) \cdot {v}^{\color{blue}{2}}\right) + -1\right)
\]
pow299.5%
\[\leadsto \cos^{-1} \left(4 \cdot \left(v \cdot v + \left(v \cdot v\right) \cdot \color{blue}{\left(v \cdot v\right)}\right) + -1\right)
\]
distribute-rgt1-in99.5%
\[\leadsto \cos^{-1} \left(4 \cdot \color{blue}{\left(\left(v \cdot v + 1\right) \cdot \left(v \cdot v\right)\right)} + -1\right)
\]
Applied egg-rr99.5%
\[\leadsto \cos^{-1} \left(4 \cdot \color{blue}{\left(\left(v \cdot v + 1\right) \cdot \left(v \cdot v\right)\right)} + -1\right)
\]
Step-by-step derivation
expm1-log1p-u99.5%
\[\leadsto \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\cos^{-1} \left(4 \cdot \left(\left(v \cdot v + 1\right) \cdot \left(v \cdot v\right)\right) + -1\right)\right)\right)}
\]
fma-def99.5%
\[\leadsto \mathsf{expm1}\left(\mathsf{log1p}\left(\cos^{-1} \color{blue}{\left(\mathsf{fma}\left(4, \left(v \cdot v + 1\right) \cdot \left(v \cdot v\right), -1\right)\right)}\right)\right)
\]
*-commutative99.5%
\[\leadsto \mathsf{expm1}\left(\mathsf{log1p}\left(\cos^{-1} \left(\mathsf{fma}\left(4, \color{blue}{\left(v \cdot v\right) \cdot \left(v \cdot v + 1\right)}, -1\right)\right)\right)\right)
\]
fma-def99.5%
\[\leadsto \mathsf{expm1}\left(\mathsf{log1p}\left(\cos^{-1} \left(\mathsf{fma}\left(4, \left(v \cdot v\right) \cdot \color{blue}{\mathsf{fma}\left(v, v, 1\right)}, -1\right)\right)\right)\right)
\]
Applied egg-rr99.5%
\[\leadsto \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\cos^{-1} \left(\mathsf{fma}\left(4, \left(v \cdot v\right) \cdot \mathsf{fma}\left(v, v, 1\right), -1\right)\right)\right)\right)}
\]
Step-by-step derivation
expm1-log1p-u99.5%
\[\leadsto \mathsf{expm1}\left(\mathsf{log1p}\left(\color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\cos^{-1} \left(\mathsf{fma}\left(4, \left(v \cdot v\right) \cdot \mathsf{fma}\left(v, v, 1\right), -1\right)\right)\right)\right)}\right)\right)
\]
expm1-udef99.5%
\[\leadsto \mathsf{expm1}\left(\mathsf{log1p}\left(\color{blue}{e^{\mathsf{log1p}\left(\cos^{-1} \left(\mathsf{fma}\left(4, \left(v \cdot v\right) \cdot \mathsf{fma}\left(v, v, 1\right), -1\right)\right)\right)} - 1}\right)\right)
\]
log1p-udef99.5%
\[\leadsto \mathsf{expm1}\left(\mathsf{log1p}\left(e^{\color{blue}{\log \left(1 + \cos^{-1} \left(\mathsf{fma}\left(4, \left(v \cdot v\right) \cdot \mathsf{fma}\left(v, v, 1\right), -1\right)\right)\right)}} - 1\right)\right)
\]
add-exp-log99.5%
\[\leadsto \mathsf{expm1}\left(\mathsf{log1p}\left(\color{blue}{\left(1 + \cos^{-1} \left(\mathsf{fma}\left(4, \left(v \cdot v\right) \cdot \mathsf{fma}\left(v, v, 1\right), -1\right)\right)\right)} - 1\right)\right)
\]
Applied egg-rr99.5%
\[\leadsto \mathsf{expm1}\left(\mathsf{log1p}\left(\color{blue}{\left(1 + \cos^{-1} \left(\mathsf{fma}\left(4, \left(v \cdot v\right) \cdot \mathsf{fma}\left(v, v, 1\right), -1\right)\right)\right) - 1}\right)\right)
\]
Final simplification99.5%
\[\leadsto \mathsf{expm1}\left(\mathsf{log1p}\left(-1 + \left(1 + \cos^{-1} \left(\mathsf{fma}\left(4, \left(v \cdot v\right) \cdot \mathsf{fma}\left(v, v, 1\right), -1\right)\right)\right)\right)\right)
\]