# vermenigvuldigen
questiontype=7
javascript=js/exo1.js
image=0
XSIZE=650
embed=1
mathview=2
cols=20
rows=1
inputs=1
math=1
var1=1
# schrijf als 1 breuk
n=$counter
R=$level
!if $level=0
    R=$counter
!endif
helptext=$empty   
pm=!randitem +,-
mp=!randitem 1,-1
keuze=!randitem 1,2
checkfile=exos/checkfile1.proc
x=!randitem x,y,a,b,c,m
varlist=$x
exotext=!record 1 of lang/remarks.$taal
sometext=!record 3 of lang/remarks.$taal
exotext=<p><a onmouseover="return escape('$sometext')"> $exotext </a>
question$n=!record 7 of lang/remarks.$taal

!if $R=1
    a=!randitem 2,3,4,5,6,7,8,9
    b=!randitem 2,3,4,5,6,7,8,9
    !if $keuze=1
        a=$[$mp*$a]
        formula$n=\frac{$a}{$x} \times \frac{1}{$b} \,\, \rightarrow \,\,
	tot=!exec pari A=$a/($b*$x)\
	printtex(A)
	answer$n=!line 1 of $tot
	tex=!line 2 of $tot
	texanswer$n=\frac{$a}{$x} \times \frac{1}{$b} =\frac{$a \times 1}{$x \times $b} = $tex
	var1=$a/$x*1/$b
    !else
        formula$n=\frac{$x}{$a} \times \frac{1}{$b} \,\, \rightarrow \,\,
	tot=!exec pari A=$x/($a*$b)\
	printtex(A)
	answer$n=!line 1 of $tot
	tex=!line 2 of $tot
	texanswer$n=\frac{$x}{$a} \times \frac{1}{$b} =\frac{$x \times 1}{$a \times $b} = $tex
	var1=$x/$a*1/$b
    !endif
 !exit
!endif

!if $R=2
    a=!randitem 1,2,3,4,5,6,7,8,9
    b=!randitem 3,4,5,6,7,8
    c=$[$b-1]
    !if $keuze=1
        a=$[$mp*$a]
	formula$n=\frac{$a}{$x} \times \frac{$c}{$b} \,\, \rightarrow \,\,
	tot=!exec pari A=($a*$c)/($b*$x)\
	printtex(A)
	answer$n=!line 1 of $tot
	tex=!line 2 of $tot
	texanswer$n=\frac{$a}{$x} \times \frac{$c}{$b} = \frac{$a \times $c}{$x \times $b}=\frac{$[$a*$c]}{$b $x}=$tex
	var1=$a/$x*$c/$b
    !else
	formula$n=\frac{$x}{$a} \times \frac{$c}{$b} \,\, \rightarrow \,\,
	tot=!exec pari A=($x*$c)/($a*$b)\
	printtex(A)
	answer$n=!line 1 of $tot
	tex=!line 2 of $tot
	texanswer$n=\frac{$x}{$a} \times \frac{$c}{$b} = \frac{$x \times $c}{$a \times $b}=\frac{$c $x}{$[$a*$b]}=$tex
	var1=$x/$a*$c/$b
    !endif
 !exit
!endif

!if $R=3
    a=!randitem 2,3,4,5,6,7,8,9
    b=!randitem 3,4,5,6,7,8
    c=$[$b-1]
    d=!randitem 3,4,5,6
    !if $keuze=1
        a=$[$mp*$a]
	formula$n=\frac{$a}{$x} \times \frac{$c}{$b $x} \,\, \rightarrow \,\,
	tot=!exec pari A=($a*$c)/($b*$x*$x)\
	printtex(A)
	answer$n=!line 1 of $tot
	tex=!line 2 of $tot
	texanswer$n=\frac{$a}{$x} \times \frac{$c}{$b $x} = \frac{$a \times $c}{$x \times $b \times $x}=\frac{$[$a*$c]}{$b $x^{2}}=$tex
	var1=$a/$x*$c/($b*$x)
    !else
	formula$n=\frac{$x}{$a} \times \frac{$c $x}{$b} \,\, \rightarrow \,\,
	tot=!exec pari A=($c*$x*$x)/($a*$b)\
	printtex(A)
	answer$n=!line 1 of $tot
	tex=!line 2 of $tot
	texanswer$n=\frac{$x}{$a} \times \frac{$c $x}{$b} = \frac{$x \times $c \times $x}{$a \times $b}=\frac{$c $x^{2}}{$[$a*$b]}=$tex
	var1=$x/$a*($c*$x)/$b
    !endif
 !exit
!endif
 
!if $R>3
    a=!randitem 2,3,4,5,6,7,8,9
    b=!randitem 3,4,5,6,7,8
    c=$[$b-1]
    d=!randitem 3,4,5,6
    !if $keuze=1
        a=$[$mp*$a]
	formula$n=\frac{$a}{$x^{$d}} \times \frac{$c $x}{$b} \,\, \rightarrow \,\,
	tot=!exec pari A=($a*$c*$x)/($b*$x^$d)\
	printtex(A)
	answer$n=!line 1 of $tot
	tex=!line 2 of $tot
	texanswer$n=\frac{$a}{$x^{$d}} \times \frac{$c $x}{$b} = \frac{$a \times $c \times $x}{$x^{$d} \times $b}=\frac{$[$a*$c] \times $x}{$b \times $x^{$[$d-1]} \times $x}=$tex
	var1=$a/$x^$d*($c*$x)/$b
    !else
	formula$n=\frac{$x^{$d}}{$a} \times \frac{$c}{$b $x} \,\, \rightarrow \,\,
	tot=!exec pari A=($c*$x^$d)/($a*$b*$x)\
	printtex(A)
	answer$n=!line 1 of $tot
	tex=!line 2 of $tot
	texanswer$n=\frac{$x^{$d}}{$a} \times \frac{$c}{$b $x} = \frac{$x^{$d} \times $c}{$a \times $b \times $x}=\frac{$c \times $x^{$[$d-1]} \times $x}{$[$a*$b] \times $x}=$tex
	var1=$x^$d/$a*$c/($b*$x)
    !endif
 !exit
!endif
