view +scheme/error1d.m @ 17:30ae48efc7ae

Added utility function findFiledWidth. Added function for calculating and saving solutions.
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 22 Sep 2015 14:27:21 +0200
parents 16bad7c459da
children ed6a704b028d
line wrap: on
line source

function e = error1d(schm, v1, v2)
    h = schm.h;
    e = sqrt(h*sum((v1-v2).^2));
end