!set title=Cálculo decimal
!if $wims_read_parm!=$empty
 !goto $wims_read_parm
!endif
oef2wims_version=3.22
language=es
leftrange=-5.000000
rightrange=5.000000
author=Guerimand Fabrice
email=fwguerima@free.fr
computeanswer=no
precision=10

ansorder=r
varcnt=10
prevarcnt=9
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=!randint 1, 10

val6=$[rint($(tmp0))]
tmp0=!randint 1, 10

val7=$[rint($(tmp0))]
tmp0=!randint 0, 10

val8=$[rint($(tmp0))]
tmp0=!randint 0, 10

val9=$[rint($(tmp0))]

!ifval $val8=0
val10=$val6
!else
val10=$val6.$val8
!endif

!ifval $val9=0
val11=$val7
!else
val11=$val7.$val9
!endif
tmp0=!randitem -$val10,$val10

val12=$(tmp0)
tmp0=!randitem +$val11,-$val11,-(-$val11)

val13=$(tmp0)
t_=!replace internal \( by ( in $val12$val13;
tmp0=!exec maxima $t_

val14=$(tmp0)
replytype1=numexp
replyname1=Respuesta
replygood1=$[$val14]
question=__EXECUTED_1692754_EXERCISE__
solution=__EXECUTED_1692754_EXERCISE__

!goto stat

!exit

:question
$()Calcule 
!insmath $val12$val13
$():
$()
!exit

:hint
$()
$()
!exit

:help
$()
$()
!exit

:solution
$() 
!if $val13=-(-$val11) 
$()
!insmath $val12$val13=$val12+$val11=$val14
$() 
!else
$()	 
!insmath $val12$val13=$val14
$() 
!endif
$()
$()
!exit

:feedback

!exit

:test

!exit

:stat
vsavelist=11,12,13,14
embedcnt=0
