completed Compute_mapping_coeff()