Initial program 98.4%
\[2 \cdot \cos \left(\frac{2 \cdot \mathsf{PI}\left(\right)}{3} + \frac{\cos^{-1} \left(\frac{-g}{h}\right)}{3}\right)
\]
- Add Preprocessing
Step-by-step derivation
lift-+.f64N/A
\[\leadsto 2 \cdot \cos \color{blue}{\left(\frac{2 \cdot \mathsf{PI}\left(\right)}{3} + \frac{\cos^{-1} \left(\frac{-g}{h}\right)}{3}\right)}
\]
lift-/.f64N/A
\[\leadsto 2 \cdot \cos \left(\frac{2 \cdot \mathsf{PI}\left(\right)}{3} + \color{blue}{\frac{\cos^{-1} \left(\frac{-g}{h}\right)}{3}}\right)
\]
lift-acos.f64N/A
\[\leadsto 2 \cdot \cos \left(\frac{2 \cdot \mathsf{PI}\left(\right)}{3} + \frac{\color{blue}{\cos^{-1} \left(\frac{-g}{h}\right)}}{3}\right)
\]
lift-neg.f64N/A
\[\leadsto 2 \cdot \cos \left(\frac{2 \cdot \mathsf{PI}\left(\right)}{3} + \frac{\cos^{-1} \left(\frac{\color{blue}{\mathsf{neg}\left(g\right)}}{h}\right)}{3}\right)
\]
lift-/.f64N/A
\[\leadsto 2 \cdot \cos \left(\frac{2 \cdot \mathsf{PI}\left(\right)}{3} + \frac{\cos^{-1} \color{blue}{\left(\frac{\mathsf{neg}\left(g\right)}{h}\right)}}{3}\right)
\]
lift-/.f64N/A
\[\leadsto 2 \cdot \cos \left(\color{blue}{\frac{2 \cdot \mathsf{PI}\left(\right)}{3}} + \frac{\cos^{-1} \left(\frac{\mathsf{neg}\left(g\right)}{h}\right)}{3}\right)
\]
frac-2negN/A
\[\leadsto 2 \cdot \cos \left(\color{blue}{\frac{\mathsf{neg}\left(2 \cdot \mathsf{PI}\left(\right)\right)}{\mathsf{neg}\left(3\right)}} + \frac{\cos^{-1} \left(\frac{\mathsf{neg}\left(g\right)}{h}\right)}{3}\right)
\]
frac-addN/A
\[\leadsto 2 \cdot \cos \color{blue}{\left(\frac{\left(\mathsf{neg}\left(2 \cdot \mathsf{PI}\left(\right)\right)\right) \cdot 3 + \left(\mathsf{neg}\left(3\right)\right) \cdot \cos^{-1} \left(\frac{\mathsf{neg}\left(g\right)}{h}\right)}{\left(\mathsf{neg}\left(3\right)\right) \cdot 3}\right)}
\]
metadata-evalN/A
\[\leadsto 2 \cdot \cos \left(\frac{\left(\mathsf{neg}\left(2 \cdot \mathsf{PI}\left(\right)\right)\right) \cdot 3 + \left(\mathsf{neg}\left(3\right)\right) \cdot \cos^{-1} \left(\frac{\mathsf{neg}\left(g\right)}{h}\right)}{\color{blue}{-3} \cdot 3}\right)
\]
metadata-evalN/A
\[\leadsto 2 \cdot \cos \left(\frac{\left(\mathsf{neg}\left(2 \cdot \mathsf{PI}\left(\right)\right)\right) \cdot 3 + \left(\mathsf{neg}\left(3\right)\right) \cdot \cos^{-1} \left(\frac{\mathsf{neg}\left(g\right)}{h}\right)}{\color{blue}{-9}}\right)
\]
metadata-evalN/A
\[\leadsto 2 \cdot \cos \left(\frac{\left(\mathsf{neg}\left(2 \cdot \mathsf{PI}\left(\right)\right)\right) \cdot 3 + \left(\mathsf{neg}\left(3\right)\right) \cdot \cos^{-1} \left(\frac{\mathsf{neg}\left(g\right)}{h}\right)}{\color{blue}{3 \cdot -3}}\right)
\]
metadata-evalN/A
\[\leadsto 2 \cdot \cos \left(\frac{\left(\mathsf{neg}\left(2 \cdot \mathsf{PI}\left(\right)\right)\right) \cdot 3 + \left(\mathsf{neg}\left(3\right)\right) \cdot \cos^{-1} \left(\frac{\mathsf{neg}\left(g\right)}{h}\right)}{3 \cdot \color{blue}{\left(\mathsf{neg}\left(3\right)\right)}}\right)
\]
lower-/.f64N/A
\[\leadsto 2 \cdot \cos \color{blue}{\left(\frac{\left(\mathsf{neg}\left(2 \cdot \mathsf{PI}\left(\right)\right)\right) \cdot 3 + \left(\mathsf{neg}\left(3\right)\right) \cdot \cos^{-1} \left(\frac{\mathsf{neg}\left(g\right)}{h}\right)}{3 \cdot \left(\mathsf{neg}\left(3\right)\right)}\right)}
\]
Applied rewrites98.5%
\[\leadsto 2 \cdot \cos \color{blue}{\left(\frac{\mathsf{fma}\left(-2 \cdot \mathsf{PI}\left(\right), 3, -3 \cdot \cos^{-1} \left(\frac{-g}{h}\right)\right)}{-9}\right)}
\]
Step-by-step derivation
lift-PI.f64N/A
\[\leadsto 2 \cdot \cos \left(\frac{\mathsf{fma}\left(-2 \cdot \color{blue}{\mathsf{PI}\left(\right)}, 3, -3 \cdot \cos^{-1} \left(\frac{-g}{h}\right)\right)}{-9}\right)
\]
lift-*.f64N/A
\[\leadsto 2 \cdot \cos \left(\frac{\mathsf{fma}\left(\color{blue}{-2 \cdot \mathsf{PI}\left(\right)}, 3, -3 \cdot \cos^{-1} \left(\frac{-g}{h}\right)\right)}{-9}\right)
\]
metadata-evalN/A
\[\leadsto 2 \cdot \cos \left(\frac{\mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right)} \cdot \mathsf{PI}\left(\right), 3, -3 \cdot \cos^{-1} \left(\frac{-g}{h}\right)\right)}{-9}\right)
\]
distribute-lft-neg-inN/A
\[\leadsto 2 \cdot \cos \left(\frac{\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(2 \cdot \mathsf{PI}\left(\right)\right)}, 3, -3 \cdot \cos^{-1} \left(\frac{-g}{h}\right)\right)}{-9}\right)
\]
lower-fma.f64N/A
\[\leadsto 2 \cdot \cos \left(\frac{\color{blue}{\left(\mathsf{neg}\left(2 \cdot \mathsf{PI}\left(\right)\right)\right) \cdot 3 + -3 \cdot \cos^{-1} \left(\frac{-g}{h}\right)}}{-9}\right)
\]
distribute-lft-neg-inN/A
\[\leadsto 2 \cdot \cos \left(\frac{\color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \mathsf{PI}\left(\right)\right)} \cdot 3 + -3 \cdot \cos^{-1} \left(\frac{-g}{h}\right)}{-9}\right)
\]
metadata-evalN/A
\[\leadsto 2 \cdot \cos \left(\frac{\left(\color{blue}{-2} \cdot \mathsf{PI}\left(\right)\right) \cdot 3 + -3 \cdot \cos^{-1} \left(\frac{-g}{h}\right)}{-9}\right)
\]
*-commutativeN/A
\[\leadsto 2 \cdot \cos \left(\frac{\color{blue}{\left(\mathsf{PI}\left(\right) \cdot -2\right)} \cdot 3 + -3 \cdot \cos^{-1} \left(\frac{-g}{h}\right)}{-9}\right)
\]
associate-*l*N/A
\[\leadsto 2 \cdot \cos \left(\frac{\color{blue}{\mathsf{PI}\left(\right) \cdot \left(-2 \cdot 3\right)} + -3 \cdot \cos^{-1} \left(\frac{-g}{h}\right)}{-9}\right)
\]
metadata-evalN/A
\[\leadsto 2 \cdot \cos \left(\frac{\mathsf{PI}\left(\right) \cdot \color{blue}{-6} + -3 \cdot \cos^{-1} \left(\frac{-g}{h}\right)}{-9}\right)
\]
lower-fma.f64N/A
\[\leadsto 2 \cdot \cos \left(\frac{\color{blue}{\mathsf{fma}\left(\mathsf{PI}\left(\right), -6, -3 \cdot \cos^{-1} \left(\frac{-g}{h}\right)\right)}}{-9}\right)
\]
lift-PI.f6498.5
\[\leadsto 2 \cdot \cos \left(\frac{\mathsf{fma}\left(\color{blue}{\mathsf{PI}\left(\right)}, -6, -3 \cdot \cos^{-1} \left(\frac{-g}{h}\right)\right)}{-9}\right)
\]
Applied rewrites98.5%
\[\leadsto 2 \cdot \cos \left(\frac{\color{blue}{\mathsf{fma}\left(\mathsf{PI}\left(\right), -6, -3 \cdot \cos^{-1} \left(\frac{-g}{h}\right)\right)}}{-9}\right)
\]
Applied rewrites100.0%
\[\leadsto 2 \cdot \color{blue}{\sin \left(\mathsf{fma}\left(-0.3333333333333333, \mathsf{fma}\left(\mathsf{PI}\left(\right), 2, \cos^{-1} \left(\frac{-g}{h}\right)\right), \frac{\mathsf{PI}\left(\right)}{2}\right)\right)}
\]
Taylor expanded in g around 0
\[\leadsto 2 \cdot \sin \color{blue}{\left(\frac{-1}{3} \cdot \left(\cos^{-1} \left(-1 \cdot \frac{g}{h}\right) + 2 \cdot \mathsf{PI}\left(\right)\right) + \frac{1}{2} \cdot \mathsf{PI}\left(\right)\right)}
\]
Step-by-step derivation
distribute-lft-inN/A
\[\leadsto 2 \cdot \sin \left(\left(\frac{-1}{3} \cdot \cos^{-1} \left(-1 \cdot \frac{g}{h}\right) + \frac{-1}{3} \cdot \left(2 \cdot \mathsf{PI}\left(\right)\right)\right) + \color{blue}{\frac{1}{2}} \cdot \mathsf{PI}\left(\right)\right)
\]
mul-1-negN/A
\[\leadsto 2 \cdot \sin \left(\left(\frac{-1}{3} \cdot \cos^{-1} \left(\mathsf{neg}\left(\frac{g}{h}\right)\right) + \frac{-1}{3} \cdot \left(2 \cdot \mathsf{PI}\left(\right)\right)\right) + \frac{1}{2} \cdot \mathsf{PI}\left(\right)\right)
\]
distribute-frac-negN/A
\[\leadsto 2 \cdot \sin \left(\left(\frac{-1}{3} \cdot \cos^{-1} \left(\frac{\mathsf{neg}\left(g\right)}{h}\right) + \frac{-1}{3} \cdot \left(2 \cdot \mathsf{PI}\left(\right)\right)\right) + \frac{1}{2} \cdot \mathsf{PI}\left(\right)\right)
\]
lower-acos.f64N/A
\[\leadsto 2 \cdot \sin \left(\left(\frac{-1}{3} \cdot \cos^{-1} \left(\frac{\mathsf{neg}\left(g\right)}{h}\right) + \frac{-1}{3} \cdot \left(2 \cdot \mathsf{PI}\left(\right)\right)\right) + \frac{1}{2} \cdot \mathsf{PI}\left(\right)\right)
\]
lift-/.f64N/A
\[\leadsto 2 \cdot \sin \left(\left(\frac{-1}{3} \cdot \cos^{-1} \left(\frac{\mathsf{neg}\left(g\right)}{h}\right) + \frac{-1}{3} \cdot \left(2 \cdot \mathsf{PI}\left(\right)\right)\right) + \frac{1}{2} \cdot \mathsf{PI}\left(\right)\right)
\]
lift-neg.f64N/A
\[\leadsto 2 \cdot \sin \left(\left(\frac{-1}{3} \cdot \cos^{-1} \left(\frac{-g}{h}\right) + \frac{-1}{3} \cdot \left(2 \cdot \mathsf{PI}\left(\right)\right)\right) + \frac{1}{2} \cdot \mathsf{PI}\left(\right)\right)
\]
*-commutativeN/A
\[\leadsto 2 \cdot \sin \left(\left(\frac{-1}{3} \cdot \cos^{-1} \left(\frac{-g}{h}\right) + \frac{-1}{3} \cdot \left(\mathsf{PI}\left(\right) \cdot 2\right)\right) + \frac{1}{2} \cdot \mathsf{PI}\left(\right)\right)
\]
associate-+l+N/A
\[\leadsto 2 \cdot \sin \left(\frac{-1}{3} \cdot \cos^{-1} \left(\frac{-g}{h}\right) + \color{blue}{\left(\frac{-1}{3} \cdot \left(\mathsf{PI}\left(\right) \cdot 2\right) + \frac{1}{2} \cdot \mathsf{PI}\left(\right)\right)}\right)
\]
*-commutativeN/A
\[\leadsto 2 \cdot \sin \left(\cos^{-1} \left(\frac{-g}{h}\right) \cdot \frac{-1}{3} + \left(\color{blue}{\frac{-1}{3} \cdot \left(\mathsf{PI}\left(\right) \cdot 2\right)} + \frac{1}{2} \cdot \mathsf{PI}\left(\right)\right)\right)
\]
lower-fma.f64N/A
\[\leadsto 2 \cdot \sin \left(\mathsf{fma}\left(\cos^{-1} \left(\frac{-g}{h}\right), \color{blue}{\frac{-1}{3}}, \frac{-1}{3} \cdot \left(\mathsf{PI}\left(\right) \cdot 2\right) + \frac{1}{2} \cdot \mathsf{PI}\left(\right)\right)\right)
\]
Applied rewrites100.0%
\[\leadsto 2 \cdot \sin \color{blue}{\left(\mathsf{fma}\left(\cos^{-1} \left(\frac{-g}{h}\right), -0.3333333333333333, \mathsf{fma}\left(-0.6666666666666666, \mathsf{PI}\left(\right), 0.5 \cdot \mathsf{PI}\left(\right)\right)\right)\right)}
\]
- Add Preprocessing