Mark Wickens

10 MODE8:DIM:GOSUB900:c$=CHR$(5):t$="N(𝜇,𝜎²) a<𝜎²<b"
20 CLS:PRINTt$;TAB(0);"input new data (Y/N) ?";:a$=INPUT$(1,@)
25 IFa$<>"Y" ANDa$<>"y" THEN40
30 s$="x":GOSUB"LIB0:S6020":GOSUB900
40 f=95:s=sa:IFs THENr=sm ELSEr=0
45 CLS:PRINTt$;
50 z=s:s$="n":GOSUB500:s=z
60 z=r:s$="S":GOSUB500:r=z
90 CLS:PRINT"Confidence level (1-𝛼)[%]";
95 z=f:s$="1-𝛼":GOSUB500:f=z:IFf<0 ORf>100 THEN95
97 CLS:PRINT"N(𝜇,𝜎²)   ";f;"%";TAB(0);".....";
100 n=s-1:p=(1-f/100)/2:sr=0:GOSUB"LIB0:S6420":GOSUB900:IFsr THEN*
105 g=x:p=1-p:GOSUB"LIB0:S6420":GOSUB900:IFsr THEN*
110 z=r/g:GOSUB400:a=z
120 z=r/x:GOSUB400:b=z
130 PRINTc$;a;"< 𝜎² <";b;:a$=INPUT$(1,@):GOTO45
400 IFz THENz=ROUND(z,LOG(ABSz)-5)
410 RETURN
500 LOCATE0,1:PRINTc$;s$;"=";z;"?";:INPUT@10;z:LOCATE0,0:RETURN
900 ONERRORGOTO910:RETURN
910 IFERR=1 THENCLS:ONERRORGOTO0
920 IFERL=500 THENRESUME500
930 LOCATE0,1:PRINTc$;"not found";:z$=INPUT$(1,@):RESUME20