Module ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Return NameLoad If BoolOpOr CompareEq NameLoad NameLoad CompareEq NameLoad UnaryOpUSub NameLoad BoolOpAnd AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad BoolOpAnd AttributeLoad NameLoad attr CompareEq NameLoad Num body Return AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Return BinOpMod NameLoad NameLoad If CompareEq NameLoad Num body If AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr Assign NameStore BinOpDiv NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass orelse If CompareIs Call NameLoad NameLoad NameLoad body Assign NameStore BinOpSub NameLoad BinOpMult NameLoad NameLoad If CompareEq CompareLt BinOpMult NameLoad NameLoad Num NameLoad body AugAssignAdd NameStore NameLoad Return NameLoad Assign NameStore BinOpSub NameLoad NameLoad If AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Return NameLoad orelse If AttributeLoad NameLoad attr body Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Return NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareEq NameLoad NameLoad body Return NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If CompareNotEq NameLoad Num body Assign TupleStore NameStore NameStore ListComp Call NameLoad BinOpDiv NameLoad NameLoad keyword NameLoad keyword NameLoad comprehension NameStore TupleLoad NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad If CompareGt Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad orelse Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore BinOpMod NameLoad NameLoad If CompareEq NameLoad Num body AugAssignMult NameStore NameLoad AugAssignMult NameStore Call NameLoad BinOpDiv NameLoad NameLoad Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpMult NameLoad NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameStore ListComp UnaryOpUSub NameLoad comprehension NameStore TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Return BinOpMult NameLoad NameLoad If BoolOpAnd AttributeLoad NameLoad attr CompareEq NameLoad Num body AugAssignMult NameStore NameLoad Return Call NameLoad NameLoad NameLoad keyword NameLoad orelse If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Assign NameStore BinOpMult SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Return BinOpMult NameLoad Call NameLoad NameLoad NameLoad keyword CompareNotEq TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body ImportFrom alias alias Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr If Call NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr body Return NameLoad decorator_list decorator_list
N/A __future__ print_function division sympy.core.numbers nan function Function Mod N/A Function N/A N/A Represents a modulo operation on symbolic expressions.

    Receives two arguments, dividend p and divisor q.

    The convention used is the same as Python's: the remainder always has the
    same sign as the divisor.

    Examples
    ========

    >>> from sympy.abc import x, y
    >>> x**2 % y
    Mod(x**2, y)
    >>> _.subs({x: 5, y: 6})
    1

     eval N/A N/A cls p q N/A N/A sympy.core.add Add sympy.core.mul Mul sympy.core.singleton S sympy.core.exprtools gcd_terms sympy.polys.polytools gcd doit N/A N/A p q N/A N/A N/A Try to return p % q if both are numbers or +/-p is known
            to be less than or equal q.
             N/A N/A N/A p is_infinite N/A q is_infinite N/A p nan N/A q nan N/A N/A nan N/A N/A N/A p q N/A p N/A q N/A N/A p is_Pow N/A N/A p exp is_Integer N/A N/A p base q N/A N/A p is_integer N/A q 1 N/A N/A N/A S Zero N/A N/A q is_Number N/A N/A N/A p is_Number N/A N/A N/A p q N/A N/A q 2 N/A N/A N/A p is_even N/A N/A N/A S Zero N/A N/A N/A p is_odd N/A N/A N/A S One N/A r N/A p q N/A N/A N/A d N/A int r N/A N/A N/A TypeError N/A N/A N/A N/A N/A N/A type d int N/A N/A rv N/A p N/A d q N/A N/A N/A N/A rv q 0 True N/A N/A rv q N/A rv N/A d N/A p q N/A N/A d is_negative N/A N/A N/A q is_negative N/A N/A d N/A N/A N/A q is_positive N/A N/A p N/A N/A rv N/A doit p q N/A N/A rv None N/A N/A rv N/A N/A N/A p func cls N/A N/A qinner N/A N/A p args N/A 1 N/A N/A qinner q N/A N/A p N/A G N/A gcd p q N/A N/A G 1 N/A N/A N/A p q N/A N/A gcd_terms N/A i G clear False fraction False N/A i N/A p q N/A N/A pwas qwas N/A p q N/A N/A p is_Add N/A N/A args N/A N/A i N/A p args N/A N/A a N/A cls i q N/A N/A N/A N/A a count cls N/A N/A i count cls N/A N/A N/A N/A args append i N/A N/A N/A N/A args append a N/A N/A args N/A list N/A p args N/A N/A p N/A Add args N/A N/A N/A cp p N/A N/A p as_coeff_Mul N/A N/A cq q N/A N/A q as_coeff_Mul N/A ok False N/A N/A N/A N/A cp is_Rational N/A N/A cq is_Rational N/A N/A r N/A cp cq N/A N/A r 0 N/A N/A G cq N/A p N/A int N/A cp cq N/A ok True N/A N/A ok N/A N/A p N/A cp p N/A q N/A cq q N/A N/A N/A N/A p could_extract_minus_sign N/A N/A q could_extract_minus_sign N/A N/A N/A G p q N/A N/A i N/A i N/A G p q N/A rv N/A doit p q N/A N/A rv None N/A N/A N/A rv G N/A N/A N/A G is_Float N/A G 1 N/A N/A p G N/A N/A cls p q evaluate False N/A N/A N/A N/A G is_Mul N/A N/A N/A G args N/A 0 is_Float N/A N/A N/A G args N/A 0 1 N/A N/A p N/A N/A N/A G args N/A 0 p N/A G N/A N/A Mul _from_args N/A N/A G args N/A 1 N/A N/A G N/A cls p q evaluate N/A N/A p q N/A pwas qwas N/A classmethod _eval_is_integer N/A N/A self N/A N/A sympy.core.logic fuzzy_and fuzzy_not N/A N/A p q N/A self args N/A N/A fuzzy_and N/A N/A p is_integer N/A q is_integer N/A fuzzy_not N/A q is_zero N/A N/A True N/A _eval_is_nonnegative N/A N/A self N/A N/A N/A N/A N/A N/A self args N/A 1 is_positive N/A N/A True N/A _eval_is_nonpositive N/A N/A self N/A N/A N/A N/A N/A N/A self args N/A 1 is_negative N/A N/A True N/A N/A