Parameters
Return value The result's element type is double to avoid overflow as possible and its cardinal is the same as n.