questiontype=0
n=$counter
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)\,\,=\,\,

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
b=!randitem 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16    
c=!randitem 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16
d=!randitem 2,3,4,5,6,7,8   
e=!randitem 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16    
pm=!randitem +,-
mp=!randitem +,-
keuze=!randitem 1,2
s=!randitem -1,1
a=$[$s*$a]

!if $R = 1 
    !if $keuze=1
	sin=!randitem sin,cos,tan
        answer$n=$a*$sin(x)
        texanswer$n=$F $a\cdot \$sin \left( x \right) + C
    !else
	sin=!randitem sin,tan
        answer$n=$a*$sin(x) $pm $b*cos(x)
        texanswer$n=$F $a\cdot \$sin \left( x \right) $pm $b\cdot \cos \left( x \right) + C
    !endif
!endif 
!if $R = 2
    !if $keuze=1 
        sin=!randitem sin,cos,tan
        answer$n=$a*$sin(x^$b)
        texanswer$n=$F $a\cdot\$sin\left( x^{$b} \right) + C
    !else
        sin=!randitem sin,cos,tan
        sin=!randitem tan
        answer$n=$a*$sin($b*x)
        texanswer$n=$F $a\cdot\$sin\left( $b x \right) + C
    !endif
!endif
!if $R = 3 
    sin=!randitem sin,cos,tan
    !if $keuze=1
        answer$n=$a*x^$d*$sin($b*x)
        texanswer$n=$F $a\cdot x^{$d} \cdot \$sin\left($b  x \right) + C
    !else
        answer$n=$b^x*$sin(x)
        texanswer$n=$F $b^{x} \cdot \$sin\left(x \right) + C
    !endif
!endif
!if $R > 3 
    sin=!randitem sin,cos
    !if $keuze=1
        answer$n=$sin($a*x)/($b*x)
        texanswer$n=$F \frac {\$sin \left($a x \right)}{$b \cdot x} + C
    !else
        answer$n=$sin(x)/($b*x)
        texanswer$n=$F \frac {\$sin \left(x \right)}{$b \cdot x} + C
    !endif
!endif
	
formula$n=!exec maxima diff($(answer$n),x);        
formula$n=!line 1 of $(formula$n)
formula$n=!texmath f(x) = $(formula$n)
!if $sin=tan
    checkfile=exos/checkfile3.proc
!else
    checkfile=exos/checkfile2.proc
!endif
