Home » Archimedes archive » Apps » PipeDream 4 (1991) (Colton Software) (Examples Disc).adf » Custom/CF_sheets/c_PosSort
Custom/CF_sheets/c_PosSort
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Apps » PipeDream 4 (1991) (Colton Software) (Examples Disc).adf |
Filename: | Custom/CF_sheets/c_PosSort |
Read OK: | ✔ |
File size: | 0373 bytes |
Load address: | FFFDDE43 |
Exec address: | 6D7FAA99 |
Duplicates
There is 1 duplicate copy of this file in the archive:
- Archimedes archive » Zipped Apps » PipeDream » Custom/CF_sheets/c_PosSort
- Archimedes archive » Apps » PipeDream 4 (1991) (Colton Software) (Examples Disc).adf » Custom/CF_sheets/c_PosSort
File contents
%OP%PL53 %OP%FX %OP%FY %OP%FS %OP%NDpcl,38 %OP%NDposn,37 %OP%NDequal," " %OP%WC2,1496,636,1364,0,0,0,0 %OP%VS3.81 Test (Oct 8 1991), Colton Software - Development, R0123 4567 8901 2345 %CO:A,84,0%%V%%L%function("position","list:array","entry:reference") \ Returns the position of @entry in @list. %V%%L%set_name("equal"," ") %V%%L%set_name("posn",1) %V%%L%row(index(@list,1,1)) %V%%L%for("pcl",1,rows(@list)) %V%%L% if(index(@list,1,pcl)>@entry,set_name("posn",posn+1),) %V%%L% if(index(@list,1,pcl)=@entry & (pcl+a5-1)<>row(@entry),set_name("equal","="),) %V%%L%next %V%%L%result(join(string(posn,0),equal)) %V%%L%function("std_mean","list:array","entry:reference") \ Returns the number of standard deviations @entry is from the mean of @list. %V%%L%std(@list) %V%%L%avg(@list) %V%%L%result(abs(@entry-a15)/a14) %CO:B,12,75%%CO:C,12,48%%CO:D,12,36%%CO:E,12,24%%CO:F,12,12%
00000000 25 4f 50 25 50 4c 35 33 0a 25 4f 50 25 46 58 0a |%OP%PL53.%OP%FX.| 00000010 25 4f 50 25 46 59 0a 25 4f 50 25 46 53 0a 25 4f |%OP%FY.%OP%FS.%O| 00000020 50 25 4e 44 70 63 6c 2c 33 38 0a 25 4f 50 25 4e |P%NDpcl,38.%OP%N| 00000030 44 70 6f 73 6e 2c 33 37 0a 25 4f 50 25 4e 44 65 |Dposn,37.%OP%NDe| 00000040 71 75 61 6c 2c 22 20 22 0a 25 4f 50 25 57 43 32 |qual," ".%OP%WC2| 00000050 2c 31 34 39 36 2c 36 33 36 2c 31 33 36 34 2c 30 |,1496,636,1364,0| 00000060 2c 30 2c 30 2c 30 0a 25 4f 50 25 56 53 33 2e 38 |,0,0,0.%OP%VS3.8| 00000070 31 20 54 65 73 74 20 28 4f 63 74 20 20 38 20 31 |1 Test (Oct 8 1| 00000080 39 39 31 29 2c 20 43 6f 6c 74 6f 6e 20 53 6f 66 |991), Colton Sof| 00000090 74 77 61 72 65 20 2d 20 44 65 76 65 6c 6f 70 6d |tware - Developm| 000000a0 65 6e 74 2c 20 52 30 31 32 33 20 34 35 36 37 20 |ent, R0123 4567 | 000000b0 38 39 30 31 20 32 33 34 35 0a 25 43 4f 3a 41 2c |8901 2345.%CO:A,| 000000c0 38 34 2c 30 25 25 56 25 25 4c 25 66 75 6e 63 74 |84,0%%V%%L%funct| 000000d0 69 6f 6e 28 22 70 6f 73 69 74 69 6f 6e 22 2c 22 |ion("position","| 000000e0 6c 69 73 74 3a 61 72 72 61 79 22 2c 22 65 6e 74 |list:array","ent| 000000f0 72 79 3a 72 65 66 65 72 65 6e 63 65 22 29 0a 5c |ry:reference").\| 00000100 20 20 52 65 74 75 72 6e 73 20 74 68 65 20 70 6f | Returns the po| 00000110 73 69 74 69 6f 6e 20 6f 66 20 40 65 6e 74 72 79 |sition of @entry| 00000120 20 69 6e 20 40 6c 69 73 74 2e 0a 25 56 25 25 4c | in @list..%V%%L| 00000130 25 73 65 74 5f 6e 61 6d 65 28 22 65 71 75 61 6c |%set_name("equal| 00000140 22 2c 22 20 22 29 0a 25 56 25 25 4c 25 73 65 74 |"," ").%V%%L%set| 00000150 5f 6e 61 6d 65 28 22 70 6f 73 6e 22 2c 31 29 0a |_name("posn",1).| 00000160 25 56 25 25 4c 25 72 6f 77 28 69 6e 64 65 78 28 |%V%%L%row(index(| 00000170 40 6c 69 73 74 2c 31 2c 31 29 29 0a 25 56 25 25 |@list,1,1)).%V%%| 00000180 4c 25 66 6f 72 28 22 70 63 6c 22 2c 31 2c 72 6f |L%for("pcl",1,ro| 00000190 77 73 28 40 6c 69 73 74 29 29 0a 25 56 25 25 4c |ws(@list)).%V%%L| 000001a0 25 20 20 20 20 69 66 28 69 6e 64 65 78 28 40 6c |% if(index(@l| 000001b0 69 73 74 2c 31 2c 70 63 6c 29 3e 40 65 6e 74 72 |ist,1,pcl)>@entr| 000001c0 79 2c 73 65 74 5f 6e 61 6d 65 28 22 70 6f 73 6e |y,set_name("posn| 000001d0 22 2c 70 6f 73 6e 2b 31 29 2c 29 0a 25 56 25 25 |",posn+1),).%V%%| 000001e0 4c 25 20 20 20 20 69 66 28 69 6e 64 65 78 28 40 |L% if(index(@| 000001f0 6c 69 73 74 2c 31 2c 70 63 6c 29 3d 40 65 6e 74 |list,1,pcl)=@ent| 00000200 72 79 20 26 20 28 70 63 6c 2b 61 35 2d 31 29 3c |ry & (pcl+a5-1)<| 00000210 3e 72 6f 77 28 40 65 6e 74 72 79 29 2c 73 65 74 |>row(@entry),set| 00000220 5f 6e 61 6d 65 28 22 65 71 75 61 6c 22 2c 22 3d |_name("equal","=| 00000230 22 29 2c 29 0a 25 56 25 25 4c 25 6e 65 78 74 0a |"),).%V%%L%next.| 00000240 25 56 25 25 4c 25 72 65 73 75 6c 74 28 6a 6f 69 |%V%%L%result(joi| 00000250 6e 28 73 74 72 69 6e 67 28 70 6f 73 6e 2c 30 29 |n(string(posn,0)| 00000260 2c 65 71 75 61 6c 29 29 0a 0a 25 56 25 25 4c 25 |,equal))..%V%%L%| 00000270 66 75 6e 63 74 69 6f 6e 28 22 73 74 64 5f 6d 65 |function("std_me| 00000280 61 6e 22 2c 22 6c 69 73 74 3a 61 72 72 61 79 22 |an","list:array"| 00000290 2c 22 65 6e 74 72 79 3a 72 65 66 65 72 65 6e 63 |,"entry:referenc| 000002a0 65 22 29 0a 5c 20 20 52 65 74 75 72 6e 73 20 74 |e").\ Returns t| 000002b0 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 73 74 61 |he number of sta| 000002c0 6e 64 61 72 64 20 64 65 76 69 61 74 69 6f 6e 73 |ndard deviations| 000002d0 20 40 65 6e 74 72 79 20 69 73 20 66 72 6f 6d 20 | @entry is from | 000002e0 74 68 65 20 6d 65 61 6e 20 6f 66 20 40 6c 69 73 |the mean of @lis| 000002f0 74 2e 0a 25 56 25 25 4c 25 73 74 64 28 40 6c 69 |t..%V%%L%std(@li| 00000300 73 74 29 0a 25 56 25 25 4c 25 61 76 67 28 40 6c |st).%V%%L%avg(@l| 00000310 69 73 74 29 0a 25 56 25 25 4c 25 72 65 73 75 6c |ist).%V%%L%resul| 00000320 74 28 61 62 73 28 40 65 6e 74 72 79 2d 61 31 35 |t(abs(@entry-a15| 00000330 29 2f 61 31 34 29 0a 25 43 4f 3a 42 2c 31 32 2c |)/a14).%CO:B,12,| 00000340 37 35 25 25 43 4f 3a 43 2c 31 32 2c 34 38 25 25 |75%%CO:C,12,48%%| 00000350 43 4f 3a 44 2c 31 32 2c 33 36 25 25 43 4f 3a 45 |CO:D,12,36%%CO:E| 00000360 2c 31 32 2c 32 34 25 25 43 4f 3a 46 2c 31 32 2c |,12,24%%CO:F,12,| 00000370 31 32 25 |12%| 00000373