Kalkulator GCD & LCM
Teuleumkeun pamaké pikeun manggihan pangbagi umum panggedéna sarta pangleutikna kali umum tina daftar angka.
Hasilne bakal dioptimalake nalika sampeyan ngetik.
Ngenai kalkulator iki
you enter two or more whole numbers separated by commas or spaces and it also tells you whether they are coprime. 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. When the GCD is 1 the numbers share no common factor and are called coprime. When the GCD is 1 the greatThe 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
Takon-takon kang kerep diajukake
Carane GCD diitung?
Ieu ngagunakeun algoritma Euclidean: ngagantikeun angka nu leuwih gede ku sisa dibagi dua, nepi ka salah sahiji jadi nol. Anu séjén nyaéta GCD.
Apa GCD lan LCM terkait?
Pikeun dua angka, GCD × LCM = produk tina angka. Jadi LCM = a × b ÷ GCD, anu cara alat ngalegaan LCM ngaliwatan sakumna daftar.
Apa tegese coprime?
Dua atawa leuwih angka mangrupa prima babarengan lamun pembagi umum panggedéna nyaéta 1 — aranjeunna teu boga faktor umum lianna ti 1. Alat ieu ngabéjakeun ieu pikeun anjeun.
Apa aku bisa ngetik luwih saka loro angka?
Ya. Papisahkeun angka bunder ku koma atawa kosong sarta GCD jeung LCM diitung ngaliwatan sakumna daftar.
Apa GCD lan LCM saka 12, 18 lan 24?
Di antara 100
Apa urutan angka-angka iku penting?
Teu. GCD jeung LCM sarua, teu paduli urutan nu dipaké pikeun ngetik angka.
API — gunakake kalkulator iki saka kode
Ngadongékeun kalkulator ieu minangka titik akhir JSON bébas — teu peryogi kunci. Kirim nilai medan di handapeun minangka parameter pitakonan atawa JSON. Waca dokumen lengkap API →
Tampilan
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);
Hasilna nyaéta perkiraan pikeun pituduh umum, henteu saran finansial, médis atanapi pajak.