我在使用指數函數後遇到問題。它一直在下面的行上拋出語法錯誤。我想知道我是否正確使用「math.exp()」。Python math.exp函數語法
載的代碼
case = 1
Dref = [1,2,3,4]
i = 2
j = 1
t = 1
m = 1
Temp = 320
import math
D[case] = (Dref[case]*((50/ t)^ m)) * (math.exp((20/6)*((1/295) - (1/Temp))):
print (D[case])
的代碼的一個示例爲數值模型,所以我將需要在一個完整的變量式使用進出口。
任何幫助將不勝感激!
他在這裏while循環在哪裏? –
你提到的錯誤是什麼 – Anuj
擺脫行尾的冒號。 (這是神祕迷路的遺蹟嗎?) – Knoep