Skip to content

Commit

Permalink
add entry to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
obhalerao committed Aug 30, 2023
1 parent cbd6407 commit f5ca8c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/tools/bench.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down Expand Up @@ -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

0 comments on commit f5ca8c5

Please sign in to comment.