So, I need to solve a little problem in my code (I'm very newb), I'm just programming because I need this for my TCC, I do not know much about python but I'm trying to turn around.
In line 126 it has that formula del_Frs_uth
.... and it returns me several values, since I have several values of Alpha_e
that are calculated according to a formula that receives values of a "for structure", where this structure is in question (line 102) depends on some more "for" structures above ... How would I add all values of del_Frs_uth
???
EDIT:Idecidedtocreateanexampletosimplifythequestion,below
K=5N=2L=5del_a=1.5del_b=0.5del_c=0.01foriinrange(1,K+1,1):a=i*del_aforkinrange(1,N+1,1):b=a+(k-1)*del_bforjinrange(1,L+1,1):c=j*del_cd=b-cprint(d)#COMOSOMAROSVALORESDE"d"???
Is there a function that adds values to a vector? how would I store the values of "d" in a vector ?? Thank you all