!set title=Area di un quadrilatero
!if $wims_read_parm!=$empty
 !goto $wims_read_parm
!endif
oef2wims_version=3.22
author=Gang XIAO
email=xiao@unice.fr
language=it
leftrange=-5.000000
rightrange=5.000000
computeanswer=no
precision=10000

ansorder=r
varcnt=24
prevarcnt=23
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

val6=$[rint(2)]
val7=$[rint(5)]
val8=$[rint($val7+2)]
tmp0=!randint $val6, $val7

val9=$[rint($(tmp0))]
tmp0=!randint $val6, $val7

val10=$[rint($(tmp0))]
tmp0=!randint -$val6, -$val7

val11=$[rint($(tmp0))]
tmp0=!randint $val6, $val7

val12=$[rint($(tmp0))]
tmp0=!randint -$val6, -$val7

val13=$[rint($(tmp0))]
tmp0=!randint -$val6, -$val7

val14=$[rint($(tmp0))]
tmp0=!randint $val6, $val7

val15=$[rint($(tmp0))]
tmp0=!randint -$val6, -$val7

val16=$[rint($(tmp0))]
val17=$[rint($val11-$val9)]
val18=$[rint($val12-$val10)]
val19=$[rint($val13-$val9)]
val20=$[rint($val14-$val10)]
val21=$[rint($val15-$val9)]
val22=$[rint($val16-$val10)]
val23=$[rint($val17*$val20-$val19*$val18)]
val24=$[rint($val19*$val22-$val21*$val20)]
val25=$[0.5*abs($val23+$val24)]
tmp0=!randitem 0,1

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

!ifval $val26=1
val27=$val11,$val12
!else
val27=$val15,$val16
!endif

!ifval $val26=1
val28=$val15,$val16
!else
val28=$val11,$val12
!endif
replyname1=Area
replygood1=$val25
question=__EXECUTED_1692754_EXERCISE__
hint=!nosubst Prova a disegnare il quadrilatero sulla carta a quadretti (e poi applicare l'idea dell'esempio 15.10 del testo "Matematica per scienze della formazione primaria").


!goto stat

!exit

:question
$()Determina l'area del quadrilatero 
!insmath A B C D
$() i cui vertici nel piano cartesiano	hanno coordinate	<div class="wimscenter">	 
!insmath A = ($val9,$val10)
$() , 
!insmath B = ($val27)
$() ,	 
!insmath C = ($val13,$val14)
$() , 
!insmath D = ($val28)
$() .	</div>	<div class="wimscenter">	 
!read oef/draw.phtml 200,200 \
	 xrange -$val8,$val8	 yrange -$val8,$val8	 arrow -$val8,0,$val8,0,10,grey	 arrow 0,-$val8,0,$val8,10,grey	 linewidth 2	 polygon red,$val9,$val10,$val11,$val12,$val13,$val14,$val15,$val16	 linewidth 4	 points blue,$val9,$val10,$val11,$val12,$val13,$val14,$val15,$val16	 
$()	</div> <p>	
$()
!exit

:hint
$()Prova a disegnare il quadrilatero sulla carta a quadretti (e poi applicare l'idea dell'esempio 15.10 del testo "Matematica per scienze della formazione primaria").
$()
!exit

:help
$()
$()
!exit

:solution
$()
$()
!exit

:latex
$()
$()
!exit

:feedback

!exit

:test

!exit

:stat
vsavelist=8,9,10,11,12,13,14,15,16,27,28
embedcnt=0
