Calculator
Kufungidzira factorial n! yemutsetse, zvakajeka - kunyange zvikuru zvikuru mavara.
Zvinyorwa zvinogadziridzwa paunenge uchinyora.
Nezve iyi kalkulator
The factorial of n (written n!) is the product of every whole number from 1 up to n. This calculator returns the exact value using arbitrary-precision integers, the number of digits in that value, and an approximate mantissa × power-of-ten form for readability.
The calculation is a running product: 5! = 5 × 4 × 3 × 2 × 1 = 120. Factorials grow extremely fast — 10! = 3,628,800 and 100! already has 158 digits — which is why the tool shows both the full exact integer and its digit count. By definition 0! = 1 and 1! = 1, since there is exactly one way to arrange an empty or single-item set. It accepts n from 0 up to 2000.
Factorials count the number of ways to order n distinct items and are the foundation of permutations and combinations, the binomial theorem, and probability. Whenever you count arrangements or divide out orderings, a factorial is doing the work underneath.
Zvimwe zvinobvunzwa zvakanyanya
Chii chinonzi factorial?
A factorial inofungidzira zvirongwa: n! ndeimwe yezviuru zvakasiyana orderings n zvinhu. Izvi ndicho chivakwa block of permutations uye kubatanidza.
Chii chinonzi 0! (zero factorial)?
Nechirevo 0! = 1. Kune imwe nzira chete yekugadzirira set yakasununguka, saka iyo inosununguka chigadzirwa ndeimwe.
Chii chinonzi 5 factorial?
Izvi zvinoreva kuti 5 × 4 × 3 × 2 × 1 = 120, izvo zvinoreva kuti 120 = 120 × 4 × 3 × 2 × 1.
Ndeipi pfungwa inonyanya kuzivikanwa?
Kusvika 2000! zvakajeka, kushandisa arbitrary-precision integers, saka hapana kuvimbika kushaya kunyange zvazvo nhamba iri zvikuru.
Nei ichiratidza dhigirii rekutevera?
Factorials kukwira zvakasimba kuti yakazara nhamba iri unhandled — 100! ane 158 digits — saka digit kuongorora anopa iwe nyore kuziva hunhu hwayo.
Chii chinonzi kukosha kwemari?
Inotaura kuti factorial semantisa nguva imwe simba regumi, nyore-kuverenga kufungidzira kuratidzwa pedyo nechokwadi integer.
API — kushandisa iyi kalkulator kubva code
Nhare iyi calculator semahara JSON endpoint - hapana chikuru zvinodiwa. Kutumira nzvimbo mavara pasi separameter query kana JSON. Chii zvachose chaunoisa kunze chinoshandisa default iyo peji iri rakasviba nayo; parameter isiri yechokwadi inonzi 400, uye haisi zero. Tora yakazara API docs →
Endpoint
GET https://calculator.free/api/v1/factorial/
curl
curl "https://calculator.free/api/v1/factorial/?n=5"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/factorial/?" + new URLSearchParams({
"n": "5"
}));
const data = await r.json();
console.log(data.results);
Zviratidzo zvemubvunzo ndezvekufungidzira kwechinangwa chekudzidzisa chete, kwete zvemari, zvehutano kana zvemari.