sympy.integrals.rationaltools.ratint() in python Last Updated : 10 Jul, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report With the help of ratint() method, we can compute the indefinite integration of a rational function. If a function is a rational function, their is a Lazard Rioboo Trager and the Horowitz Ostrogradsky algorithms that are implemented in this method. Syntax : ratint(f, x, **flags) Return : Return the integrated function. Example #1 : In this example we can see that by using ratint() method, we are able to compute the indefinite integration of a rational function and return the integrated function by using this method. Python3 # import ratint from sympy.integrals.rationaltools import ratint from sympy.abc import x # Using ratint() method gfg = ratint((x**5 - 2*x**3 + x - 2)/12, x) print(gfg) Output : x**6/72 - x**4/24 + x**2/24 - x/6 Example #2 : Python3 # import ratint from sympy.integrals.rationaltools import ratint from sympy.abc import y # Using ratint() method gfg = ratint((3*y**3 + 4*x**2 + y - 2), y) print(gfg) Output : 3*y**4/4 + y**2/2 + y*(4*x**2 - 2) Comment More infoAdvertise with us Next Article sympy.integrals.rationaltools.ratint() in python J jitender_1998 Follow Improve Article Tags : Python Python Programs SymPy Python SymPy-Integral Practice Tags : python Similar Reads sympy.integrals.rationaltools.ratint_logpart() in python With the help of ratint_logpart() method, we can integrate the indefinite rational function by implementing Lazard Rioboo Trager algorithm by using this method and returns the integrated polynomial. Syntax : ratint_logpart(f, g, x, t=None) Return : Return the integrated function. Example #1 : In thi 1 min read sympy.integrals.rationaltools.ratint_ratpart() in python With the help of ratint_ratpart() method, we can implement the Horowitz Ostrogradsky algorithm and it will return the fractions A and B by using this method. Syntax : ratint_ratpart(f, g, x) Return : Return the fraction A and B. Example #1 : In this example we can see that by using ratint_ratpart() 1 min read sympy.integrals.singularityfunctions.singularityintegrate() in python With the help of singularityintegrate() method, we can get the definite integral of the singularity functions and return the integrated function by using this method. Syntax : singularityintegrate(f, x) Return : Return the definite integral of function. Example #1 : In this example we can see that b 1 min read sympy.integrals.transforms.inverse_hankel_transform() in python With the help of inverse_hankel_transform() method, we can compute the inverse of hankel transformation and returns the unevaluated function by using this method. inverse hankel transformation Syntax : inverse_hankel_transform(F, k, r, nu, **hints) Return : Return the unevaluated function. Example # 1 min read Divide Two Integers to get Float in Python Python, a versatile and widely used programming language, offers various ways to perform mathematical operations. When it comes to dividing two integers and obtaining a float result, there are multiple approaches to achieve this task. In this article, we'll explore five different methods to divide i 2 min read Like