我有一段代碼,它解決了一維隨機熱方程的週期性邊界條件。隨機項是高斯白噪聲。 我的問題是,我正確實施噪音? 高斯噪聲被定義爲具有均值爲零,並且第二時刻告訴我們在任何時間對的值是相同分佈的且在統計上是獨立的。 !I first define arrays for the uniform and gaussian random numbers
real, dimension (-1:n) :: u,
我對R很新,我試圖用de deSolve包來解決一個微分方程組。 我總共有10000次的時間步數,每100次的步數我必須改變變量的值。 我試過代碼給我下面的錯誤: Error in checkFunc(Func2, times, y, rho) :
The number of derivatives returned by func() (2) must equal the length