Wiris

Documentation / CalcMe

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • WirisQuizzes

      • Nubric

        • CalcMe

          • MathPlayer

            • Store FAQ

              • MathFlow

                • BF FAQ

                  • Miscellaneous

                    • Wiris Integrations

                      • Home
                      • CalcMe
                      • Commands
                      • Arithmetic
                      • Arithmetic

                      Greatest common divisor (gcd)

                      Reading time: 1min

                      Nota

                      Working with polynomials? See Greatest common divisor (Polynomials).

                      Returns the greatest common divisor of a set of integers.

                      Syntax

                      gcd(Integer, ..., Integer)
                      
                      gcd(List)
                      
                      gcd(Vector)
                      
                      gcd(Fraction, Fraction)
                      

                      Description

                      Given a set of integers a1, ..., an, returns the largest number that divides a1, ..., an simultaneously.

                      Given a list of integers {a1,...,an}, returns the largest number that divides a1, ..., an simultaneously.

                      Given a vector of integers [a1,...,an], returns the largest number that divides a1, ..., an simultaneously.

                      Given two fractions ab and cd, returns its greatest common divisor defined as gcdab,cd=gcd(a,c)lcm(b,d)

                      Was this article helpful?

                      Give feedback about this article

                      Related Articles

                      • Integrate
                      • Numerical integration
                      • Finite field
                      • Bit

                      Greatest common divisor (gcd)

                      Nota Syntax Description

                      Empowering STEM education

                      MathType

                      • Office Tools
                      • LMS
                      • XML
                      • HTML

                      WirisQuizzes

                      Nubric

                      Integrations

                      Solutions

                      • Education
                      • Publishing houses – platforms and interactive
                      • Publishing houses – Print and digital
                      • Technical writers

                      Pricing

                      Downloads

                      Blog

                      • Success stories

                      About us

                      • Careers
                      • Partnership

                      Contact Us

                      Contact Sales

                      European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                      • Cookie Policy
                      • Terms of Use
                      • Privacy Policy / GDPR
                      • Student Data Privacy
                      • Compliance
                      • Cookie Settings

                      © Wiris 2026

                      Expand