Contribution to Computer Construction of Active Chain Models Via Lagrangian Form