Subversion Repositories wimsdev

Rev

Rev 5903 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5903 Rev 17472
Line 11... Line 11...
11
<span class="tt wims_code_variable">\le</span> gives $m_le, <span class="tt wims_code_variable">\pm</span> gives $m_pm, <span class="tt wims_code_variable">\rightarrow</span> gives
11
<span class="tt wims_code_variable">\le</span> gives $m_le, <span class="tt wims_code_variable">\pm</span> gives $m_pm, <span class="tt wims_code_variable">\rightarrow</span> gives
12
$m_rightarrow, etc. The names of the symbols follow the standard TeX
12
$m_rightarrow, etc. The names of the symbols follow the standard TeX
13
convention. Here is a
13
convention. Here is a
14
!href target=wims_help module=help/wimsdoc.en&subject=mathfonts#mathfonts list of mathematical symbols and their names
14
!href target=wims_help module=help/wimsdoc.en&subject=mathfonts#mathfonts list of mathematical symbols and their names
15
 (replace <span class="tt wims_code_words">$$m_</span> by <span class="tt wims_code_words">\</span> in the names).
15
 (replace <span class="tt wims_code_words">$$m_</span> by <span class="tt wims_code_words">\</span> in the names).
16
<p>
16
</p><p>
17
More generally, to insert a whole mathematical formula, you
17
More generally, to insert a whole mathematical formula, you
18
can type the formula in the usual way as if you enter it into any
18
can type the formula in the usual way as if you enter it into any
19
mathematical software or any computational tool under WIMS. In order to make
19
mathematical software or any computational tool under WIMS. In order to make
20
the formula formatted and shown beautifully, you have
20
the formula formatted and shown beautifully, you have
21
only to enclose it in a pair of parentheses preceded by a backslash \. For
21
only to enclose it in a pair of parentheses preceded by a backslash \. For
22
example, <span class="tt wims_code_words">\(x^3-3x+cos(2pi*x)^5)</span> gives you
22
example, <span class="tt wims_code_words">\(x^3-3x+cos(2pi*x)^5\)</span> gives you
23
!insmath x^3-3*x+cos(2pi*x)^5
23
!insmath x^3-3*x+cos(2pi*x)^5
24
, or <span class="tt wims_code_words">\(sqrt(x^2+y^2))</span> gives you
24
, or <span class="tt wims_code_words">\(sqrt(x^2+y^2)\)</span> gives you
25
!insmath sqrt(x^2+y^2)
25
!insmath sqrt(x^2+y^2)
26
. You can type <span class="tt wims_code_words">\(integrate(x^2+1)dx)</span> for
26
. You can type <span class="tt wims_code_words">\(integrate(x^2+1)dx\)</span> for
27
!insmath integrate(x^2+1)*dx
27
!insmath integrate(x^2+1)*dx
28
, or <span class="tt wims_code_words">\(integrate(exp(x^2+1),x=1..infinity))</span> for
28
, or <span class="tt wims_code_words">\(integrate(exp(x^2+1),x=1..infinity)\)</span> for
29
!insmath integrate(exp(x^2+1),x=1..infinity)
29
!insmath integrate(exp(x^2+1),x=1..infinity)
30
. You can also write the sum
30
. You can also write the sum
31
!insmath sum(1/n^2,n=1..infinity)
31
!insmath sum(1/n^2,n=1..infinity)
32
 using <span class="tt wims_code_words">\(sum(1/n^2,n=1..infinity)</span>, or the product
32
 using <span class="tt wims_code_words">\(sum(1/n^2,n=1..infinity)\)</span>, or the product
33
!insmath product(n/(n+1),n=1..infinity)
33
!insmath product(n/(n+1),n=1..infinity)
34
 using <span class="tt wims_code_words">\(product(n/(n+1),n=1..infinity)</span>.
34
 using <span class="tt wims_code_words">\(product(n/(n+1),n=1..infinity)\)</span>.
35
<p>
35
</p><p>
36
More helps on how to enter mathematical expressions are in
36
More helps on how to enter mathematical expressions are in
37
!href target=wims_help module=help/main&chapter=1&open=1_math#math this page
37
!href target=wims_help module=help/main&chapter=1&open=1_math#math this page
38
.
38
.
39
<p>
39
</p><p>
40
To show a matrix
40
To show a matrix
41
!insmath [1,2,3;4,5,6;7,8,9]
41
!insmath [1,2,3;4,5,6;7,8,9]
42
, you should type <span class="tt wims_code_words">\([1,2,3;4,5,6;7,8,9])</span>. Nested matrices are
42
, you should type <span class="tt wims_code_words">\([1,2,3;4,5,6;7,8,9]\)</span>. Nested matrices are
43
accepted (and will be rendered correctly).
43
accepted (and will be rendered correctly).
44
<p>
44
<p>
45
For experts in TeX or LaTeX, please notice that whenever the software sees a formula
45
For experts in TeX or LaTeX, please notice that whenever the software sees a formula
46
enclosed in a pair of parentheses preceded by <span class="tt wims_code_words">\</span> which contains
46
enclosed in a pair of parentheses preceded by <span class="tt wims_code_words">\</span> which contains
47
backslashes, it will interpret it as a TeX source, and will directly try to
47
backslashes, it will interpret it as a TeX source, and will directly try to
Line 49... Line 49...
49
you know how to write them in the TeX way.
49
you know how to write them in the TeX way.
50
TeX ou LaTeX, you can write inside the parentheses <span class="tt wims_code_words">\displaystyle</span> or
50
TeX ou LaTeX, you can write inside the parentheses <span class="tt wims_code_words">\displaystyle</span> or
51
an empty pair of braces <span class="tt wims_code_words">{}</span>.
51
an empty pair of braces <span class="tt wims_code_words">{}</span>.
52
For example, you will get &nbsp;
52
For example, you will get &nbsp;
53
!insmath \displaystyle a
53
!insmath \displaystyle a
54
&nbsp;  &nbsp; via <span class="tt wims_code_words">\(\displaystyle a )</span>
54
&nbsp;  &nbsp; via <span class="tt wims_code_words">\(\displaystyle a \)</span>
55
or <span class="tt wims_code_words">\({} a )</span>
55
or <span class="tt wims_code_words">\({} a \)</span>
56
and &nbsp;
56
and &nbsp;
57
!insmath a
57
!insmath a
58
&nbsp;  &nbsp; via <span class="tt wims_code_words">\( a )</span>.
58
&nbsp;  &nbsp; via <span class="tt wims_code_words">\( a \)</span>.
59
 
59
 
60
<p>
60
</p><p>
61
And the most complete way to use TeX in your exercise is to choose
61
And the most complete way to use TeX in your exercise is to choose
62
!href cmd=help&special_parm=format TeX format
62
!href cmd=help&special_parm=format TeX format
63
 (for the statement only).
63
 (for the statement only).
-
 
64
</p>