/** * Copyright 2023-present DreamNum Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { getBuiltinFunctionGroup } from '../function-group'; import { FUNCTION_NAMES_MATH } from './function-names'; export const excelCircularFunctions = getBuiltinFunctionGroup( FUNCTION_NAMES_MATH.SIN, FUNCTION_NAMES_MATH.COS, FUNCTION_NAMES_MATH.TAN, FUNCTION_NAMES_MATH.SEC, FUNCTION_NAMES_MATH.CSC, FUNCTION_NAMES_MATH.COT ); export const excelIntegerArithmeticFunctions = getBuiltinFunctionGroup( FUNCTION_NAMES_MATH.GCD, FUNCTION_NAMES_MATH.LCM, FUNCTION_NAMES_MATH.MOD, FUNCTION_NAMES_MATH.MROUND ); export const excelPowerFunctions = getBuiltinFunctionGroup( FUNCTION_NAMES_MATH.POWER, FUNCTION_NAMES_MATH.SUM, FUNCTION_NAMES_MATH.PRODUCT, FUNCTION_NAMES_MATH.SUMSQ, FUNCTION_NAMES_MATH.SERIESSUM, FUNCTION_NAMES_MATH.SQRTPI, FUNCTION_NAMES_MATH.RANDARRAY, FUNCTION_NAMES_MATH.RANDBETWEEN );