Documentation / CalcMe

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • Wiris Quizzes

      • Learning Lemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • MathFlow

                  • BF FAQ

                    • Miscellaneous

                      • 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?

                      Yes
                      No
                      Give feedback about this article

                      Related Articles

                      • Integrate
                      • Numerical integration
                      • Finite field
                      • Bit

                      Greatest common divisor (gcd)

                      Nota Syntax Description

                      Making people’s STEM work more meaningful

                      MathType

                      • MathType for Office Tools
                      • MathType for Mac
                      • MathType for Microsoft 365
                      • MathType for Google Workspace
                      • MathType for LMS
                      • MathType for XML Editors
                      • Arabic notation
                      • Our products accessibility
                      • MathType is online

                      WirisQuizzes

                      Learning Lemur

                      Solutions for Education

                      • Blackboard Learn
                      • Brightspace by D2L
                      • Canvas
                      • Google Classroom
                      • Moodle
                      • Schoology

                      Solutions for Publishing Houses

                      Solutions for Technical Writers

                      Solutions for Chemistry

                      Integrations

                      • HTML Editors
                      • MathType in WordPress

                      Pricing

                      Company

                      Careers

                      Blog

                      Contact Us

                      Buy Now

                      Plugin Downloads

                      © Wiris 2025

                      • Cookie Settings
                      • Cookie Policy
                      • Terms of Use
                      • Privacy Policy / GDPR
                      • Student Data Privacy
                      • Compliance
                      • Powered by Helpjuice
                      Expand