With the help of sympy.GreaterThan() method, we can make a mathematical expression by using greater than operator.
Syntax :
sympy.GreaterThan(var1, var2)
Return : Return mathematical expression.
Example #1 :
In this example we can see that by using sympy.GreaterThan() method, we are able to find the expression of greater than operator.
# import sympy from sympy import * x, y = symbols('x y') # Using sympy.GreaterThan() method gfg = GreaterThan(x, 5) print(gfg) |
Output :
x >= 5
Example #2 :
# import sympy from sympy import * x, y = symbols('x y') # Using sympy.GreaterThan() method gfg = GreaterThan(y, x) print(gfg) |
Output :
y >= x
Recommended Posts:
- Difference between Method Overloading and Method Overriding in Python
- class method vs static method in Python
- Python | os.dup() method
- Python | next() method
- Python | set() method
- Python PIL | getpalette() Method
- turtle.up() method in Python
- turtle.down() method in Python
- Python | PyTorch cos() method
- Python | Method Overloading
- Python | PyTorch tan() method
- Python PIL | getcolors() Method
- Python PIL | tobytes() Method
- Python | sympy.nT() method
- Python PIL | UnsahrpMask() method
- Python | os.lseek() method
- Python | os.renames() method
- Python | sympy.eye() method
- turtle.pos() method in Python
- Python | sympy.nC() method
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

