Subversion Repositories wimsdev

Rev

Rev 15681 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2930 zjchen 1
:checkmol
2
Norbert Haider, norbert.haider@univie.ac.at, modified by Ernst-Georg Schmid
3
 
4
:curvecomp
5
Xiao Gang
6
比较两条曲线
17228 bpr 7
输入参数: 环境.<br>  w_curvecomp_1 and w_curvecomp_2: 欲比较的曲线, 作为点的列表.<br>  w_curvecomp_xrange and w_curvecomp_yrange: 两个整数, 比较的范围<br>  w_curvecomp_tolerance: 距离比较的容许误差.
8
输出: 以空格分隔的 10 个双精度数:<br>- 曲线 1 关于曲线 2 的平均距离.<br> -  曲线 2 关于曲线 1 的平均距离.<br> - 曲线 1 关于曲线 2 的最大距离.<br> - 曲线 2 关于曲线 1 的最大距离.<br> - 曲线 1 接近曲线 2 的比例.<br> - 曲线 2 接近曲线 1 的比例.<br> -  曲线 1 的最大跳跃.<br> - 曲线 2 的最大跳跃.<br> - 曲线 1 的重复比.<br> 第 10 个数: 曲线 2 的重复比.<br> 此外, 如曲线 2 表示为 x (与/或 y) 的函数图像, 则将出现 "fnofx" 与/或 "fnofy".<br> 当其中一条曲线退化时, 返回空.
2930 zjchen 9
curvecomp_1=0,92,1,92,2,92,3,92\\curvecomp_2=46,41,48,41,50,45\\curvecomp_tolerance=40\\curvecomp_xrange=11,208\\curvecomp_yrange=0,220
10
xx
11
 
12
:cyclicode
13
Xiao Gang
17228 bpr 14
此程序从一个素数域上的多项式生成循环码. 它并不检验此多项式是否本原或不可约.
15
可接受的参数: 3 个词<br> 第 1 个词: 域的特征, 限于 2,3,5,7<br> 第 2 个词: 多项式的系数 (除首项系数外, 从低次到高次).<br>第 3 个词: 初始状态 (从第一个 bit 开始).
2930 zjchen 16
 
17
 
18
3 22 10
19
 
20
:dicfind
21
Xiao Gang
22
用于 adm 模块
23
 
24
:dicsort
25
Xiao Gang
26
词典排序
27
用于 adm 模块
28
 
29
:huffman
30
Xiao Gang
31
本程序利用 Huffman 算法在给出的概率分布下计算最佳的可变长度码.
17228 bpr 32
两个环境变量<br> wims_exec_parm 是用逗号分隔的概率分布表<br> 最大项数是 MAX_ITEMS<br>输入的数据将被缩放到总和等于 1<br> w_huffman_radix 是编码的基数, 取值 2 到 MAX_RADIX.
33
两行<br> 第 1 行: 以逗号分隔的平均码长的熵<br> 第 2 行: 以逗号分隔的码表.
2930 zjchen 34
huffman_radix=4
35
0.16, 0.39, 0.55
15681 reyssat 36
 
2930 zjchen 37
:lceb
38
Lucas Nussbaum <lucas@lucas-nussbaum.net>
39
游戏
40
7 个整数
41
如何从后面 6 个数利用加减乘除得到第一个数
42
 
43
598 6 8 2 5 10 12
44
:matchmol
45
Norbert Haider, norbert.haider@univie.ac.at, modified by Ernst-Georg Schmid
46
 
47
:mathexp
48
Xiao Gang
49
WIMS 使用的数学表达式
50
 
15681 reyssat 51
:moneyprint
52
J.M. Evers
53
prints a number with fixed amount of decimal places
17228 bpr 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
2930 zjchen 55
 
15681 reyssat 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.
17228 bpr 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>
15681 reyssat 75
 
76
 
2930 zjchen 77
:shortpath
78
Xiao Gang
79
找出连接给定点的最短路径
17228 bpr 80
wims_exec_parm 是 ... . w_shortpath_style : 0: 返回起点<br> 1: 任意不闭合的路径<br> 2: 指定起点的不闭合路径<br> 3: 指定终点的不闭合路径<br> 4: 指定起点与终点的不闭合路径
2930 zjchen 81
 
82
shortpath_style=0
83
1,3\\5,1\\3,4\\1,1\\3,1\\4,5
84
 
85
 
15681 reyssat 86
:translator
87
Xiao Gang
88
根据词典直译
89
用于 adm 模块
90
 
91
 
2930 zjchen 92
:voronoi
93
Steve J. Fortune
94
计算 Voronoi 图或 Delaunay 三角化. 从标准输入读入平面点集, 然后从标准输出写出 Voronoi 图或 Delaunay 三角化.
95
每个输入行由两个用空格分隔的实数构成.
17228 bpr 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, 表示直线伸展至无限.
2930 zjchen 97
 
98
-t 5 7\\2 8\\7 6\\3 5\\1 2\\8 1\\4 3\\6 4
99