Help to index or vector calucation geotechical engineering mathcadprime 9
I am trying to do geotechnical calculations that I hope to refine.
I hope someone can help me with whether it is possible to set up calculations via an input table with different soil layers, which give different stresses, which are used for equilibrium calculations.
The simple problem below is solved as a simple hand calculation, but quickly becomes complicated when there are more soil layers, and when the rotation point jumps from different layers.

is it possible to do an input tabel with "i" layers and devide all into "n" layers either by index methode ord vector. And then do the rotation calucation by means off "sum" or intregrate with their respektive "hn"
I hope anyone can help me in the right direaction, i am not an expext in advanced use off mathcad

