任務是通過用數字方法創建可展曲面,在Matlab中創建一個錐頂。有3個部分我已經完成2.我的問題是關於第3部分,我需要計算可以包含帽子的最小長方形紙張表面。我需要計算紙張的材料浪費。 你也許可以跳過LONG背景並轉到最後一段 背景: 圓錐帽可以與用其尖端位於傾斜圓錐體被創建(一個; 0,B )和一個圓形的基地。 x = Rcos u,
y = Rsin u
z = 0
0<_ u >_2pi
我嘗試使用下面的代碼(不相關的部分去掉)來解決積分方程方程scipy.optimize.fsolve精度: def _pdf(self, a, b, c, t):
pdf = some_pdf(a,b,c,t)
return pdf
def _result(self, a, b, c, flag):
return fsolve(lambda t: flag - 1
我有一個程序運行ode15s幾千次,以找到一個特定的解決方案。但是,我越來越多的集成容忍錯誤,如下列: "Warning: Failure at t=5.144337e+02. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (1.818989
是否有可能meijerG函數包含負值(即{-1,0,0})?我嘗試了Mathematica和Matlab來計算這個meijerG函數,但是他們產生了一個錯誤,這個錯誤代碼是meijerG is not defined for the given parameters。任何幫助都會有所幫助。 這裏是我的代碼: D = (0.6);
lg1 = lg2 = 1;
G = evalin(symeng