Previous Up Next

6.7.6  Factoriser un entier : ifactor factoriser_entier

ifactor a comme paramètre un entier.
ifactor décompose cet entier en produit de facteurs premiers.
On tape :

ifactor(90)

On obtient :

2*3^2*5

On tape :

ifactor(-90)

On obtient :

(-1)*2*3^2*5

Previous Up Next