Skip to content

add float math functions to standard library #374

@andrewrk

Description

@andrewrk

Functions:

  • fma
  • nan
  • abs
  • exp
  • exp2
  • loge
  • log2
  • log10
  • sqrt
  • cbrt
  • hypot
  • pow
  • sin
  • cos
  • tan
  • asin
  • acos
  • atan
  • atan2
  • sinh
  • cosh
  • tanh
  • asinh
  • acosh
  • atanh
  • ceil
  • floor
  • trunc
  • round
  • scalbn
  • isfinite
  • isinf
  • isnan
  • isnormal
  • signbit

Constants:

  • e
  • pi

There is also a concept of floating point exceptions which libc lets you query after you do a floating point operation. To be considered if we want to support something like that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSolving this issue will likely involve adding new logic or components to the codebase.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions