//Find iD and vD analytically //Solved Example Ex2.7 page no 51 clear clc printf("\n Find iD and vD analytically") vs=0.1 //cos wtV Vb=2//V printf("\n (100/200)*(2+0.1cos wt) V") Rth=(100^2)/200 //kΩ printf("\n Rth= %d ohm",Rth) printf("\n Rf=%d ohm",(0.7-0.5)/0.004)