PROGRAM BT3_5 PARAMETER (NMAX=100) DIMENSION X(NMAX) INTEGER NAM(NMAX),N,I,N1 REAL A,B,P1,P2,X95, P20_25,X05 REAL TB,SX OPEN(1,FILE='C:\MASTER\G_TR\BAITAP~1\NEW\BANG3.TXT') READ(1,*) READ(1,*) READ(1,*)N READ(1,*)((NAM(I),X(I)), I=1,N) TB=AMMGOC(X,N,1) SX=SQRT(AMMTAM(X,N,2)) ! TINH XAC SUAT T7<20 P1=FNORMD(TB,SX,28.0) ! XAC SUAT T7>30 P2=1.0-FNORMD(TB,SX,30.0) ! GIA TRI X95 CUA X UNG VOI P(X30): ",F8.4)') P2 WRITE(*,'(" X95 UNG VOI P(T7X05)=0.05=1-P(XX05)=0.05: ",F8.4)') X05 END FUNCTION FNORMD(TB,SX,X0) ! HAM NAY TINH GIA TRI HAM PHAN BO CUA BIEN NGAU NHIEN ! PHAN BO CHUAN CO KY VONG = TB, PHUONG SAI =SX**2 ! FNORMD = F(X