A Generalized S.M.A.C. Function with Constant Ratios of Elasticity of Substitution