The extent to which German grammatical constructions can resemble a mathematical formula is particuarly well demonstrated, I think, by the following compound: “Energieversorgungs-, -handels- und -dienstleistungsunternehmen”
The suspended lexeme “-handels-” in the middle of the sentence is the really interesting thing here.