Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
awu1130 committed Oct 2, 2024
1 parent 71bd746 commit a687ee7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions maths/binary_exponentiation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* @param {Number} num - An array of two natural numbers, [A, B], where A^B will be solved
* @return {number} A^B
* @see [Wikipedia](https://cp-algorithms.com/algebra/binary-exp.html)
* @example binaryExponent([5, 10]) =
* @example binaryExponent([10, 18]) =
* @example binaryExponent([5, 2]) = 25
* @example binaryExponent([10, 18]) = 1000000000000000000
*/

export const binaryExponent = (numbers: number[]): number => {
Expand Down
4 changes: 2 additions & 2 deletions maths/pentagon_area.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* @param {Number} num - A natural number
* @return {number} The area of a regular pentagon
* @see [Wikipedia](https://en.wikipedia.org/wiki/Pentagon)
* @example pentArea(1) =
* @example pentArea(8) =
* @example pentArea(1) = 1.72048
* @example pentArea(8) = 110.11055
*/

export const pentArea = (side: number): number => {
Expand Down

0 comments on commit a687ee7

Please sign in to comment.