//chapter-2,Example2_6,pg 484 a=0.9//parameter of diff. amplr. b=1.1//parameter of diff. amplr. CMRR=0.5*(((1+a)*b+(1+b)*a))/((1+a)*b-(1+b)*a)//common mode rejection ratio printf("CMRR=%.2f \n",CMRR)