@univerjs/engine-formula 0.2.9 → 0.2.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/lib/cjs/index.js +7 -1
- package/lib/es/index.js +4798 -1189
- package/lib/types/basics/__tests__/engineering.spec.d.ts +16 -0
- package/lib/types/basics/complex.d.ts +57 -0
- package/lib/types/basics/date.d.ts +15 -6
- package/lib/types/basics/engineering.d.ts +2 -2
- package/lib/types/basics/error-type.d.ts +1 -0
- package/lib/types/basics/financial.d.ts +19 -15
- package/lib/types/basics/format.d.ts +1 -1
- package/lib/types/engine/analysis/lexer-tree-builder.d.ts +8 -0
- package/lib/types/engine/utils/check-variant-error.d.ts +9 -0
- package/lib/types/engine/utils/math-kit.d.ts +0 -5
- package/lib/types/engine/value-object/primitive-object.d.ts +4 -0
- package/lib/types/functions/engineering/besseli/index.d.ts +2 -3
- package/lib/types/functions/engineering/besselj/index.d.ts +2 -3
- package/lib/types/functions/engineering/besselk/index.d.ts +2 -3
- package/lib/types/functions/engineering/bessely/index.d.ts +2 -3
- package/lib/types/functions/engineering/bin2dec/index.d.ts +2 -3
- package/lib/types/functions/engineering/bin2hex/index.d.ts +2 -3
- package/lib/types/functions/engineering/bin2oct/index.d.ts +2 -3
- package/lib/types/functions/engineering/complex/index.d.ts +2 -3
- package/lib/types/functions/engineering/convert/index.d.ts +2 -3
- package/lib/types/functions/engineering/dec2bin/index.d.ts +2 -3
- package/lib/types/functions/engineering/dec2hex/index.d.ts +2 -3
- package/lib/types/functions/engineering/dec2oct/index.d.ts +2 -3
- package/lib/types/functions/engineering/delta/index.d.ts +2 -3
- package/lib/types/functions/engineering/erf/index.d.ts +2 -3
- package/lib/types/functions/engineering/erf-precise/index.d.ts +2 -3
- package/lib/types/functions/engineering/erfc/index.d.ts +2 -3
- package/lib/types/functions/engineering/erfc-precise/index.d.ts +2 -3
- package/lib/types/functions/engineering/function-map.d.ts +3 -2
- package/lib/types/functions/engineering/gestep/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/gestep/index.d.ts +7 -0
- package/lib/types/functions/engineering/hex2bin/index.d.ts +2 -3
- package/lib/types/functions/engineering/hex2dec/index.d.ts +2 -3
- package/lib/types/functions/engineering/hex2oct/index.d.ts +2 -3
- package/lib/types/functions/engineering/imabs/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imabs/index.d.ts +7 -0
- package/lib/types/functions/engineering/imaginary/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imaginary/index.d.ts +7 -0
- package/lib/types/functions/engineering/imargument/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imargument/index.d.ts +7 -0
- package/lib/types/functions/engineering/imconjugate/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imconjugate/index.d.ts +7 -0
- package/lib/types/functions/engineering/imcos/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imcos/index.d.ts +7 -0
- package/lib/types/functions/engineering/imcosh/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imcosh/index.d.ts +7 -0
- package/lib/types/functions/engineering/imcot/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imcot/index.d.ts +7 -0
- package/lib/types/functions/engineering/imcsc/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imcsc/index.d.ts +7 -0
- package/lib/types/functions/engineering/imcsch/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imcsch/index.d.ts +7 -0
- package/lib/types/functions/engineering/imdiv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imdiv/index.d.ts +7 -0
- package/lib/types/functions/engineering/imexp/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imexp/index.d.ts +7 -0
- package/lib/types/functions/engineering/imln/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imln/index.d.ts +7 -0
- package/lib/types/functions/engineering/imlog10/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imlog10/index.d.ts +7 -0
- package/lib/types/functions/engineering/imlog2/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imlog2/index.d.ts +7 -0
- package/lib/types/functions/engineering/impower/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/impower/index.d.ts +7 -0
- package/lib/types/functions/engineering/improduct/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/improduct/index.d.ts +8 -0
- package/lib/types/functions/engineering/imreal/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imreal/index.d.ts +7 -0
- package/lib/types/functions/engineering/imsec/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imsec/index.d.ts +7 -0
- package/lib/types/functions/engineering/imsech/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imsech/index.d.ts +7 -0
- package/lib/types/functions/engineering/imsin/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imsin/index.d.ts +7 -0
- package/lib/types/functions/engineering/imsinh/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imsinh/index.d.ts +7 -0
- package/lib/types/functions/engineering/imsqrt/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imsqrt/index.d.ts +7 -0
- package/lib/types/functions/engineering/imsub/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imsub/index.d.ts +7 -0
- package/lib/types/functions/engineering/imsum/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imsum/index.d.ts +8 -0
- package/lib/types/functions/engineering/imtan/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/engineering/imtan/index.d.ts +7 -0
- package/lib/types/functions/engineering/oct2bin/index.d.ts +2 -3
- package/lib/types/functions/engineering/oct2dec/index.d.ts +2 -3
- package/lib/types/functions/engineering/oct2hex/index.d.ts +2 -3
- package/lib/types/functions/financial/accrint/index.d.ts +2 -3
- package/lib/types/functions/financial/accrintm/index.d.ts +2 -3
- package/lib/types/functions/financial/amorlinc/index.d.ts +2 -3
- package/lib/types/functions/financial/coupdaybs/index.d.ts +2 -3
- package/lib/types/functions/financial/coupdays/index.d.ts +2 -3
- package/lib/types/functions/financial/coupdaysnc/index.d.ts +2 -3
- package/lib/types/functions/financial/coupncd/index.d.ts +2 -3
- package/lib/types/functions/financial/coupnum/index.d.ts +2 -3
- package/lib/types/functions/financial/couppcd/index.d.ts +2 -3
- package/lib/types/functions/financial/cumipmt/index.d.ts +2 -3
- package/lib/types/functions/financial/cumprinc/index.d.ts +2 -3
- package/lib/types/functions/financial/ddb/index.d.ts +0 -1
- package/lib/types/functions/financial/disc/index.d.ts +2 -3
- package/lib/types/functions/financial/dollarde/index.d.ts +2 -3
- package/lib/types/functions/financial/dollarfr/index.d.ts +2 -3
- package/lib/types/functions/financial/duration/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/duration/index.d.ts +7 -0
- package/lib/types/functions/financial/effect/index.d.ts +2 -3
- package/lib/types/functions/financial/function-map.d.ts +7 -3
- package/lib/types/functions/financial/fvschedule/index.d.ts +2 -3
- package/lib/types/functions/financial/intrate/index.d.ts +2 -3
- package/lib/types/functions/financial/irr/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/irr/index.d.ts +10 -0
- package/lib/types/functions/financial/mduration/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/mduration/index.d.ts +7 -0
- package/lib/types/functions/financial/mirr/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/mirr/index.d.ts +11 -0
- package/lib/types/functions/financial/nominal/index.d.ts +2 -3
- package/lib/types/functions/financial/npv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/npv/index.d.ts +9 -0
- package/lib/types/functions/financial/oddfprice/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/oddfprice/index.d.ts +9 -0
- package/lib/types/functions/financial/oddfyield/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/oddfyield/index.d.ts +10 -0
- package/lib/types/functions/financial/oddlprice/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/oddlprice/index.d.ts +11 -0
- package/lib/types/functions/financial/oddlyield/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/oddlyield/index.d.ts +11 -0
- package/lib/types/functions/financial/pduration/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/pduration/index.d.ts +7 -0
- package/lib/types/functions/financial/price/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/price/index.d.ts +7 -0
- package/lib/types/functions/financial/pricedisc/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/pricedisc/index.d.ts +7 -0
- package/lib/types/functions/financial/pricemat/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/pricemat/index.d.ts +8 -0
- package/lib/types/functions/financial/received/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/received/index.d.ts +7 -0
- package/lib/types/functions/financial/rri/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/rri/index.d.ts +7 -0
- package/lib/types/functions/financial/sln/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/sln/index.d.ts +7 -0
- package/lib/types/functions/financial/syd/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/syd/index.d.ts +7 -0
- package/lib/types/functions/financial/tbilleq/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/tbilleq/index.d.ts +7 -0
- package/lib/types/functions/financial/tbillprice/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/tbillprice/index.d.ts +7 -0
- package/lib/types/functions/financial/tbillyield/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/tbillyield/index.d.ts +7 -0
- package/lib/types/functions/financial/vdb/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/vdb/index.d.ts +10 -0
- package/lib/types/functions/financial/xirr/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/xirr/index.d.ts +12 -0
- package/lib/types/functions/financial/xnpv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/xnpv/index.d.ts +10 -0
- package/lib/types/functions/financial/yield/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/yield/index.d.ts +8 -0
- package/lib/types/functions/financial/yielddisc/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/yielddisc/index.d.ts +7 -0
- package/lib/types/functions/financial/yieldmat/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/financial/yieldmat/index.d.ts +8 -0
- package/lib/types/services/function.service.d.ts +1 -1
- package/lib/umd/index.js +7 -1
- package/package.json +8 -7
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Imconjugate extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(inumber: BaseValueObject): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Imcos extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(inumber: BaseValueObject): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Imcosh extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(inumber: BaseValueObject): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Imcot extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(inumber: BaseValueObject): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Imcsc extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(inumber: BaseValueObject): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Imcsch extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(inumber: BaseValueObject): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Imdiv extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(inumber1: BaseValueObject, inumber2: BaseValueObject): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Imexp extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(inumber: BaseValueObject): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Imln extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(inumber: BaseValueObject): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Imlog10 extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(inumber: BaseValueObject): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Imlog2 extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(inumber: BaseValueObject): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Impower extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(inumber: BaseValueObject, number: BaseValueObject): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Improduct extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(...variants: BaseValueObject[]): BaseValueObject;
|
|
7
|
+
private _handleSingleObject;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Imreal extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(inumber: BaseValueObject): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Imsec extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(inumber: BaseValueObject): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Imsech extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(inumber: BaseValueObject): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Imsin extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(inumber: BaseValueObject): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Imsinh extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(inumber: BaseValueObject): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Imsqrt extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(inumber: BaseValueObject): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Imsub extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(inumber1: BaseValueObject, inumber2: BaseValueObject): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Imsum extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(...variants: BaseValueObject[]): BaseValueObject;
|
|
7
|
+
private _handleSingleObject;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Imtan extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(inumber: BaseValueObject): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { BaseValueObject
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
2
|
import { BaseFunction } from '../../base-function';
|
|
3
|
-
import { StringValueObject } from '../../../engine/value-object/primitive-object';
|
|
4
3
|
export declare class Oct2bin extends BaseFunction {
|
|
5
4
|
minParams: number;
|
|
6
5
|
maxParams: number;
|
|
7
|
-
calculate(number: BaseValueObject, places?: BaseValueObject):
|
|
6
|
+
calculate(number: BaseValueObject, places?: BaseValueObject): BaseValueObject;
|
|
8
7
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { BaseValueObject
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
2
|
import { BaseFunction } from '../../base-function';
|
|
3
|
-
import { NumberValueObject } from '../../../engine/value-object/primitive-object';
|
|
4
3
|
export declare class Oct2dec extends BaseFunction {
|
|
5
4
|
minParams: number;
|
|
6
5
|
maxParams: number;
|
|
7
|
-
calculate(number: BaseValueObject):
|
|
6
|
+
calculate(number: BaseValueObject): BaseValueObject;
|
|
8
7
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { BaseValueObject
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
2
|
import { BaseFunction } from '../../base-function';
|
|
3
|
-
import { StringValueObject } from '../../../engine/value-object/primitive-object';
|
|
4
3
|
export declare class Oct2hex extends BaseFunction {
|
|
5
4
|
minParams: number;
|
|
6
5
|
maxParams: number;
|
|
7
|
-
calculate(number: BaseValueObject, places?: BaseValueObject):
|
|
6
|
+
calculate(number: BaseValueObject, places?: BaseValueObject): BaseValueObject;
|
|
8
7
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { BaseValueObject
|
|
2
|
-
import { NumberValueObject } from '../../../engine/value-object/primitive-object';
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
3
2
|
import { BaseFunction } from '../../base-function';
|
|
4
3
|
export declare class Accrint extends BaseFunction {
|
|
5
4
|
minParams: number;
|
|
6
5
|
maxParams: number;
|
|
7
|
-
calculate(issue: BaseValueObject, firstInterest: BaseValueObject, settlement: BaseValueObject, rate: BaseValueObject, par: BaseValueObject, frequency: BaseValueObject, basis?: BaseValueObject, calcMethod?: BaseValueObject):
|
|
6
|
+
calculate(issue: BaseValueObject, firstInterest: BaseValueObject, settlement: BaseValueObject, rate: BaseValueObject, par: BaseValueObject, frequency: BaseValueObject, basis?: BaseValueObject, calcMethod?: BaseValueObject): BaseValueObject;
|
|
8
7
|
private _getResult;
|
|
9
8
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { BaseValueObject
|
|
2
|
-
import { NumberValueObject } from '../../../engine/value-object/primitive-object';
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
3
2
|
import { BaseFunction } from '../../base-function';
|
|
4
3
|
export declare class Accrintm extends BaseFunction {
|
|
5
4
|
minParams: number;
|
|
6
5
|
maxParams: number;
|
|
7
|
-
calculate(issue: BaseValueObject, settlement: BaseValueObject, rate: BaseValueObject, par: BaseValueObject, basis?: BaseValueObject):
|
|
6
|
+
calculate(issue: BaseValueObject, settlement: BaseValueObject, rate: BaseValueObject, par: BaseValueObject, basis?: BaseValueObject): BaseValueObject;
|
|
8
7
|
}
|