MDLD/polynomial function (R)