Python | sympy.crt() method Last Updated : 17 Sep, 2019 Comments Improve Suggest changes Like Article Like Report With the help of sympy.crt() method, we can implement the Chinese Remainder Theorem in SymPy. Syntax: crt(m, v) Parameter: m - It denotes a list of integers. v - It denotes a list of integers. Returns: Returns a tuple of integers where the first element is the required result. Example #1: Python3 # import crt() method from sympy from sympy.ntheory.modular import crt m = [5, 7] v = [1, 3] # Use crt() method crt_m_v = crt(m, v) print("Result of the Chinese Remainder Theorem = {} ".format(crt_m_v[0])) Output: Result of the Chinese Remainder Theorem = 31 Example #2: Python3 # import crt() method from sympy from sympy.ntheory.modular import crt m = [99, 97, 95] v = [49, 76, 65] # Use crt() method crt_m_v = crt(m, v) print("Result of the Chinese Remainder Theorem = {} ".format(crt_m_v[0])) Output: Result of the Chinese Remainder Theorem = 639985 Comment More infoAdvertise with us Next Article Python | sympy.crt() method R rupesh_rao Follow Improve Article Tags : Python SymPy Practice Tags : python Similar Reads Python | sympy.acot() method With the help of sympy.acot() method, we are able to find the value of cot inverse using sympy.acot() function. Syntax : sympy.acot() Return : Return value of cot inverse. Example #1 : In this example we can see that by using sympy.acot() method, we can find the value of cot inverse. Python3 1=1 # i 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.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.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.lcm() method The function lcm() provides the direct way to compute Least Common Multiple for polynomials.That is, for polynomials f and g, it computes LCM. Syntax: sympy.lcm(f, g) Return: LCM of given polynomials Example #1: Python3 1== # import sympy from sympy import * f = x * y**2 + x**2 * y g = x**2 * y**2 # 1 min read Like