So i have this code, and I have Fx and Fy as components of force vector and rx and ry as move vector (x,y components). I don’t have any issue with Force vector, but i would like to fill rx and ry vector with this form of data for n components:
rx1=l/2 * Sin [fi1],
rx2=l * Sin [fi1] + l/2 * Sin [fi2]
rx3=l * Sin [fi1] + l * Sin [fi2] + l/2 * Sin [fi3] and so on
(I hope that pattern is recognizable, and for ry is the same only with cosines)
To write this by hand would take me too much time, so I am trying to use for sentence, but I am assuming I would use at least two FOR sentences and I have no idea how to do that.
You probably see where the problem is: each next element should have 1 element than the one before.
Thanks for your help.
forum.nb (33.8 KB)
