-2
So, I need to solve a little problem in my code (I’m very newb), I’m just programming because I need it for my TCC, I don’t know much python but I’m trying to turn around.
On line 126 there’s that formula del_Frs_uth
....and it returns me various values, because I have several values of Alpha_e
which are calculated according to a formula that receives values of a "for structure", where this structure is in question(line 102) depends on a few more "for structures" higher up... How would I add up all the values of del_Frs_uth
???
EDIT: I decided to create an example to simplify the question, below
K = 5
N = 2
L = 5
del_a = 1.5
del_b = 0.5
del_c = 0.01
for i in range(1, K + 1, 1):
a = i*del_a
for k in range(1, N + 1, 1):
b = a + (k-1)*del_b
for j in range(1, L + 1, 1):
c = j*del_c
d = b - c
print(d)
#COMO SOMAR OS VALORES DE "d"???
Is there any function that adds values of an array? how would I store the values of "d" in an array?? Thank you all
Do not put code images, instead add code as text by formatting through
Ctrl + k
or on the button{}
question editor. In addition try to create a minimum verifiable example of the problem you have, so it’s easier to get an answer.– Isac
Good morning Isac, I tried to create a simpler example! thanks
– Guilherme Franzoi