Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Research](https://md.research.elamur.ai/free/en/) · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Shryfti](https://md.shryfti.elamur.ai/free/en/) · [OCR](https://md.ocr.elamur.ai/free/en/)

[Elamur Dictionary](https://md.dictionary.elamur.ai/free/en/) · [this page in HTML](https://dictionary.elamur.ai/free/en/english/factorial/examples/1/)

[dictionaries](https://md.dictionary.elamur.ai/free/en/) / [English](https://md.dictionary.elamur.ai/free/en/english/) / factorial

# factorial

English · adjective; noun

## Examples, page 1

[Back to senses and usage](https://md.dictionary.elamur.ai/free/en/english/factorial/)

- Program to calculate the factorial of a non-negative integer: — [Wikipedia: Python (programming language)](https://en.wikipedia.org/wiki/Python_%28programming_language%29) (Wikipedia contributors). Licence: [cc-by-sa-4.0](https://creativecommons.org/licenses/by-sa/4.0/). — Mova's open texts (cc-by-sa-4.0)
- text = input('Type a number, and its factorial will be printed: ') n = int(text) if n \< 0: raise ValueError('You must enter a non-negative integer') factorial = 1 for i in range(2, n + 1): factorial \*= i print(factorial) — [Wikipedia: Python (programming language)](https://en.wikipedia.org/wiki/Python_%28programming_language%29) (Wikipedia contributors). Licence: [cc-by-sa-4.0](https://creativecommons.org/licenses/by-sa/4.0/). — Mova's open texts (cc-by-sa-4.0)
- An example of an algorithm that runs in factorial time is bogosort, a notoriously inefficient sorting algorithm based on trial and error. — [Wikipedia: Time complexity](https://en.wikipedia.org/wiki/Time_complexity) (Wikipedia contributors). Licence: [cc-by-sa-4.0](https://creativecommons.org/licenses/by-sa/4.0/). — Wikipedia contributors (cc-by-sa-4.0)
- In calculus, factorials occur in Faà di Bruno's formula for chaining higher derivatives. — [Wikipedia: Factorial](https://en.wikipedia.org/wiki/Factorial) (Wikipedia contributors). Licence: [cc-by-sa-4.0](https://creativecommons.org/licenses/by-sa/4.0/). — Wikipedia contributors (cc-by-sa-4.0)
- In APL, is used for the factorial of x (backwards from math notation), and also for the binomial coefficient: means \\tbinom nk or. — [Wikipedia: Exclamation mark](https://en.wikipedia.org/wiki/Exclamation_mark) (Wikipedia contributors). Licence: [cc-by-sa-4.0](https://creativecommons.org/licenses/by-sa/4.0/). — Wikipedia contributors (cc-by-sa-4.0)

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://dictionary.elamur.ai/sitemap.xml) · [llms.txt](https://dictionary.elamur.ai/llms.txt)
