Python | sympy.gcd() method
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
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course