集合¶
与集合成员关系相关的谓词的处理程序:integer、rational等。
-
class
sympy.assumptions.handlers.sets.AskAntiHermitianHandler[源代码]¶ Handler for Q.antihermitian. Test that an expression belongs to the field of anti-Hermitian operators, that is, operators in the form x*I, where x is Hermitian.
-
class
sympy.assumptions.handlers.sets.AskComplexHandler[源代码]¶ Handler for Q.complex. Test that an expression belongs to the field of complex numbers.
-
class
sympy.assumptions.handlers.sets.AskExtendedRealHandler[源代码]¶ Handler for Q.extended_real. Test that an expression belongs to the field of extended real numbers, that is real numbers union {Infinity, -Infinity}.
-
class
sympy.assumptions.handlers.sets.AskHermitianHandler[源代码]¶ Handler for Q.hermitian. Test that an expression belongs to the field of Hermitian operators.
-
class
sympy.assumptions.handlers.sets.AskImaginaryHandler[源代码]¶ Handler for Q.imaginary. Test that an expression belongs to the field of imaginary numbers, that is, numbers in the form x*I, where x is real.
-
class
sympy.assumptions.handlers.sets.AskIntegerHandler[源代码]¶ Handler for Q.integer. Test that an expression belongs to the field of integer numbers.
-
class
sympy.assumptions.handlers.sets.AskRationalHandler[源代码]¶ Handler for Q.rational. Test that an expression belongs to the field of rational numbers.
-
class
sympy.assumptions.handlers.sets.AskRealHandler[源代码]¶ Handler for Q.real. Test that an expression belongs to the field of real numbers.
-
static
Pow(expr, assumptions)[源代码]¶ 真实的 Integer -> Real Positive 真实->真实 (Integer/Even) -> Real if base is nonnegative Real (整数/奇数)->实虚 (Integer/Even) -> Real Imaginary (整数/奇数)->非实虚 Real -> ? since Real could be 0 (giving real) or 1 (giving imaginary) b 虚->实,如果log(b)是虚的且b!=0和指数!=I的整数倍 pi/log(b) Real *真->?e、 g.sqrt(-1)是虚数,sqrt(2)不是
-
static