n=$teller
nivo_title=punt,lijn & richingscoeficient
bewerking=bewerking3.proc
argument=y
varlist=x
opgave$n= y= m\cdot x + q
hint=hier staat een hint
woordmax=10
    
!if $graad=0
    R=$teller
!else
    R=$graad    
!endif

LETTERS=A,B,C,D,E,F,G,H,L,K,P,M,R,S,Q,W
P=!randitem  $LETTERS
keuze=!randitem 1,2
!if $R=1
    !if $keuze=1
	m=!randitem 2,3,4,5
	x=!randitem 1,2,3,4,5
    !else
	m=!randitem -1,-2,-3,-4,-5
	x=!randitem -5,-4,-3,-2,2,3,4,5
    !endif
    y=$[($m)*($x)]
    PUNT=($x:$y)
    GOED$n=$m*x
 !goto PLAATJE
!endif
!if $R=2
    !if $keuze=1
	m=!randitem 3/2,3/4,2/5,4/5,1/5,1/4,1/2
	x=!randitem 1,2,3,4,5,-1,-2,-3,-4,-5
    !else
	m=!randitem -3/2,-3/4,-2/5,-4/5,-1/5,-1/4,-1/2
	x=!randitem 1,2,3,4,5,-1,-2,-3,-4,-5
    !endif
    y=$[($m)*($x)]
    PUNT=($x:$y)
    GOED$n=$m*x
 !goto PLAATJE
!endif
!if $R=3
    !if $keuze=1
	m=!randitem 2,3,4,5
	q=!randitem 1,2,3,4,5
        x=!randitem 1,2,3,4,5
	y=$[($m)*($x) +($q)]
	GOED$n=$m*x+$q
    !else
	m=!randitem 2,3,4,5
        q=!randitem 1,2,3,4,5
        x=!randitem 1,2,3,4,5
        y=$[($m)*($x)-($q)]
	GOED$n=$m*x-$q
    !endif
    PUNT=($x:$y)
 !goto PLAATJE
!endif

!if $R>3
    pm=!randitem +,-
    x=!randitem 1,2,3,4,5
    !if $keuze=1
	m=!randitem 2,3,4,5,-2,-3,-4,-5
	q=!randitem 1/2,1/4,1/5,1/10,4/3
    !else
	m=!randitem -2,-3,-4,-5,4/3,5/3,5/2,7/2,9/2,7/3
	q=!randint 1,10
    !endif	
    y=$[($m)*($x) $pm ($q)]
    PUNT=($x:$y)
    GOED$n=$m*x+$q
!endif


:PLAATJE
XRANGE=-10,10
YRANGE=-50,50
XSCHAAL=2
YSCHAAL=10
    
insdraw_animate=yes
ins_anim_frames=2
ins_anim_delay=0.8
ins_anim_loop=0
    
!readproc $authordir/ruitjespapier.proc

plaatje$n=$ruitjespapier\
linewidth 3\
curve green,$(GOED$n)\
linewidth s*18\
points red,$x,$y\
text black,$x+s,$y+s,giant,$P\
text black,8,-2,normal,x-as\
textup black,-0.5,40,normal,y-as

somtekst$n=Gegeven het punt <font size=+1><tt>$P</tt></font> met co&ouml;rdinaten <font size=+1><tt>$PUNT</tt></font><br>\
Er loopt door <font size=+1><tt>$P</tt></font> &eacute;&eacute;n lijn met een <em>richtingscoeficient</em> <font size=+1><tt>$m</tt></font><br>\
<small><em>dus r.c.=<tt>$m</tt></em></small><br>Bepaal met deze gegevens de vergelijking van deze lijn.



