Mathematical description of in-vivo muscle function