comparison +scheme/error2d.m @ 15:16bad7c459da

Added abstract methods to allow for comparing of solutions. Added a bunch of error functions.
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 22 Sep 2015 13:36:45 +0200
parents
children ed6a704b028d
comparison
equal deleted inserted replaced
14:a66aefd5e6ac 15:16bad7c459da
1 function e = error2d(schm, v1, v2)
2 hu = schm.h(1);
3 hv = schm.h(2);
4 e = sqrt(hu*hv*sum((v1-v2).^2));
5 end