Subversion Repositories wimsdev

Rev

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

Rev 5903 Rev 15107
Line 1... Line 1...
1
 
1
 
2
<h3>How to write mathematical formulas in your exercises.</h3>
2
<h2>Comment écrire les mathématiques dans votre exercice.</h2>
3
 
3
 
4
You may embed mathematical symbols and formulas into the statement (when it
-
 
5
is of html format), hint and solution.
-
 
6
<p>
4
<p>
7
If you simply want to insert some mathematical symbols or greek letters,
5
Vous pouvez inclure des symboles et formules mathématiques dans l'énoncé
-
 
6
(quand il est sous format html), indication et solution.
-
 
7
</p><p>
8
you just need to type a <span class="tt wims_code_words">\</span> followed by the name of
8
Si vous voulez simplement insérer quelques symboles mathématiques ou
9
the symbol or greek letter (if you have not used this name in your parameter
9
caractères grecs, vous avez juste besoin de taper un
-
 
10
<span class="tt wims_code_words">\</span> suivi du nom du symbole ou caractère grec. Par exemple,
10
definitions). For example, <span class="tt wims_code_variable">\pi</span> gives you $m_pi,
11
<span class="tt wims_code_variable">\pi</span> vous donne $m_pi, <span class="tt wims_code_variable">\le</span> donne $m_le,
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
<span class="tt wims_code_variable">\pm</span> donne $m_pm, <span class="tt wims_code_variable">\rightarrow</span> donne
12
$m_rightarrow, etc. The names of the symbols follow the standard TeX
13
$m_rightarrow, etc. Les noms des symboles suivent la convention
13
convention. Here is a
14
standard de TeX. En voici une
14
!href target=wims_help module=help/wimsdoc.en&subject=mathfonts#mathfonts list of mathematical symbols and their names
15
!href target=wims_help module=help/wimsdoc.en&subject=mathfonts#mathfonts liste
15
 (replace <span class="tt wims_code_words">$$m_</span> by <span class="tt wims_code_words">\</span> in the names).
16
 (remplacez <span class="tt wims_code_words">$$m_</span> par <span class="tt wims_code_words">\</span> dans les noms).
16
<p>
17
</p><p>
17
More generally, to insert a whole mathematical formula, you
18
Plus généralement, pour insérer une formule mathematique entière,
18
can type the formula in the usual way as if you enter it into any
19
vous pouvez taper la formule de façon habituelle comme si vous l'entrez dans
19
mathematical software or any computational tool under WIMS. In order to make
20
un logiciel mathématique ou une page d'outil de calcul sous WIMS. Pour que la
20
the formula formatted and shown beautifully, you have
21
formule soit formattée et montrée joliement, vous n'avez qu
21
only to enclose it in a pair of parentheses preceded by a backslash \. For
22
l'enfermer dans une paire de parenthèses précédées par le caractère \. Par
22
example, <span class="tt wims_code_words">\(x^3-3x+cos(2pi*x)^5)</span> gives you
23
exemple, <span class="tt wims_code_words">\(x^3-3x+cos(2pi*x)^5)</span> vous donne
23
!insmath x^3-3*x+cos(2pi*x)^5
24
!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
25
, ou <span class="tt wims_code_words">\(sqrt(x^2+y^2))</span> vous donne
25
!insmath sqrt(x^2+y^2)
26
!insmath sqrt(x^2+y^2)
26
. You can type <span class="tt wims_code_words">\(integrate(x^2+1)dx)</span> for
27
. Vous pouvez taper <span class="tt wims_code_words">\(integrate(x^2+1)dx)</span> pour
27
!insmath integrate(x^2+1)*dx
28
!insmath integrate(x^2+1)*dx
28
, or <span class="tt wims_code_words">\(integrate(exp(x^2+1),x=1..infinity))</span> for
29
, ou <span class="tt wims_code_words">\(integrate(exp(x^2+1),x=1..infinity))</span> pour
29
!insmath integrate(exp(x^2+1),x=1..infinity)
30
!insmath integrate(exp(x^2+1),x=1..infinity)
30
. You can also write the sum
31
. Vous pouvez aussi écrire la somme
31
!insmath sum(1/n^2,n=1..infinity)
32
!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
33
 via <span class="tt wims_code_words">\(sum(1/n^2,n=1..infinity)</span>, ou le produit
33
!insmath product(n/(n+1),n=1..infinity)
34
!insmath product(n/(n+1),n=1..infinity)
34
 using <span class="tt wims_code_words">\(product(n/(n+1),n=1..infinity)</span>.
35
 via <span class="tt wims_code_words">\(product(n/(n+1),n=1..infinity)</span>.
35
<p>
36
</p><p>
36
More helps on how to enter mathematical expressions are in
37
D'autres aides sur la manière d'écrire des expressions mathématiques sont dans
37
!href target=wims_help module=help/main&chapter=1&open=1_math#math this page
38
!href target=wims_help module=help/main&chapter=1&open=1_math#math cette page
38
.
39
.
39
<p>
40
</p><p>
40
To show a matrix
41
Pour montrer une matrice
41
!insmath [1,2,3;4,5,6;7,8,9]
42
!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
43
, vous devez taper <span class="tt wims_code_words">\([1,2,3;4,5,6;7,8,9])</span>. Des matrices dans les
43
accepted (and will be rendered correctly).
44
matrices sont acceptées (et seront montrées correctement).
44
<p>
45
</p><p>
45
For experts in TeX or LaTeX, please notice that whenever the software sees a formula
46
Pour les experts de TeX ou LaTeX, notez que quand le logiciel voit une formule
46
enclosed in a pair of parentheses preceded by <span class="tt wims_code_words">\</span> which contains
47
enfermée dans une paire de parenthèses précédées par <span class="tt wims_code_words">\</span>, qui contient
-
 
48
des commandes spécifiques à TeX ou LaTeX, il va l'interpréter en tant que source
47
backslashes, it will interpret it as a TeX source, and will directly try to
49
TeX, et donc va l'envoyer directement à TeX pour formatage. Ceci vous permet
48
format it by TeX. This will allow you to write very sophisticated formulas if
50
d'écrire des formules très sophistiquées si vous savez comment les écrire en TeX.
49
you know how to write them in the TeX way.
51
Dans le cas  vous voulez forcer une formule à être une image produite par
50
TeX ou LaTeX, you can write inside the parentheses <span class="tt wims_code_words">\displaystyle</span> or
52
TeX ou LaTeX, écrivez dans les parenthèses <span class="tt wims_code_words">\displaystyle</span>
51
an empty pair of braces <span class="tt wims_code_words">{}</span>.
53
ou une paire d'accolades vide <span class="tt wims_code_words">{}</span>.
52
For example, you will get &nbsp;
54
Par exemple, vous obtiendrez &nbsp;
53
!insmath \displaystyle a
55
!insmath \displaystyle a
54
&nbsp;  &nbsp; via <span class="tt wims_code_words">\(\displaystyle a )</span>
56
 $ via <span class="tt wims_code_words">\(\displaystyle a )</span>
55
or <span class="tt wims_code_words">\({} a )</span>
57
ou <span class="tt wims_code_words">\({} a )</span>
56
and &nbsp;
58
et &nbsp;
57
!insmath a
59
!insmath a
58
&nbsp;  &nbsp; via <span class="tt wims_code_words">\( a )</span>.
60
 $ via <span class="tt wims_code_words">\( a )</span>.
59
 
61
 
60
<p>
62
</p><p>
61
And the most complete way to use TeX in your exercise is to choose
63
La façon la plus complète d'utiliser TeX dans votre exercice peut être de choisir
62
!href cmd=help&special_parm=format TeX format
64
!href cmd=help&special_parm=format le format TeX
-
 
65
 (pour l'énoncé seulement). Mais vous n'avez alors le droit à aucune commande
63
 (for the statement only).
66
 html.
-
 
67
</p>