# 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
R=$level
var1=1
# schrijf als 1 breuk
!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 11 of lang/remarks.$taal

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

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

!if $R>2
    a=!randitem 2,3,4,5,6,7
    b=!randitem 2,3,4,5,6
    !if $keuze=1
        formula$n=\left ( $x + \frac{$a}{$x} \right ) \div \left ( $x - \frac{$a}{$x} \right )\,\, \rightarrow \,\,
	tot=!exec pari A=($x+$a/$x)/($x-$a/$x)\
	printtex(A)
	answer$n=!line 1 of $tot
	tex=!line 2 of $tot
	texanswer$n=\left ( $x + \frac{$a}{$x} \right ) \div \left ( $x - \frac{$a}{$x} \right )\,=\frac{ \left ( $x + \frac{$a}{$x} \right )}{ \left ( $x - \frac{$a}{$x} \right ) }\,=\frac{ \left ( $x + \frac{$a}{$x} \right )}{ \left ( $x - \frac{$a}{$x} \right ) } \times \frac{$x}{$x}\,= $tex
	var1=($x+$a/$x)/($x-$a/$x)
    !else
        formula$n=\left ( \frac{$a}{$x} + $b \right ) \div \left ( \frac{$a}{$x} - $b \right )\,\, \rightarrow \,\,
	tot=!exec pari A=($a/$x+$b)/($a/$x-$b)\
	printtex(A)
	answer$n=!line 1 of $tot
	tex=!line 2 of $tot
	texanswer$n=\left ( \frac{$a}{$x} + $b \right ) \div \left ( \frac{$a}{$x} - $b \right )\,=\frac{ \left ( \frac{$a}{$x} + $b \right )}{ \left ( \frac{$a}{$x} - $b \right ) }\,=\frac{ \left ( \frac{$a}{$x} \right +$b)}{ \left ( \frac{$a}{$x} - $b \right ) } \times \frac{$x}{$x}\,=\frac{$a+$b $x}{$a - $b $x}= $tex
	var1=($a/$x+$b)/($a/$x-$b)
    !endif
 !exit
!endif
 
