My problem is that I want: and then I want it to get evaluted in the calc_energy function 360 times and then store the result so I could count the year average, I want to calculate the energy average.. Should I call the function instead of return in def_decide(v)??? Could someone help me get in on the right track?
def calc_v(latitud):
for t in range(0,360):
v=(23.5*math.sin(math.pi*(t-80)/180)+90-latitud)/90
decide_v(v):
def decide_v(v):
if 0<v<1:
return(v**2)
if v>=1:
return(1)
if v<=0:
return(0)
def calc_energy(v):
W=self.area*random(0,1)*self.sundigit*v
return W
def sort(self,W):
W+=100/360