Serenity: LibM: Add moar math for Janet Lang

Created on 4 Jun 2020  路  2Comments  路  Source: SerenityOS/serenity

I'm trying to port The Janet Language, and it creates wrappers for mathematical functions we don't have. These include:

  • [x] acosh
  • [x] asinh
  • [x] atanh
  • [x] exp2
  • [x] expm1
  • [x] cbrt
  • [ ] trunc, implemented but not defined in math.h.
  • [x] gamma
  • [x] log1p
  • [x] erf
  • [x] erfc
  • [x] hypot
  • [ ] nextafter

We're also missing some macros:

  • [x] INFINITY
  • [ ] isnan and isinf. The rest of the fpclassify functions would be nice too.

Most helpful comment

And here we see @bugaevc fanboying over something (admittedly nice).
meanwhile here I am liking its lispiness more than the character it references...

All 2 comments

OMG, a language named after Janet! Yes please, and we have to get the port working :)

And here we see @bugaevc fanboying over something (admittedly nice).
meanwhile here I am liking its lispiness more than the character it references...

Was this page helpful?
0 / 5 - 0 ratings