Python | sympy.integer_nthroot() method Last Updated : 02 Aug, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report With the help of sympy.integer_nthroot() method, we can find the nth roots of a number that is passed as a parameter in the sympy.integer_nthroot() method. It will return a tuple having two value one is root and the other is boolean value which shows that if the root is perfect or not. Syntax : sympy.integer_nthroot(val) Return : Return a tuple having root and boolean value. Example #1 : In this example we can see that by using integer_nthroot() method, we are able to find the nth root of a number that is passed as parameters. Python3 1=1 # import sympy from sympy import * # Using sympy.integer_nthroot() method gfg = integer_nthroot(25, 2) print(gfg) Output : (5, True) Example #2 : Python3 1=1 # import sympy from sympy import * # Using sympy.integer_nthroot() method gfg = integer_nthroot(80, 3) print(gfg) Output : (4, False) Comment More infoAdvertise with us Next Article Python | sympy.integer_nthroot() method J jitender_1998 Follow Improve Article Tags : Python SymPy Practice Tags : python Similar Reads Python | sympy.Integer() method With the help of sympy.Integer() method, we can convert the floating point to integer values and this method very efficient in term of memory if we want to save integer value. Syntax : sympy.Integer() Return : Return integer value. Example #1 : In this example we can see that by using sympy.Integer( 1 min read Python | sympy.is_nonzero() method In sympy module, we can test whether a given number n is nonzero or not using sympy.is_nonzero() function. Syntax: sympy.is_nonzero(n) Parameter: n; number to be tested Return: bool value result Code #1: Python3 # Python program to check nonzero # using sympy.is_nonzero() method # importing sympy mo 1 min read Python | sympy IntegerPartition() method With the help of sympy.combinatorics.partitions.IntegerPartition() method, we can get the elements in an array of subarrays that is passed as parameters in sympy.combinatorics.Partition().rank method. Syntax : sympy.combinatorics.partitions.IntegerPartition() Return : Return the partition of integer 1 min read Python | sympy.digits() method With the help of sympy.digits() method, we can find the digits of a given integer in any given base in SymPy. Syntax: digits(n, t=10) Parameter: n - It denotes an integer. b - It denotes an base integer(optional). Default for b is 10. Returns: Returns a list of the digits of n in base b. The first e 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 Like