# vermenigvuldigen
questiontype=7
javascript=js/exo1.js
image=0
XSIZE=650
embed=1
mathview=2
cols=20
rows=1
inputs=1
math=1
var1=0
#schrijf als 1 breuk: hoeft niet
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
    c=!randitem 2,3,4
    !if $keuze=1
        a=$[$mp*$a]
        formula$n=$x \left ( $a $x $pm \frac{1}{$x} \right )\,\, \rightarrow \,\,
	tot=!exec pari A=$x*($a*$x $pm 1/$x)\
	printtex(A)
	answer$n=!line 1 of $tot
	tex=!line 2 of $tot
	texanswer$n=$x \left ( $a $x $pm \frac{1}{$x} \right )\,\,=\,\, $tex
	var1=$x*($a*$x $pm 1/$x)
    !else
        a=$[$mp*$a]
        formula$n=$a $x^{$c} \left ($x $pm \frac{$b}{$x} \right )\,\, \rightarrow \,\,
	tot=!exec pari A=$a*$x^$c*($x $pm $b/$x)\
	printtex(A)
	answer$n=!line 1 of $tot
	tex=!line 2 of $tot
	texanswer$n=$a $x^{$c} \left ($x $pm \frac{$b}{$x} \right )\,\,=\,\, $tex
	var1=$a*$x^$c*($x $pm $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
    d=$[$c+1]
    !if $keuze=1
        a=$[$mp*$a]
        formula$n=$b $x \left ( $a $x $pm \frac{1}{$x^{$c}} \right )\,\, \rightarrow \,\,
	tot=!exec pari A=$b*$x*($a*$x $pm 1/$x^$c)\
	printtex(A)
	answer$n=!line 1 of $tot
	tex=!line 2 of $tot
	texanswer$n=$b $x \left ( $a $x $pm \frac{1}{$x^{$c}} \right )\,\,=\,\, $tex
	var1=$b*$x*($a*$x $pm 1/$x^$c)
    !else
        a=$[$mp*$a]
        formula$n=$a $x^{$d} \left ($x $pm \frac{$b}{$x^$c} \right )\,\, \rightarrow \,\,
	tot=!exec pari A=$a*$x^$d*($x $pm $b/$x^$c)\
	printtex(A)
	answer$n=!line 1 of $tot
	tex=!line 2 of $tot
	texanswer$n=$a $x^{$d} \left ($x $pm \frac{$b}{$x^$c} \right )\,\,=\,\, $tex
	var1=$a*$x^$d*($x $pm $b/$x^$c)
    !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
    a=$[$mp*$a]
    !if $keuze=1
        formula$n=\left ($a + \frac{1}{$x} \right ) \left ( $b $pm \frac{1}{$x} \right )\,\, \rightarrow \,\,
	tot=!exec pari A=($a+1/$x)*($b $pm 1/$x)\
	printtex(A)
	answer$n=!line 1 of $tot
	tex=!line 2 of $tot
	texanswer$n=\left ($a + \frac{1}{$x} \right ) \left ( $b $pm \frac{1}{$x} \right )\,\,$[$a*$b] $pm \frac{$a}{$x} + \frac{$b}{$x} $pm \frac{1}{$x^{2}}=\,\, $tex
	var1=($a+1/$x)*($b $pm 1/$x)
    !else
        formula$n=\left (\frac{$a}{$x} + $c \right ) \left ( $b $pm \frac{1}{$x} \right )\,\, \rightarrow \,\,
	tot=!exec pari A=($a/$x + $c)*($b $pm 1/$x)\
	printtex(A)
	answer$n=!line 1 of $tot
	tex=!line 2 of $tot
	texanswer$n=\left (\frac{$a}{$x} + $c \right ) \left ( $b $pm \frac{1}{$x} \right )\,\,=\,\,\frac{$[$a*$b]}{$x} $pm \frac{$a}{$x^{2}} + \frac{$c}{$x} + $[$b*$c] $pm \frac{1}{$x^{2}}=\,\, $tex
	var1=($a/$x+$c)*($b $pm 1/$x)
    !endif
 !exit
!endif
 
