view +scheme/error1d.m @ 23:ad1a41d135a1

Added function to calculate convergence given errors. Added function to print convergence table (not finished.)
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 25 Sep 2015 11:08:47 +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