我有一段代码,它解决了一维随机热方程的周期性边界条件。随机项是高斯白噪声。 我的问题是,我正确实施噪音? 高斯噪声被定义为具有均值为零,并且第二时刻告诉我们在任何时间对的值是相同分布的且在统计上是独立的。 !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