This site is supported by donations to The OEIS Foundation.

Template:~GCD

From OeisWiki
Jump to: navigation, search

This template employs intricate features of template syntax.

You are encouraged to familiarize yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.

The {{~GCD}} core function template returns the greatest common divisor (GCD) of two positive integers for the {{GCD}} mathematical function template, which did the data validation and preparation. An error message is returned when the {{GCD/test#Code}} calculation is too complex (this implementation only allows for ten iterations of the Euclidean algorithm.)

Cf. {{GCD/doc}}.

Code

Cf. {{GCD/test#~GCD core code}}.