correct euler.m