Subversion Repositories wimsdev

Rev

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

Rev 9076 Rev 9227
Line 30... Line 30...
30
 
30
 
31
:keywords
31
:keywords
32
1
32
1
33
Exercise keywords
33
Exercise keywords
34
 
34
 
-
 
35
:credits
-
 
36
1
-
 
37
allows to insert credits at the end of the exercise (variables are evaluated).
-
 
38
 
-
 
39
:description
-
 
40
1
-
 
41
description of the exercise for the students
-
 
42
 
-
 
43
:observation
-
 
44
1
-
 
45
description of the exercise for the teacher
-
 
46
 
35
:precision
47
:precision
36
1
48
1
37
precision in comparing user's reply with the solution. Give a positive integer n here: the comparison will be done to the precision of 1/n.
49
precision in comparing user's reply with the solution. Give a positive integer n here: the comparison will be done to the precision of 1/n.
38
 
50
 
39
:range
51
:range
40
1
52
1
41
variable range when evaluating a function supplied by the user. Should be given in the form <span class="tt wims_code_words">n1..n2</span>, where n1 is the start point, n2 is the end point.
53
variable range when evaluating a function supplied by the user. Should be given in the form <span class="tt wims_code_words">n1..n2</span>, where n1 is the start point, n2 is the end point.
42
 
54
 
43
:computeanswer
55
:computeanswer
44
1
56
1
45
The instruction <span class="tt wims_code_words">\computeanswer{ no }</span> specifies that the user should complete calculations by himself and enter the final value. On the other hand, if we specify <span class="tt wims_code_words">\computeanswer{ yes }</span>, the user may enter a formula like <span class="tt wims_code_words">5*5</span>,  letting the computer make the calculations.
57
The instruction <span class="tt wims_code_words">\computeanswer{ no }</span> specifies that the user should complete calculations by himself and enter the final value. On the other hand, if we specify <span class="tt wims_code_words">\computeanswer{ yes }</span>, the user may enter a formula like <span class="tt wims_code_words">5*5</span>,  letting the computer make the calculations.
46
 
58
 
47
:statement
59
:statement
48
1
60
1
49
the parameter is the statement of the exercise. Can be used only one time in the exercise.
61
the parameter is the statement of the exercise. Can be used only one time in the exercise.
Line 94... Line 106...
94
:nextstep
106
:nextstep
95
1
107
1
96
defines the questions of each step of the exercise in a dynamic way ; must be before the instruction <span class="tt wims_code_words">statement</span> (see the variable <span class="tt wims_code_words">\step</span>). Can be used only one time in the exercise.
108
defines the questions of each step of the exercise in a dynamic way ; must be before the instruction <span class="tt wims_code_words">statement</span> (see the variable <span class="tt wims_code_words">\step</span>). Can be used only one time in the exercise.
97
 
109
 
98
:conditions
110
:conditions
99
1
111
1
100
defines the numbers of the conditions useful for the exercise.
112
defines the numbers of the conditions useful for the exercise.
101
 
113
 
102
:latex
114
:latex
103
1
115
1
104
allows to write a latex version of the exercise using the variables defined in the exercise and downloadable in the printable version of the exercise (accessible only by developers or teachers of a class). It is advisable to put the statement in a predefined environment latex <span class="tt wims_code_words">\begin{statement} \end{statement}</span> and the solution in the environment <span class="tt wims_code_words">\begin{sol} ... \end{sol}</span>.
116
allows to write a latex version of the exercise using the variables defined in the exercise and downloadable in the printable version of the exercise (accessible only by developers or teachers of a class). It is advisable to put the statement in a predefined environment latex <span class="tt wims_code_words">\begin{statement} \end{statement}</span> and the solution in the environment <span class="tt wims_code_words">\begin{sol} ... \end{sol}</span>.
105
 
-
 
106
:credits
-
 
107
1
-
 
108
allows to insert credits at the end of the exercise (variables are evaluated).
-