Python | sympy.StrictGreaterThan() method

With the help of sympy.StrictGreaterThan() method, we can make a mathematical expression by using strict greater than operator.

Syntax : sympy.StrictGreaterThan(var1, var2)
Return : Return mathematical expression.

Example #1 :
In this example we can see that by using sympy.StrictGreaterThan() method, we are able to find the expression of strict greater than operator.

filter_none

edit
close

play_arrow

link
brightness_4
code

# import sympy
from sympy import * x, y = symbols('x y')
   
# Using sympy.StrictGreaterThan() method
gfg = StrictGreaterThan(x, 5)
   
print(gfg)

chevron_right


Output :

x > 5



Example #2 :

filter_none

edit
close

play_arrow

link
brightness_4
code

# import sympy
from sympy import * x, y = symbols('x y')
   
# Using sympy.StrictGreaterThan() method
gfg = StrictGreaterThan(y, x)
   
print(gfg)

chevron_right


Output :

y > x

My Personal Notes arrow_drop_up

Recommended Posts:

    Article Tags :

    Be the First to upvote.


    Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.