NZMATH  1.2.0
About: NZMATH is a Python based number theory oriented calculation system.
  Fossies Dox: NZMATH-1.2.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

nzmath.factor.misc Namespace Reference


class  FactoredInteger


def primePowerTest (n)


 allDivisors = lambda n: FactoredInteger(n).divisors()
 primeDivisors = lambda n: FactoredInteger(n).prime_divisors()
 squarePart = lambda n: FactoredInteger(n).square_part()

Detailed Description

misc functions using factorization.

Function Documentation

◆ primePowerTest()

def nzmath.factor.misc.primePowerTest (   n)
This program using Algo. 1.7.5 in Cohen's book judges whether
n is of the form p**k with prime p or not.
If it is True, then (p,k) will be returned,
otherwise (n,0).

Definition at line 11 of file

Variable Documentation

◆ allDivisors

nzmath.factor.misc.allDivisors = lambda n: FactoredInteger(n).divisors()

Definition at line 230 of file

◆ primeDivisors

nzmath.factor.misc.primeDivisors = lambda n: FactoredInteger(n).prime_divisors()

Definition at line 231 of file

◆ squarePart

nzmath.factor.misc.squarePart = lambda n: FactoredInteger(n).square_part()

Definition at line 232 of file