TypeError: unsupported operand type(s) for ** or pow(): 'tup
Verfasst: Sonntag 20. Juni 2010, 21:44
Hallo,
Ich verzweifel schon wieder. Vielleicht kann mir ja jemand von euch helfen. Ich möchte folgende Berechnung durchführen und bekomme dann nen Error, den ich vicht verstehe:
Faktor_w = (Wertepaare[0][(len(Wertepaare[0]))-2]) #bei mir gilt: Wertepaare[0][(len(Wertepaare[0]))-2] = 950
Faktor_dw = 0,005
Faktor_h = 12
Faktor_dh = 0,005
Faktor_s = 220
Faktor_ds = 0,05
Faktor_u = (Wertepaare[(len(Wertepaare_01))-2]) # bei mir gilt: Wertepaare[(len(Wertepaare_01))-2] = 1,953
Faktor_du = 0,5*10**(-6)
A_01 = (((Faktor_w/Faktor_h)+((Faktor_s**2)/4*Faktor_w*Faktor_h))**2)*Faktor_du**2
Die Listen sind in einem anderen Teil des Programms bereits definiert.
Es wird mir folgender error ausgegeben:
Traceback (most recent call last):
File "C:\Users\01\Desktop\test.py", line 101, in <module>
A_01 = (((Faktor_w/Faktor_h)+((Faktor_s**2)/4*Faktor_w*Faktor_h))**2)*Faktor_du**2 # (dk/du)**2*delta(u)**2
TypeError: unsupported operand type(s) for ** or pow(): 'tuple' and 'int'
Danke schon mal für eure Hilfe
Ich verzweifel schon wieder. Vielleicht kann mir ja jemand von euch helfen. Ich möchte folgende Berechnung durchführen und bekomme dann nen Error, den ich vicht verstehe:
Faktor_w = (Wertepaare[0][(len(Wertepaare[0]))-2]) #bei mir gilt: Wertepaare[0][(len(Wertepaare[0]))-2] = 950
Faktor_dw = 0,005
Faktor_h = 12
Faktor_dh = 0,005
Faktor_s = 220
Faktor_ds = 0,05
Faktor_u = (Wertepaare[(len(Wertepaare_01))-2]) # bei mir gilt: Wertepaare[(len(Wertepaare_01))-2] = 1,953
Faktor_du = 0,5*10**(-6)
A_01 = (((Faktor_w/Faktor_h)+((Faktor_s**2)/4*Faktor_w*Faktor_h))**2)*Faktor_du**2
Die Listen sind in einem anderen Teil des Programms bereits definiert.
Es wird mir folgender error ausgegeben:
Traceback (most recent call last):
File "C:\Users\01\Desktop\test.py", line 101, in <module>
A_01 = (((Faktor_w/Faktor_h)+((Faktor_s**2)/4*Faktor_w*Faktor_h))**2)*Faktor_du**2 # (dk/du)**2*delta(u)**2
TypeError: unsupported operand type(s) for ** or pow(): 'tuple' and 'int'
Danke schon mal für eure Hilfe