DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ t

⟦74cc632be⟧

    Length: 2705 (0xa91)
    Names: »trans«

Derivation

└─⟦87ddcff64⟧ Bits:30001253 CPHDIST85 Tape, 1985 Autumn Conference Copenhagen
    └─ ⟦this⟧ »cph85dist/stat/doc/cat/trans« 

Hex Dump

0x000…020 0a 54 52 41 4e 53 28 31 29 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 55 4e 49 58 20 55 73 65   ┆ TRANS(1)               UNIX Use┆
0x020…040 72 27 73 20 4d 61 6e 75 61 6c 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 52 41 4e 53 28   ┆r's Manual                TRANS(┆
0x040…060 31 29 0a 0a 4e 41 4d 45 0a 20 20 20 20 20 74 72 61 6e 73 20 2d 20 74 72 61 6e 73 66 6f 72 6d 20   ┆1)  NAME      trans - transform ┆
0x060…080 6e 75 6d 65 72 69 63 61 6c 20 69 6e 70 75 74 20 63 6f 6c 75 6d 6e 73 0a 0a 53 59 4e 4f 50 53 49   ┆numerical input columns  SYNOPSI┆
0x080…0a0 53 0a 20 20 20 20 20 74 72 61 6e 73 20 6f 70 65 72 61 74 69 6f 6e 73 0a 0a 44 45 53 43 52 49 50   ┆S      trans operations  DESCRIP┆
0x0a0…0c0 54 49 4f 4e 0a 20 20 20 20 20 5f 08 54 5f 08 72 5f 08 61 5f 08 6e 5f 08 73 20 61 6c 6c 6f 77 73   ┆TION      _ T_ r_ a_ n_ s allows┆
0x0c0…0e0 20 61 20 73 65 72 69 65 73 20 6f 66 20 73 69 6d 70 6c 65 20 74 72 61 6e 73 66 6f 72 6d 61 74 69   ┆ a series of simple transformati┆
0x0e0…100 6f 6e 73 20 6f 6e 20 6e 75 6d 65 72 69 63 61 6c 0a 20 20 20 20 20 69 6e 70 75 74 20 63 6f 6c 75   ┆ons on numerical      input colu┆
0x100…120 6d 6e 73 2e 20 20 45 61 63 68 20 63 6f 6d 6d 61 6e 64 20 6c 69 6e 65 20 6f 70 74 69 6f 6e 20 64   ┆mns.  Each command line option d┆
0x120…140 65 66 69 6e 65 73 20 61 20 73 69 6d 70 6c 65 0a 20 20 20 20 20 74 72 61 6e 73 66 6f 72 6d 61 74   ┆efines a simple      transformat┆
0x140…160 69 6f 6e 20 77 69 74 68 20 61 20 73 69 6e 67 6c 65 20 63 68 61 72 61 63 74 65 72 20 6f 70 65 72   ┆ion with a single character oper┆
0x160…180 61 74 69 6f 6e 20 61 6e 64 20 61 0a 20 20 20 20 20 6e 75 6d 65 72 69 63 61 6c 20 6f 70 65 72 61   ┆ation and a      numerical opera┆
0x180…1a0 6e 64 2e 20 20 54 68 65 20 66 69 6e 61 6c 20 76 61 6c 75 65 20 69 73 20 70 72 69 6e 74 65 64 20   ┆nd.  The final value is printed ┆
0x1a0…1c0 62 79 20 69 74 73 65 6c 66 20 6f 6e 0a 20 20 20 20 20 61 20 6c 69 6e 65 2c 20 74 68 75 73 2c 20   ┆by itself on      a line, thus, ┆
0x1c0…1e0 74 68 65 20 6f 75 74 70 75 74 20 6f 66 20 5f 08 74 5f 08 72 5f 08 61 5f 08 6e 5f 08 73 20 69 73   ┆the output of _ t_ r_ a_ n_ s is┆
0x1e0…200 20 61 6c 77 61 79 73 20 61 20 73 69 6e 67 6c 65 20 63 6f 6c 75 6d 6e 2e 0a 20 20 20 20 20 54 68   ┆ always a single column.      Th┆
0x200…220 65 73 65 20 6f 75 74 70 75 74 20 63 6f 6c 75 6d 6e 73 20 63 61 6e 20 62 65 20 63 6f 6d 62 69 6e   ┆ese output columns can be combin┆
0x220…240 65 64 20 75 73 69 6e 67 20 5f 08 61 5f 08 62 5f 08 75 5f 08 74 2e 0a 0a 20 20 20 20 20 4f 70 65   ┆ed using _ a_ b_ u_ t.       Ope┆
0x240…260 72 61 74 69 6f 6e 73 0a 0a 20 20 20 20 20 3d 20 20 20 20 76 61 6c 75 65 20 3d 20 6f 70 65 72 61   ┆rations       =    value = opera┆
0x260…280 6e 64 2e 20 20 54 68 65 20 6f 75 74 70 75 74 20 76 61 6c 75 65 20 69 73 20 73 65 74 20 74 6f 20   ┆nd.  The output value is set to ┆
0x280…2a0 74 68 65 20 66 6f 6c 2d 0a 20 20 20 20 20 20 20 20 20 20 6c 6f 77 69 6e 67 20 6f 70 65 72 61 6e   ┆the fol-           lowing operan┆
0x2a0…2c0 64 2e 20 20 54 68 69 73 20 6f 70 65 72 61 74 69 6f 6e 20 69 73 20 75 73 75 61 6c 6c 79 20 74 68   ┆d.  This operation is usually th┆
0x2c0…2e0 65 20 66 69 72 73 74 20 6f 6e 0a 20 20 20 20 20 20 20 20 20 20 61 20 6c 69 6e 65 2e 20 20 57 69   ┆e first on           a line.  Wi┆
0x2e0…300 74 68 6f 75 74 20 69 74 2c 20 74 68 65 20 6f 75 74 70 75 74 20 76 61 6c 75 65 20 64 65 66 61 75   ┆thout it, the output value defau┆
0x300…320 6c 74 73 20 74 6f 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 69 6e 70 75 74 20 6c 69 6e 65 20   ┆lts to the           input line ┆
0x320…340 6e 75 6d 62 65 72 2e 0a 0a 20 20 20 20 20 2b 20 20 20 20 76 61 6c 75 65 20 3d 20 76 61 6c 75 65   ┆number.       +    value = value┆
0x340…360 20 2b 20 6f 70 65 72 61 6e 64 2e 0a 0a 20 20 20 20 20 2d 20 20 20 20 76 61 6c 75 65 20 3d 20 76   ┆ + operand.       -    value = v┆
0x360…380 61 6c 75 65 20 2d 20 6f 70 65 72 61 6e 64 2e 0a 0a 20 20 20 20 20 2a 20 20 20 20 76 61 6c 75 65   ┆alue - operand.       *    value┆
0x380…3a0 20 3d 20 76 61 6c 75 65 20 2a 20 6f 70 65 72 61 6e 64 2e 0a 0a 20 20 20 20 20 2f 20 20 20 20 76   ┆ = value * operand.       /    v┆
0x3a0…3c0 61 6c 75 65 20 3d 20 76 61 6c 75 65 20 2f 20 6f 70 65 72 61 6e 64 2e 0a 0a 20 20 20 20 20 5e 20   ┆alue = value / operand.       ^ ┆
0x3c0…3e0 20 20 20 76 61 6c 75 65 20 3d 20 76 61 6c 75 65 20 5e 20 6f 70 65 72 61 6e 64 2e 20 20 54 68 69   ┆   value = value ^ operand.  Thi┆
0x3e0…400 73 20 69 73 20 74 68 65 20 70 6f 77 65 72 20 66 75 6e 63 74 69 6f 6e 2c 0a 20 20 20 20 20 20 20   ┆s is the power function,        ┆
0x400…420 20 20 20 76 61 6c 75 65 20 74 6f 20 74 68 65 20 6f 70 65 72 61 6e 64 20 65 78 70 6f 6e 65 6e 74   ┆   value to the operand exponent┆
0x420…440 2e 0a 0a 20 20 20 20 20 61 20 20 20 20 76 61 6c 75 65 20 3d 20 61 62 73 20 28 76 61 6c 75 65 29   ┆.       a    value = abs (value)┆
0x440…460 2e 0a 0a 20 20 20 20 20 66 20 20 20 20 76 61 6c 75 65 20 3d 20 66 6c 6f 6f 72 20 28 76 61 6c 75   ┆.       f    value = floor (valu┆
0x460…480 65 29 2e 0a 0a 20 20 20 20 20 63 20 20 20 20 76 61 6c 75 65 20 3d 20 63 65 69 6c 20 28 76 61 6c   ┆e).       c    value = ceil (val┆
0x480…4a0 75 65 29 2e 0a 0a 20 20 20 20 20 73 20 20 20 20 76 61 6c 75 65 20 3d 20 73 71 72 74 20 28 76 61   ┆ue).       s    value = sqrt (va┆
0x4a0…4c0 6c 75 65 29 2e 0a 0a 20 20 20 20 20 6c 20 20 20 20 76 61 6c 75 65 20 3d 20 6c 6f 67 20 28 76 61   ┆lue).       l    value = log (va┆
0x4c0…4e0 6c 75 65 29 2e 0a 0a 20 20 20 20 20 4c 20 20 20 20 76 61 6c 75 65 20 3d 20 6c 6f 67 31 30 20 28   ┆lue).       L    value = log10 (┆
0x4e0…500 76 61 6c 75 65 29 2e 0a 0a 20 20 20 20 20 65 20 20 20 20 76 61 6c 75 65 20 3d 20 65 78 70 20 28   ┆value).       e    value = exp (┆
0x500…520 76 61 6c 75 65 29 2e 0a 0a 20 20 20 20 20 4f 70 65 72 61 6e 64 73 0a 0a 20 20 20 20 20 78 4e 20   ┆value).       Operands       xN ┆
0x520…540 20 20 54 68 65 20 6c 65 74 74 65 72 20 27 78 27 20 66 6f 6c 6c 6f 77 65 64 20 62 79 20 61 6e 20   ┆  The letter 'x' followed by an ┆
0x540…560 69 6e 74 65 67 65 72 20 63 6f 6c 75 6d 6e 20 6e 75 6d 62 65 72 20 69 73 0a 20 20 20 20 20 20 20   ┆integer column number is        ┆
0x560…580 20 20 20 72 65 70 6c 61 63 65 64 20 62 79 20 74 68 65 20 69 6e 70 75 74 20 63 6f 6c 75 6d 6e 20   ┆   replaced by the input column ┆
0x580…5a0 76 61 6c 75 65 2e 0a 0a 20 20 20 20 20 4e 20 20 20 20 41 20 6e 75 6d 62 65 72 2c 20 69 6e 74 65   ┆value.       N    A number, inte┆
0x5a0…5c0 67 65 72 20 6f 72 20 66 6c 6f 61 74 69 6e 67 20 70 6f 69 6e 74 2c 20 69 73 20 75 73 65 64 20 61   ┆ger or floating point, is used a┆
0x5c0…5e0 73 20 74 68 65 0a 0a 50 72 69 6e 74 65 64 20 35 2f 33 30 2f 38 35 20 20 20 20 20 20 20 20 20 20   ┆s the  Printed 5/30/85          ┆
0x5e0…600 20 4d 61 72 63 68 20 35 2c 20 31 39 38 35 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ March 5, 1985                  ┆
0x600…620 20 20 20 20 20 20 20 31 0a 0a 54 52 41 4e 53 28 31 29 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆       1  TRANS(1)              ┆
0x620…640 20 55 4e 49 58 20 55 73 65 72 27 73 20 4d 61 6e 75 61 6c 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ UNIX User's Manual             ┆
0x640…660 20 20 20 54 52 41 4e 53 28 31 29 0a 0a 20 20 20 20 20 20 20 20 20 20 6f 70 65 72 61 6e 64 20 74   ┆   TRANS(1)            operand t┆
0x660…680 6f 20 74 68 65 20 6f 70 65 72 61 74 69 6f 6e 2e 0a 0a 45 58 41 4d 50 4c 45 0a 20 20 20 20 20 54   ┆o the operation.  EXAMPLE      T┆
0x680…6a0 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 70 72 6f 64 75 63 65 73 20 74 68 65 20 70 72 6f 64 75 63   ┆he following produces the produc┆
0x6a0…6c0 74 20 6f 66 20 74 68 65 20 66 69 72 73 74 20 74 77 6f 20 63 6f 6c 75 6d 6e 73 0a 20 20 20 20 20   ┆t of the first two columns      ┆
0x6c0…6e0 61 64 64 65 64 20 74 6f 20 74 68 65 20 74 68 69 72 64 20 63 6f 6c 75 6d 6e 2e 20 20 4e 6f 74 65   ┆added to the third column.  Note┆
0x6e0…700 20 74 68 61 74 20 74 68 65 20 71 75 6f 74 65 73 20 61 72 65 0a 20 20 20 20 20 72 65 71 75 69 72   ┆ that the quotes are      requir┆
0x700…720 65 64 20 62 65 63 61 75 73 65 20 74 68 65 20 2a 20 69 73 20 61 20 73 70 65 63 69 61 6c 20 63 68   ┆ed because the * is a special ch┆
0x720…740 61 72 61 63 74 65 72 20 69 6e 20 74 68 65 20 73 68 65 6c 6c 2e 0a 20 20 20 20 20 20 20 20 20 20   ┆aracter in the shell.           ┆
0x740…760 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 72 61 6e 73 20 3d 78 31 20 22 2a 78 32 22 20 2b   ┆               trans =x1 "*x2" +┆
0x760…780 78 33 0a 20 20 20 20 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 70 72 6f 64 75 63 65 73 20 74   ┆x3      The following produces t┆
0x780…7a0 68 65 20 6c 6f 67 61 72 69 74 68 6d 20 6f 66 20 74 68 65 20 73 71 75 61 72 65 20 72 6f 6f 74 20   ┆he logarithm of the square root ┆
0x7a0…7c0 6f 66 0a 20 20 20 20 20 74 77 69 63 65 20 63 6f 6c 75 6d 6e 20 32 2e 0a 20 20 20 20 20 20 20 20   ┆of      twice column 2.         ┆
0x7c0…7e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 72 61 6e 73 20 3d 78 32 20 22 2a 32 22 20 73 71   ┆               trans =x2 "*2" sq┆
0x7e0…800 72 74 20 6c 6f 67 0a 20 20 20 20 20 4e 6f 74 65 20 74 68 61 74 20 6f 6e 6c 79 20 74 68 65 20 66   ┆rt log      Note that only the f┆
0x800…820 69 72 73 74 20 63 68 61 72 61 63 74 65 72 20 6f 66 20 74 68 65 20 75 6e 61 72 79 20 6f 70 65 72   ┆irst character of the unary oper┆
0x820…840 61 74 69 6f 6e 73 0a 20 20 20 20 20 73 71 72 74 20 61 6e 64 20 6c 6f 67 20 61 72 65 20 6d 65 61   ┆ations      sqrt and log are mea┆
0x840…860 6e 69 6e 67 66 75 6c 2e 0a 0a 44 49 41 47 4e 4f 53 54 49 43 53 0a 20 20 20 20 20 41 74 20 6d 6f   ┆ningful.  DIAGNOSTICS      At mo┆
0x860…880 73 74 20 31 30 30 20 63 6f 6c 75 6d 6e 73 20 61 72 65 20 61 6c 6c 6f 77 65 64 2e 20 20 41 74 20   ┆st 100 columns are allowed.  At ┆
0x880…8a0 6d 6f 73 74 20 32 30 20 6f 70 65 72 61 74 69 6f 6e 73 20 61 72 65 0a 20 20 20 20 20 61 6c 6c 6f   ┆most 20 operations are      allo┆
0x8a0…8c0 77 65 64 2e 20 20 49 6c 6c 65 67 61 6c 20 6f 70 65 72 61 74 69 6f 6e 73 20 61 72 65 20 63 61 75   ┆wed.  Illegal operations are cau┆
0x8c0…8e0 67 68 74 20 62 65 66 6f 72 65 20 74 68 65 79 20 61 72 65 0a 20 20 20 20 20 64 6f 6e 65 2e 0a 0a   ┆ght before they are      done.  ┆
0x8e0…900 53 45 45 20 41 4c 53 4f 0a 20 20 20 20 20 75 6e 69 78 73 74 61 74 28 31 29 2c 20 61 62 75 74 28   ┆SEE ALSO      unixstat(1), abut(┆
0x900…920 31 29 2c 20 64 6d 28 31 29 0a 0a 41 55 54 48 4f 52 0a 20 20 20 20 20 47 61 72 79 20 50 65 72 6c   ┆1), dm(1)  AUTHOR      Gary Perl┆
0x920…940 6d 61 6e 0a 0a 42 55 47 53 0a 20 20 20 20 20 46 69 65 6c 64 73 20 6c 6f 6e 67 65 72 20 74 68 61   ┆man  BUGS      Fields longer tha┆
0x940…960 6e 20 32 30 20 63 68 61 72 61 63 74 65 72 73 20 61 72 65 20 74 72 75 6e 63 61 74 65 64 20 77 69   ┆n 20 characters are truncated wi┆
0x960…980 74 68 6f 75 74 20 63 6f 6d 2d 0a 20 20 20 20 20 6d 65 6e 74 2e 20 20 46 6f 72 20 6e 75 6d 65 72   ┆thout com-      ment.  For numer┆
0x980…9a0 69 63 61 6c 20 66 69 65 6c 64 73 2c 20 74 68 69 73 20 69 73 20 6e 6f 74 20 61 20 70 72 6f 62 6c   ┆ical fields, this is not a probl┆
0x9a0…9c0 65 6d 2e 0a 0a 20 20 20 20 20 5f 08 54 5f 08 72 5f 08 61 5f 08 6e 5f 08 73 20 69 73 20 61 20 70   ┆em.       _ T_ r_ a_ n_ s is a p┆
0x9c0…9e0 72 69 6d 69 74 69 76 65 20 72 65 70 6c 61 63 65 6d 65 6e 74 20 66 6f 72 20 73 79 73 74 65 6d 73   ┆rimitive replacement for systems┆
0x9e0…a00 20 74 68 61 74 20 63 61 6e 6e 6f 74 0a 20 20 20 20 20 63 6f 6d 70 69 6c 65 20 5f 08 64 5f 08 6d   ┆ that cannot      compile _ d_ m┆
0xa00…a20 2e 0a 0a 4b 45 59 57 4f 52 44 53 0a 20 20 20 20 20 73 74 61 74 69 73 74 69 63 73 2c 20 64 61 74   ┆.  KEYWORDS      statistics, dat┆
0xa20…a40 61 20 61 6e 61 6c 79 73 69 73 2c 20 64 61 74 61 20 6d 61 6e 69 70 75 6c 61 74 69 6f 6e 2f 74 72   ┆a analysis, data manipulation/tr┆
0xa40…a60 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 0a 0a 50 72 69 6e 74 65 64 20 35 2f 33 30 2f 38 35 20 20 20   ┆ansformation  Printed 5/30/85   ┆
0xa60…a80 20 20 20 20 20 20 20 20 4d 61 72 63 68 20 35 2c 20 31 39 38 35 20 20 20 20 20 20 20 20 20 20 20   ┆        March 5, 1985           ┆
0xa80…a91 20 20 20 20 20 20 20 20 20 20 20 20 20 20 32 0a 0a   ┆              2  ┆