Add asinh to Math

This commit is contained in:
Jonathan Sundqvist
2018-06-25 22:23:24 +02:00
parent 94255c1ba9
commit 4b812ee47d
2 changed files with 34 additions and 0 deletions

View File

@ -266,6 +266,14 @@ extern {
#[wasm_bindgen(static_method_of = Math)]
pub fn asin(number: i32) -> Number;
/// The Math.asinh() function returns the hyperbolic arcsine of a
/// number, that is Math.asinh(x) = arsinh(x) = the unique y such that sinh(y) = x
///
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/asinh
#[wasm_bindgen(static_method_of = Math)]
pub fn asinh(number: i32) -> Number;
}
// Number.