# style=q2: Quadrant II.

present=8
ranget=[0:2*pi]

sh=!randitem 1,2
conj1=!item $sh of and,or
conj2=!item $sh of or,and

a=0.5
b=1.2
b_=$[sqrt($b)]
sh=!randitem 1,2
!if $sh=1
 !distribute item x,x,(y+$a),(y-$a) into X1,X2,Y1,Y2
 p=$b_*cos(t),$b_*sin(t)+$a;,$b_*cos(t),$b_*sin(t)-$a;
!else
 !distribute item (x+$a),(x-$a),y,y into X1,X2,Y1,Y2
 p=$b_*cos(t)+$a,$b_*sin(t);,$b_*cos(t)-$a,$b_*sin(t);
!endif

ineq=$X1^2+$Y1^2 < $b ; $X2^2+$Y2^2 < $b,\
$X1^2+$Y1^2 < $b ; $X2^2+$Y2^2 > $b,\
$X1^2+$Y1^2 > $b ; $X2^2+$Y2^2 < $b,\
$X1^2+$Y1^2 > $b ; $X2^2+$Y2^2 > $b,\
$X1^2+$Y1^2 < $b # $X2^2+$Y2^2 < $b,\
$X1^2+$Y1^2 < $b # $X2^2+$Y2^2 > $b,\
$X1^2+$Y1^2 > $b # $X2^2+$Y2^2 < $b,\
$X1^2+$Y1^2 > $b # $X2^2+$Y2^2 > $b

plotf=$p\
$p\
$p\
$p\
$p\
$p\
$p\
$p

sh=!shuffle $present
ineq=!item $sh of $ineq
plotf=!line $sh of $plotf

