Python | sympy.cofactors() method Last Updated : 02 Aug, 2019 Comments Improve Suggest changes Like Article Like Report With the help of sympy.cofactors() method, we can find the cofactors of two numbers that is passed as a parameter in the sympy.cofactors() method. Syntax : sympy.cofactors(var1, var2) Return : Return tuple of cofactors. Example #1 : In this example we can see that by using sympy.cofactors() method, we are able to find the cofactors of any two numbers that is passed as parameters. Python3 1=1 # import sympy from sympy import * # Using sympy.cofactors() method gfg = cofactors(6, 8) print(gfg) Output : ( 2, 3, 4 ) Example #2 : Python3 1=1 # import sympy from sympy import * # Using sympy.cofactors() method gfg = cofactors(34, 81) print(gfg) Output : ( 1, 34, 81 ) Comment More infoAdvertise with us Next Article Python | sympy.cofactors() method J Jitender_1998 Follow Improve Article Tags : Python SymPy Practice Tags : python Similar Reads Python | sympy.factor() method With the help of sympy.factor() method, we can find the factors of mathematical expressions in the form of variables by using sympy.factor() method. Syntax : sympy.factor(expression) Return : Return factor of mathematical expression. Example #1 : In this example we can see that by using sympy.factor 1 min read Python | sympy.factor_list() method With the help of sympy.factor_list() method, we can get a list of factors of a mathematical expression in SymPy in the form of (factor, power) tuple. Syntax: factor_list(expression) Parameters: expression - It is a mathematical expression. Returns: Returns a list of factors of the given mathematical 2 min read Python | sympy.factorint() method With the help of sympy.factorint() method, we can find the factors and their corresponding multiplicities of a given integer. For input less than 2, factorint() behaves as follows: factorint(1) - returns the empty factorization {}. factorint(0) - returns {0:1}. factorint(-n) - adds -1:1 to the facto 1 min read Python | sympy.cos() method In sympy, cos() method is cosine function. Using the cos(x) method in the sympy module, we can compute the cosine of x. Syntax : sympy.cos(x) Return : Returns the cosine of x Code #1: Below is the example using cos() method to find cosine function. Python3 # importing sympy library from sympy import 1 min read Python | sympy.acsc() method With the help of sympy.acsc() method, we are able to find the value of cosine inverse using sympy.acsc() function. Syntax : sympy.acsc() Return : Return value of cosine inverse. Example #1 : In this example we can see that by using sympy.acsc() method, we can find the value of cosine inverse. Python 1 min read Python | sympy.core() method With the help of sympy.core() method, we can calculate the core_t(n) of a positive integer n. core(n, t) calculates the t-th power free part of n. If nâs prime factorization is : n = \prod_{i=1}^\omega p_i^{m_i} then core_t(n) = \prod_{i=1}^\omega p_i^{m_i \mod t} Syntax: core(n, t=2) Parameter: n - 1 min read Python | sympy.acos(x) method With the help of sympy.acos(x) method, we are able to find the inverse of cosine theta. Syntax : sympy.acos(x) Return : Return the value of inverse cosine theta. Example #1 : In the given example, we can see that by using sympy.acos(x) method, we can find the inverse of a cosine theta. Python3 1=1 # 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.asec() method With the help of sympy.asec() method, we are able to find the value of sec inverse using sympy.asec() function. Syntax : sympy.asec() Return : Return value of sec inverse. Example #1 : In this example we can see that by using sympy.asec() method, we can find the value of sec inverse. Python3 1=1 # i 1 min read 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 Like