OEF Exercise - Soustraction de fractions
Soustraction de fractions
GNU GPL
Arithmetics
- H1
fraction soustraction entier multiple
Exercice de soustraction de fractions pour la classe de cinquième. Les deux dénominateurs sont multiples l'un de l'autre.
L'élève doit fournir le numérateur et le dénominateur de la fraction résultat.
La réponse se fait par glisser-déplacer.
\language{fr}
\author{Odile Bénassy}
\email{obenassy@free.fr}
\computeanswer{no}
\format{html}
\precision{10000}
\title{Soustraction de fractions}
\matrix{numbers=2,1
3,1,2
4,1,3
5,2,3
6,5
7,2,3,4,5,6
8,3,5,7
9,2,4,5,7,8
10,3,7,9
11,2,3,4,5,6,7,8,9,10
12,5,7,11
13,2,3,4,5,6,7,8,9,10,11,12
14,3,5,9,11,13
15,2,4,7,8,11,13
16,3,5,7,9,11,13,15
18,5,7,11,13,17
20,3,7,9,11,13,17,19
21,2,4,5,8,10,11,13,16,17,19,20
22,3,5,7,9,13,15,17,19,21
24,5,7,11,13,17,19,23
25,2,3,4,6,7,8,9,11,12,13,14,16,17,18,19,21,22,23,24
26,3,5,7,9,11,15,17,19,21,23,25
27,2,4,5,7,8,10,11,13,14,16,17,19,20,22,23,25,26
28,3,5,9,11,13,15,17,19,23,25,27
30,7,11,13,17,19,23,29}
\matrix{multiples=4,6,8,10,12,14,16,18,20,22,24,26,28,30,
6,9,12,15,18,21,24,27,30,
8,12,16,20,24,28,
10,15,20,25,30,
12,18,24,30,
14,21,28,
16,24,
18,27,
20,30,
22,
24,
26}
\integer{first=random(1..12)}
\text{firstrow=row(\first, \numbers)}
\integer{b1=item(1,\firstrow)}
\integer{length1=items(\firstrow)}
\integer{a1=randomitem(item(2..\length1),\firstrow)}
\text{multiples=row(\first,\multiples)}
\integer{b2=randomitem(\multiples)}
\text{numerators=row(column 1=\b2, \numbers)}
\integer{length2=items(\numerators)}
\integer{a2=randomitem(item(2..\length2),\numerators)}
\integer{den=\b2}
\integer{num=(\a1*(\b2/\b1))-\a2}
\if{\num<0}{
\integer{num=-\num}
\integer{a3=\a2}\integer{a2=\a1}\integer{a1=\a3}
\integer{b3=\b2}\integer{b2=\b1}\integer{b1=\b3}
}
\matrix{all=wims(values \a1 + x for x in range(0..5))}
\text{all=wims(append item \numerators to \all)}
\matrix{more=\b1,\b2}
\matrix{more2=wims(values 2*x for x in \more)}
\matrix{more3=wims(values 3*x for x in \more)}
\text{all=wims(append item \more2 to \all)}
\text{all=wims(append item \more3 to \all)}
\text{all=wims(append item \a1 to \all)}
\text{all=wims(append item \b1 to \all)}
\text{all=wims(listuniq \all)}
\text{all=wims(listcomplement \num, \den in \all)}
\text{hr=<HR noshade size=2>}
\text{big1=<font size=+2>}
\text{big2=</font>}
\text{all=wims(replace internal , by \big2,\big1 in \big1\all\big2)}
\text{num=\big1\num\big2}
\text{den=\big1\den\big2}
\text{size=50x40x1}
\statement{
<p>Quel résultat donne la soustraction de ces 2 fractions ?
<p><center><table border="0">
<tr>
<td align=center>\big1 \a1 \big2</td>
<td align=center rowspan=3>\big1 - \big2</td>
<td align=center>\big1 \a2 \big2</td>
<td align=center rowspan=3>\big1 = \big2</td>
<td align=center>\embed{reply 1,\size}</td>
</tr><tr>
<td align=center width=\fw>\hr</td>
<td align=center width=\fw>\hr</td>
<td align=center width=\fw>\hr</td>
</tr><tr>
<td align=center>\big1 \b1 \big2</td>
<td align=center>\big1 \b2 \big2</td>
<td align=center>\embed{reply 2,\size}</td>
</tr>
</table></center>
}
\answer{Numérateur}{\num;\all}{type=dragfill}
\answer{Dénominateur}{\den;}{type=dragfill}
2004-12-08 23:26:07
2005-02-18 06:27:33