home *** CD-ROM | disk | FTP | other *** search
- 10 print"[147]":poke 53280,peek(53281)
- 20 input"[147]transfer data (y/n) ";i$
- 30 ifi$="y"then2640
- 40 u$=chr$(14):d$=chr$(15)
- 50 t8$=chr$(16)+"08"
- 60 t1$=chr$(16)+"10"
- 70 t2$=chr$(16)+"20"
- 80 t3$=chr$(16)+"30"
- 90 t4$=chr$(16)+"40"
- 100 t5$=chr$(16)+"50"
- 110 t6$=chr$(16)+"60"
- 120 t7$=chr$(16)+"70"
- 130 t9$=chr$(16)+"46"
- 140 dimt(11,4)
- 150 sp$(1)=" ":sp$(2)=" ":sp$(3)=" ":sp$(4)=" "
- 160 f2=0:c1=1:a4=1:v=5:r3=500
- 170 print "[147]"
- 180 input"calculate ballistic coeff. (y/n) ";i$
- 190 f=0
- 200 ifleft$(i$,1)="y"thenf=1
- 210 input"ingall's or british tables (i/b) ";i$
- 220 f1=0
- 230 ifleft$(i$,1)="i"thenf1=1
- 240 t3=59+f1:p1=29.53+.47*f1
- 250 input"wind speed (mph) ";w1
- 260 input"cross wind angle (deg) ";a1
- 270 w2=w1*cos(a1*1.74533e-02)*88/60
- 280 ifi$="w"then670
- 290 c1$="":input"cartridge";c$
- 300 iflen(c$)<38thenf3=0:goto390
- 310 form2=1tolen(c$)/2-1
- 320 ifmid$(c$,m2,1)<>" "then340
- 330 f3=1:m1=m2
- 340 ifmid$(c$,len(c$)-m2,1)<>" "then360
- 350 f3=2:m1=len(c$)-m2
- 360 next
- 370 c1$=right$(c$,len(c$)-m1)
- 380 c$=left$(c$,m1-1)
- 390 input"weight (grains) ";w
- 400 w=w/7000
- 410 input"caliber ";d
- 420 iff=1then490
- 430 input"ballistic coefficient ";c
- 440 ifc<>0then460
- 450 input"form factor ";i
- 460 ifc=0thenc=w/d/d/i
- 470 ifi=0theni=w/d/d/c
- 480 c1=c
- 490 input"non-standard conditions (y/n) ";i$:f2=0
- 500 ifleft$(i$,1)<>"y"then670
- 510 f2=1
- 520 input"temperature (deg. f) ";t3
- 530 input"pressure (in. hg) ";p1
- 540 input"altitude (feet) ";a2
- 550 t4=59-(.003566)*a2+f1
- 560 p2=29.53-(8.581e-04)*a2+(8.602e-09)*a2*a2+.47*f1
- 570 a3=1+(3.073e-05)*a2+(6.731e-10)*a2*a2
- 580 a4=a3*(2-p1/p2)*(t3+459.4)/(t4+459.4)
- 590 c=c1*a4
- 600 iff=1then630
- 610 print" (modified c = ";int(1000*c)/1000;")"
- 620 goto660
- 630 t3=59+f1
- 640 p1=29.53+.47*f1
- 650 a2=0
- 660 i=w/d/d/c
- 670 iff=1then710
- 680 input"range (yards) ";r3
- 690 input"number of intervals (1-10) ";u
- 700 r3=r3/500
- 710 input"muzzle velocity (fps) ";v1
- 720 v2=v1+v:r2=0
- 730 input"calculate free recoil (y/n) ";i1$
- 740 ifleft$(i1$,1)<>"y"then790
- 750 input"powder weight (grains) ";w9
- 760 w9=w9/7000
- 770 input"gun weight (lbs) ";w8
- 780 r9=(w*v1+4700*w9)^2/64.345/w8
- 790 iff=0then850
- 800 input"range (yds) ";r1
- 810 r1=r1*3
- 820 input"final velocity (fps) ";v4
- 830 i=1:c=1
- 840 goto1260
- 850 f9=1:close4:print"output to printer,"
- 860 input" disk, or screen (p/d/s) ";i$:ifi$="s"thenf9=0:goto910
- 870 ifi$="p"thenopen4,4:goto910
- 880 ifi$<>"d"then850
- 890 z$="0:":input"filename ";f$:iff$="temp"thenz$="@0:"
- 900 f$=z$+f$+",s,w":open15,8,15:open4,8,4,f$:gosub2690
- 910 ta=int((80-2*len(c$))/2)
- 920 ta$=right$(str$(ta),len(str$(ta))-1)
- 930 ifta<10thenta$="0"+ta$
- 940 iff9=0thengosub2750:goto1260
- 950 print#4,chr$(14)chr$(16)ta$c$chr$(15)
- 960 ta=int((80-2*len(c1$))/2)
- 970 ta$=right$(str$(ta),len(str$(ta))-1)
- 980 ifta<10thenta$="0"+ta$
- 990 iff3>0thenprint#4,chr$(14)chr$(16)ta$c1$chr$(15)
- 1000 print#4," "
- 1010 print#4," "
- 1020 print#4," "
- 1030 print#4,t8$"bullet weight"u$t9$;int(w*70000+.5)/10;d$t6$"grains"
- 1040 print#4,t8$"caliber"u$t9$;d;d$
- 1050 print#4,t8$"ballistic coeff."u$t9$;int(c*1000+.5)/1000;d$
- 1060 print#4,t8$"form factor"u$t9$;int(i*1000.5)/1000;d$
- 1070 iff1=1thenprint#4,t8$"('ingals' ";
- 1080 iff1<>1thenprint#4,t8$"('british 1909' ";
- 1090 print#4,"ballistic tables used)"
- 1100 print#4,t8$"wind"u$t9$;w1;d$t6$"miles per hour"
- 1110 print#4,t8$"at angle of"u$t9$;a1;d$t6$"from broadside"
- 1120 print#4,t8$"for crosswind"u$t9$;int(w2*10+.5)/10;d$t6$"feet per second"
- 1130 iff2=1thenprint#4,t8$"(non-standard atmospheric conditions)"
- 1140 print#4,t8$"temperature"u$t9$;t3;d$t6$"degrees fahrenheit"
- 1150 print#4,t8$"atmos. press."u$t9$;int(100*p1+.5)/100;d$t6$"inches of mercury"
- 1160 print#4,t8$"altitude"u$t9$;a2;d$t6$"ft above sea level"
- 1170 print#4," "
- 1180 ifi1$<>"y"then1200
- 1190 print#4,t8$"free recoil in";w8;" lb gun"u$t9$;int(r9*100+.5)/100;d$t6$"ft. lbs
- 1200 [152]4," ":[152]4," "
- 1210 s$[178]" range vel. energy max ht. drop drift time"
- 1220 [152]4,t8$s$
- 1230 s$[178]" yds. f/s ft-lbs in. in. in. sec."
- 1240 [152]4,t8$s$
- 1250 [152]4," "
- 1260 k[178]2[172]c[172]v
- 1270 v2[178]v2[171]2[172]v
- 1280 [139]f1[178]1[167][141]2460
- 1290 [139]f1[179][177]1[167][141]2310
- 1300 s1[178]s
- 1310 s[178]s[170]k[173](a[172]v2[174](m[171]1))
- 1320 t1[178]t
- 1330 t[178]t[170]k[173](a[172]v2[174]m)
- 1340 [139]f[178]1[167][139]v2[179]v4[167]1370
- 1350 [139]f[179][177]1[167][139]s[177][178]r2[167]1510
- 1360 [137]1270
- 1370 s[178]s1[170](s[171]s1)[172](v2[170]v[171]v4)[173](2[172]v)
- 1380 c[178](r1[173]s)[173]a4
- 1390 i[178]w[173]d[173]d[173]c
- 1400 [139]f[179][177]1[167]1450
- 1410 [153]
- 1420 [153]"ballistic coeff. = ";[181](1000[172]c)[173]1000
- 1430 [153]"form factor = ";[181](1000[172]i)[173]1000
- 1440 c1[178]c:f[178]0:[137]2150
- 1450 [152]4," "
- 1460 [152]4,t8$"ballistic coeff. = "u$t4$;[181](1000[172]c)[173]1000;d$
- 1470 [152]4,t8$"form factor = "u$t4$;[181](1000[172]i)[173]1000;d$
- 1480 c1[178]c
- 1490 f[178]0
- 1500 [137]2150
- 1510 ov3[178]v3
- 1520 v3[178](v2[170]v)[171]2[172]v[172](r2[171]s1)[173](s[171]s1)
- 1530 [139]ov3[178]0[167]1580
- 1540 [139](ov3[171]v3)[173]ov3[177].01[167]1580
- 1550 [153]" ** possible drift error **"
- 1560 [153]"interval velocity difference = ";[181](10000[172](ov3[171]v3)[173]ov3)[173]100;"%"
- 1570 [133]"continue (y/n) ";i$:[139]i$[178]"n"[167]2170
- 1580 e[178]v3[172]v3[172]w[173]64.345
- 1590 t2[178]t1[170](t[171]t1)[172](r2[171]s1)[173](s[171]s1)
- 1600 t((r2[173](1500[173]u[172]r3)[170]1.5),1)[178]r2[173]3
- 1610 d1[178](110.3[170]82.7[172]v3[173]v1)[172]t2[172]t2
- 1620 t((r2[173](1500[173]u[172]r3)[170]1.5),2)[178]d1
- 1630 w3[178]12[172]w2[172](t2[171]r2[173]v1)
- 1640 [139]w3[177][178]0[167]1670
- 1650 [153]" ** drift error **"
- 1660 [133]"continue (y/n) ";i$:[139]i$[178]"n"[167]2170
- 1670 [139]f9[178]0[167][141]2860:[137]1710
- 1680 [152]4,t1$;[181](r2[173]3[170].5);t2$;[181](v3[170].5);t3$;[181](e[170].5);
- 1690 [152]4,t4$;[181](4800[172]t2[172]t2[170].5)[173]100;t5$;[181](100[172]d1[170].5)[173]100;
- 1700 [152]4,t6$;[181](100[172]w3[170].5)[173]100;t7$;[181](1000[172]t2[170].5)[173]1000
- 1710 r2[178]r2[170]1500[173]u[172]r3
- 1720 [139]f[178]0[167][139]r2[177]1500[172]r3[167]1740
- 1730 [137]1270
- 1740 [139]f9[179][177]0[167][152]4," "
- 1750 [133]"sight on at ";r4
- 1760 [133]"sight heightclose";h
- 1770 [139]f9[178]0[167][141]2980:[137]2150
- 1780 [152]4," "
- 1790 [152]4,t8$"sight on at"u$;r4;d$"yards"
- 1800 [152]4,t8$"sight height ="u$;h;d$"inches above bore"
- 1810 [152]4," "
- 1820 t(1,4)[178]9999
- 1830 [129]x[178]1[164]u[170]1
- 1840 t(x,3)[178]t((r4[173](500[173]u[172]r3)[170]1.5),2)[172]t(x,1)[173]r4[171]t(x,2)[171]h[172](r4[171]t(x,1))[173]r4
- 1850 [139]x[178]1[167]1870
- 1860 t(x,4)[178]t(x,3)[173](1.0472[172]t(x,1)[173]100)
- 1870 [130]
- 1880 [152]4,t8$"range ";
- 1890 [129]x[178]1[164]u[170]1
- 1900 [139]t(x,i)[177][178]1000[167]1940
- 1910 [139]t(x,1)[179]100[167]1960
- 1920 [152]4,t(x,1);" ";
- 1930 [137]1970
- 1940 [152]4,t(x,1);
- 1950 [137]1970
- 1960 [152]4," ";t(x,1);" ";
- 1970 [130]
- 1980 [152]4:[152]4,t8$"traj. ";
- 1990 [129]x[178]1[164]u[170]1
- 2000 m[178][181](10[172]t(x,3))[173]10:m$[178][196](m)
- 2010 [139][182](m)[177]99.9[167]m$[178]" ***"
- 2020 [139]m[177]0[167]m$[178]"+"[170][201](m$,[195](m$)[171]1)
- 2030 [152]4,m$;sp$(6[171][195](m$));
- 2040 [130]
- 2050 [152]4:[152]4,t8$"m.o.a.";
- 2060 [129]x[178]1[164]u[170]1
- 2070 m[178][181](10[172]t(x,4))[173]10:m$[178][196](m)
- 2080 [139]m[177]0[167]m$[178]"+"[170][201](m$,[195](m$)[171]1)
- 2090 [139][182](m)[177]99.9[167]m$[178]" ***"
- 2100 [152]4,m$;sp$(6[171][195](m$));
- 2110 [130]
- 2120 [152]4," "
- 2130 [152]4," "
- 2140 [139]f9[178]0[167][141]2980
- 2150 s[178]0
- 2160 t[178]0
- 2170 [153]"andandandandandandandandandandandandandandandandandandandandandandandandandandandandandandandandandandandandandandandand";
- 2180 [153]" waitwind waitatmosphere waitrestart program waitquit ";
- 2190 [153]" waitsights waitclose waittransfer waitnew range ";
- 2200 [153]" waitusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusr";
- 2210 [161] i$:[139]i$[178]""[167]2210
- 2220 [139]i$[178]"w"[167]250
- 2230 [139]i$[178]"a"[167]520
- 2240 [139]i$[178]"r"[167][156]:[137]40
- 2250 [139]i$[178]"s"[167]1750
- 2260 [139]i$[178]"q"[167]2630
- 2270 [139]i$[178]"c"[167][152]4,"####":[160]4:[160]15:[137]2170
- 2280 [139]i$[178]"t"[167]2640
- 2290 [139]i$[178]"n"[167]v3[178]0:[137]670
- 2300 [137]2210
- 2310 [139]v2[177]2600[167]2450
- 2320 [139]v2[177]2000[167]2440
- 2330 [139]v2[177]1460[167]2430
- 2340 [139]v2[177]1190[167]2420
- 2350 [139]v2[177]1040[167]2410
- 2360 [139]v2[177]840[167]2400
- 2370 [139]v2[177]0[167]2390
- 2380 [128]
- 2390 a[178]7.4422e[171]4:m[178]1.6:[142]
- 2400 a[178]5.9939e[171]8:m[178]3:[142]
- 2410 a[178]2.3385e[171]18:m[178]6.45:[142]
- 2420 a[178]9.5408e[171]8:m[178]3:[142]
- 2430 a[178]5.9814e[171]4:m[178]1.8:[142]
- 2440 a[178]5.8495e[171]3:m[178]1.5:[142]
- 2450 a[178]1.5366e[171]3:m[178]1.67:[142]
- 2460 [139]v2[177]3600[167]2620
- 2470 [139]v2[177]2600[167]2610
- 2480 [139]v2[177]1800[167]2600
- 2490 [139]v2[177]1370[167]2590
- 2500 [139]v2[177]1230[167]2580
- 2510 [139]v2[177]970[167]2570
- 2520 [139]v2[177]790[167]2560
- 2530 [139]v2[177]0[167]2550
- 2540 [128]
- 2550 a[178]4.67617e[171]5:m[178]2:[142]
- 2560 a[178]5.9353e[171]8:m[178]3:[142]
- 2570 a[178]6.33681e[171]14:m[178]5:[142]
- 2580 a[178]9.56978e[171]8:m[178]3:[142]
- 2590 a[178]1.31601e[171]4:m[178]2:[142]
- 2600 a[178]1.24795e[171]3:m[178]1.7:[142]
- 2610 a[178]4.06488e[171]3:m[178]1.55:[142]
- 2620 a[178]4.05e[171]3:m[178]1.551:[142]
- 2630 [160]5:[160]4:[153]"load":[128]
- 2640 [160]15:[160]4:[160]5:[159]4,4
- 2650 [133]"filename ";f$:f$[178]"0:"[170]f$[170]",s,r":[159]15,8,15:[159]5,8,5,f$:[141]2690
- 2660 [132]5,i$
- 2670 [139]i$[178]"####"[167][152]4:[160]4:[160]5:[160]15:[137]2170
- 2680 [152]4,i$:[137]2660
- 2690 [132]15,aa,bb$,cc,dd
- 2700 [139]aa[179]20[167] [142]
- 2710 [153]" ** disk error **"
- 2720 ee$[178][196](aa)[170]" "[170]bb$[170]" "[170][196](cc)[170]" "[170][196](dd)
- 2730 [153]"";[163](40[171][195](ee$))[173]2);ee$;""
- 2740 [160]15:[160]4:[160]5:[137]2170
- 2750 [153]" crosswind";[181](w2[172]10[170].5)[173]10;"feet per second"
- 2760 [139]f2[178]1[167][153]"(non-standard atmospheric conditions)"
- 2770 [139]i1$[179][177]"y"[167]2800
- 2780 [153]" free recoil in";w8;" lb gun"
- 2790 [153]" ";[181](r9[172]10[170].5)[173]10;"ft. lbs"
- 2800 [153]
- 2810 s$[178]"range(NULL)vel(NULL)energy(NULL)mx ht(NULL)drop(NULL)drift(NULL)time"
- 2820 [153]s$
- 2830 s$[178]" yds.(NULL)f/s(NULL)ft-lbs(NULL) in. (NULL) in.(NULL) in. (NULL)sec."
- 2840 [153]s$
- 2850 [153]:[142]
- 2860 [153][181](r2[173]3[170].5);
- 2870 [153][163]5);[181](v3[170].5);
- 2880 [153][163]11);[181](e[170].5);
- 2890 [139]48[172]t2[172]t2[179]10[167][153][163]17);[181](480[172]t2[172]t2[170].5)[173]10;:[137]2910
- 2900 [153][163]17);[181](48[172]t2[172]t2[170].5);
- 2910 [139]d1[177]10[167][153][163]22);[181](d1[170].5);:[137]2930
- 2920 [153][163]22);[181](10[172]d1[170].5)[173]10;
- 2930 [139]w3[177]10[167][153][163]28);[181](w3[170].5);:[137]2950
- 2940 [153][163]28);[181](10[172]w3[170].5)[173]10;
- 2950 [139]t2[177]1[167][153][163]35);[181](10[172]t2[170].5)[173]10;:[137]2970
- 2960 [153][163]34);[181](100[172]t2[170].5)[173]100
- 2970 [142]
- 2980 [153]
- 2990 t(1,4)[178]9999
- 3000 [129]x[178]1[164]u[170]1
- 3010 t(x,3)[178]t((r4[173](500[173]u[172]r3)[170]1.5),2)[172]t(x,1)[173]r4[171]t(x,2)[171]h[172](r4[171]t(x,1))[173]r4
- 3020 [139]x[178]1[167]3040
- 3030 t(x,4)[178]t(x,3)[173](1.0472[172]t(x,1)[173]100)
- 3040 [130]
- 3050 [153]"r ";
- 3060 [129]x[178]1[164]u[170]1
- 3070 [139]t(x,i)[177][178]1000[167]3110
- 3080 [139]t(x,1)[179]100[167]3130
- 3090 [153]t(x,1);" ";
- 3100 [137]3140
- 3110 [153]t(x,1);
- 3120 [137]3140
- 3130 [153]" ";t(x,1);" ";
- 3140 [130]
- 3150 [153]:[153]"t ";
- 3160 [129]x[178]1[164]u[170]1
- 3170 m[178][181](10[172]t(x,3))[173]10:m$[178][196](m)
- 3180 [139][182](m)[177]99.9[167]m$[178]" ***"
- 3190 [139]m[177]0[167]m$[178]"+"[170][201](m$,[195](m$)[171]1)
- 3200 [153]m$;sp$(6[171][195](m$));
- 3210 [130]
- 3220 [153]:[153]"m ";
- 3230 [129]x[178]1[164]u[170]1
- 3240 m[178][181](10[172]t(x,4))[173]10:m$[178][196](m)
- 3250 [139]m[177]0[167]m$[178]"+"[170][201](m$,[195](m$)[171]1)
- 3260 [139][182](m)[177]99.9[167]m$[178]" ***"
- 3270 [153]m$;sp$(6[171][195](m$));
- 3280 [130]
- 3290 [153]:[153]
- 3300 [142]
-