1 | import { factory } from '../../utils/factory.js';
|
2 | import { deepMap } from '../../utils/collection.js';
|
3 | import { sinhNumber } from '../../plain/number/index.js';
|
4 | var name = 'sinh';
|
5 | var dependencies = ['typed'];
|
6 | export var createSinh = factory(name, dependencies, (_ref) => {
|
7 | var {
|
8 | typed
|
9 | } = _ref;
|
10 |
|
11 | |
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | return typed(name, {
|
33 | number: sinhNumber,
|
34 | Complex: function Complex(x) {
|
35 | return x.sinh();
|
36 | },
|
37 | BigNumber: function BigNumber(x) {
|
38 | return x.sinh();
|
39 | },
|
40 | Unit: function Unit(x) {
|
41 | if (!x.hasBase(x.constructor.BASE_UNITS.ANGLE)) {
|
42 | throw new TypeError('Unit in function sinh is no angle');
|
43 | }
|
44 |
|
45 | return this(x.value);
|
46 | },
|
47 | 'Array | Matrix': function ArrayMatrix(x) {
|
48 |
|
49 | return deepMap(x, this, true);
|
50 | }
|
51 | });
|
52 | }); |
\ | No newline at end of file |