nTheory

Handlers for keys related to number theory: prime, even, odd, etc.

class sympy.assumptions.handlers.ntheory.AskOddHandler[source]

Handler for key ‘odd’ Test that an expression represents an odd number

class sympy.assumptions.handlers.ntheory.AskPrimeHandler[source]

Handler for key ‘prime’ Test that an expression represents a prime number. When the expression is a number the result, when True, is subject to the limitations of isprime() which is used to return the result.

static Pow(expr, assumptions)[source]

Integer**Integer -> !Prime

Previous topic

Calculus

Next topic

Order

This Page