Python| sympy.StrictLessThan() 方法
在sympy.StrictLessThan()
方法的帮助下,我们可以使用严格的小于运算符进行数学表达式。
Syntax : sympy.StrictLessThan(var1, var2)
Return : Return mathematical expression.
示例 #1:
在这个例子中我们可以看到,通过使用sympy.StrictLessThan()
方法,我们能够找到严格小于运算符的表达式。
# import sympy
from sympy import * x, y = symbols('x y')
# Using sympy.StrictLessThan() method
gfg = StrictLessThan(x, 35)
print(gfg)
输出 :
x < 35
示例 #2:
# import sympy
from sympy import * x, y = symbols('x y')
# Using sympy.StrictLessThan() method
gfg = StrictLessThan(y, x)
print(gfg)
输出 :
y < x