Create standalone lin_expr_coeffs() routine