# Display Sets in Mathlab

The worst way

```from decimal import *

def set(x,y, z=None) :
return x > 0 and x**2 < y and y < (8-x**2) # Eingabe der Menge

ranp = Decimal('9')    #Range nach oben
rann = Decimal('-1')   #Range nach unten
res = Decimal('0.1')   #Auflösung

def r2d() :
vx = [float(rann),float(ranp)]
vy = [float(rann),float(ranp)]

x = rann
y = rann

while x <= ranp :
while y <= ranp :
#print(x,y,set(x,y))
if set(x,y) :
vx.append(float(x))
vy.append(float(y))
y += res
x += res
y = rann

print(
"x=" + str(vx) + ";" +
"y=" + str(vy) + ";" +
'plot(x,y,".");'
) #2D Render

def r3d() :
vx = [float(rann),float(ranp)]
vy = [float(rann),float(ranp)]
vz = [float(rann),float(ranp)]

x = rann
y = rann
z = rann

while x <= ranp :
while y <= ranp :
while z <= ranp :
if set(x,y,z) :
vx.append(float(x))
vy.append(float(y))
vz.append(float(z))
z += res
y += res
z = rann
x += res
y = rann

print(
"x=" + str(vx) + ";" +
"y=" + str(vy) + ";" +
"z=" + str(vz) + ";" +
'plot3(x,y,z,".");'
) #3D Render

r2d()```