የGCD እና LCM ግምገማ
Find the greatest common divisor and least common multiple of a list of numbers.
ውጤቶች እንደተጻፉ ይቀየራሉ
ስለዚህ መተግበሪያ
This calculator finds the greatest common divisor (GCD) — the largest number that divides all your values evenly — and the least common multiple (LCM), the smallest number they all divide into. Enter two or more whole numbers separated by commas or spaces and it also tells you whether they are coprime.
The GCD is found with the Euclidean algorithm: repeatedly replace the larger number with the remainder of dividing the two until one becomes zero; the other is the GCD. The LCM is then built up pairwise using LCM = a × b ÷ GCD. For 12, 18 and 24 the greatest common divisor is 6 and the least common multiple is 72. When the GCD is 1 the numbers share no common factor and are called coprime.
The GCD is what you use to reduce a fraction to lowest terms, while the LCM gives the common denominator for adding fractions and the period at which repeating cycles line up. The result is the same no matter what order you enter the numbers in.
የሚጠየቁ ጥያቄዎች
GCD እንዴት ይቆጠራል?
የዩክሊድ አልጎሪዝም ይጠቀማል፦ አንድ ሴንቲሜትር እስኪሆን ድረስ ትልቁን ቁጥር በሁለቱ መክፈልን በመቀየር ትልቁን ቁጥር በሌላው መክፈልን ይጠቀማል። ሌላው ደግሞ የGCD ነው
GCD እና LCM እንዴት የተያያዙ ናቸው?
ለሁለቱም ቁጥሮች, GCD × LCM = የቁጥሮች ምርት. ስለዚህ LCM = a × b ÷ GCD, ይህም መሳሪያው LCM በሙሉ ዝርዝር ውስጥ እንዴት እንደሚሰፋ ነው.
ኮፕራይም ምን ማለት ነው?
ሁለት ወይም ከዚያ በላይ ቁጥሮች የጋራ ክፍለ ጊዜ 1 ከሆነ የጋራ ክፍለ ጊዜ አላቸው - ከ1 በስተቀር የጋራ ክፍለ ጊዜ የላቸውም.
ከሁለት በላይ ቁጥሮችን ማስገባት እችላለሁ?
አዎ. የሙሉ ቁጥሮችን በኮምሞስ ወይም በስፍራዎች ለይተው GCD እና LCM በሙሉ ዝርዝር ውስጥ ይቆጠራሉ
የ12, 18 እና 24 ጂ.ሲ.ዲ. እና ኤል.ሲ.ዲ. ምንድነው?
ትልቁ የጋራ ክፍልፋይ 6 ነው (ሁሉም ሦስት ክፍሎችን የሚከፍል ትልቁ ቁጥር) እና ትልቁ የጋራ ክፍልፋይ 72 ነው
የቁጥሮች ርዝመት
አይደለም። GCD እና LCM ሁለቱም ተመሳሳይ ናቸው ቁጥሮችን በምን ዓይነት ርዕስ ውስጥ እንደጻፍክ ይቆጠራሉ
API — ይህ መቁጠሪያን ከኮድ ይጠቀሙ
ይህ መቁጠሪያን እንደ ነጻ JSON መጨረሻ ነጥብ ጥሪ - ቁልፍ ያስፈልጋል. የሜዳውን ዋጋዎች በታች እንደ ጥያቄ პარაሜትር ወይም JSON ላኩ ማንኛውም ነገር ያላስቀመጥክበት ተመሳሳይ መነሻን ይጠቀማል ይህ ገጽ በመጀመሪያ የተሞላ ነው; ያልታወቀ ፓራሜትር 400 ነው, ሁልጊዜም የደበቅ ነጥብ አይደለም. የሙሉን የAPI ሰነዶች አንብብ →
መጨረሻ
GET https://calculator.free/api/v1/gcd-lcm/
curl
curl "https://calculator.free/api/v1/gcd-lcm/?numbers=12, 18, 24"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/gcd-lcm/?" + new URLSearchParams({
"numbers": "12, 18, 24"
}));
const data = await r.json();
console.log(data.results);
ውጤቶች ለታዳሚው መመሪያ ብቻ ናቸው፣ የገንዘብ፣ የሕክምና ወይም የክፍያ ምክር አይደሉም፡፡