From f5ca8c5982e9823dfe59105b314ff454cc21068c Mon Sep 17 00:00:00 2001 From: Omkar Bhalerao Date: Wed, 30 Aug 2023 16:44:12 -0400 Subject: [PATCH] add entry to docs --- docs/tools/bench.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/tools/bench.md b/docs/tools/bench.md index 32eb021bf..152866ae1 100644 --- a/docs/tools/bench.md +++ b/docs/tools/bench.md @@ -54,6 +54,7 @@ The current benchmarks are: * `sum-bit`: Print the number of 1-bits in the binary representation of the input integer. * `sum-divisors`: Prints the positive integer divisors of the input integer, followed by the sum of the divisors. * `sum-sq-diff`: Output the difference between the sum of the squares of the first *n* natural numbers and the square of their sum. +* `totient`: Computes [Euler's totient function][totient] on an input integer *n*. * `up-arrow`: Computes [Knuth's up arrow][uparrow] notation, with the first argument being the number, the second argument being the number of Knuth's up arrows, and the third argument being the number of repeats. * `reverse`: Compute number with reversed digits (e.g. 123 -> 321). @@ -84,3 +85,4 @@ Credit for several of these benchmarks goes to Alexa VanHattum and Gregory Yaune [mandelbrot]: https://en.wikipedia.org/wiki/Mandelbrot_set [hanoi]: https://en.wikipedia.org/wiki/Tower_of_Hanoi [euler]: https://en.wikipedia.org/wiki/E_(mathematical_constant) +[totient]: https://en.wikipedia.org/wiki/Euler's_totient_function \ No newline at end of file