我試圖寫一些代碼,通過審判劃分完成一個整數分解。此代碼看起來它應該工作: findAFact :: Integral x => x -> x
findAFact x = searchInts [2, 3..] x where
searchInts (int:ints) div
| div `mod` int == 0 = int
| otherwise =
我要評估的整體 a = max(solve(x^3 - 2*x^2 + x ==0 , x));
fun = @(x) exp(-x.^2).*log(x).^2;
q = integral(fun,0,a)
的簡單的例子,誤差 Error using integral (line 85)
A and B must be floating-point scalars.
任何提示嗎?積