# vermenigvuldigen
questiontype=7
javascript=js/exo1.js
image=0
XSIZE=650
embed=1
mathview=2
cols=20
rows=1
inputs=1
math=1
n=$counter
var1=1
#schrijf als 1 breuk
R=$level
!if $level=0
    R=$counter
!endif
helptext=$empty   
pm=!randitem 1,-1
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
    a=$[$mp*$a]
    !if $keuze=1
        formula$n=\frac{$a}{$x} \div \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} \div \frac{1}{$b} =\frac{$a}{$x} \times $b =\frac{$a \times $b}{$x} = $tex
	var1=$a/$x/(1/$b)
    !else
        formula$n=$a \div \frac{$b}{$x} \,\, \rightarrow \,\,
	tot=!exec pari A=$a*$x/$b\
	printtex(A)
	answer$n=!line 1 of $tot
	tex=!line 2 of $tot
	texanswer$n=$a \div \frac{$b}{$x} =$a \times \frac{$x}{$b} = $tex
	var1=$a/($b/$x)
    !endif
 !exit
!endif

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

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