questiontype=1
multiimage=1
plot=1
mathview=0
draw=0
checkfile=$checkdir/multiplechoice.proc
helptext=$empty
n=$counter
tijd=!record 43 of lang/remarks.$taal
vangst=!record 44 of lang/remarks.$taal
r=!randitem 1,2,3,4,5,6
TIJD=!item $r of $tijd
#@ x,tijd,minuut,dag,maand,seconde
H=!item $r of $vangst
#@  y,hoeveelheid,afstand,opbrengst,omzet,hoogte 
question$n=!record 49 of lang/remarks.$taal
#@ Zoek het goede image bij de volgende exponenti&euml;le functie.

!if $options >2
    options=4
!else
    options=2
!endif        
image=0
keuze=!randitem 1,0
answer$n=!randint 1,$options
P=!shuffle 0.2,0.4,0.6,0.8,1.1,1.3,1.5,1.7,1.9
A=!shuffle 2,3,4,5,6,7,8,9
!if $keuze=1
    !for p=1 to $options
	a=!item $p of $A
	s=!item $p of $P
	F=$a*$s^x
	image_settings$p=size 0.6,0.6;grid ; xzeroaxis linetype 3 ; yzeroaxis linetype 3; xlabel "$TIJD";ylabel"$H" ;border
	ex$p=[-2:12][-2:50] $F notitle
	!if $p=$(answer$n)
	    formula$n= \begin{bf} $H \end{bf} \,\, =\,\, $a \cdot $s^{^{\begin{bf} $TIJD \end{bf}}}
	    image$n=$(ex$p)	
	!endif
    !next p
 !exit
!else 
    a=!randitem $A
    !for p=1 to $options
	s=!item $p of $P
	F=$a*$s^x
	image_settings$p=size 0.6,0.6;grid ; xzeroaxis linetype 3 ; yzeroaxis linetype 3; xlabel "$TIJD";ylabel"$H" ;border
	ex$p=[-2:12][-2:100] $F notitle
	!if $p=$(answer$n)
	    formula$n= \begin{bf} $H \end{bf} \,\, =\,\, $a \cdot $s^{^{\begin{bf} $TIJD \end{bf}}}
	    image$n=$(ex$p)	
	!endif
    !next p
 !exit
!endif

