1 | 'use strict';
|
2 |
|
3 | var deepMap = require('../../utils/collection/deepMap');
|
4 |
|
5 | function factory(type, config, load, typed) {
|
6 | |
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | var asinh = typed('asinh', {
|
28 | 'number': Math.asinh || function (x) {
|
29 | return Math.log(Math.sqrt(x * x + 1) + x);
|
30 | },
|
31 |
|
32 | 'Complex': function Complex(x) {
|
33 | return x.asinh();
|
34 | },
|
35 |
|
36 | 'BigNumber': function BigNumber(x) {
|
37 | return x.asinh();
|
38 | },
|
39 |
|
40 | 'Array | Matrix': function ArrayMatrix(x) {
|
41 |
|
42 | return deepMap(x, asinh, true);
|
43 | }
|
44 | });
|
45 |
|
46 | asinh.toTex = { 1: '\\sinh^{-1}\\left(${args[0]}\\right)' };
|
47 |
|
48 | return asinh;
|
49 | }
|
50 |
|
51 | exports.name = 'asinh';
|
52 | exports.factory = factory; |
\ | No newline at end of file |