igcd - Maple Programming Help

igcd

greatest common divisor of integers

ilcm

least common multiple of integers

 Calling Sequence igcd(x1, x2,...) ilcm(x1, x2,...)

Parameters

 x, x, ... - any integers

Description

 • The function igcd computes the greatest common divisor of an arbitrary number of integers.  The function ilcm computes the least common multiple of an arbitrary number of integers.

 • The igcd command is thread-safe as of Maple 15.

Examples

 > $\mathrm{igcd}\left(\right)$
 ${0}$ (1)
 > $\mathrm{ilcm}\left(\right)$
 ${1}$ (2)
 > $\mathrm{igcd}\left(-10,6,-8\right)$
 ${2}$ (3)
 > $\mathrm{ilcm}\left(-10,6,-8\right)$
 ${120}$ (4)
 > $\mathrm{igcd}\left(a,ab\right)$
 ${\mathrm{igcd}}{}\left({a}{,}{a}{}{b}\right)$ (5)
 > $\mathrm{gcd}\left(a,ab\right)$
 ${a}$ (6)
 > $a≔6:$
 > $b≔9:$
 > $\mathrm{ilcm}\left(a,b\right)$
 ${18}$ (7)
 > $\mathrm{igcd}\left(a,b\right)$
 ${3}$ (8)
{"ft_lang_label":"__label__en","ft_lang_prob":0.5353107,"math_prob":1.0000026,"size":688,"snap":"2019-35-2019-39","text_gpt3_token_len":193,"char_repetition_ratio":0.17690058,"word_repetition_ratio":0.1594203,"special_character_ratio":0.34156978,"punctuation_ratio":0.1754386,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9992218,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-09-15T20:01:05Z\",\"WARC-Record-ID\":\"<urn:uuid:f8e8e3db-c580-4344-9b97-30d1593a751b>\",\"Content-Length\":\"158010\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8774a250-1da9-4d88-88d4-0ff61aa01d29>\",\"WARC-Concurrent-To\":\"<urn:uuid:d6fc67c1-7108-4d76-914c-3dac1375deb0>\",\"WARC-IP-Address\":\"199.71.183.28\",\"WARC-Target-URI\":\"https://de.maplesoft.com/support/help/maplesim/view.aspx?path=igcd\",\"WARC-Payload-Digest\":\"sha1:JVBAWMJIGA27FOJ6Q446OBR5YH5OQ7P3\",\"WARC-Block-Digest\":\"sha1:SSDCVAZJ2GI4DLQBUPA2TU5R3FTFZAAF\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-39/CC-MAIN-2019-39_segments_1568514572289.5_warc_CC-MAIN-20190915195146-20190915221146-00514.warc.gz\"}"}