E\equiv\sum_i\dot{q_i}\frac{\partial L}{\partial \dot{q_i}}-L
=\sum_i\dot{q}_i p_i-L
