Python | sympy Relational() method Last Updated : 13 Aug, 2019 Comments Improve Suggest changes Like Article Like Report With the help of sympy.core.relational.Relational() method, we are going make the relations between two variables and constants by using sympy.core.relational.Relational() method. Syntax : sympy.core.relational.Relational(var1, var2, "rel") Return : Return a relationship between two variables. Example #1 : In this example we can see that by using sympy.core.relational.Relational() method, we are able to create the relationship between two variables. Python3 1=1 # import sympy and Relational from sympy.core.relational import Relational from sympy import * x, y = symbols('x y') # Using sympy.core.relational.Relational(var1, var2, "rel") method gfg = Relational(x, y, ">=") print(gfg) Output : x >= y Example #2 : Python3 1=1 # import sympy and Relational from sympy.core.relational import Relational from sympy import * x, y = symbols('x y') # Using sympy.core.relational.Relational(var1, var2, "rel") method gfg = Relational(x, y, "!=") print(gfg) Output : Ne(x, y) Comment More infoAdvertise with us Next Article Python | sympy Relational() method J jitender_1998 Follow Improve Article Tags : Python SymPy Practice Tags : python Similar Reads Python | sympy rank() method With the help of sympy.combinatorics.Partition().rank method, we can get the rank of an array of subarrays that is passed as parameters in sympy.combinatorics.Partition().rank method. Syntax : sympy.combinatorics.Partition().rank Return : Return the rank of subarrays. Example #1 : In this example we 1 min read Python | sympy RGS method With the help of sympy.combinatorics.Partition().RGS method, we are able to get the index value of members of subarray in the way that it is passed in the Partition() method by using sympy.combinatorics.Partition().RGS method. Syntax : sympy.combinatorics.Partition().RGS Return : Return tuple of ind 1 min read Python | sympy.S() method With the help of sympy.S() method, we can make a single instance of an object by using sympy.S() method, where S denotes to singleton class. Syntax : sympy.S() Return : Return the single instance of an object. Example #1 : In this example we can see that by using sympy.S() method, we are able to cre 1 min read Python | sympy.symbols() method With the help of sympy.symbols() method, we can declare some variables for the use of mathematical expression and polynomials by using sympy.symbols() method. Syntax : sympy.symbols() Return : Return nothing or None. Example #1 : In this example we can see that by using sympy.symbols() method, we ar 1 min read Python | sympy from_rgs() method With the help of sympy.combinatorics.Partition.from_rgs() method, we can get the array of subarrays by passing array of indexes and list of members by using sympy.combinatorics.Partition.from_rgs() method. Syntax : sympy.combinatorics.Partition.from_rgs() Return : Return the array of subarrays. Exam 1 min read Like