New way for random build polynoms
This commit is contained in:
16
docs/polynom.mdwn
Normal file
16
docs/polynom.mdwn
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user