!set title=¿A derecha o izquierda de un punto?
!if $wims_read_parm!=$empty
 !goto $wims_read_parm
!endif
oef2wims_version=3.22
language=es
leftrange=-5.000000
rightrange=5.000000
author=Bernadette PERRIN-RIOU
email=bpr@math.u-psud.fr
computeanswer=no
precision=10000

ansorder=r
varcnt=12
prevarcnt=11
postvarcnt=0
replycnt=1
choicecnt=0
conditioncnt=0
feedbackcnt=0
format=html

val1=$imagedir
val2=$confparm1
val3=$confparm2
val4=$confparm3
val5=$confparm4

!if $testcondition=yes
 !goto test
!endif
!if $status=waiting
 !exit
!endif

tmp0=!randitem 1,-1

tmp1=!randint 1, 7

val6=$[rint($(tmp0)*$(tmp1))]

!ifval $val6>0 
val6= +$val6
!endif
tmp0=!randint abs($val6)+1, 11

val7=$[rint($(tmp0))]
val8=derecha, izquierda
tmp0=!randitem 1,2

val9=$(tmp0)
tmp0=!item $val9 of $val8

val10=$(tmp0)

!ifval $val9=1 and $val7>$val6
val11=$[rint( $val7)]
!endif

!ifval $val9=1 and $val7<$val6
val11=$[rint( -$val7)]
!endif

!ifval $val9=2 and $val7>$val6
val11=$[rint( -$val7)]
!endif

!ifval $val9=1 and $val7<$val6
val11=$[rint( $val7)]
!endif

!ifval $val11>0
val11= +$val11
!endif
replytype1=numeric
replyname1=Su abscisa es
replygood1=$[$val11]
question=__EXECUTED_1692754_EXERCISE__

!goto stat

!exit

:question
$()El punto 
!insmath B
$() tiene de abscisa +$val7 o -$val7. Ahora bien, está a la $val10 de 
!insmath A
$() que tiene de abscisa $val6. ¿Cuál es su abscisa? 	
$()
!exit

:hint
$()
$()
!exit

:help
$()
$()
!exit

:solution
$()
$()
!exit

:feedback

!exit

:test

!exit

:stat
vsavelist=6,7,10
embedcnt=0
