Previous Up Next

7.1.5  List of prime factors

The ifactors command decomposes an integer into prime factors.

Examples

ifactors(90)
     
⎡
⎣
2,1,3,2,5,1⎤
⎦
          

since 90=21· 32· 51.

ifactors(-90)
     
⎡
⎣
−1,1,2,1,3,2,5,1⎤
⎦
          
ifactors(31+22*i)
     
⎡
⎣
i,1,2−i,1,4−i,2⎤
⎦
          
ifactors([36,52])
     
⎡
⎢
⎣
    2232
    22131
⎤
⎥
⎦
          

Previous Up Next