arturo-lang / arturo

Simple, expressive & portable programming language for efficient scripting
http://arturo-lang.io
MIT License
723 stars 32 forks source link

[Numbers] add `cbrt` built-in function #1396

Open github-actions[bot] opened 11 months ago

github-actions[bot] commented 11 months ago

[Numbers] add cbrt built-in function the goal would be to have a function that returns the cubic root of a number potential use: https://rosettacode.org/wiki/Cubic_special_primes

https://github.com/arturo-lang/arturo/blob/411617a1906063cf0adfd3ac06804dc4b29403a0/src/library/Numbers.nim#L56


#=======================================
# Definitions
#=======================================

# TODO(Numbers) add `cbrt` built-in function
#  the goal would be to have a function that returns the cubic root of a number
#  potential use: https://rosettacode.org/wiki/Cubic_special_primes
#  labels: library, enhancement, new feature

proc defineLibrary*() =

    #----------------------------
    # Functions
    #----------------------------

    builtin "abs",
        alias       = unaliased, 

ac3e031455ddc42abff04bbcc96868dd8af0625c

stale[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.