# optellen en aftrekken [type: x/y + x/3]
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    
pm=!randitem +,-
mp=!randitem 1,-1
question$n=!record 8 of lang/remarks.$taal
checkfile=exos/checkfile1.proc    
x=!randitem a,c,d,f,g
y=!randitem m,n,p,x,y
varlist=$x,$y
exotext=!record 1 of lang/remarks.$taal
sometext=!record 3 of lang/remarks.$taal
exotext=<p><a onmouseover="return escape('$sometext')"> $exotext </a>


!if $R=1
    b=!randitem 2,3,4,5,6
    formula$n=\frac{$x}{$y} $pm \frac{$x}{$b} \,\, \rightarrow \,\,
    answer$n=($b*$x $pm $x*$y)/($b*$y)
    texanswer$n=\frac{$x}{$y} $pm \frac{$x}{$b}  = \frac{$b $x}{$b $y} $pm \frac{$x $y }{$b $y}=\frac{$b $x $pm $x $y}{$b $y}
    var1=$x/($y) $pm $x/$b
 !exit
!endif

!if $R=2
    a=!randitem 2,3,4,5
    b=!randitem 2,3,4,5
    formula$n=\frac{$x}{$a $y} $pm \frac{$x}{$b} \,\, \rightarrow \,\,
    answer$n=($b*$x $pm $a*$x*$y)/($[$a*$b]*$y)
    texanswer$n=\frac{$x}{$a $y} $pm \frac{$x}{$b}  = \frac{$b $x}{$b \cdot $a $y} $pm \frac{$a $y \cdot $x }{$a  $y \cdot  $b}=\frac{$b $x $pm $a $x $y}{$[$a*$b] $y}
    var1=$x/($a*$y) $pm $x/$b
 !exit
!endif

!if $R=3
    a=!randitem 6,7,8,9
    b=!randitem 2,3,4,5
    c=!randitem 2,3,4,5
    c=$[$mp*$c]
    formula$n=\frac{$c $x}{$a $y} $pm \frac{$x}{$b} \,\, \rightarrow \,\,
    answer$n=($[$c*$b]*$x $pm $a*$x*$y)/($[$a*$b]*$y)
    texanswer$n=\frac{$c $x}{$a $y} $pm \frac{$x}{$b}  =\frac{$b \cdot $c  $x}{$b \cdot $a  $y} $pm \frac{$a $y \cdot $x }{$a  $y \cdot $b}=\frac{$[$b*$c] $x $pm $a $x $y}{$[$a*$b] $y}
    var1=($c*$x)/($a*$y) $pm $x/$b
 !exit
!endif

!if $R>3
    a=!randitem 2,3,4,5,6
    b=$[$a+1]
    formula$n=\frac{$a $x}{$b $y} $pm \frac{$b $y}{$a $x} \,\, \rightarrow \,\,
    answer$n=($[$a*$a]*$x^2 $pm $[$b*$b]*$y^2)/($[$a*$b]*$x*$y)
    texanswer$n=\frac{$a $x}{$b $y} $pm \frac{$b $y}{$a $x}  = \frac{$a $x \cdot $a  $x}{$a $x \cdot $b  $y} $pm \frac{$b $y \cdot $b $y }{$b  $y \cdot $a $x}=\frac{$[$a*$a] $x^{2} $pm $[$b*$b] $y^{2}}{$[$a*$b] $x $y}
    var1=($a*$x)/($b*$y) $pm ($b*$y)/($a*$x)
 !exit
!endif
