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

Classes

class  FactoredInteger
 

Functions

def primePowerTest (n)
 

Variables

 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 misc.py.

Variable Documentation

◆ allDivisors

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

Definition at line 230 of file misc.py.

◆ primeDivisors

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

Definition at line 231 of file misc.py.

◆ squarePart

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

Definition at line 232 of file misc.py.