lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2014-04-06 17:09 GMT+02:00 Roberto Ierusalimschy <roberto@inf.puc-rio.br>:

> Repeating ourselves: our suggestion involves moving sinh, cosh, and tanh
> from mathlib to the loadable mathx library (which already exists [1]), as
> we do not see (and nobody really addressed that specific point until
> now) them being more used/important/basic/whatever than several other
> functions there.
>
> [1] http://lua-users.org/lists/lua-l/2008-04/msg00435.html

If Lua 5.3 were to come with a "standard extension library", consisting
of modules that are available by a mere "require mathx", "require lpeg",
etc, those modules having been built and placed into the default loadpath
and cloadpath by the default "make linux", "make mingw" etc, I shall
withdraw all opposition to the suggestion.

But since that is not on the table, the main argument in favour of
precisely sinh, cosh, tanh is that they belong to a class of functions
called "elementary" by mathematicians, which are commonly taught
even to engineering students in English-speaking countries, and
that their implementation involves subtle points.