Skip to content

2015 008 Additional math functions

John Reppy edited this page Aug 22, 2015 · 5 revisions

Proposal 2015-008

Additional math functions

Author: Andreas Rossberg
Last revised: August 16, 2015
Status: proposed
Discussion: issue #9


Synopsis

signature MATH =
  sig
    ...
    val asinh : real -> real
    val acosh : real -> real
    val atanh : real -> real
  end

structure Math : MATH

Description

  • asinh x
    returns the arc hyperbolic sine of x, expressed in radians. It is the inverse of the sinh function.

  • acosh x
    returns the nonnegative arc hyperbolic cosine of x, expressed in radians. It is the inverse of the cosh function. If x is less than 0, then the Domain exception is raised.

  • atanh x
    returns the arc hyperbolic tangent of x, expressed in radians. It is the inverse of the tanh function. The Domain exception is raised if x is less than ~1.0 or greater than 1.0.

Rationale

These are fairly standard in contemporary language's math libraries.

Impact

The addition of these functions should not affect existing programs.


History

  • [2015-08-16] Proposed