MDLD/sine function (R)