Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
13704 obado 1
type=numbers gapfill
23 reyssat 2
textarea="explain"
13704 obado 3
iEdit="explain"
23 reyssat 4
random="a b c d"
5
computed="ans"
14346 bpr 6
asis="explain"
23 reyssat 7
 
4131 bpr 8
:A numerical exercise with 4 random parameters.
23 reyssat 9
 
10
The numeric reply is computed with respect to random values of 4 parameters,
11
according to various formulas.
15179 lemaire 12
<p>Author of the model: <a href="mailto:qualite@wimsedu.info">Gang Xiao</a></p>
23 reyssat 13
 
14
:%%%%%%%%%%%%%%%%%      ATTENTION      %%%%%%%%%%%%%%%%%%%%
15
 
4131 bpr 16
Remove the above header if you destroy the model tags i.e.the lines starting
17
with a ':'. Otherwise the exercise might not be recognised by Createxo.
23 reyssat 18
 
19
:%%%%%%%% Example parameters to be redefined %%%%%%%%%%%%%%%%%
20
 
21
:\title{Four parameters}
5147 bpr 22
:\author{XIAO, Gang}
8002 bpr 23
:\email{qualite@wimsedu.info}
5724 bpr 24
:\credits{}
23 reyssat 25
 
26
:First parameter \a.
27
\real{a=randint(-20..20)}
28
 
29
:Second parameter \b.
30
\real{b=randint(-20..20)}
31
 
32
:Third parameter \c.
33
\real{c=randint(-20..20)}
34
 
35
:Fourth parameter \d.
36
\real{d=randint(-20..20)}
37
 
4131 bpr 38
:The computed correct answer.
23 reyssat 39
All common functions are recognized. We use \a, \b, \c, \d to
40
designate the random parameters defined above.
41
\real{ans=(\a)*(\d) - (\b)*(\c)}
42
 
43
:Text that explains what should be done.
44
Note that the syntax \(...) shows a mathematical formula as it should be.
45
$embraced_randitem
46
\text{explain=
47
Compute the determinant of the matrix \([\a,\b;\c,\d]).
48
}
49
 
11544 obado 50
:Embraced random items
8512 bpr 51
$embraced_randitem
11544 obado 52
\text{accolade=item(1,1 yes,
53
2 no)}
23 reyssat 54
 
11544 obado 55
:%% Do not modify
8512 bpr 56
\text{accolade=wims(word 1 of \accolade)}
57
\text{explain=\accolade=1 ?wims(embraced randitem \explain)}
58
 
23 reyssat 59
:%%%%%%%%%%%%% Now the statement in html. %%%%%%%%%%%%%%%%%%%%
60
 
61
::You don't need to modify this in general.
62
 
63
\statement{\explain
64
}
65
 
66
:%%%%%%%%%%%%% Nothing to modify after. %%%%%%%%%%%%%%%%%5
67
 
68
\answer{My reply}{\ans}{type=number}
69