Skip to content

math.biplan #11

Description

@gioblu

This is a preliminary list of mathematical functions that will be added in math.biplan.
Feel free to suggest additions.

  • abs compute absolute value of an integer
  • digit extracts a single digit from an integer value
  • numeric checks if an ASCII character is numeric (0..9)
  • sign extracts sign from integer, returns 1 if positive -1 if negative
  • fib computes a number of the fibonacci series
  • sqrt integer square root (linear search, ascending) using addition
  • pow computes integer power of a base raised to an exponent
  • prime checks if the given integer is a prime number or not
  • gcd computes greatest common divisor using Euclidean algorithm
  • lcm computes least common multiple using gcd
  • digit_sum computes the sum of all digits in an integer
  • log2 computes integer logarithm base 2 (floor of log2)
  • log10 computes integer logarithm base 10 (floor of log10)

Metadata

Metadata

Assignees

No one assigned

    Labels

    std libraryAll issues related to the standard library

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions