!set title=Inéquations
!if $wims_read_parm!=$empty
 !goto $wims_read_parm
!endif
oef2wims_version=3.22
author=Huayi CHEN
email=bpr@math.u-psud.fr
language=fr

ansorder=r
varcnt=29
prevarcnt=28
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 -5, 5

val6=$[rint($(tmp0))]
tmp0=!randint 2, 4

val7=$[rint($val6+$(tmp0))]
tmp=!nonempty items +,-

tmp0=!randitem $tmp
val8=$(tmp0)
tmp0=!randitem 1,2

val9=$(tmp0)
tmp0=!item $val9 of \leq,\geq

val10=$(tmp0)
tmp0=!randint -5, 5

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

!ifval $val8 issametext + 
tmp0=!randint 1, 5

val11=$[rint( ($val7)-($val6)+$(tmp0))]
!endif

!ifval $val8 issametext - 
tmp0=!randint 1, 3

val11=$[rint( ($val7)-($val6)-$(tmp0))]
!endif
tmp=!translate ";': to $     $ in x-($val6)

tmp=!lower $tmp
tmp0=!exec maxima fullratsimp($tmp);
val12=$(tmp0)
tmp=!translate ";': to $     $ in x-($val7)

tmp=!lower $tmp
tmp0=!exec maxima fullratsimp($tmp);
val13=$(tmp0)
val14=$val11
!if $val8 issametext + 
!if $val9=2 
val15=\(-\infty)
t_=!rawmath (($val6)+($val7)-($val11))/2
val16=!exec pari print($t_)
t_=!rawmath (($val6)+($val7)+($val11))/2
val17=!exec pari print($t_)
val18=\(+\infty)
!endif
!if $val9=1 
t_=!rawmath (($val6)+($val7)-($val11))/2
val15=!exec pari print($t_)
t_=!rawmath (($val6)+($val7)+($val11))/2
val16=!exec pari print($t_)
!endif
!endif
!if $val8 issametext - 
!if $val9=2 
t_=!rawmath (($val6)+($val7)+($val11))/2
val15=!exec pari print($t_)
val16=\(+\infty)
!endif
!if $val9=1 
val15=\(-\infty)
t_=!rawmath (($val6)+($val7)+($val11))/2
val16=!exec pari print($t_)
!endif
!endif

!ifval $val8 issametext + and $val9=2 
val19=	\(\rbrack),$val15,&#44;,$val16,\(\rbrack),\(\cup),	\(\lbrack),$val17,&#44;,$val18,\(\lbrack)| ,	\(\lbrack),$val17,&#44;,$val18,\(\lbrack), \(\cup),\(\rbrack),	$val15,&#44;,$val16,\(\rbrack)
!endif

!ifval $val8 issametext + and $val9=1 
val19=\(\lbrack),$val15,&#44;,	$val16,\(\rbrack)
!endif

!ifval $val8 issametext - and $val9=2 
val19= \(\lbrack),	$val15,&#44;,$val16,\(\lbrack)
!endif

!ifval $val8 issametext - and $val9=1 
val19=	 \(\rbrack),$val15,&#44;,$val16,\(\rbrack)
!endif
t_=!rawmath (($val6)+($val7)+($val11))/2
val20=!exec pari print($t_)
t_=!rawmath (($val6)+($val7)-($val11))/2
val21=!exec pari print($t_)
val22=$val20,$val21,0,1/2,1,3/2,2,5/2,3,7/2,4,9/2,5,-1/2,-1,-3/2,	-2,-5/2,-3,-7/2,-4,-9/2,-5,\(\lbrack),\(\rbrack),\(+\infty),\(-\infty),\(\cup)
replytype1=compose
replyname1=Solution
replygood1=$val19;$val22  
question=__EXECUTED_1692754_EXERCISE__
hint=__EXECUTED_1692754_EXERCISE__

!goto stat

!exit

:question
$()Donnez l'ensemble des solutions de l'inéquation :	<p align="center">|
!insmath $val12
$()| $val8 |
!insmath $val13
$()| 
!insmath $val10
$() 
!insmath $val14
$()</p>
$()
!exit

:hint
$()Dressez un tableau de la valeur des expressions avec valeur absolue selon 
!insmath x
$().
$()
!exit

:help
$()
$()
!exit

:solution
$()
$()
!exit

:feedback

!exit

:test

!exit

:stat
vsavelist=8,10,12,13,14
embedcnt=0
