Esempio n. 1
0
def rand_cercle():
    a = rand()
    b = rand()
    c = (a**2+b**2-abs(rand()))/4
    return Cercle_equation(a, b, c)
Esempio n. 2
0
def rand_vec():
    return Vecteur_libre(rand(), rand())
Esempio n. 3
0
def rand_dte():
    return Droite_equation(rand(), rand(), rand())
Esempio n. 4
0
def test_Texte():
    t = Texte("spam & eggs", rand(), rand())
    assert(t.texte == "spam & eggs")
Esempio n. 5
0
def rand_pt():
    return Point(rand(), rand())
Esempio n. 6
0
def test_Texte():
    t = Texte("spam & eggs", rand(), rand())
    assert (t.texte == "spam & eggs")
Esempio n. 7
0
def rand_cercle():
    a = rand()
    b = rand()
    c = (a**2 + b**2 - abs(rand())) / 4
    return Cercle_equation(a, b, c)
Esempio n. 8
0
def rand_dte():
    return Droite_equation(rand(), rand(), rand())
Esempio n. 9
0
def rand_vec():
    return Vecteur_libre(rand(), rand())
Esempio n. 10
0
def rand_pt():
    return Point(rand(), rand())