Subversion Repositories wimsdev

Rev

Rev 5766 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5766 Rev 15681
Line 31... Line 31...
31
±¾³ÌÐòÀûÓà Huffman Ëã·¨ÔÚ¸ø³öµÄ¸ÅÂÊ·Ö²¼Ï¼ÆËã×î¼ÑµÄ¿É±ä³¤¶ÈÂë.
31
±¾³ÌÐòÀûÓà Huffman Ëã·¨ÔÚ¸ø³öµÄ¸ÅÂÊ·Ö²¼Ï¼ÆËã×î¼ÑµÄ¿É±ä³¤¶ÈÂë.
32
Á½¸ö»·¾³±äÁ¿<br/> wims_exec_parm ÊÇÓöººÅ·Ö¸ôµÄ¸ÅÂÊ·Ö²¼±í<br/> ×î´óÏîÊýÊÇ MAX_ITEMS<br/>ÊäÈëµÄÊý¾Ý½«±»Ëõ·Åµ½×ܺ͵ÈÓÚ 1<br/> w_huffman_radix ÊDZàÂëµÄ»ùÊý, ȡֵ 2 µ½ MAX_RADIX.
32
Á½¸ö»·¾³±äÁ¿<br/> wims_exec_parm ÊÇÓöººÅ·Ö¸ôµÄ¸ÅÂÊ·Ö²¼±í<br/> ×î´óÏîÊýÊÇ MAX_ITEMS<br/>ÊäÈëµÄÊý¾Ý½«±»Ëõ·Åµ½×ܺ͵ÈÓÚ 1<br/> w_huffman_radix ÊDZàÂëµÄ»ùÊý, ȡֵ 2 µ½ MAX_RADIX.
33
Á½ÐÐ<br/> µÚ 1 ÐÐ: ÒÔ¶ººÅ·Ö¸ôµÄƽ¾ùÂ볤µÄìØ<br/> µÚ 2 ÐÐ: ÒÔ¶ººÅ·Ö¸ôµÄÂë±í.
33
Á½ÐÐ<br/> µÚ 1 ÐÐ: ÒÔ¶ººÅ·Ö¸ôµÄƽ¾ùÂ볤µÄìØ<br/> µÚ 2 ÐÐ: ÒÔ¶ººÅ·Ö¸ôµÄÂë±í.
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
ÓÎÏ·
39
ÓÎÏ·
39
7 ¸öÕûÊý
40
7 ¸öÕûÊý
40
ÈçºÎ´ÓºóÃæ 6 ¸öÊýÀûÓüӼõ³Ë³ýµÃµ½µÚÒ»¸öÊý
41
ÈçºÎ´ÓºóÃæ 6 ¸öÊýÀûÓüӼõ³Ë³ýµÃµ½µÚÒ»¸öÊý
Line 45... Line 46...
45
 
46
 
46
:mathexp
47
:mathexp
47
Xiao Gang
48
Xiao Gang
48
WIMS ʹÓõÄÊýѧ±í´ïʽ
49
WIMS ʹÓõÄÊýѧ±í´ïʽ
49
 
50
 
-
 
51
:moneyprint
-
 
52
J.M. Evers
-
 
53
prints a number with fixed amount of decimal places
-
 
54
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
 
50
 
56
 
-
 
57
:msg2wims
-
 
58
Xiao Gang
-
 
59
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
-
 
60
name of a file
-
 
61
modified text of the input file
-
 
62
 
-
 
63
 
-
 
64
:oncechar
-
 
65
Xiao Gang
-
 
66
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
-
 
67
Selected characters are entered by the env var 'oncechar'. Words entered by stdin. Output to stdout.
-
 
68
 
-
 
69
 
-
 
70
 
-
 
71
:scienceprint
-
 
72
J.M. Evers
-
 
73
Prints a number in scientific notation.
-
 
74
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&times;10<sup>-4</sup></li><li>2 : latex format : 1.234\times10^{-4}</li><li>3 : prefix format : 1.234&times;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>&times;</mo><msup><mn>10</mn><mn>-4</mn></msup></mstyle></math></li><li>5 : long prefix format : 1.234&times;10<sup>-1</sup> milli</li></ul>
-
 
75
 
-
 
76
 
51
:shortpath
77
:shortpath
52
Xiao Gang
78
Xiao Gang
53
ÕÒ³öÁ¬½Ó¸ø¶¨µãµÄ×î¶Ì·¾¶
79
ÕÒ³öÁ¬½Ó¸ø¶¨µãµÄ×î¶Ì·¾¶
54
wims_exec_parm ÊÇ ... . w_shortpath_style : 0: ·µ»ØÆðµã<br/> 1: ÈÎÒâ²»±ÕºÏµÄ·¾¶<br/> 2: Ö¸¶¨ÆðµãµÄ²»±ÕºÏ·¾¶<br/> 3: Ö¸¶¨ÖÕµãµÄ²»±ÕºÏ·¾¶<br/> 4: Ö¸¶¨ÆðµãÓëÖÕµãµÄ²»±ÕºÏ·¾¶
80
wims_exec_parm ÊÇ ... . w_shortpath_style : 0: ·µ»ØÆðµã<br/> 1: ÈÎÒâ²»±ÕºÏµÄ·¾¶<br/> 2: Ö¸¶¨ÆðµãµÄ²»±ÕºÏ·¾¶<br/> 3: Ö¸¶¨ÖÕµãµÄ²»±ÕºÏ·¾¶<br/> 4: Ö¸¶¨ÆðµãÓëÖÕµãµÄ²»±ÕºÏ·¾¶
55
 
81
 
56
shortpath_style=0
82
shortpath_style=0
57
1,3\\5,1\\3,4\\1,1\\3,1\\4,5
83
1,3\\5,1\\3,4\\1,1\\3,1\\4,5
58
 
84
 
59
 
85
 
-
 
86
:translator
-
 
87
Xiao Gang
-
 
88
¸ù¾Ý´ÊµäÖ±Òë
-
 
89
ÓÃÓÚ adm Ä£¿é
-
 
90
 
-
 
91
 
60
:voronoi
92
:voronoi
61
Steve J. Fortune
93
Steve J. Fortune
62
¼ÆËã Voronoi ͼ»ò Delaunay Èý½Ç»¯. ´Ó±ê×¼ÊäÈë¶ÁÈëÆ½Ãæµã¼¯, È»ºó´Ó±ê×¼Êä³öд³ö Voronoi ͼ»ò Delaunay Èý½Ç»¯.
94
¼ÆËã Voronoi ͼ»ò Delaunay Èý½Ç»¯. ´Ó±ê×¼ÊäÈë¶ÁÈëÆ½Ãæµã¼¯, È»ºó´Ó±ê×¼Êä³öд³ö Voronoi ͼ»ò Delaunay Èý½Ç»¯.
63
ÿ¸öÊäÈëÐÐÓÉÁ½¸öÓÿոñ·Ö¸ôµÄʵÊý¹¹³É.
95
ÿ¸öÊäÈëÐÐÓÉÁ½¸öÓÿոñ·Ö¸ôµÄʵÊý¹¹³É.
64
Èç¹ûʹÓÃÁËÑ¡Ïî -t, ÔòÉú³É Delaunay Èý½Ç»¯. ÿ¸öÊä³öÐж¼ÊÇÈýÔª×é	i j k ËüÃÇÊÇ Delaunay Èý½Ç»¯ÀïÈý¸öµãµÄ±êºÅ.<br/> ´Ó 0 ¿ªÊ¼¼ÆÊý. <br/>Èç¹û´ËÑ¡Ïî²»³öÏÖ, ÔòÉú³É Voronoi ͼ.<br/> ÓÐËÄÖÖÊä³ö¼Ç¼ÀàÐÍ.<br/> 	s a b ±íʾ´Ë×ø±êµÄÊäÈëµã  	l a b c ±íʾ·½³ÌΪ ax + by = c µÄÖ±Ïß.<br/> 	v a b ±íʾÔÚ a b µÄ¶¥µã.<br/> 	e l v1 v2 ±íʾһ¸ö Voronoi ¶Î(segment), ËüÊÇµÚ l ÌõÖ±ÏßµÄ×Ó¶Î; ¶Ëµã±àºÅΪ v1 Óë v2.<br/>  Èç v1 »ò v2 ÊÇ -1, ±íʾֱÏßÉìÕ¹ÖÁÎÞÏÞ.
96
Èç¹ûʹÓÃÁËÑ¡Ïî -t, ÔòÉú³É Delaunay Èý½Ç»¯. ÿ¸öÊä³öÐж¼ÊÇÈýÔª×é	i j k ËüÃÇÊÇ Delaunay Èý½Ç»¯ÀïÈý¸öµãµÄ±êºÅ.<br/> ´Ó 0 ¿ªÊ¼¼ÆÊý. <br/>Èç¹û´ËÑ¡Ïî²»³öÏÖ, ÔòÉú³É Voronoi ͼ.<br/> ÓÐËÄÖÖÊä³ö¼Ç¼ÀàÐÍ.<br/> 	s a b ±íʾ´Ë×ø±êµÄÊäÈëµã  	l a b c ±íʾ·½³ÌΪ ax + by = c µÄÖ±Ïß.<br/> 	v a b ±íʾÔÚ a b µÄ¶¥µã.<br/> 	e l v1 v2 ±íʾһ¸ö Voronoi ¶Î(segment), ËüÊÇµÚ l ÌõÖ±ÏßµÄ×Ó¶Î; ¶Ëµã±àºÅΪ v1 Óë v2.<br/>  Èç v1 »ò v2 ÊÇ -1, ±íʾֱÏßÉìÕ¹ÖÁÎÞÏÞ.
65
 
97
 
66
-t 5 7\\2 8\\7 6\\3 5\\1 2\\8 1\\4 3\\6 4
98
-t 5 7\\2 8\\7 6\\3 5\\1 2\\8 1\\4 3\\6 4
67
 
-
 
68
:translator
-
 
69
Xiao Gang
-
 
70
¸ù¾Ý´ÊµäÖ±Òë
-
 
71
ÓÃÓÚ adm Ä£¿é
-
 
72
 
99