lua-users home
lua-l archive

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


> > modf, sinh, cosh and tanh are not because we haven't need them, but they are
> > easy to add. perhaps with should add those too.
> 
> I don't see why not; it's just confusing to leave them out.

Just out of curiosity, does anyone need any of those hyperbolic functions?

They are easily implemented as (exp(x) - exp(-x)) / 2,
(exp(x) + exp(-x)) / 2, and sinh(x) / cosh(x). Shouldn't we need their
inverses, too (asinh, acosh, atanh)?

-- Roberto