questiontype=0
!set n=$counter
checkfile=exos/checkfile2.proc
image=0
question$n=!record 5 of lang/remarks.$taal
exotext=!record 31 of lang/remarks.$taal
sometext=!record 32 of lang/remarks.$taal
exotext=<p><a onmouseover="return escape('$sometext')">$exotext
helptext=$empty
F=F\left(x\right)\,\,=\,\,
# LETOP: er komt geen LOG in de goeda antwoorden voor !!!!
R=$level
!if $level=0
    R=$counter
!endif    
	
a=!randitem 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20
b=!randitem 2,3,4,5,6,7,8,9,10,11,12,13,14    
c=!randitem 2,3,4,5,6
d=!randitem 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16    
e=!randitem 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 
sin=!randitem sin,cos   
pm=!randitem +,-
mp=!randitem +,-
keuze=!randitem 1,2
s=!randitem -1,1
a=$[$s*$a]

!if $R = 1 
    !if $keuze=1
        formula$n=$a*$sin(x)
    !else
	formula$n=$a*$sin(x) $pm $b
    !endif
    answer$n=!exec maxima integrate($(formula$n),x);  
    formula$n=!texmath f(x)=$(formula$n)
    texanswer$n=!texmath $(answer$n)
    texanswer$n= \rightarrow F(x)=$(texanswer$n) \,+\, C
 !exit
!endif
!if $R = 2
     !if $keuze=1
	formula$n=$a*$sin(x $pm $b)
    !else
	formula$n=$a*$sin($b $pm x)   
    !endif
    answer$n=!exec maxima integrate($(formula$n),x);  
    formula$n=!texmath f(x)=$(formula$n)
    texanswer$n=!texmath $(answer$n)
    texanswer$n= \rightarrow F(x)=$(texanswer$n) \,+\, C
 !exit
!endif
!if $R = 3 
f=!randitem 1,1/3,1/4,1/5,1/6,2/3
    !if $keuze=1
	formula$n=$a*$sin($c*x)
    !else
	formula$n=$a*$sin($f*pi $pm $c*x)
    !endif
    answer$n=!exec maxima integrate($(formula$n),x);
    formula$n=!texmath f(x)=$(formula$n)
    texanswer$n=!texmath $(answer$n)
    texanswer$n= \rightarrow F(x)=$(texanswer$n) \,+\, C
 !exit
!endif
!if $R > 3 
    b=!randitem 2,3,4
    a=!randitem 2,4,6,8
    !if $keuze=1
	som=$a*($sin($b*x))^2 $pm $c
	formula$n=f(x)= $a$sin^{2}($b x) $pm $c
    !else
	som=$a*($sin(x))^2 $pm $c
	formula$n=f(x)= $a$sin^{2}(x) $pm $c
    !endif
    answer$n=!exec maxima integrate($som,x);
    texanswer$n=!texmath $(answer$n)
    texanswer$n= \rightarrow F(x)=$(texanswer$n) \,+\, C
    
 !exit
!endif
	
