New way for random build polynoms

This commit is contained in:
Lafrite
2015-02-21 11:01:34 +01:00
parent f00d8c9e57
commit da6a43364b
3 changed files with 36 additions and 1 deletions

16
docs/polynom.mdwn Normal file
View File

@@ -0,0 +1,16 @@
# Les polynômes
## Créer des polynômes
### Générer un polynôme "fixe"
### Générer un polynôme aléatoirement
>>> P = Polynom.random(["{b}", "{a}"]) # Polynom du type ax + b
>>> print(P)
- 8 x - 3
>>> P = Polynom.random(degree = 2)
>>> print(P)
5 x^{ 2 } + 4 x - 7

View File