Python | sympy.igcd() method Last Updated : 02 Aug, 2019 Comments Improve Suggest changes Like Article Like Report With the help of sympy.igcd() method, we can find the greatest common divisor of two nonnegative integer numbers that is passed as a parameter in the sympy.igcd() method. Syntax : sympy.igcd(var1, var2) Return : Return value of greatest common divisor for nonnegative integer. Example #1 : In this example we can see that by using sympy.igcd() method, we are able to find the greatest common divisor of any two nonnegative numbers that is passed as parameters. Python3 1=1 # import sympy from sympy import * # Using sympy.igcd() method gfg = igcd(45, 35) print(gfg) Output : 5 Example #2 : Python3 1=1 # import sympy from sympy import * # Using sympy.igcd() method gfg = igcd(17, 19) print(gfg) Output : 1 Comment More infoAdvertise with us Next Article Python | sympy.igcd() method J Jitender_1998 Follow Improve Article Tags : Python SymPy Practice Tags : python Similar Reads Python | sympy.gcd() method With the help of sympy.gcd() method, we can find the greatest common divisor of two numbers that is passed as a parameter in the sympy.gcd() method. Syntax : sympy.gcd(var1, var2) Return : Return value of greatest common divisor. Example #1 : In this example we can see that by using sympy.gcd() meth 1 min read Python | sympy.gcd() method The function gcd() provides the direct way to compute Greatest Common Divisor for polynomials.That is, for polynomials f and g, it computes GCD. Syntax: sympy.gcd(f, g) Return: GCD of given polynomials Example #1: Python3 1== # import sympy from sympy import * f = (12 * x + 12)*x g = 32 * x**2 # Usi 1 min read Python | sympy.ilcm() method With the help of sympy.ilcm() method, we can find the least common multiple of two nonnegative integers that is passed as a parameter in the sympy.ilcm() method. Syntax : sympy.ilcm(var1, var2) Return : Return value of least common multiple of two nonnegative integers. Example #1 : In this example w 1 min read Python | sympy.csc() method With the help of sympy.csc() method, we are able to find the value of cosine theta using sympy.csc() function. Syntax : sympy.csc() Return : Return value of cosine theta. Example #1 : In this example we can see that by using sympy.csc() method, we can find the value of cosine theta. Python3 1=1 # im 1 min read Python | sympy.lcm() method With the help of sympy.lcm() method, we can find the least common multiple of two numbers that is passed as a parameter in the sympy.lcm() method. Syntax : sympy.lcm(var1, var2) Return : Return value of least common multiple. Example #1 : In this example we can see that by using sympy.lcm() method, 1 min read Like