Rev 14857 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 14857 | Rev 15681 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | This program computes an optimal coding of variable lengths on a given distribution of probabilities, using Huffman algorithm. |
31 | This program computes an optimal coding of variable lengths on a given distribution of probabilities, using Huffman algorithm. |
32 | Two environment variables<br/> wims_exec_parm is a comma-separated list of probability distributions<br/> Limited to MAX_ITEMS<br/>The input data will be scaled to unit sum<br/> w_huffman_radix is the encoding radix, between 2 and MAX_RADIX. |
32 | Two environment variables<br/> wims_exec_parm is a comma-separated list of probability distributions<br/> Limited to MAX_ITEMS<br/>The input data will be scaled to unit sum<br/> w_huffman_radix is the encoding radix, between 2 and MAX_RADIX. |
33 | two lines<br/> Line 1: Entropy and Average code length, comma-separated<br/> Line 2: comma-separated list of codes. |
33 | two lines<br/> Line 1: Entropy and Average code length, comma-separated<br/> Line 2: comma-separated list of codes. |
34 | huffman_radix=4 |
34 | huffman_radix=4 |
35 | 0.16, 0.39, 0.55 |
35 | 0.16, 0.39, 0.55 |
- | 36 | ||
36 | :lceb |
37 | :lceb |
37 | Lucas Nussbaum, lucas@lucas-nussbaum.net |
38 | Lucas Nussbaum, lucas@lucas-nussbaum.net |
38 | jeu "le compte est bon" |
39 | jeu "le compte est bon" |
39 | 7 integers |
40 | 7 integers |
40 | How to obtain the first number from the six other ones by addition, multiplication, division, substraction |
41 | How to obtain the first number from the six other ones by addition, multiplication, division, substraction |
Line 45... | Line 46... | ||
45 | 46 | ||
46 | :mathexp |
47 | :mathexp |
47 | Xiao Gang |
48 | Xiao Gang |
48 | Mathematical expression manipulations for WIMS |
49 | Mathematical expression manipulations for WIMS |
49 | For the moment, use only in deductio |
50 | For the moment, use only in deductio |
50 | 51 | ||
51 | :moneyprint |
52 | :moneyprint |
- | 53 | J.M. Evers |
|
52 | prints a number with fixed amount of decimal places |
54 | prints a number with fixed amount of decimal places |
53 | Usage:!exec moneyprint number1,number2,number3,....number_n decimal_places<br />or !exec moneyprint number1,number2,number3;....number_n decimal_places<br />\text{A=wims(exec moneyprint number1,number2,number3....number_n decimal_places)}<br />default value "decimal_places = 2"<br />A=!exec moneyprint 123,43.5,23.45665<br />A=123.00,43.50,23.47<br/>A=!exec moneyprint 1.000,6.234;8.4567<br />A=1.00,6.23;8.46<br />or specified a last "word"<br />A=!exec moneyprint 123,43.5,23.45665 3 <br />A=123.000,43.500,23.457 |
55 | Usage:!exec moneyprint number1,number2,number3,....number_n decimal_places<br />or !exec moneyprint number1,number2,number3;....number_n decimal_places<br />\text{A=wims(exec moneyprint number1,number2,number3....number_n decimal_places)}<br />default value "decimal_places = 2"<br />A=!exec moneyprint 123,43.5,23.45665<br />A=123.00,43.50,23.47<br/>A=!exec moneyprint 1.000,6.234;8.4567<br />A=1.00,6.23;8.46<br />or specified a last "word"<br />A=!exec moneyprint 123,43.5,23.45665 3 <br />A=123.000,43.500,23.457 |
- | 56 | ||
- | 57 | ||
- | 58 | :msg2wims |
|
- | 59 | Xiao Gang |
|
- | 60 | transforms a text in a file and save it in another file (administrative module). Transforms some commands of the form \ in wims equivalence. By default, the commands are \(\) (replace by !insmath) and translation in html of $$, !, (to complete). More commands can be translated by the configuration of the variable msg2wims_primitives. Usage:!sh cd $$wims_home; bin/msg2wims file_in > file_out |
|
- | 61 | name of a file |
|
- | 62 | modified text of the input file |
|
- | 63 | ||
- | 64 | ||
- | 65 | :oncechar |
|
- | 66 | Xiao Gang |
|
- | 67 | This special program selects words composed by selected characters, each selected character being used at most once in the word. Used in the shell script public_html/bin/dicfind |
|
- | 68 | Selected characters are entered by the env var 'oncechar'. Words entered by stdin. Output to stdout. |
|
- | 69 | ||
- | 70 | ||
- | 71 | ||
- | 72 | :scienceprint |
|
- | 73 | J.M. Evers |
|
- | 74 | Prints a number in scientific notation. |
|
- | 75 | Usage: !exec scienceprint number,significant_digits,output_type<br />\text{A=wims(exec scienceprint number,significant_digits,output_type )}<br />output_type can be<ul><li>0 : calculating format : 1.234*10^-4</li><li>1 : html format :1.234×10<sup>-4</sup></li><li>2 : latex format : 1.234\times10^{-4}</li><li>3 : prefix format : 1.234×10<sup>-1</sup> m</li><li>4 : mathml format : <math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><mstyle id="wims_mathml" mathsize="110%"><mn>1.234</mn><mo>×</mo><msup><mn>10</mn><mn>-4</mn></msup></mstyle></math></li><li>5 : long prefix format : 1.234×10<sup>-1</sup> milli</li></ul> |
|
54 | 76 | ||
55 | 77 | ||
56 | :shortpath |
78 | :shortpath |
57 | Xiao Gang |
79 | Xiao Gang |
58 | Finds the shortest paths linking given points |
80 | Finds the shortest paths linking given points |
59 | wims_exec_parm is ... . w_shortpath_style : 0: loop to the start<br/> 1: arbitrary open path<br/> 2: open path with fixed start<br/> 3: open path with fixed end<br/> 4: open path with fixed start and end |
81 | wims_exec_parm is ... . w_shortpath_style : 0: loop to the start<br/> 1: arbitrary open path<br/> 2: open path with fixed start<br/> 3: open path with fixed end<br/> 4: open path with fixed start and end |
60 | 82 | ||
61 | shortpath_style=0 |
83 | shortpath_style=0 |
62 | 1,3\\5,1\\3,4\\1,1\\3,1\\4,5 |
84 | 1,3\\5,1\\3,4\\1,1\\3,1\\4,5 |
- | 85 | ||
63 | 86 | ||
64 | : |
87 | :translator |
65 |
|
88 | Xiao Gang |
66 |
|
89 | Versatile translation according to a dictionary |
- | 90 | for adm modules |
|
67 | Usage: !exec scienceprint number,significant_digits,output_type<br />\text{A=wims(exec scienceprint number,significant_digits,output_type )}<br />output_type can be<ul><li>0 : calculating format : 1.234*10^-4</li><li>1 : html format :1.234×10<sup>-4</sup></li><li>2 : latex format : 1.234\times10^{-4}</li><li>3 : prefix format : 1.234×10<sup>-1</sup> m</li><li>4 : mathml format : <math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><mstyle id="wims_mathml" mathsize="110%"><mn>1.234</mn><mo>×</mo><msup><mn>10</mn><mn>-4</mn></msup></mstyle></math></li><li>5 : long prefix format : 1.234×10<sup>-1</sup> milli</li></ul> |
91 | |
68 | 92 | ||
69 | :voronoi |
93 | :voronoi |
70 | Steve J. Fortune |
94 | Steve J. Fortune |
71 | compute Voronoi diagram or Delaunay triangulation. Voronoi reads the standard input for a set of points in the plane and writes either the Voronoi diagram or the Delaunay triangulation to the standard output. |
95 | compute Voronoi diagram or Delaunay triangulation. Voronoi reads the standard input for a set of points in the plane and writes either the Voronoi diagram or the Delaunay triangulation to the standard output. |
72 | Each input line should consist of two real numbers, separated by white space. |
96 | Each input line should consist of two real numbers, separated by white space. |
73 | If option -t is present, the Delaunay triangulation is produced. Each output line is a triple i j k which are the indices of the three points in a Delaunay triangle.<br/> Points are numbered starting at 0. <br/>If this option is not present, the Voronoi diagram is produced.<br/> There are four output record types.<br/> s a b indicates that an input point at coordinates l a b c indicates a line with equation ax + by = c.<br/> v a b indicates a vertex at a b.<br/> e l v1 v2 indicates a Voronoi segment which is a subsegment of line number l; with endpoints numbered v1 and v2.<br/> If v1 or v2 is -1, the line extends to infinity. |
97 | If option -t is present, the Delaunay triangulation is produced. Each output line is a triple i j k which are the indices of the three points in a Delaunay triangle.<br/> Points are numbered starting at 0. <br/>If this option is not present, the Voronoi diagram is produced.<br/> There are four output record types.<br/> s a b indicates that an input point at coordinates l a b c indicates a line with equation ax + by = c.<br/> v a b indicates a vertex at a b.<br/> e l v1 v2 indicates a Voronoi segment which is a subsegment of line number l; with endpoints numbered v1 and v2.<br/> If v1 or v2 is -1, the line extends to infinity. |
74 | 98 | ||
75 | -t 5 7\\2 8\\7 6\\3 5\\1 2\\8 1\\4 3\\6 4 |
99 | -t 5 7\\2 8\\7 6\\3 5\\1 2\\8 1\\4 3\\6 4 |
76 | - | ||
77 | :translator |
- | |
78 | Xiao Gang |
- | |
79 | Versatile translation according to a dictionary |
- | |
80 | for adm modules |
- | |
81 | - | ||
82 | :oncechar |
- | |
83 | Xiao Gang |
- | |
84 | This special program selects words composed by selected characters, each selected character being used at most once in the word. Used in the shell script public_html/bin/dicfind |
- | |
85 | Selected characters are entered by the env var 'oncechar'. Words entered by stdin. Output to stdout. |
- | |
86 | - | ||
87 | :msg2wims |
- | |
88 | Xiao Gang |
- | |
89 | transforms a text in a file and save it in another file (administrative module). Transforms some commands of the form \ in wims equivalence. By default, the commands are \(\) (replace by !insmath) and translation in html of $$, !, (to complete). More commands can be translated by the configuration of the variable msg2wims_primitives. Usage:!sh cd $$wims_home; bin/msg2wims file_in > file_out |
- | |
90 | name of a file |
- | |
91 | modified text of the input file |
- | |
92 | - | ||
93 | - | ||
94 | - | ||
95 | - | ||
96 | 100 |