solve heat equation via forward-time central-space method
heat(u, alpha, xdelta, tdelta, n)
u | the initial values of u |
---|---|
alpha | the thermal diffusivity coefficient |
xdelta | the change in |
tdelta | the time step |
n | the number of steps to take |
a matrix of u values at each time step
The heat
solves the heat equation using the forward-time
central-space method in one-dimension.