Study of the formation of polyamido acids. Comparison of theoretical and experimental results