MDLD/cotangent function (R)