pub fn heat_equation_1d(
u0: &[f64],
length: f64,
alpha: f64,
dt: f64,
steps: usize,
left: f64,
right: f64,
scheme: HeatScheme,
) -> Result<Vec<f64>, ErrorsJSL>Expand description
Advances u_t = α u_xx on a uniform grid of u0.len() points spanning [0, length]
(endpoints included and held at left and right) through steps steps of size dt.