Rev 5766 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
13463 | obado | 1 | !set lang_exists=yes |
2 | |||
1979 | bpr | 3 | !read tabletheme |
145 | bpr | 4 | 当你在WIMS上工作时, 常常需要输入数学式. |
5 | <p> |
||
6 | 数学式可用通常的方式输入: 如 <tt>3*x+5</tt> 表示 |
||
7 | !htmlmath 3x+5 |
||
8 | , <tt>sin(pi*x)</tt> 表示 |
||
9 | !htmlmath sin(pi*x) |
||
10 | , <tt>y^3+1</tt> 表示 |
||
11 | !htmlmath y^3+1 |
||
12 | , <tt>(x+1)/(y-1)</tt> 表示 |
||
13 | !set ins_align=middle |
||
14 | !instex $$$$ {x+1 \over y-1} $$$$ |
||
15 | , 等等. |
||
16 | <p> |
||
17 | 此外, WIMS能帮你纠正数学式中常犯的``错误''. 例如 <tt>3x+5</tt> 会被纠正为 |
||
18 | <tt>3*x+5</tt>, <tt>sin x</tt> 被纠正为 <tt>sin(x)</tt>, 等等. |
||
19 | 不过你不能太依赖这种``纠正'', 还是尽量输入``正确''的数学式, |
||
20 | 尽管有时会显得累赘. |
||
21 | <p> |
||
22 | 这里有一个数学函数表, 告诉你如何正确输入. |
||
23 | 在这些函数的定义域里, WIMS能识别它们(有些模块能接受更多的函数, 请参看有关模块的帮助.) |
||
24 | <p> |
||
25 | !set x=x |
||
26 | 在下表中, $x 可被其它表达式替代. |
||
27 | <p> |
||
1979 | bpr | 28 | $table_header |
29 | $table_tr<th>函数<th>说明<th>如何输入 |
||
30 | |||
31 | $table_tr<td>$m_pi |
||
145 | bpr | 32 | <td>圆周率<td> |
33 | <tt>pi</tt> 或 <tt>Pi</tt> 或 <tt>PI |
||
1979 | bpr | 34 | $table_tr<td><i>e</i><td>自然对数的底<td> |
145 | bpr | 35 | <tt>e</tt> 或 <tt>E</tt> |
1979 | bpr | 36 | |
37 | $table_tr<td>|$x|<td>$x的绝对值<td><tt>abs(x) |
||
38 | $table_tr<td>sign($x)<td>$x的符号: |
||
5766 | bpr | 39 | <br/> =-1 当$x<0<br/> =0 当$x=0<br/> =1 当$x>0 |
145 | bpr | 40 | <td><tt>sign(x) |
1979 | bpr | 41 | $table_tr<td> |
145 | bpr | 42 | !instex $$ \sqrt x $$ |
43 | <td>$x的平方根 |
||
44 | <td><tt>sqrt(x)</tt> 或 <tt>x^(1/2) |
||
2084 | zjchen | 45 | $table_tr<td> |
2085 | bpr | 46 | !instex $$ [ x ] $$ |
2084 | zjchen | 47 | <td>最接近$x的整数<td><tt>rint(x) |
48 | $table_tr<td> |
||
13463 | obado | 49 | !instex $$ \lfloor x floor $$ |
50 | <td>$m_le$x的最大整数<td><tt>floor(x) |
||
2084 | zjchen | 51 | $table_tr<td> |
52 | !instex $$ \lceil x ceil $$ |
||
13463 | obado | 53 | <td>$m_ge$x的最小整数<td><tt>ceil(x) |
54 | |||
2084 | zjchen | 55 | $table_tr<td><i>e<sup>x</sup><td>指数函数<td> |
1979 | bpr | 56 | |
57 | $table_tr<td>ln($x)<td>自然对数<td><tt>log(x)</tt> 或 <tt>ln(x) |
||
145 | bpr | 58 | $table_tr<td>lg($x)<td>常用对数<td><tt>lg(x)</tt> 或 <tt>log10(x) |
1979 | bpr | 59 | |
60 | $table_tr<td>sin($x)<td>正弦函数<td><tt>sin(x) |
||
61 | |||
62 | $table_tr<td>tg($x)<td>正切函数<td><tt>tan(x)</tt> 或 <tt>tg(x) |
||
63 | $table_tr<td>ctg($x)<td>余切函数<td><tt>cotan(x)</tt> 或 <tt>ctg(x) |
||
64 | </tt> <br/> 或 <tt>cot(x) |
||
65 | $table_tr<td>arcsin($x)<td>反正弦函数<td><tt>asin(x)</tt> 或 |
||
5766 | bpr | 66 | <tt>arcsin(x) |
1979 | bpr | 67 | $table_tr<td>arccos($x)<td>反余弦函数<td><tt>acos(x)</tt> 或 |
145 | bpr | 68 | <tt>arccos(x) |
1979 | bpr | 69 | $table_tr<td>arctg($x)<td>反正切函数<td><tt>atan(x)</tt> 或 |
145 | bpr | 70 | <tt>arctan(x)</tt> <br/>或 <tt>arctg(x) |
1979 | bpr | 71 | |
5766 | bpr | 72 | $table_tr<td>sh($x)<td>双曲正弦<td><tt>sh(x)</tt> 或 <tt>sinh(x) |
1979 | bpr | 73 | |
74 | $table_tr<td>th($x)<td>双曲正切<td><tt>th(x)</tt> 或 <tt>tanh(x) |
||
75 | $table_tr<td>Argsh($x)<td>反双曲正弦<td><tt>asinh(x)</tt> 或 <tt>argsh(x) |
||
76 | <br/>或 <tt>Argsh(x) |
||
77 | $table_tr<td>Argch($x)<td>反双曲余弦<td><tt>acosh(x)</tt> 或 <tt>argch(x) |
||
5766 | bpr | 78 | <br/>或 <tt>Argch(x) |
1979 | bpr | 79 | $table_tr<td>Argth($x)<td>反双曲正切<td><tt>atanh(x)</tt> 或 <tt>argth(x) |
5766 | bpr | 80 | <br/>或 <tt>Argth(x) |
1979 | bpr | 81 | $table_tr<td>max(x,y)<td>x与y的极大值<td><tt>max(x,y) |
5766 | bpr | 82 | $table_tr<td>min(x,y)<td>x与y的极小值<td><tt>min(x,y) |
1979 | bpr | 83 | $table_tr<td>gcd(x,y)<td>最大公约数<td><tt>gcd(x,y) |
84 | $table_tr<td>lcm(x,y)<td>最小公倍数<td><tt>lcm(x,y) |
||
85 | </table></center> |
||
86 | |||
145 | bpr | 87 |