Skip to content

Commit 58e282c

Browse files
committed
docs: add parameters documentation for the new functions in Math.ark
1 parent dd6dc04 commit 58e282c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Math.ark

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@
462462
1)))
463463

464464
# @brief Convert an angle in degrees to radians
465-
# @param _degrees
465+
# @param _degrees angle in degrees
466466
# =begin
467467
# (print (math:radians 90)) # pi/2
468468
# =end
@@ -471,7 +471,7 @@
471471
(/ (* _degrees pi) 180)))
472472

473473
# @brief Convert an angle in radians to degrees
474-
# @param _radians
474+
# @param _radians angle in radians
475475
# =begin
476476
# (print (math:radians (/ math:pi 2))) # 90
477477
# =end
@@ -480,7 +480,7 @@
480480
(/ (* 180 _radians) pi)))
481481

482482
# @brief Check if a given number is an integer
483-
# @param _x
483+
# @param _x number
484484
# =begin
485485
# (print (math:integer 1)) # true
486486
# (print (math:integer 1.000001)) # false
@@ -490,7 +490,7 @@
490490
(= (ceil _x) (floor _x))))
491491

492492
# @brief Compute the factorial of a number
493-
# @param _n
493+
# @param _n integer
494494
# =begin
495495
# (print (math:factorial 5)) # 120
496496
# =end

0 commit comments

Comments
 (0)