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INÖb0/2»Öch/2ra:rarbÖIf f1ÖGoto T5ÖIf b0==0ÖThenÖy1=c1*cos (ra*x)+c2*sin (ra*x)ÖElseÖy1=c1*e^(b0/2*x)cos (ra*x)+c2*e^(b0/2*x)sin (ra*x)ÖEndÖGoto AXÖLbl T5ÖIf q0:Goto T7Öi/rac2Öy1=c2*e^(t+»*x)sin (ra*x)ÖGoto AXÖLbl T7ÖIf t0:Goto T9Öqc1Ö(q*»)/rac2Öy1=c1*e^(b0/2*x)cos (ra*x)+c2*e^(b0/2*x)sin (ra*x)ÖGoto AXÖLbl T9Öch/2ra:rarbÖ1C»(1,1)Ö1C»(1,2)Ö[q,i]VECÖe^((»+ra)t)(»+ra)C»(2,1)Öe^((»+rb)t)(»+rb)C»(2,2)Ösimult(C»,VEC)COFÖCOF(1)c1ÖCOF(2)c2Öy1=c1*e^((»+ra)x)+c2*e^((»+rb)x)ÖClLCD:EqSt(y1,YÖIf f11:ThenÖOutpt(1,1,"y1="+YÖElse:Outpt(1,1,"Q(t)="+YÖEndÖOutpt(3,1,"c1=":Outpt(3,4,round(c1,3)ÖOutpt(4,1,"c2=":Outpt(4,4,round(c2,3)ÖOutpt(5,1,"ra=":Outpt(6,1,"rb="ÖOutpt(5,4,round(ra,3):Outpt(6,4,round(rb,3)ÖOutpt(5,14,"»=":Outpt(5,16,real »ÖOutpt(6,12,"PER=":Outpt(6,16,imag round(2Ä/ra,2)ÖGoto T6ÖLbl AXÖClLCD:EqSt(y1,YÖIf f11:ThenÖOutpt(1,1,"y1="+YÖElse:Outpt(1,1,"Q(t)="+YÖEndÖIf f1ÖThenÖOutpt(4,1,"c1=":Outpt(4,4,round(c1,3)ÖOutpt(4,11,"c2=":Outpt(4,15,round(c2,3)ÖOutpt(5,12,"t=":Outpt(5,15,round(t,3)ÖEndÖOutpt(5,1,"ra=":Outpt(6,1,"rb="ÖOutpt(5,4,round(ra,3):Outpt(6,4,round(rb,3)ÖIf ch<0:ThenÖOutpt(6,12,"»=":Outpt(6,15,»ÖOutpt(7,1,"PER=":Outpt(7,5,round(2Ä/ra,2)ÖOutpt(7,11,"b0/2=":Outpt(7,17,round(b0/2,2)ÖEndÖMenu(1,MO,TX,2,PR,T,5,QU,QÖLbl TXÖClLCDÖLbl T6ÖZASKGRAFÖIf K102:Goto TÖZStdÖTraceÖGoto TÖLbl B1ÖZLCINITÖ0f:1f1ÖClLCDÖOutpt(1,1,"LQ''+RQ'+Q/C=0, L IS HENRYS, R OHMS, C IS"ÖOutpt(3,1,"FARADS. Q IS CHARGE ON CAPACITOR."Ö4lf:ZLINFEEDÖInput "L? ",a0ÖInput "R? ",b0ÖInput "C? ",xÖ1/xc0ÖGoto T8ÖLbl QÖZMAKÖDelVar(CÖDelVar(C»ÖÐ@