@sheetxl/formulas 0.7.22 → 0.7.23-beta.1
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 +136 -12
- package/browser/cjs/1XrWGMP3GmsQOMIX.cjs +1 -0
- package/browser/cjs/49_x589Na12sizKK.cjs +1 -0
- package/browser/cjs/4nReftSsKWmnRdtf.cjs +1 -0
- package/browser/cjs/507hQYooKKjnRzsZ.cjs +1 -0
- package/browser/cjs/BAxVLKkxFgI6cXnR.cjs +1 -0
- package/browser/cjs/BK0SCfN_VZYqBxoQ.cjs +1 -0
- package/browser/cjs/Btc0Nzu40VYOpzLX.cjs +1 -0
- package/browser/cjs/C9C-pr-T_ThweQX9.cjs +1 -0
- package/browser/cjs/CJYewYJ5Z3iojl7J.cjs +1 -0
- package/browser/cjs/CRx1WvmgBjT8WVyB.cjs +1 -0
- package/browser/cjs/CV4KQsHluMqo1I2Q.cjs +1 -0
- package/browser/cjs/CXlzsh_WHCOsErJ1.cjs +1 -0
- package/browser/cjs/CpJJh4UnFl1_qFui.cjs +1 -0
- package/browser/cjs/CrZlUtdX1h2RUnCP.cjs +1 -0
- package/browser/cjs/D8-KovdJ0LjxqCe2.cjs +1 -0
- package/browser/cjs/DCIlWcGDrp-5PDoA.cjs +1 -0
- package/browser/cjs/DDnGLOLTqLFsdUDS.cjs +1 -0
- package/browser/cjs/DG2kqsWRUtVugjay.cjs +1 -0
- package/browser/cjs/DM7-R_ltoLbA9jde.cjs +1 -0
- package/browser/cjs/DNKyaSruDogoBd2H.cjs +1 -0
- package/browser/cjs/Du4jBiFxRIF1OjD4.cjs +1 -0
- package/browser/cjs/EeOVMRq7TuptFKTc.cjs +1 -0
- package/browser/cjs/Kvn916ebqGc4t6hv.cjs +1 -0
- package/browser/cjs/aONv0Ys3C8xmnaR8.cjs +1 -0
- package/browser/cjs/index.cjs +1 -6
- package/browser/cjs/z_rZE1OHFPpdGBh4.cjs +1 -0
- package/browser/esm/BHMlK3Db4AEwCc8k.mjs +105 -0
- package/browser/esm/Be1Tx6lgVRj6QlY1.mjs +319 -0
- package/browser/esm/Bzrz7GIyfT0PuIn6.mjs +24 -0
- package/browser/esm/C-lXpgXlA2WKf1V_.mjs +14 -0
- package/browser/esm/C5MTczfnFrB6dolC.mjs +119 -0
- package/browser/esm/C5Vw8q0MSo7v62lf.mjs +123 -0
- package/browser/esm/C8UX8jzdyVM8iAqD.mjs +173 -0
- package/browser/esm/CGlPjt0P7YJjti8l.mjs +12 -0
- package/browser/esm/CRlIy5CFlhXBrDWk.mjs +28 -0
- package/browser/esm/CWJFZhfpaNCRfPUF.mjs +144 -0
- package/browser/esm/CY4PVEGg-h4B-ULu.mjs +382 -0
- package/browser/esm/Cob4zcJp6JIPD88Q.mjs +17 -0
- package/browser/esm/Crca5jE3Yf7IZSH-.mjs +316 -0
- package/browser/esm/CtrldQ03taJCXRon.mjs +96 -0
- package/browser/esm/D1jCuakdJDAZRD90.mjs +28 -0
- package/browser/esm/DCSVv5SQ5HKw36ZJ.mjs +21 -0
- package/browser/esm/DMSc03XuAxrkQNc6.mjs +146 -0
- package/browser/esm/DOmYwMQ5JE_iPKuc.mjs +37 -0
- package/browser/esm/DTxIlCgwKM1DjV9j.mjs +15 -0
- package/browser/esm/DaEIkAVABMGdBSd-.mjs +13 -0
- package/browser/esm/Di6GWguaGctcPMXf.mjs +138 -0
- package/browser/esm/Dw5qhRU9fyKn0s0a.mjs +860 -0
- package/browser/esm/TJ5zLKdp58uJXh1V.mjs +111 -0
- package/browser/esm/ZkTa8jqGfCRiG5BM.mjs +22 -0
- package/browser/esm/index.mjs +13173 -13
- package/browser/esm/xGJGkl7HKha1KqKD.mjs +23 -0
- package/licenses/dependencies.txt +92 -1
- package/node/esm/BHMlK3Db4AEwCc8k.mjs +105 -0
- package/node/esm/BraxPv_fCpgAIJF5.mjs +319 -0
- package/node/esm/Bzrz7GIyfT0PuIn6.mjs +24 -0
- package/node/esm/C5MTczfnFrB6dolC.mjs +119 -0
- package/node/esm/C5Vw8q0MSo7v62lf.mjs +123 -0
- package/node/esm/C8UX8jzdyVM8iAqD.mjs +173 -0
- package/node/esm/CGlPjt0P7YJjti8l.mjs +12 -0
- package/node/esm/CRlIy5CFlhXBrDWk.mjs +28 -0
- package/node/esm/CWJFZhfpaNCRfPUF.mjs +144 -0
- package/node/esm/CY4PVEGg-h4B-ULu.mjs +382 -0
- package/node/esm/CiJmfBLxjqO3iRgD.mjs +14 -0
- package/node/esm/Cob4zcJp6JIPD88Q.mjs +17 -0
- package/node/esm/Crca5jE3Yf7IZSH-.mjs +316 -0
- package/node/esm/CtrldQ03taJCXRon.mjs +96 -0
- package/node/esm/D-ZOXtNuCTDM93kQ.mjs +13 -0
- package/node/esm/DCSVv5SQ5HKw36ZJ.mjs +21 -0
- package/node/esm/DMSc03XuAxrkQNc6.mjs +146 -0
- package/node/esm/DOmYwMQ5JE_iPKuc.mjs +37 -0
- package/node/esm/Di6GWguaGctcPMXf.mjs +138 -0
- package/node/esm/Dw5qhRU9fyKn0s0a.mjs +860 -0
- package/node/esm/TJ5zLKdp58uJXh1V.mjs +111 -0
- package/node/esm/ZkTa8jqGfCRiG5BM.mjs +22 -0
- package/node/esm/dGnxKKDT-QB9Z3ZI.mjs +28 -0
- package/node/esm/index.mjs +11091 -13
- package/node/esm/n1pCMSYSb9N-oHFd.mjs +15 -0
- package/node/esm/xGJGkl7HKha1KqKD.mjs +23 -0
- package/package.json +4 -3
- package/resources/contents.json +14 -0
- package/resources/locales/contents.json +9 -0
- package/resources/locales/de/functions.json +298 -0
- package/types/index.d.ts +4 -17
- package/types/src/.generated/decl/database/Database.decl.d.ts +4 -0
- package/types/src/.generated/decl/database/Database.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/dateTime/Date.decl.d.ts +4 -0
- package/types/src/.generated/decl/dateTime/Date.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/engineering/Bessel.decl.d.ts +4 -0
- package/types/src/.generated/decl/engineering/Bessel.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/engineering/Bitwise.decl.d.ts +4 -0
- package/types/src/.generated/decl/engineering/Bitwise.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/engineering/Convert.decl.d.ts +4 -0
- package/types/src/.generated/decl/engineering/Convert.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/engineering/Engineering.decl.d.ts +4 -0
- package/types/src/.generated/decl/engineering/Engineering.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/engineering/Error.decl.d.ts +4 -0
- package/types/src/.generated/decl/engineering/Error.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/engineering/Imaginary.decl.d.ts +4 -0
- package/types/src/.generated/decl/engineering/Imaginary.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/information/Information.decl.d.ts +4 -0
- package/types/src/.generated/decl/information/Information.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/japanese/Date.decl.d.ts +4 -0
- package/types/src/.generated/decl/japanese/Date.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/japanese/Text.decl.d.ts +4 -0
- package/types/src/.generated/decl/japanese/Text.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/logical/Logical.decl.d.ts +4 -0
- package/types/src/.generated/decl/logical/Logical.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/lookupReference/GroupBy.decl.d.ts +4 -0
- package/types/src/.generated/decl/lookupReference/GroupBy.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/lookupReference/PivotBy.decl.d.ts +4 -0
- package/types/src/.generated/decl/lookupReference/PivotBy.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/lookupReference/Reference.decl.d.ts +4 -0
- package/types/src/.generated/decl/lookupReference/Reference.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/mathTrig/Math.decl.d.ts +4 -0
- package/types/src/.generated/decl/mathTrig/Math.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/mathTrig/Trig.decl.d.ts +4 -0
- package/types/src/.generated/decl/mathTrig/Trig.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/operators/Operators.decl.d.ts +4 -0
- package/types/src/.generated/decl/operators/Operators.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/statistical/Distribution.decl.d.ts +4 -0
- package/types/src/.generated/decl/statistical/Distribution.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/statistical/Statistical.decl.d.ts +4 -0
- package/types/src/.generated/decl/statistical/Statistical.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/testing/Testing.decl.d.ts +4 -0
- package/types/src/.generated/decl/testing/Testing.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/text/Text.decl.d.ts +4 -0
- package/types/src/.generated/decl/text/Text.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/thai/Text.decl.d.ts +4 -0
- package/types/src/.generated/decl/thai/Text.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/web/FilterXML.decl.d.ts +4 -0
- package/types/src/.generated/decl/web/FilterXML.decl.d.ts.map +1 -0
- package/types/src/.generated/decl/web/Web.decl.d.ts +4 -0
- package/types/src/.generated/decl/web/Web.decl.d.ts.map +1 -0
- package/types/src/.generated/desc/database/Database.desc.d.ts +4 -0
- package/types/src/.generated/desc/database/Database.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/dateTime/Date.desc.d.ts +4 -0
- package/types/src/.generated/desc/dateTime/Date.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/engineering/Bessel.desc.d.ts +4 -0
- package/types/src/.generated/desc/engineering/Bessel.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/engineering/Bitwise.desc.d.ts +4 -0
- package/types/src/.generated/desc/engineering/Bitwise.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/engineering/Convert.desc.d.ts +4 -0
- package/types/src/.generated/desc/engineering/Convert.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/engineering/Engineering.desc.d.ts +4 -0
- package/types/src/.generated/desc/engineering/Engineering.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/engineering/Error.desc.d.ts +4 -0
- package/types/src/.generated/desc/engineering/Error.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/engineering/Imaginary.desc.d.ts +4 -0
- package/types/src/.generated/desc/engineering/Imaginary.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/information/Information.desc.d.ts +4 -0
- package/types/src/.generated/desc/information/Information.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/japanese/Date.desc.d.ts +4 -0
- package/types/src/.generated/desc/japanese/Date.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/japanese/Text.desc.d.ts +4 -0
- package/types/src/.generated/desc/japanese/Text.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/logical/Logical.desc.d.ts +4 -0
- package/types/src/.generated/desc/logical/Logical.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/lookupReference/GroupBy.desc.d.ts +4 -0
- package/types/src/.generated/desc/lookupReference/GroupBy.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/lookupReference/PivotBy.desc.d.ts +4 -0
- package/types/src/.generated/desc/lookupReference/PivotBy.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/lookupReference/Reference.desc.d.ts +4 -0
- package/types/src/.generated/desc/lookupReference/Reference.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/mathTrig/Math.desc.d.ts +4 -0
- package/types/src/.generated/desc/mathTrig/Math.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/mathTrig/Trig.desc.d.ts +4 -0
- package/types/src/.generated/desc/mathTrig/Trig.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/operators/Operators.desc.d.ts +4 -0
- package/types/src/.generated/desc/operators/Operators.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/statistical/Distribution.desc.d.ts +4 -0
- package/types/src/.generated/desc/statistical/Distribution.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/statistical/Statistical.desc.d.ts +4 -0
- package/types/src/.generated/desc/statistical/Statistical.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/testing/Testing.desc.d.ts +4 -0
- package/types/src/.generated/desc/testing/Testing.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/text/Text.desc.d.ts +4 -0
- package/types/src/.generated/desc/text/Text.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/thai/Text.desc.d.ts +4 -0
- package/types/src/.generated/desc/thai/Text.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/web/FilterXML.desc.d.ts +4 -0
- package/types/src/.generated/desc/web/FilterXML.desc.d.ts.map +1 -0
- package/types/src/.generated/desc/web/Web.desc.d.ts +4 -0
- package/types/src/.generated/desc/web/Web.desc.d.ts.map +1 -0
- package/types/src/.generated/index.d.ts +7 -0
- package/types/src/.generated/index.d.ts.map +1 -0
- package/types/src/_utils/AggregateIFS.d.ts +39 -0
- package/types/src/_utils/AggregateIFS.d.ts.map +1 -0
- package/types/src/_utils/Consts.d.ts +14 -0
- package/types/src/_utils/Consts.d.ts.map +1 -0
- package/types/src/_utils/Errors.d.ts +33 -0
- package/types/src/_utils/Errors.d.ts.map +1 -0
- package/types/src/_utils/ReduceIf.d.ts +26 -0
- package/types/src/_utils/ReduceIf.d.ts.map +1 -0
- package/types/src/database/Database.d.ts +86 -0
- package/types/src/database/Database.d.ts.map +1 -0
- package/types/src/dateTime/Date.d.ts +139 -0
- package/types/src/dateTime/Date.d.ts.map +1 -0
- package/types/src/engineering/Bessel.d.ts +26 -0
- package/types/src/engineering/Bessel.d.ts.map +1 -0
- package/types/src/engineering/Bitwise.d.ts +101 -0
- package/types/src/engineering/Bitwise.d.ts.map +1 -0
- package/types/src/engineering/Convert.d.ts +9 -0
- package/types/src/engineering/Convert.d.ts.map +1 -0
- package/types/src/engineering/Engineering.d.ts +14 -0
- package/types/src/engineering/Engineering.d.ts.map +1 -0
- package/types/src/engineering/Error.d.ts +25 -0
- package/types/src/engineering/Error.d.ts.map +1 -0
- package/types/src/engineering/Imaginary.d.ts +155 -0
- package/types/src/engineering/Imaginary.d.ts.map +1 -0
- package/types/src/information/Information.d.ts +166 -0
- package/types/src/information/Information.d.ts.map +1 -0
- package/types/src/japanese/Date.d.ts +15 -0
- package/types/src/japanese/Date.d.ts.map +1 -0
- package/types/src/japanese/Text.d.ts +8 -0
- package/types/src/japanese/Text.d.ts.map +1 -0
- package/types/src/logical/Logical.d.ts +133 -0
- package/types/src/logical/Logical.d.ts.map +1 -0
- package/types/src/lookupReference/GroupBy.d.ts +19 -0
- package/types/src/lookupReference/GroupBy.d.ts.map +1 -0
- package/types/src/lookupReference/PivotBy.d.ts +24 -0
- package/types/src/lookupReference/PivotBy.d.ts.map +1 -0
- package/types/src/lookupReference/Reference.d.ts +296 -0
- package/types/src/lookupReference/Reference.d.ts.map +1 -0
- package/types/src/mathTrig/Math.d.ts +430 -0
- package/types/src/mathTrig/Math.d.ts.map +1 -0
- package/types/src/mathTrig/Trig.d.ts +107 -0
- package/types/src/mathTrig/Trig.d.ts.map +1 -0
- package/types/src/operators/Operators.d.ts +107 -0
- package/types/src/operators/Operators.d.ts.map +1 -0
- package/types/src/statistical/Distribution.d.ts +858 -0
- package/types/src/statistical/Distribution.d.ts.map +1 -0
- package/types/src/statistical/Statistical.d.ts +165 -0
- package/types/src/statistical/Statistical.d.ts.map +1 -0
- package/types/src/testing/Testing.d.ts +28 -0
- package/types/src/testing/Testing.d.ts.map +1 -0
- package/types/src/text/Text.d.ts +312 -0
- package/types/src/text/Text.d.ts.map +1 -0
- package/types/src/thai/Text.d.ts +8 -0
- package/types/src/thai/Text.d.ts.map +1 -0
- package/types/src/web/FilterXML.d.ts +8 -0
- package/types/src/web/FilterXML.d.ts.map +1 -0
- package/types/src/web/Web.d.ts +11 -0
- package/types/src/web/Web.d.ts.map +1 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { AcceptError, Scalar, Flatten, Omittable } from '@sheetxl/primitives';
|
|
2
|
+
/**
|
|
3
|
+
* @summary Returns the number that represents the date in date-time code.
|
|
4
|
+
* @param year is a number from 1900 or 1904 (depending on the workbook's date system) to 9999.
|
|
5
|
+
* @param month is a number from 1 to 12 representing the month of the year.
|
|
6
|
+
* @param day is a number from 1 to 31 representing the day of the month.
|
|
7
|
+
*/
|
|
8
|
+
export declare function DATE(year: number, month: number, day: number): number;
|
|
9
|
+
/**
|
|
10
|
+
* @summary Converts a date in the form of text to a number that represents the date as a date-time code.
|
|
11
|
+
* @param dateText is text that represents a date in date format, between 1/1/1900 or 1/1/1904 (depending on the workbook's date system) and 12/31/9999.
|
|
12
|
+
*/
|
|
13
|
+
export declare function DATEVALUE(dateText: string): number;
|
|
14
|
+
/**
|
|
15
|
+
* @summary Returns the day of the month, a number from 1 to 31.
|
|
16
|
+
* @param serialNumber is a number in the date-time code or text in time format, such as 16:48:00 or 4:48:00 PM.
|
|
17
|
+
*/
|
|
18
|
+
export declare function DAY(serialNumber: number): number;
|
|
19
|
+
/**
|
|
20
|
+
* @summary Returns the number of days between the two dates.
|
|
21
|
+
* @param endDate startDate and endDate are the two dates between which you want to know the number of days.
|
|
22
|
+
* @param startDate startDate and endDate are the two dates between which you want to know the number of days.
|
|
23
|
+
*/
|
|
24
|
+
export declare function DAYS(endDate: number, // date
|
|
25
|
+
startDate: number): number;
|
|
26
|
+
/**
|
|
27
|
+
* @summary Returns the serial number of the date that is the indicated number of months before or after the start date.
|
|
28
|
+
* @param startDate is a serial date number that represents the start date.
|
|
29
|
+
* @param months is the number of months before or after startDate.
|
|
30
|
+
*/
|
|
31
|
+
export declare function EDATE(startDate: Scalar, months: Scalar): number;
|
|
32
|
+
/**
|
|
33
|
+
* @summary Returns the serial number of the last day of the month before or after a specified number of months.
|
|
34
|
+
* @param startDate is a serial date number that represents the start date.
|
|
35
|
+
* @param months is the number of months before or after the startDate.
|
|
36
|
+
*/
|
|
37
|
+
export declare function EOMONTH(startDate: Scalar, months: Scalar): number;
|
|
38
|
+
/**
|
|
39
|
+
* @summary Returns the hour as a number from 0 (12:00 A.M.) to 23 (11:00 P.M.).
|
|
40
|
+
* @param serialNumber is a number in the date-time code or text in time format, such as 16:48:00 or 4:48:00 PM.
|
|
41
|
+
*/
|
|
42
|
+
export declare function HOUR(serialNumber: number): number;
|
|
43
|
+
/**
|
|
44
|
+
* @summary Returns the ISO week number in the year for a given date.
|
|
45
|
+
* @param date is a number in the date-time code or text in time format, such as 16:48:00 or 4:48:00 PM.
|
|
46
|
+
*/
|
|
47
|
+
export declare function ISOWEEKNUM(date: number): number;
|
|
48
|
+
/**
|
|
49
|
+
* @summary Returns the minute, a number from 0 to 59.
|
|
50
|
+
* @param serialNumber is a number in the date-time code or text in time format, such as 16:48:00 or 4:48:00 PM.
|
|
51
|
+
*/
|
|
52
|
+
export declare function MINUTE(serialNumber: number): number;
|
|
53
|
+
/**
|
|
54
|
+
* @summary Returns the month, a number from 1 (January) to 12 (December).
|
|
55
|
+
* @param serialNumber is a number in the date-time code or text in date format.
|
|
56
|
+
*/
|
|
57
|
+
export declare function MONTH(serialNumber: number): number;
|
|
58
|
+
/**
|
|
59
|
+
* @summary Returns the number of whole workdays between two dates.
|
|
60
|
+
* @param startDate is a serial date number that represents the start date.
|
|
61
|
+
* @param endDate is a serial date number that represents the end date.
|
|
62
|
+
* @param holidays is an optional set of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays.
|
|
63
|
+
*/
|
|
64
|
+
export declare function NETWORKDAYS(startDate: number, // date
|
|
65
|
+
endDate: number, // date
|
|
66
|
+
holidays?: Omittable<Flatten<Scalar>>): number;
|
|
67
|
+
/**
|
|
68
|
+
* @name NETWORKDAYS.INTL
|
|
69
|
+
* @summary Returns the number of whole workdays between two dates with custom weekend parameters.
|
|
70
|
+
* @param startDate is a serial date number that represents the start date.
|
|
71
|
+
* @param endDate is a serial date number that represents the end date.
|
|
72
|
+
* @param weekend is a number or string specifying when weekends occur.
|
|
73
|
+
* @param holidays is an optional set of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays.
|
|
74
|
+
*/
|
|
75
|
+
export declare function NETWORKDAYS_INTL(startDate: number, // date
|
|
76
|
+
endDate: number, // date
|
|
77
|
+
weekend?: Omittable<AcceptError<Scalar>>, holidays?: Omittable<Flatten<Scalar>>): number;
|
|
78
|
+
/**
|
|
79
|
+
* @summary Returns the current date and time formatted as a date and time.
|
|
80
|
+
*/
|
|
81
|
+
export declare function NOW(): number;
|
|
82
|
+
/**
|
|
83
|
+
* @summary Returns the second, a number from 0 to 59.
|
|
84
|
+
* @param serialNumber is a number in the date-time code or text in time format, such as 16:48:23 or 4:48:47 PM.
|
|
85
|
+
*/
|
|
86
|
+
export declare function SECOND(serialNumber: number): number;
|
|
87
|
+
/**
|
|
88
|
+
* @summary Converts hours, minutes, and seconds given as numbers to a date code, formatted with a time format.
|
|
89
|
+
* @param hour is a number from 0 to 23 representing the hour.
|
|
90
|
+
* @param minute is a number from 0 to 59 representing the minute.
|
|
91
|
+
* @param second is a number from 0 to 59 representing the second.
|
|
92
|
+
*/
|
|
93
|
+
export declare function TIME(hour: number, minute: number, second: number): number;
|
|
94
|
+
/**
|
|
95
|
+
* @summary Converts a text time to a date code for a time, a number from 0 (12:00:00 AM) to 0.999988426 (11:59:59 PM). Format the number with a time format after entering the formula.
|
|
96
|
+
* @param timeText is a text string that gives a time in any one of the time formats (date information in the string is ignored).
|
|
97
|
+
*/
|
|
98
|
+
export declare function TIMEVALUE(timeText: string): number;
|
|
99
|
+
/**
|
|
100
|
+
* @summary Returns the current date formatted as a date.
|
|
101
|
+
*/
|
|
102
|
+
export declare function TODAY(): number;
|
|
103
|
+
/**
|
|
104
|
+
* @summary Returns a number from 1 to 7 identifying the day of the week of a date.
|
|
105
|
+
* @param serialNumber is a number that represents a date.
|
|
106
|
+
* @param returnType is a number: for Sunday=1 through Saturday=7, use 1; for Monday=1 through Sunday=7, use 2; for Monday=0 through Sunday=6, use 3.
|
|
107
|
+
*/
|
|
108
|
+
export declare function WEEKDAY(serialNumber: number, // date
|
|
109
|
+
returnType?: number): number;
|
|
110
|
+
/**
|
|
111
|
+
* @summary Returns the week number in the year.
|
|
112
|
+
* @param serialNumber is the date-time code used for date and time calculation.
|
|
113
|
+
* @param returnType is a number (1 or 2) that determines the type of the return value.
|
|
114
|
+
*/
|
|
115
|
+
export declare function WEEKNUM(serialNumber: Omittable<Scalar>, returnType?: Omittable<Scalar>): number;
|
|
116
|
+
/**
|
|
117
|
+
* @summary Returns the serial number of the date before or after a specified number of workdays.
|
|
118
|
+
* @param startDate is a serial date number that represents the start date.
|
|
119
|
+
* @param days is the number of nonweekend and non-holiday days before or after startDate.
|
|
120
|
+
* @param holidays is an optional array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays.
|
|
121
|
+
*/
|
|
122
|
+
export declare function WORKDAY(startDate: number, // date
|
|
123
|
+
days: number, holidays?: Omittable<Flatten<Scalar>>): number;
|
|
124
|
+
/**
|
|
125
|
+
* @name WORKDAY.INTL
|
|
126
|
+
* @summary Returns the serial number of the date before or after a specified number of workdays with custom weekend parameters.
|
|
127
|
+
* @param startDate is a serial date number that represents the start date.
|
|
128
|
+
* @param days is the number of nonweekend and non-holiday days before or after startDate.
|
|
129
|
+
* @param weekend is a number or string specifying when weekends occur.
|
|
130
|
+
* @param holidays is an optional array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays.
|
|
131
|
+
*/
|
|
132
|
+
export declare function WORKDAY_INTL(startDate: number, // date
|
|
133
|
+
days: number, weekend?: Omittable<AcceptError<Scalar>>, holidays?: Omittable<Flatten<Scalar>>): number;
|
|
134
|
+
/**
|
|
135
|
+
* @summary Returns the year of a date, an integer in the range 1900 - 9999.
|
|
136
|
+
* @param serialNumber is a number in the date-time code used for date and time calculation.
|
|
137
|
+
*/
|
|
138
|
+
export declare function YEAR(serialNumber: number): number;
|
|
139
|
+
//# sourceMappingURL=Date.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Date.d.ts","sourceRoot":"","sources":["../../../../src/dateTime/Date.ts"],"names":[],"mappings":"AACA,O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CAAC,CAAC,GACpC,MAAM,CA6CR;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAClB,YAAY,EAAE,MAAM,GACnB,MAAM,CAER"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Scalar } from '@sheetxl/primitives';
|
|
2
|
+
/**
|
|
3
|
+
* @summary Returns the modified Bessel function In(x).
|
|
4
|
+
* @param x is the value at which to evaluate the function.
|
|
5
|
+
* @param n is the order of the Bessel function.
|
|
6
|
+
*/
|
|
7
|
+
export declare function BESSELI(x: Scalar, n: Scalar): number;
|
|
8
|
+
/**
|
|
9
|
+
* @summary Returns the Bessel function Jn(x).
|
|
10
|
+
* @param x is the value at which to evaluate the function.
|
|
11
|
+
* @param n is the order of the Bessel function.
|
|
12
|
+
*/
|
|
13
|
+
export declare function BESSELJ(x: Scalar, n: Scalar): number;
|
|
14
|
+
/**
|
|
15
|
+
* @summary Returns the modified Bessel function Kn(x).
|
|
16
|
+
* @param x is the value at which to evaluate the function.
|
|
17
|
+
* @param n is the order of the function.
|
|
18
|
+
*/
|
|
19
|
+
export declare function BESSELK(x: Scalar, n: Scalar): number;
|
|
20
|
+
/**
|
|
21
|
+
* @summary Returns the Bessel function Yn(x).
|
|
22
|
+
* @param x is the value at which to evaluate the function.
|
|
23
|
+
* @param n is the order of the function.
|
|
24
|
+
*/
|
|
25
|
+
export declare function BESSELY(x: Scalar, n: Scalar): number;
|
|
26
|
+
//# sourceMappingURL=Bessel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bessel.d.ts","sourceRoot":"","sources":["../../../../src/engineering/Bessel.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkB,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElE;;;;GAIG;AACH,wBAAgB,OAAO,CACrB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,GACR,MAAM,CAMR;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CACrB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,GACR,MAAM,CAMR;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CACrB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,GACR,MAAM,CAMR;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CACrB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,GACR,MAAM,CAMR"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { AcceptError, Scalar } from '@sheetxl/primitives';
|
|
2
|
+
/**
|
|
3
|
+
* @summary Converts a binary number to decimal.
|
|
4
|
+
* @param number is the binary number you want to convert.
|
|
5
|
+
*/
|
|
6
|
+
export declare function BIN2DEC(number: Scalar): number;
|
|
7
|
+
/**
|
|
8
|
+
* @summary Converts a binary number to hexadecimal.
|
|
9
|
+
* @param number is the binary number you want to convert.
|
|
10
|
+
* @param places is the number of characters to use.
|
|
11
|
+
*/
|
|
12
|
+
export declare function BIN2HEX(number: AcceptError<Scalar>, places?: AcceptError<Scalar>): string;
|
|
13
|
+
/**
|
|
14
|
+
* @summary Converts a binary number to octal.
|
|
15
|
+
* @param number is the binary number you want to convert.
|
|
16
|
+
* @param places is the number of characters to use.
|
|
17
|
+
*/
|
|
18
|
+
export declare function BIN2OCT(number: AcceptError<Scalar>, places?: AcceptError<Scalar>): string;
|
|
19
|
+
/**
|
|
20
|
+
* @summary Returns a bitwise 'And' of two numbers.
|
|
21
|
+
* @param number1 is the decimal representation of the binary number you want to evaluate.
|
|
22
|
+
* @param number2 is the decimal representation of the binary number you want to evaluate.
|
|
23
|
+
*/
|
|
24
|
+
export declare function BITAND(number1: Scalar, number2: Scalar): number;
|
|
25
|
+
/**
|
|
26
|
+
* @summary Returns a number shifted left by shiftAmount bits.
|
|
27
|
+
* @param number is the decimal representation of the binary number you want to evaluate.
|
|
28
|
+
* @param shiftAmount is the number of bits that you want to shift Number left by.
|
|
29
|
+
*/
|
|
30
|
+
export declare function BITLSHIFT(number: Scalar, shiftAmount: Scalar): number;
|
|
31
|
+
/**
|
|
32
|
+
* @summary Returns a bitwise 'Or' of two numbers.
|
|
33
|
+
* @param number1 is the decimal representation of the binary number you want to evaluate.
|
|
34
|
+
* @param number2 is the decimal representation of the binary number you want to evaluate.
|
|
35
|
+
*/
|
|
36
|
+
export declare function BITOR(number1: Scalar, number2: Scalar): number;
|
|
37
|
+
/**
|
|
38
|
+
* @summary Returns a number shifted right by shiftAmount bits.
|
|
39
|
+
* @param number is the decimal representation of the binary number you want to evaluate.
|
|
40
|
+
* @param shiftAmount is the number of bits that you want to shift Number left by.
|
|
41
|
+
*/
|
|
42
|
+
export declare function BITRSHIFT(number: Scalar, shiftAmount: Scalar): number;
|
|
43
|
+
/**
|
|
44
|
+
* @summary Returns a bitwise 'Exclusive Or' of two numbers.
|
|
45
|
+
* @param number1 is the decimal representation of the binary number you want to evaluate.
|
|
46
|
+
* @param number2 is the decimal representation of the binary number you want to evaluate.
|
|
47
|
+
*/
|
|
48
|
+
export declare function BITXOR(number1: Scalar, number2: Scalar): number;
|
|
49
|
+
/**
|
|
50
|
+
* @summary Converts a decimal number to binary.
|
|
51
|
+
* @param number is the decimal integer you want to convert.
|
|
52
|
+
* @param places is the number of characters to use.
|
|
53
|
+
*/
|
|
54
|
+
export declare function DEC2BIN(number: AcceptError<Scalar>, places?: AcceptError<Scalar>): string;
|
|
55
|
+
/**
|
|
56
|
+
* @summary Converts a decimal number to hexadecimal.
|
|
57
|
+
* @param number is the decimal integer you want to convert.
|
|
58
|
+
* @param places is the number of characters to use.
|
|
59
|
+
*/
|
|
60
|
+
export declare function DEC2HEX(number: AcceptError<Scalar>, places?: AcceptError<Scalar>): string;
|
|
61
|
+
/**
|
|
62
|
+
* @summary Converts a decimal number to octal.
|
|
63
|
+
* @param number is the decimal integer you want to convert.
|
|
64
|
+
* @param places is the number of characters to use.
|
|
65
|
+
*/
|
|
66
|
+
export declare function DEC2OCT(number: AcceptError<Scalar>, places?: AcceptError<Scalar>): string;
|
|
67
|
+
/**
|
|
68
|
+
* @summary Converts a Hexadecimal number to binary.
|
|
69
|
+
* @param number is the hexadecimal number you want to convert.
|
|
70
|
+
* @param places is the number of characters to use.
|
|
71
|
+
*/
|
|
72
|
+
export declare function HEX2BIN(number: AcceptError<string>, places?: AcceptError<Scalar>): string | number;
|
|
73
|
+
/**
|
|
74
|
+
* @summary Converts a hexadecimal number to decimal.
|
|
75
|
+
* @param number is the hexadecimal number you want to convert.
|
|
76
|
+
*/
|
|
77
|
+
export declare function HEX2DEC(number: string): number;
|
|
78
|
+
/**
|
|
79
|
+
* @summary Converts a hexadecimal number to octal.
|
|
80
|
+
* @param number is the hexadecimal number you want to convert.
|
|
81
|
+
* @param places is the number of characters to use.
|
|
82
|
+
*/
|
|
83
|
+
export declare function HEX2OCT(number: AcceptError<string>, places?: AcceptError<Scalar>): string;
|
|
84
|
+
/**
|
|
85
|
+
* @summary Converts an octal number to binary.
|
|
86
|
+
* @param number is the octal number you want to convert.
|
|
87
|
+
* @param places is the number of characters to use.
|
|
88
|
+
*/
|
|
89
|
+
export declare function OCT2BIN(number: AcceptError<string>, places?: AcceptError<Scalar>): string;
|
|
90
|
+
/**
|
|
91
|
+
* @summary Converts an octal number to decimal.
|
|
92
|
+
* @param number is the octal number you want to convert.
|
|
93
|
+
*/
|
|
94
|
+
export declare function OCT2DEC(number: string): number;
|
|
95
|
+
/**
|
|
96
|
+
* @summary Converts an octal number to hexadecimal.
|
|
97
|
+
* @param number is the octal number you want to convert.
|
|
98
|
+
* @param places is the number of characters to use.
|
|
99
|
+
*/
|
|
100
|
+
export declare function OCT2HEX(number: AcceptError<string>, places?: AcceptError<Scalar>): string | number;
|
|
101
|
+
//# sourceMappingURL=Bitwise.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bitwise.d.ts","sourceRoot":"","sources":["../../../../src/engineering/Bitwise.ts"],"names":[],"mappings":"AACA,OAAO,EAAgC,KAAK,WAAW,EAAE,KAAK,MAA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AW,CAAC,MAAM,CAAC,EAC3B,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAC3B,MAAM,CAmBR;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CACrB,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,EAC3B,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAC3B,MAAM,GAAG,MAAM,CAwBjB;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAQ9C;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CACrB,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,EAC3B,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAC3B,MAAM,CAUR;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CACrB,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,EAC3B,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAC3B,MAAM,CAuCR;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAY9C;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CACrB,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,EAC3B,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAC3B,MAAM,GAAG,MAAM,CAqBjB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Scalar } from '@sheetxl/primitives';
|
|
2
|
+
/**
|
|
3
|
+
* @summary Converts a number from one measurement system to another.
|
|
4
|
+
* @param number is the value in fromUnit to convert.
|
|
5
|
+
* @param fromUnit is the units for number.
|
|
6
|
+
* @param toUnit is the units for the result.
|
|
7
|
+
*/
|
|
8
|
+
export declare function CONVERT(number: Scalar, fromUnit: string, toUnit: string): number;
|
|
9
|
+
//# sourceMappingURL=Convert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Convert.d.ts","sourceRoot":"","sources":["../../../../src/engineering/Convert.ts"],"names":[],"mappings":"AACA,OAAO,EAAgC,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAEhF;;;;;GAKG;AACH,wBAAgB,OAAO,CACrB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,MAAM,CA4FR"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AcceptError, Scalar } from '@sheetxl/primitives';
|
|
2
|
+
/**
|
|
3
|
+
* @summary Tests whether two numbers are equal.
|
|
4
|
+
* @param number1 is the first number.
|
|
5
|
+
* @param number2 is the second number.
|
|
6
|
+
*/
|
|
7
|
+
export declare function DELTA(number1: AcceptError<Scalar>, number2?: AcceptError<Scalar>): number;
|
|
8
|
+
/**
|
|
9
|
+
* @summary Tests whether a number is greater than a threshold value.
|
|
10
|
+
* @param number is the value to test against step.
|
|
11
|
+
* @param step is the threshold value.
|
|
12
|
+
*/
|
|
13
|
+
export declare function GESTEP(number: AcceptError<Scalar>, step?: AcceptError<Scalar>): number;
|
|
14
|
+
//# sourceMappingURL=Engineering.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Engineering.d.ts","sourceRoot":"","sources":["../../../../src/engineering/Engineering.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,KAAK,WAAW,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAEpF;;;;GAIG;AACH,wBAAgB,KAAK,CACnB,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,EAC5B,OAAO,GAAE,WAAW,CAAC,MAAM,CAAG,GAC7B,MAAM,CAIR;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CACpB,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,EAC3B,IAAI,GAAE,WAAW,CAAC,MAAM,CAAG,GAC1B,MAAM,CAIR"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Scalar } from '@sheetxl/primitives';
|
|
2
|
+
/**
|
|
3
|
+
* @summary Returns the error function.
|
|
4
|
+
* @param lowerLimit is the lower bound for integrating ERF.
|
|
5
|
+
* @param upperLimit is the upper bound for integrating ERF.
|
|
6
|
+
*/
|
|
7
|
+
export declare function ERF(lowerLimit: Scalar, upperLimit?: Scalar): number;
|
|
8
|
+
/**
|
|
9
|
+
* @name ERF.PRECISE
|
|
10
|
+
* @summary Returns the error function.
|
|
11
|
+
* @param x is the lower bound for integrating ERF.PRECISE.
|
|
12
|
+
*/
|
|
13
|
+
export declare function ERF_PRECISE(x: Scalar): number;
|
|
14
|
+
/**
|
|
15
|
+
* @summary Returns the complementary error function.
|
|
16
|
+
* @param x is the lower bound for integrating ERF.
|
|
17
|
+
*/
|
|
18
|
+
export declare function ERFC(x: Scalar): number;
|
|
19
|
+
/**
|
|
20
|
+
* @name ERFC.PRECISE
|
|
21
|
+
* @summary Returns the complementary error function.
|
|
22
|
+
* @param x is the lower bound for integrating ERF.
|
|
23
|
+
*/
|
|
24
|
+
export declare function ERFC_PRECISE(x: Scalar): number;
|
|
25
|
+
//# sourceMappingURL=Error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Error.d.ts","sourceRoot":"","sources":["../../../../src/engineering/Error.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkB,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElE;;;;GAIG;AACH,wBAAgB,GAAG,CACjB,UAAU,EAAE,MAAM,EAClB,UAAU,CAAC,EAAE,MAAM,GAClB,MAAM,CAOR;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAG7C;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAGtC;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAG9C"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { AcceptError, Scalar } from '@sheetxl/primitives';
|
|
2
|
+
/**
|
|
3
|
+
* @summary Converts real and imaginary coefficients into a complex number.
|
|
4
|
+
* @param realNum is the real coefficient of the complex number.
|
|
5
|
+
* @param iNum is the imaginary coefficient of the complex number.
|
|
6
|
+
* @param suffix is the suffix for the imaginary component of the complex number.
|
|
7
|
+
*/
|
|
8
|
+
export declare function COMPLEX(realNum: AcceptError<Scalar>, iNum: AcceptError<Scalar>, suffix?: AcceptError<string>): Scalar;
|
|
9
|
+
/**
|
|
10
|
+
* @summary Returns the absolute value (modulus) of a complex number
|
|
11
|
+
* @param inumber is a complex number for which you want the absolute value
|
|
12
|
+
*/
|
|
13
|
+
export declare function IMABS(inumber: Scalar): number;
|
|
14
|
+
/**
|
|
15
|
+
* @summary Returns the imaginary coefficient of a complex number
|
|
16
|
+
* @param inumber is a complex number for which you want the imaginary coefficient
|
|
17
|
+
*/
|
|
18
|
+
export declare function IMAGINARY(inumber: Scalar): number;
|
|
19
|
+
/**
|
|
20
|
+
* @summary Returns the argument q, an angle expressed in radians
|
|
21
|
+
* @param inumber is a complex number for which you want the argument
|
|
22
|
+
*/
|
|
23
|
+
export declare function IMARGUMENT(inumber: Scalar): number;
|
|
24
|
+
/**
|
|
25
|
+
* @summary Returns the complex conjugate of a complex number
|
|
26
|
+
* @param inumber is a complex number for which you want the conjugate
|
|
27
|
+
*/
|
|
28
|
+
export declare function IMCONJUGATE(inumber: Scalar): Scalar;
|
|
29
|
+
/**
|
|
30
|
+
* @summary Returns the cosine of a complex number
|
|
31
|
+
* @param inumber is a complex number for which you want the cosine
|
|
32
|
+
*/
|
|
33
|
+
export declare function IMCOS(inumber: Scalar): Scalar;
|
|
34
|
+
/**
|
|
35
|
+
* @summary Returns the hyperbolic cosine of a complex number
|
|
36
|
+
* @param inumber is a complex number for which you want the hyperbolic cosine
|
|
37
|
+
*/
|
|
38
|
+
export declare function IMCOSH(inumber: Scalar): Scalar;
|
|
39
|
+
/**
|
|
40
|
+
* @summary Returns the cotangent of a complex number
|
|
41
|
+
* @param inumber is a complex number for which you want the cotangent
|
|
42
|
+
*/
|
|
43
|
+
export declare function IMCOT(inumber: Scalar): Scalar;
|
|
44
|
+
/**
|
|
45
|
+
* @summary Returns the hyperbolic cotangent of a complex number.
|
|
46
|
+
* @param inumber is a complex number for which you want the hyperbolic cotangent.
|
|
47
|
+
* @category Sheets
|
|
48
|
+
*/
|
|
49
|
+
export declare function IMCOTH(inumber: Scalar): Scalar;
|
|
50
|
+
/**
|
|
51
|
+
* @summary Returns the cosecant of a complex number
|
|
52
|
+
* @param inumber is a complex number for which you want the cosecant
|
|
53
|
+
*/
|
|
54
|
+
export declare function IMCSC(inumber: Scalar): Scalar;
|
|
55
|
+
/**
|
|
56
|
+
* @summary Returns the hyperbolic cosecant of a complex number
|
|
57
|
+
* @param inumber is a complex number for which you want the hyperbolic cosecant
|
|
58
|
+
*/
|
|
59
|
+
export declare function IMCSCH(inumber: Scalar): Scalar;
|
|
60
|
+
/**
|
|
61
|
+
* @summary Returns the quotient of two complex numbers
|
|
62
|
+
* @param inumber1 is the complex numerator or dividend
|
|
63
|
+
* @param inumber2 is the complex denominator or divisor
|
|
64
|
+
*/
|
|
65
|
+
export declare function IMDIV(inumber1: Scalar, inumber2: Scalar): Scalar;
|
|
66
|
+
/**
|
|
67
|
+
* @summary Returns the exponential of a complex number
|
|
68
|
+
* @param inumber is a complex number for which you want the exponential
|
|
69
|
+
*/
|
|
70
|
+
export declare function IMEXP(inumber: Scalar): Scalar;
|
|
71
|
+
/**
|
|
72
|
+
* @summary Returns the exponential of a complex number
|
|
73
|
+
* @param inumber is a complex number for which you want the exponential
|
|
74
|
+
*/
|
|
75
|
+
export declare function IMLN(inumber: Scalar): Scalar;
|
|
76
|
+
/**
|
|
77
|
+
* @summary Returns the logarithm of a complex number to a specified base.
|
|
78
|
+
* @param inumber is a complex number for which you want the logarithm.
|
|
79
|
+
* @param base is the base of the logarithm. Default is 10.
|
|
80
|
+
* @category Sheets
|
|
81
|
+
*/
|
|
82
|
+
export declare function IMLOG(inumber: Scalar, base?: number): Scalar;
|
|
83
|
+
/**
|
|
84
|
+
* @summary Returns the base-10 logarithm of a complex number
|
|
85
|
+
* @param inumber is a complex number for which you want the common logarithm
|
|
86
|
+
*/
|
|
87
|
+
export declare function IMLOG10(inumber: Scalar): Scalar;
|
|
88
|
+
/**
|
|
89
|
+
* @summary Returns the base-2 logarithm of a complex number
|
|
90
|
+
* @param inumber is a complex number for which you want the base-2 logarithm
|
|
91
|
+
*/
|
|
92
|
+
export declare function IMLOG2(inumber: Scalar): Scalar;
|
|
93
|
+
/**
|
|
94
|
+
* @summary Returns the base-2 logarithm of a complex number
|
|
95
|
+
* @param inumber is a complex number for which you want the base-2 logarithm
|
|
96
|
+
*/
|
|
97
|
+
export declare function IMPOWER(inumber: Scalar, number: Scalar): Scalar;
|
|
98
|
+
/**
|
|
99
|
+
* @summary Returns the product of 1 to 255 complex numbers
|
|
100
|
+
* @param inumber are from 1 to 255 complex numbers to multiply.
|
|
101
|
+
*/
|
|
102
|
+
export declare function IMPRODUCT(inumber: Scalar[]): Scalar;
|
|
103
|
+
/**
|
|
104
|
+
* @summary Returns the real coefficient of a complex number
|
|
105
|
+
* @param inumber is a complex number for which you want the real coefficient
|
|
106
|
+
*/
|
|
107
|
+
export declare function IMREAL(inumber: Scalar): number;
|
|
108
|
+
/**
|
|
109
|
+
* @summary Returns the secant of a complex number
|
|
110
|
+
* @param inumber is a complex number for which you want the secant
|
|
111
|
+
*/
|
|
112
|
+
export declare function IMSEC(inumber: Scalar): Scalar;
|
|
113
|
+
/**
|
|
114
|
+
* @summary Returns the hyperbolic secant of a complex number
|
|
115
|
+
* @param inumber is a complex number for which you want the hyperbolic secant
|
|
116
|
+
*/
|
|
117
|
+
export declare function IMSECH(inumber: Scalar): Scalar;
|
|
118
|
+
/**
|
|
119
|
+
* @summary Returns the sine of a complex number
|
|
120
|
+
* @param inumber is a complex number for which you want the sine
|
|
121
|
+
*/
|
|
122
|
+
export declare function IMSIN(inumber: Scalar): Scalar;
|
|
123
|
+
/**
|
|
124
|
+
* @summary Returns the hyperbolic sine of a complex number
|
|
125
|
+
* @param inumber is a complex number for which you want the hyperbolic sine
|
|
126
|
+
*/
|
|
127
|
+
export declare function IMSINH(inumber: Scalar): Scalar;
|
|
128
|
+
/**
|
|
129
|
+
* @summary Returns the square root of a complex number
|
|
130
|
+
* @param inumber is a complex number for which you want the square root
|
|
131
|
+
*/
|
|
132
|
+
export declare function IMSQRT(inumber: Scalar): Scalar;
|
|
133
|
+
/**
|
|
134
|
+
* @summary Returns the difference of two complex numbers
|
|
135
|
+
* @param inumber1 is the complex number from which to subtract inumber2
|
|
136
|
+
* @param inumber2 is the complex number to subtract from inumber1
|
|
137
|
+
*/
|
|
138
|
+
export declare function IMSUB(inumber1: Scalar, inumber2: Scalar): Scalar;
|
|
139
|
+
/**
|
|
140
|
+
* @summary Returns the sum of complex numbers
|
|
141
|
+
* @param inumber are from 1 to 255 complex numbers to add
|
|
142
|
+
*/
|
|
143
|
+
export declare function IMSUM(inumber: Scalar[]): Scalar;
|
|
144
|
+
/**
|
|
145
|
+
* @summary Returns the tangent of a complex number
|
|
146
|
+
* @param inumber is a complex number for which you want the tangent
|
|
147
|
+
*/
|
|
148
|
+
export declare function IMTAN(inumber: Scalar): Scalar;
|
|
149
|
+
/**
|
|
150
|
+
* @summary Returns the hyperbolic tangent of a complex number.
|
|
151
|
+
* @param inumber is a complex number for which you want the hyperbolic tangent.
|
|
152
|
+
* @category Sheets
|
|
153
|
+
*/
|
|
154
|
+
export declare function IMTANH(inumber: Scalar): Scalar;
|
|
155
|
+
//# sourceMappingURL=Imaginary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Imaginary.d.ts","sourceRoot":"","sources":["../../../../src/engineering/Imaginary.ts"],"names":[],"mappings":"AACA,OAAO,EAAgC,KAAK,WAAW,EAAE,KAAK,M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