from math import * a=0 l=int(input(' beam length = ') ) x=int(input(' leading end value = ') ) y=int(input(' endpoint value = ') ) f1=int(input(' force 1 = ')) x1=int(input(' distance 1 = ')) f2=int(input(' force 2 = ')) x2=int(input(' distance 2 = ')) p=int(input(' points = ') ) distância = [ ] distância.append(0) for n in range(0,p): a +=(l/p) distância.append(a) print(' distance = ',distância) lst = [0] * p lst[0]=x lst[-1]=y print(' forces acting on points = ',lst)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)