@sheetxl/formulas 0.8.0-beta.1 → 0.8.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -22
- package/browser/esm/{BzNFsi4RXuJrn_1n.mjs → -sN4SmS9cUOrcjVR.mjs} +1 -1
- package/browser/esm/{B7750ljsJF3qA9kU.mjs → 0Q46gxHg8afOLJ7K.mjs} +37 -3
- package/{node/esm/CG1Fn8D-2DrQZoD5.mjs → browser/esm/B-Ig6HWcV53g7Zy0.mjs} +1 -1
- package/browser/esm/{BYRjnggsufwbb27W.mjs → B3LvTqivuAJYZW9O.mjs} +1 -1
- package/browser/esm/{BR2ai1V5dGPphpRf.mjs → B52kG70ukWJKrVHl.mjs} +2 -5
- package/{node/esm/CltdofO5ik8g_wQ8.mjs → browser/esm/B9GCCzx3ZtHrtgsZ.mjs} +1 -1
- package/{node/esm/HgVmqQQhKQ_2v0HD.mjs → browser/esm/BCRhRyTDe0QO3_TF.mjs} +2 -2
- package/browser/esm/{Bsb5i9Jq-Q8RTmvi.mjs → BTygNwyrCzzpikEl.mjs} +1 -1
- package/{node/esm/-f-RKKojiLg94hp9.mjs → browser/esm/C1TlAj8cFI90ziZT.mjs} +51 -11
- package/{node/esm/CkG4LZN-kb7plKXG.mjs → browser/esm/C2WtsJFzD2GtwSHc.mjs} +69 -4
- package/browser/esm/{CVv3DuciDQrnFFeu.mjs → C2nw0NszguSU0idO.mjs} +1 -1
- package/browser/esm/{B3pEie3jQN0SvV5B.mjs → CXDwT-uLbi_ZUF6Q.mjs} +1 -1
- package/browser/esm/{BM1YhvA2ppUZ3QLB.mjs → CXvEGkvOOLo4v17T.mjs} +1 -1
- package/browser/esm/{D2miaIrotHbpdWei.mjs → CYtUFqOZCtbGw6Sa.mjs} +1 -1
- package/browser/esm/{0amsHACCOHE_JjXI.mjs → CpGJ_hA0h7CW4Jwu.mjs} +1 -1
- package/{node/esm/CCGjvL3YYwY09qF-.mjs → browser/esm/CrfZkfvKRkK2qzpP.mjs} +1 -1
- package/browser/esm/{DKFABgVKeBMflym9.mjs → D-w_d2PrWN8kwM-Z.mjs} +1 -1
- package/browser/esm/{Cdl7ZalV6WPZHHRE.mjs → DG5YNbA9Ya6Uu3DG.mjs} +1 -1
- package/browser/esm/{DtqLXxtPFISlNoUd.mjs → DO9cbfqY2roOBQQi.mjs} +1 -1
- package/{node/esm/CWAtVXxcIz86XLzE.mjs → browser/esm/DYoyWWN86dEdpzVg.mjs} +1 -1
- package/{node/esm/Ct1gudv1TKk-5FMO.mjs → browser/esm/D_PYZQxUASNNORTU.mjs} +48 -2
- package/browser/esm/{Cyvobf2wi0quDD3U.mjs → KekfJtUQq6sPOmPq.mjs} +1 -1
- package/browser/esm/{C7mAHEhFYDwSEU6O.mjs → PDRj7r-fmSBrQgPS.mjs} +1 -1
- package/browser/esm/index.mjs +5125 -5831
- package/licenses/dependencies.txt +0 -33
- package/node/esm/{BzNFsi4RXuJrn_1n.mjs → -sN4SmS9cUOrcjVR.mjs} +1 -1
- package/node/esm/{B7750ljsJF3qA9kU.mjs → 0Q46gxHg8afOLJ7K.mjs} +37 -3
- package/{browser/esm/CG1Fn8D-2DrQZoD5.mjs → node/esm/B-Ig6HWcV53g7Zy0.mjs} +1 -1
- package/node/esm/{BR2ai1V5dGPphpRf.mjs → B52kG70ukWJKrVHl.mjs} +2 -5
- package/{browser/esm/CltdofO5ik8g_wQ8.mjs → node/esm/B9GCCzx3ZtHrtgsZ.mjs} +1 -1
- package/{browser/esm/HgVmqQQhKQ_2v0HD.mjs → node/esm/BCRhRyTDe0QO3_TF.mjs} +2 -2
- package/node/esm/{DxRD19RVMzj2YvKF.mjs → BN0QCtL-dZU8U-hd.mjs} +1 -1
- package/node/esm/{B8rSUcOwH6g4MUgm.mjs → Bp4XujtHH5z4dKlz.mjs} +1 -1
- package/{browser/esm/-f-RKKojiLg94hp9.mjs → node/esm/C--VBbIp253pJfw9.mjs} +51 -11
- package/node/esm/{ZUay0bTGgyrF8e04.mjs → C-jlV3objhN9hpyt.mjs} +1 -1
- package/node/esm/{DDajoVNkJB39_Fkx.mjs → C1Qq-yVzO0uZUnVb.mjs} +1 -1
- package/{browser/esm/CkG4LZN-kb7plKXG.mjs → node/esm/C2WtsJFzD2GtwSHc.mjs} +69 -4
- package/node/esm/{CVv3DuciDQrnFFeu.mjs → C2nw0NszguSU0idO.mjs} +1 -1
- package/node/esm/{D2miaIrotHbpdWei.mjs → CYtUFqOZCtbGw6Sa.mjs} +1 -1
- package/node/esm/{2TCIoMd-SYs6i4-N.mjs → Cf28UVIhJr5Y-_24.mjs} +1 -1
- package/{browser/esm/Ct1gudv1TKk-5FMO.mjs → node/esm/CkO4Hx9aLq7m3emI.mjs} +48 -2
- package/{browser/esm/CCGjvL3YYwY09qF-.mjs → node/esm/CrfZkfvKRkK2qzpP.mjs} +1 -1
- package/node/esm/{DKFABgVKeBMflym9.mjs → D-w_d2PrWN8kwM-Z.mjs} +1 -1
- package/node/esm/{Cdl7ZalV6WPZHHRE.mjs → DG5YNbA9Ya6Uu3DG.mjs} +1 -1
- package/node/esm/{DtqLXxtPFISlNoUd.mjs → DO9cbfqY2roOBQQi.mjs} +1 -1
- package/{browser/esm/CWAtVXxcIz86XLzE.mjs → node/esm/DYoyWWN86dEdpzVg.mjs} +1 -1
- package/node/esm/{Cyvobf2wi0quDD3U.mjs → KekfJtUQq6sPOmPq.mjs} +1 -1
- package/node/esm/{C7mAHEhFYDwSEU6O.mjs → PDRj7r-fmSBrQgPS.mjs} +1 -1
- package/node/esm/index.mjs +5787 -4658
- package/package.json +6 -8
- package/types/src/.generated/decl/dateTime/Date.decl.d.ts +2 -1
- package/types/src/.generated/decl/information/Information.decl.d.ts +2 -1
- package/types/src/.generated/decl/lookupReference/Reference.decl.d.ts +2 -1
- package/types/src/.generated/decl/mathTrig/Math.decl.d.ts +2 -1
- package/types/src/.generated/desc/dateTime/Date.desc.d.ts +2 -1
- package/types/src/.generated/desc/information/Information.desc.d.ts +2 -1
- package/types/src/.generated/desc/lookupReference/Reference.desc.d.ts +2 -1
- package/types/src/.generated/desc/mathTrig/Math.desc.d.ts +2 -1
- package/types/src/_utils/AValues.d.ts +30 -0
- package/types/src/_utils/AggregateIFS.d.ts +3 -1
- package/types/src/_utils/Arithmetic.d.ts +36 -0
- package/types/src/_utils/Combinatorics.d.ts +20 -0
- package/types/src/_utils/Distributions.d.ts +94 -0
- package/types/src/_utils/Errors.d.ts +1 -20
- package/types/src/_utils/FirstCell.d.ts +32 -0
- package/types/src/_utils/Matrix.d.ts +31 -0
- package/types/src/_utils/SpecialFunctions.d.ts +91 -0
- package/types/src/_utils/X87.d.ts +28 -0
- package/types/src/database/Database.d.ts +25 -25
- package/types/src/dateTime/Date.d.ts +250 -41
- package/types/src/engineering/Bessel.d.ts +9 -9
- package/types/src/engineering/Bitwise.d.ts +35 -35
- package/types/src/engineering/Convert.d.ts +3 -3
- package/types/src/engineering/Engineering.d.ts +5 -5
- package/types/src/engineering/Error.d.ts +9 -9
- package/types/src/engineering/Imaginary.d.ts +54 -54
- package/types/src/information/Information.d.ts +118 -49
- package/types/src/japanese/Date.d.ts +2 -2
- package/types/src/japanese/Text.d.ts +1 -1
- package/types/src/logical/Logical.d.ts +45 -39
- package/types/src/lookupReference/Reference.d.ts +212 -86
- package/types/src/mathTrig/Math.d.ts +499 -152
- package/types/src/mathTrig/Trig.d.ts +26 -22
- package/types/src/operators/Operators.d.ts +15 -15
- package/types/src/statistical/Distribution.d.ts +157 -161
- package/types/src/statistical/Statistical.d.ts +37 -37
- package/types/src/testing/Testing.d.ts +2 -2
- package/types/src/text/Text.d.ts +119 -54
- package/types/src/thai/Text.d.ts +1 -1
- package/types/src/web/FilterXML.d.ts +1 -1
- package/types/src/web/Web.d.ts +2 -2
- package/browser/cjs/1XrWGMP3GmsQOMIX.cjs +0 -1
- package/browser/cjs/49_x589Na12sizKK.cjs +0 -1
- package/browser/cjs/4nReftSsKWmnRdtf.cjs +0 -1
- package/browser/cjs/507hQYooKKjnRzsZ.cjs +0 -1
- package/browser/cjs/BAxVLKkxFgI6cXnR.cjs +0 -1
- package/browser/cjs/BK0SCfN_VZYqBxoQ.cjs +0 -1
- package/browser/cjs/Btc0Nzu40VYOpzLX.cjs +0 -1
- package/browser/cjs/C9C-pr-T_ThweQX9.cjs +0 -1
- package/browser/cjs/CJYewYJ5Z3iojl7J.cjs +0 -1
- package/browser/cjs/CRx1WvmgBjT8WVyB.cjs +0 -1
- package/browser/cjs/CV4KQsHluMqo1I2Q.cjs +0 -1
- package/browser/cjs/CXlzsh_WHCOsErJ1.cjs +0 -1
- package/browser/cjs/CpJJh4UnFl1_qFui.cjs +0 -1
- package/browser/cjs/CrZlUtdX1h2RUnCP.cjs +0 -1
- package/browser/cjs/D8-KovdJ0LjxqCe2.cjs +0 -1
- package/browser/cjs/DCIlWcGDrp-5PDoA.cjs +0 -1
- package/browser/cjs/DDnGLOLTqLFsdUDS.cjs +0 -1
- package/browser/cjs/DG2kqsWRUtVugjay.cjs +0 -1
- package/browser/cjs/DM7-R_ltoLbA9jde.cjs +0 -1
- package/browser/cjs/DNKyaSruDogoBd2H.cjs +0 -1
- package/browser/cjs/Du4jBiFxRIF1OjD4.cjs +0 -1
- package/browser/cjs/EeOVMRq7TuptFKTc.cjs +0 -1
- package/browser/cjs/Kvn916ebqGc4t6hv.cjs +0 -1
- package/browser/cjs/aONv0Ys3C8xmnaR8.cjs +0 -1
- package/browser/cjs/index.cjs +0 -1
- package/browser/cjs/z_rZE1OHFPpdGBh4.cjs +0 -1
- package/browser/esm/C9jpXFBeugwmOTbx.mjs +0 -21
- package/browser/esm/Crb70T1Sp1S4uzq4.mjs +0 -24
- package/node/esm/C9jpXFBeugwmOTbx.mjs +0 -21
- package/node/esm/Crb70T1Sp1S4uzq4.mjs +0 -24
- package/types/src/.generated/decl/lookupReference/GroupBy.decl.d.ts +0 -4
- package/types/src/.generated/decl/lookupReference/PivotBy.decl.d.ts +0 -4
- package/types/src/.generated/desc/lookupReference/GroupBy.desc.d.ts +0 -4
- package/types/src/.generated/desc/lookupReference/PivotBy.desc.d.ts +0 -4
- package/types/src/lookupReference/GroupBy.d.ts +0 -19
- package/types/src/lookupReference/PivotBy.d.ts +0 -24
|
@@ -1,153 +1,153 @@
|
|
|
1
|
-
import { AcceptError, Scalar } from '@sheetxl/primitives';
|
|
1
|
+
import { AcceptError, Omittable, Scalar, NoLift } from '@sheetxl/primitives';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Converts real and imaginary coefficients into a complex number.
|
|
4
4
|
* @param realNum is the real coefficient of the complex number.
|
|
5
5
|
* @param iNum is the imaginary coefficient of the complex number.
|
|
6
6
|
* @param suffix is the suffix for the imaginary component of the complex number.
|
|
7
7
|
*/
|
|
8
|
-
export declare function COMPLEX(realNum: AcceptError<Scalar
|
|
8
|
+
export declare function COMPLEX(realNum: NoLift<Omittable<AcceptError<Scalar>>>, iNum: NoLift<Omittable<AcceptError<Scalar>>>, suffix?: NoLift<AcceptError<string>>): Scalar;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Returns the absolute value (modulus) of a complex number
|
|
11
11
|
* @param inumber is a complex number for which you want the absolute value
|
|
12
12
|
*/
|
|
13
|
-
export declare function IMABS(inumber: Scalar): number;
|
|
13
|
+
export declare function IMABS(inumber: NoLift<Scalar>): number;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Returns the imaginary coefficient of a complex number
|
|
16
16
|
* @param inumber is a complex number for which you want the imaginary coefficient
|
|
17
17
|
*/
|
|
18
|
-
export declare function IMAGINARY(inumber: Scalar): number;
|
|
18
|
+
export declare function IMAGINARY(inumber: NoLift<Scalar>): number;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Returns the argument q, an angle expressed in radians
|
|
21
21
|
* @param inumber is a complex number for which you want the argument
|
|
22
22
|
*/
|
|
23
|
-
export declare function IMARGUMENT(inumber: Scalar): number;
|
|
23
|
+
export declare function IMARGUMENT(inumber: NoLift<Scalar>): number;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Returns the complex conjugate of a complex number
|
|
26
26
|
* @param inumber is a complex number for which you want the conjugate
|
|
27
27
|
*/
|
|
28
|
-
export declare function IMCONJUGATE(inumber: Scalar): Scalar;
|
|
28
|
+
export declare function IMCONJUGATE(inumber: NoLift<Scalar>): Scalar;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Returns the cosine of a complex number
|
|
31
31
|
* @param inumber is a complex number for which you want the cosine
|
|
32
32
|
*/
|
|
33
|
-
export declare function IMCOS(inumber: Scalar): Scalar;
|
|
33
|
+
export declare function IMCOS(inumber: NoLift<Scalar>): Scalar;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Returns the hyperbolic cosine of a complex number
|
|
36
36
|
* @param inumber is a complex number for which you want the hyperbolic cosine
|
|
37
37
|
*/
|
|
38
|
-
export declare function IMCOSH(inumber: Scalar): Scalar;
|
|
38
|
+
export declare function IMCOSH(inumber: NoLift<Scalar>): Scalar;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Returns the cotangent of a complex number
|
|
41
41
|
* @param inumber is a complex number for which you want the cotangent
|
|
42
42
|
*/
|
|
43
|
-
export declare function IMCOT(inumber: Scalar): Scalar;
|
|
43
|
+
export declare function IMCOT(inumber: NoLift<Scalar>): Scalar;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Returns the hyperbolic cotangent of a complex number.
|
|
46
46
|
* @param inumber is a complex number for which you want the hyperbolic cotangent.
|
|
47
47
|
* @category Sheets
|
|
48
48
|
*/
|
|
49
49
|
export declare function IMCOTH(inumber: Scalar): Scalar;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Returns the cosecant of a complex number
|
|
52
52
|
* @param inumber is a complex number for which you want the cosecant
|
|
53
53
|
*/
|
|
54
|
-
export declare function IMCSC(inumber: Scalar): Scalar;
|
|
54
|
+
export declare function IMCSC(inumber: NoLift<Scalar>): Scalar;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Returns the hyperbolic cosecant of a complex number
|
|
57
57
|
* @param inumber is a complex number for which you want the hyperbolic cosecant
|
|
58
58
|
*/
|
|
59
|
-
export declare function IMCSCH(inumber: Scalar): Scalar;
|
|
59
|
+
export declare function IMCSCH(inumber: NoLift<Scalar>): Scalar;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Returns the quotient of two complex numbers
|
|
62
62
|
* @param inumber1 is the complex numerator or dividend
|
|
63
63
|
* @param inumber2 is the complex denominator or divisor
|
|
64
64
|
*/
|
|
65
|
-
export declare function IMDIV(inumber1: Scalar
|
|
65
|
+
export declare function IMDIV(inumber1: NoLift<Omittable<AcceptError<Scalar>>>, inumber2: NoLift<Omittable<AcceptError<Scalar>>>): Scalar;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Returns the exponential of a complex number
|
|
68
68
|
* @param inumber is a complex number for which you want the exponential
|
|
69
69
|
*/
|
|
70
|
-
export declare function IMEXP(inumber: Scalar): Scalar;
|
|
70
|
+
export declare function IMEXP(inumber: NoLift<Scalar>): Scalar;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* Returns the exponential of a complex number
|
|
73
73
|
* @param inumber is a complex number for which you want the exponential
|
|
74
74
|
*/
|
|
75
|
-
export declare function IMLN(inumber: Scalar): Scalar;
|
|
75
|
+
export declare function IMLN(inumber: NoLift<Scalar>): Scalar;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Returns the logarithm of a complex number to a specified base.
|
|
78
78
|
* @param inumber is a complex number for which you want the logarithm.
|
|
79
79
|
* @param base is the base of the logarithm. Default is 10.
|
|
80
80
|
* @category Sheets
|
|
81
81
|
*/
|
|
82
82
|
export declare function IMLOG(inumber: Scalar, base?: number): Scalar;
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* Returns the base-10 logarithm of a complex number
|
|
85
85
|
* @param inumber is a complex number for which you want the common logarithm
|
|
86
86
|
*/
|
|
87
|
-
export declare function IMLOG10(inumber: Scalar): Scalar;
|
|
87
|
+
export declare function IMLOG10(inumber: NoLift<Scalar>): Scalar;
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* Returns the base-2 logarithm of a complex number
|
|
90
90
|
* @param inumber is a complex number for which you want the base-2 logarithm
|
|
91
91
|
*/
|
|
92
|
-
export declare function IMLOG2(inumber: Scalar): Scalar;
|
|
92
|
+
export declare function IMLOG2(inumber: NoLift<Scalar>): Scalar;
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
94
|
+
* Returns the base-2 logarithm of a complex number
|
|
95
95
|
* @param inumber is a complex number for which you want the base-2 logarithm
|
|
96
96
|
*/
|
|
97
|
-
export declare function IMPOWER(inumber: Scalar
|
|
97
|
+
export declare function IMPOWER(inumber: NoLift<Omittable<AcceptError<Scalar>>>, number: NoLift<Omittable<AcceptError<Scalar>>>): Scalar;
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
99
|
+
* Returns the product of 1 to 255 complex numbers
|
|
100
100
|
* @param inumber are from 1 to 255 complex numbers to multiply.
|
|
101
101
|
*/
|
|
102
102
|
export declare function IMPRODUCT(inumber: Scalar[]): Scalar;
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* Returns the real coefficient of a complex number
|
|
105
105
|
* @param inumber is a complex number for which you want the real coefficient
|
|
106
106
|
*/
|
|
107
|
-
export declare function IMREAL(inumber: Scalar): number;
|
|
107
|
+
export declare function IMREAL(inumber: NoLift<Scalar>): number;
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
109
|
+
* Returns the secant of a complex number
|
|
110
110
|
* @param inumber is a complex number for which you want the secant
|
|
111
111
|
*/
|
|
112
|
-
export declare function IMSEC(inumber: Scalar): Scalar;
|
|
112
|
+
export declare function IMSEC(inumber: NoLift<Scalar>): Scalar;
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
114
|
+
* Returns the hyperbolic secant of a complex number
|
|
115
115
|
* @param inumber is a complex number for which you want the hyperbolic secant
|
|
116
116
|
*/
|
|
117
|
-
export declare function IMSECH(inumber: Scalar): Scalar;
|
|
117
|
+
export declare function IMSECH(inumber: NoLift<Scalar>): Scalar;
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
119
|
+
* Returns the sine of a complex number
|
|
120
120
|
* @param inumber is a complex number for which you want the sine
|
|
121
121
|
*/
|
|
122
|
-
export declare function IMSIN(inumber: Scalar): Scalar;
|
|
122
|
+
export declare function IMSIN(inumber: NoLift<Scalar>): Scalar;
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
124
|
+
* Returns the hyperbolic sine of a complex number
|
|
125
125
|
* @param inumber is a complex number for which you want the hyperbolic sine
|
|
126
126
|
*/
|
|
127
|
-
export declare function IMSINH(inumber: Scalar): Scalar;
|
|
127
|
+
export declare function IMSINH(inumber: NoLift<Scalar>): Scalar;
|
|
128
128
|
/**
|
|
129
|
-
*
|
|
129
|
+
* Returns the square root of a complex number
|
|
130
130
|
* @param inumber is a complex number for which you want the square root
|
|
131
131
|
*/
|
|
132
|
-
export declare function IMSQRT(inumber: Scalar): Scalar;
|
|
132
|
+
export declare function IMSQRT(inumber: NoLift<Scalar>): Scalar;
|
|
133
133
|
/**
|
|
134
|
-
*
|
|
134
|
+
* Returns the difference of two complex numbers
|
|
135
135
|
* @param inumber1 is the complex number from which to subtract inumber2
|
|
136
136
|
* @param inumber2 is the complex number to subtract from inumber1
|
|
137
137
|
*/
|
|
138
|
-
export declare function IMSUB(inumber1: Scalar
|
|
138
|
+
export declare function IMSUB(inumber1: NoLift<Omittable<AcceptError<Scalar>>>, inumber2: NoLift<Omittable<AcceptError<Scalar>>>): Scalar;
|
|
139
139
|
/**
|
|
140
|
-
*
|
|
140
|
+
* Returns the sum of complex numbers
|
|
141
141
|
* @param inumber are from 1 to 255 complex numbers to add
|
|
142
142
|
*/
|
|
143
143
|
export declare function IMSUM(inumber: Scalar[]): Scalar;
|
|
144
144
|
/**
|
|
145
|
-
*
|
|
145
|
+
* Returns the tangent of a complex number
|
|
146
146
|
* @param inumber is a complex number for which you want the tangent
|
|
147
147
|
*/
|
|
148
|
-
export declare function IMTAN(inumber: Scalar): Scalar;
|
|
148
|
+
export declare function IMTAN(inumber: NoLift<Scalar>): Scalar;
|
|
149
149
|
/**
|
|
150
|
-
*
|
|
150
|
+
* Returns the hyperbolic tangent of a complex number.
|
|
151
151
|
* @param inumber is a complex number for which you want the hyperbolic tangent.
|
|
152
152
|
* @category Sheets
|
|
153
153
|
*/
|
|
@@ -1,33 +1,107 @@
|
|
|
1
|
-
import { FormulaError, AcceptError,
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { FormulaError, AcceptError, NoLift, ReportType, Scalar, Volatile, IReferenceRange, IRange, Flatten } from '@sheetxl/primitives';
|
|
2
|
+
/**
|
|
3
|
+
* The information to return about the cell.
|
|
4
|
+
*/
|
|
5
|
+
declare enum CellInfoType {
|
|
6
|
+
/** Reference of the first cell in the reference, as text. */
|
|
7
|
+
Address = "address",
|
|
8
|
+
/** Column number of the cell in the reference. */
|
|
9
|
+
Col = "col",
|
|
10
|
+
/**
|
|
11
|
+
* 1 if the cell is formatted in color for negative values; otherwise 0.
|
|
12
|
+
* @deprecated Excel desktop only
|
|
13
|
+
*/
|
|
14
|
+
Color = "color",
|
|
15
|
+
/** Value of the upper-left cell in the reference; not a formula. */
|
|
16
|
+
Contents = "contents",
|
|
17
|
+
/**
|
|
18
|
+
* Full path of the file that contains the reference, as text.
|
|
19
|
+
* @deprecated Excel desktop only
|
|
20
|
+
*/
|
|
21
|
+
Filename = "filename",
|
|
22
|
+
/**
|
|
23
|
+
* Text value corresponding to the number format of the cell.
|
|
24
|
+
* @deprecated Excel desktop only
|
|
25
|
+
*/
|
|
26
|
+
Format = "format",
|
|
27
|
+
/**
|
|
28
|
+
* 1 if the cell is formatted with parentheses for positive or all values; otherwise 0.
|
|
29
|
+
* @deprecated Excel desktop only
|
|
30
|
+
*/
|
|
31
|
+
Parentheses = "parentheses",
|
|
32
|
+
/**
|
|
33
|
+
* Text value corresponding to the label prefix of the cell.
|
|
34
|
+
* @deprecated Excel desktop only
|
|
35
|
+
*/
|
|
36
|
+
Prefix = "prefix",
|
|
37
|
+
/**
|
|
38
|
+
* 0 if the cell is not locked; otherwise 1.
|
|
39
|
+
* @deprecated Excel desktop only
|
|
40
|
+
*/
|
|
41
|
+
Protect = "protect",
|
|
42
|
+
/** Row number of the cell in the reference. */
|
|
43
|
+
Row = "row",
|
|
44
|
+
/** "b" for a blank cell, "l" for a text constant, "v" for anything else. */
|
|
45
|
+
Type = "type",
|
|
46
|
+
/**
|
|
47
|
+
* Column width of the cell, rounded to an integer.
|
|
48
|
+
* @deprecated Excel desktop only
|
|
49
|
+
*/
|
|
50
|
+
Width = "width"
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Returns information about the cell.
|
|
54
|
+
* @param infoType The type of information to return.
|
|
55
|
+
* @param reference The cell to report on. Defaults to the cell holding the formula.
|
|
7
56
|
*
|
|
8
57
|
* @remarks
|
|
9
58
|
* This has similar functionality to Excel online but is missing formatting information from Excel desktop.
|
|
10
59
|
* {@link https://support.office.com/client/results?authtype=unknown&lcid=1033&locale=en-us&ns=EXCEL&syslcid=1033&uilcid=1033&version=90&helpid=xlmain11.chm60173}
|
|
11
60
|
*/
|
|
12
|
-
export declare function CELL(infoType:
|
|
61
|
+
export declare function CELL(infoType: CellInfoType, reference?: IReferenceRange): Volatile<Scalar>;
|
|
13
62
|
/**
|
|
63
|
+
* Returns a number matching an error value.
|
|
14
64
|
* @name ERROR.TYPE
|
|
15
|
-
* @summary Returns a number matching an error value.
|
|
16
65
|
* @param errorVal is the error value for which you want the identifying number, and can be an actual error value or a reference to a cell containing an error value.
|
|
17
66
|
*/
|
|
18
67
|
export declare function ERROR_TYPE(errorVal: AcceptError<Scalar>): Scalar;
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
68
|
+
/** The information to return about the operating environment. */
|
|
69
|
+
declare enum InfoType {
|
|
70
|
+
/** Path of the current directory or folder. */
|
|
71
|
+
Directory = "directory",
|
|
72
|
+
/** Amount of memory available. Legacy: answers #N/A. */
|
|
73
|
+
MemAvail = "memavail",
|
|
74
|
+
/** Amount of memory being used for data. Legacy: answers #N/A. */
|
|
75
|
+
MemUsed = "memused",
|
|
76
|
+
/** Number of active worksheets in the open workbooks. */
|
|
77
|
+
NumFile = "numfile",
|
|
78
|
+
/** Absolute reference of the top and leftmost visible cell. */
|
|
79
|
+
Origin = "origin",
|
|
80
|
+
/** Current operating system version, as text. */
|
|
81
|
+
OSVersion = "osversion",
|
|
82
|
+
/** Current recalculation mode; "Automatic" or "Manual". */
|
|
83
|
+
Recalc = "recalc",
|
|
84
|
+
/** Version of the application, as text. */
|
|
85
|
+
Release = "release",
|
|
86
|
+
/** Name of the operating environment; "pcdos" or "mac". */
|
|
87
|
+
System = "system",
|
|
88
|
+
/** Total memory available. Legacy: answers #N/A. */
|
|
89
|
+
TotMem = "totmem",
|
|
90
|
+
/** The licensed user. Not part of Excel. */
|
|
91
|
+
User = "user"
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Returns information about the current operating system.
|
|
95
|
+
* @param typeText The type of information to return.
|
|
96
|
+
*/
|
|
97
|
+
export declare function INFO(typeText: InfoType): Volatile<Scalar>;
|
|
98
|
+
/**
|
|
99
|
+
* Checks whether a reference is to an empty cell, and returns TRUE or FALSE.
|
|
26
100
|
* @param value is the cell or a name that refers to the cell you want to test.
|
|
27
101
|
*/
|
|
28
102
|
export declare function ISBLANK(value: AcceptError<Scalar>): boolean;
|
|
29
103
|
/**
|
|
30
|
-
*
|
|
104
|
+
* Returns TRUE if the value is a date.
|
|
31
105
|
* @param value The value to check.
|
|
32
106
|
* @category Sheets
|
|
33
107
|
*
|
|
@@ -59,108 +133,103 @@ export declare function ISBLANK(value: AcceptError<Scalar>): boolean;
|
|
|
59
133
|
*/
|
|
60
134
|
export declare function ISDATE(value: Scalar): boolean;
|
|
61
135
|
/**
|
|
62
|
-
*
|
|
136
|
+
* Returns TRUE if the value is a valid email address.
|
|
63
137
|
* @param value The value to check.
|
|
64
138
|
* @category Sheets
|
|
65
139
|
*/
|
|
66
140
|
export declare function ISEMAIL(value: string): boolean;
|
|
67
141
|
/**
|
|
68
|
-
*
|
|
142
|
+
* Checks whether a value is an error other than #N/A, and returns TRUE or FALSE.
|
|
69
143
|
* @param value is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value.
|
|
70
144
|
*/
|
|
71
145
|
export declare function ISERR(value: AcceptError<Scalar>): Scalar;
|
|
72
146
|
/**
|
|
73
|
-
*
|
|
147
|
+
* Checks whether a value is an error, and returns TRUE or FALSE
|
|
74
148
|
* @param value is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value
|
|
75
149
|
*/
|
|
76
150
|
export declare function ISERROR(value: AcceptError<Scalar>): Scalar;
|
|
77
151
|
/**
|
|
78
|
-
*
|
|
152
|
+
* Returns TRUE if the number is even.
|
|
79
153
|
* @param number is the value to test.
|
|
80
|
-
*
|
|
81
|
-
* @remarks
|
|
82
|
-
* We take a range to error if a range.
|
|
83
154
|
*/
|
|
84
|
-
export declare function ISEVEN(number:
|
|
155
|
+
export declare function ISEVEN(number: NoLift<Scalar>): Scalar;
|
|
85
156
|
/**
|
|
86
|
-
*
|
|
157
|
+
* Checks whether a reference is to a cell containing a formula, and returns TRUE or FALSE.
|
|
87
158
|
* @param reference is a reference to the cell you want to test. Reference can be a cell reference, a formula, or name that refers to a cell.
|
|
88
159
|
*/
|
|
89
|
-
export declare function ISFORMULA(reference:
|
|
160
|
+
export declare function ISFORMULA(reference: ReportType<IReferenceRange>): boolean;
|
|
90
161
|
/**
|
|
91
|
-
*
|
|
162
|
+
* Checks whether a value is a logical value (TRUE or FALSE), and returns TRUE or FALSE.
|
|
92
163
|
* @param value is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value.
|
|
93
164
|
*/
|
|
94
165
|
export declare function ISLOGICAL(value: AcceptError<Scalar>): boolean;
|
|
95
166
|
/**
|
|
96
|
-
*
|
|
167
|
+
* Checks whether a value is #N/A, and returns TRUE or FALSE.
|
|
97
168
|
* @param value is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value.
|
|
98
169
|
*/
|
|
99
170
|
export declare function ISNA(value: AcceptError<Scalar>): boolean;
|
|
100
171
|
/**
|
|
101
|
-
*
|
|
172
|
+
* Checks whether a value is not text (blank cells are not text), and returns TRUE or FALSE.
|
|
102
173
|
* @param value is the value you want tested: a cell; a formula; or a name referring to a cell, formula, or value.
|
|
103
174
|
*/
|
|
104
175
|
export declare function ISNONTEXT(value: AcceptError<Scalar>): boolean;
|
|
105
176
|
/**
|
|
106
|
-
*
|
|
177
|
+
* Checks whether a value is not text (blank cells are not text), and returns TRUE or FALSE.
|
|
107
178
|
* @param value is the value you want tested: a cell; a formula; or a name referring to a cell, formula, or value.
|
|
108
179
|
*/
|
|
109
180
|
export declare function ISNUMBER(value: AcceptError<Scalar>): boolean;
|
|
110
181
|
/**
|
|
111
|
-
*
|
|
182
|
+
* Returns TRUE if the number is odd.
|
|
112
183
|
* @param number is the value to test.
|
|
113
|
-
*
|
|
114
|
-
* @remarks
|
|
115
|
-
* We take a range to error if a range.
|
|
116
184
|
*/
|
|
117
|
-
export declare function ISODD(number:
|
|
185
|
+
export declare function ISODD(number: NoLift<Scalar>): Scalar;
|
|
118
186
|
/**
|
|
119
|
-
*
|
|
187
|
+
* Checks whether the value is omitted, and returns TRUE or FALSE.
|
|
120
188
|
* @param argument is the value you want to test, such as a LAMBDA parameter.
|
|
121
189
|
*/
|
|
122
|
-
export declare function ISOMITTED(argument: AcceptError<
|
|
190
|
+
export declare function ISOMITTED(argument: AcceptError<any>): boolean;
|
|
123
191
|
/**
|
|
124
|
-
*
|
|
192
|
+
* Returns TRUE if the value is a valid HTTP or HTTPS URL.
|
|
125
193
|
* @param value The value to check.
|
|
126
194
|
* @category Sheets
|
|
127
195
|
*/
|
|
128
196
|
export declare function ISURL(value: string): boolean;
|
|
129
197
|
/**
|
|
130
|
-
*
|
|
198
|
+
* Checks whether a value is a reference, and returns TRUE or FALSE.
|
|
131
199
|
* @param value is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value.
|
|
132
200
|
*/
|
|
133
201
|
export declare function ISREF(value: Flatten<AcceptError<IRange>>): boolean;
|
|
134
202
|
/**
|
|
135
|
-
*
|
|
203
|
+
* Converts a value to text in a specific number format.
|
|
136
204
|
* @param value is a number, a formula that evaluates to a numeric value, or a reference to a cell containing a numeric value.
|
|
137
205
|
*/
|
|
138
206
|
export declare function ISTEXT(value: AcceptError<Scalar>): boolean;
|
|
139
207
|
/**
|
|
140
|
-
*
|
|
208
|
+
* Converts non-number value to a number, dates to serial numbers, TRUE to 1, anything else to 0 (zero).
|
|
141
209
|
* @param value is the value to convert.
|
|
142
210
|
*/
|
|
143
|
-
export declare function N(value:
|
|
211
|
+
export declare function N(value: IRange | Scalar): Scalar;
|
|
144
212
|
/**
|
|
145
|
-
*
|
|
213
|
+
* Returns the #N/A error value
|
|
146
214
|
*/
|
|
147
215
|
export declare function NA(): FormulaError.Known;
|
|
148
|
-
|
|
149
|
-
*
|
|
216
|
+
/**
|
|
217
|
+
* Returns the sheet number of the referenced sheet.
|
|
150
218
|
* @param value is the name of a sheet or a reference that you want the sheet number of. If omitted the number of the sheet containing the function is returned.
|
|
151
219
|
*/
|
|
152
|
-
export declare function SHEET(value?:
|
|
220
|
+
export declare function SHEET(value?: ReportType<IRange>): Scalar;
|
|
153
221
|
/**
|
|
154
|
-
*
|
|
222
|
+
* Returns the number of sheets in a reference.
|
|
155
223
|
* @param reference is a reference for which you want to know the number of sheets it contains. If omitted the number of sheets in the workbook containing the function is returned.
|
|
156
224
|
*
|
|
157
225
|
* @remarks
|
|
158
226
|
* A non-reference argument — a number, text, an array, a computed value — returns `#N/A`.
|
|
159
227
|
*/
|
|
160
|
-
export declare function SHEETS(reference?:
|
|
228
|
+
export declare function SHEETS(reference?: ReportType<IRange>): number | FormulaError.Known;
|
|
161
229
|
/**
|
|
162
|
-
*
|
|
230
|
+
* Returns an integer representing the data type of a value: number = 1; text = 2; logical value = 4; error value = 16; array = 64; compound data = 128.
|
|
163
231
|
* @param value is the value to check.
|
|
164
232
|
*/
|
|
165
233
|
export declare function TYPE(value: AcceptError<IRange>): number;
|
|
234
|
+
export {};
|
|
166
235
|
//# sourceMappingURL=Information.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Scalar } from '@sheetxl/primitives';
|
|
2
2
|
/**
|
|
3
|
+
* Converts a standard date code into a localized text string.
|
|
3
4
|
* @hidden Unimplemented Japanese.
|
|
4
|
-
* @summary Converts a standard date code into a localized text string.
|
|
5
5
|
* @param number A numeric value representing a date code.
|
|
6
6
|
*/
|
|
7
7
|
export declare function DATESTRING(number: number): Scalar;
|
|
8
8
|
/**
|
|
9
|
+
* Converts a number into Japanese Kanji words.
|
|
9
10
|
* @hidden Unimplemented Japanese.
|
|
10
|
-
* @summary Converts a number into Japanese Kanji words.
|
|
11
11
|
* @param number A numeric value representing a date code.
|
|
12
12
|
* @param number2 A numeric value representing a date code.
|
|
13
13
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Scalar, IReferenceRange } from '@sheetxl/primitives';
|
|
2
2
|
/**
|
|
3
|
+
* Returns the phonetic spelling of a text string.
|
|
3
4
|
* @hidden Unimplemented Japanese.
|
|
4
|
-
* @summary Returns the phonetic spelling of a text string.
|
|
5
5
|
* @param reference Text string or a reference to a single cell or a range of cells that contain a furigana text string.
|
|
6
6
|
*/
|
|
7
7
|
export declare function PHONETIC(reference: IReferenceRange): Scalar | undefined;
|