# Mode and other functions

**URL:** <https://cl.desmos.com/t/mode-and-other-functions/3226>\
**Category:** Questions\
**Created:** [May 4, 2021, 1:58pm UTC](https://cl.desmos.com/t/mode-and-other-functions/3226 "2021-05-04T13:58:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nora\_Oswald](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/nora_oswald/32/1597_2.png) [@Nora\_Oswald](https://cl.desmos.com/u/Nora_Oswald)\
**Post date:** [May 4, 2021, 1:58pm UTC](https://cl.desmos.com/t/mode-and-other-functions/3226/1 "2021-05-04T13:58:51Z")

</div>

I’m creating a random list of numbers and want CL to compute the mean, median, and mode. I have the code figured out for mean and median, but what do I use for mode? Also, is there a list of these functions somewhere to know what is available?

 ![Screen Shot 2021-05-04 at 9.59.32 AM](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/8/83df8970c2d6a4934e18d075106802a21b870962.png)

---

<div class="post-metadata">

**Author:** ![cwinske](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/cwinske/32/3106_2.png) [@cwinske](https://cl.desmos.com/u/cwinske)\
**Post date:** [May 4, 2021, 4:46pm UTC](https://cl.desmos.com/t/mode-and-other-functions/3226/2 "2021-05-04T16:46:29Z")

</div>

I don’t believe there is a built-in function for mode. Here is a function that I had saved that will find the mode of a list of numbers, but it uses the graphing calculator. You could use a hidden graph component to calculate this, and then you could also use that same graph to calculate the mean and median too.

> **[Desmos | Graphing Calculator](https://www.desmos.com/calculator/xazzp1g4rf)**

---

<div class="post-metadata">

**Author:** ![Frank\_Jakob](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/frank_jakob/32/3397_2.png) [@Frank\_Jakob](https://cl.desmos.com/u/Frank_Jakob)\
**Post date:** [February 22, 2022, 4:52pm UTC](https://cl.desmos.com/t/mode-and-other-functions/3226/3 "2022-02-22T16:52:52Z")

</div>

How did you do this?! Like how does it work? This is incredible.
