CN110020401B - Method, device and equipment for calculating curve integral of arc length and storage medium - Google Patents
Method, device and equipment for calculating curve integral of arc length and storage medium Download PDFInfo
- Publication number
- CN110020401B CN110020401B CN201910287451.0A CN201910287451A CN110020401B CN 110020401 B CN110020401 B CN 110020401B CN 201910287451 A CN201910287451 A CN 201910287451A CN 110020401 B CN110020401 B CN 110020401B
- Authority
- CN
- China
- Prior art keywords
- integral
- curve
- model
- arc length
- curve integral
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000004364 calculation method Methods 0.000 claims abstract description 138
- 230000010354 integration Effects 0.000 claims description 14
- 239000000284 extract Substances 0.000 claims description 10
- 238000000605 extraction Methods 0.000 claims description 5
- 230000008569 process Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/15—Correlation function computation including computation of convolution operations
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Computational Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Algebra (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Image Generation (AREA)
Abstract
本发明属于数学计算技术领域,公开了一种对弧长的曲线积分计算方法、装置、设备及存储介质。该方法包括:获取待计算的对弧长的曲线积分对应的积分数据,并从所述积分数据中提取至少两个第一积分元素,以及所述第一积分元素对应的取值范围;根据所述第一积分元素,确定所述对弧长的曲线积分对应的曲线积分模型;根据所述曲线积分模型,确定所述对弧长的曲线积分对应的积分计算公式;根据所述第一积分元素对应的取值范围和所述积分计算公式,计算所述对弧长的曲线积分对应的积分结果。通过上述方式,解决了现有技术中对弧长的曲线积分计算方式过于单一,无法满足用户实际需求的技术问题。
The invention belongs to the technical field of mathematical calculation, and discloses a curve integral calculation method, device, equipment and storage medium for arc length. The method includes: obtaining integral data corresponding to the curve integral of the arc length to be calculated, and extracting at least two first integral elements from the integral data, and a value range corresponding to the first integral elements; according to the The first integral element is used to determine the curve integral model corresponding to the curve integral of the arc length; according to the curve integral model, the integral calculation formula corresponding to the curve integral of the arc length is determined; according to the first integral element Corresponding to the value range and the integral calculation formula, the integral result corresponding to the curve integral of the arc length is calculated. Through the above method, the technical problem in the prior art that the calculation method of the curve integral of the arc length is too simple and cannot meet the actual needs of users is solved.
Description
技术领域Technical Field
本发明涉及数学计算技术领域,尤其涉及一种对弧长的曲线积分计算方法、装置、设备及存储介质。The present invention relates to the field of mathematical calculation technology, and in particular to a curve integral calculation method, device, equipment and storage medium for arc length.
背景技术Background Art
对弧长的曲线积分是一种具体的曲线积分,通常也称为第一类曲线积分。The curvilinear integral over arc length is a specific curvilinear integral, often also called the first kind of curvilinear integral.
目前,为了方便计算对弧长的曲线积分,相继推出了不少对弧长的曲线积分的计算装置,如二重积分计数器。At present, in order to facilitate the calculation of the curve integral of the arc length, many calculation devices for the curve integral of the arc length have been introduced one after another, such as a double integral counter.
虽然,利用这些计算装置可以快速、准确的计算出对弧长的曲线积分的积分结果。但是,由于目前的计算装置只能识别14种原生的对弧长的曲线积分对应的曲线积分模型,这就要求用户必须按照这14种原生的曲线积分模型提供计算数据,才可以获得相应的积分结果。Although these computing devices can be used to quickly and accurately calculate the integral results of the curve integral of the arc length, since the current computing devices can only recognize 14 native curve integral models corresponding to the curve integral of the arc length, the user must provide calculation data according to these 14 native curve integral models in order to obtain the corresponding integral results.
显然,现有对弧长的曲线积分的计算方案难以满足用户的需求,所以亟需提供一种新的对弧长的曲线积分计算方案,以解决上述技术问题。Obviously, the existing calculation scheme for the curve integral of arc length is difficult to meet the needs of users, so it is urgent to provide a new calculation scheme for the curve integral of arc length to solve the above technical problems.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art.
发明内容Summary of the invention
本发明的主要目的在于提供一种对弧长的曲线积分计算方法、装置、设备及存储介质,旨在解决现有技术中对弧长的曲线积分计算方式过于单一,无法满足用户实际需求的技术问题。The main purpose of the present invention is to provide a curve integral calculation method, device, equipment and storage medium for arc length, aiming to solve the technical problem that the curve integral calculation method for arc length in the prior art is too single and cannot meet the actual needs of users.
为实现上述目的,本发明提供了一种对弧长的曲线积分计算方法,所述方法包括以下步骤:To achieve the above object, the present invention provides a method for calculating the curve integral of arc length, the method comprising the following steps:
获取待计算的对弧长的曲线积分对应的积分数据,并从所述积分数据中提取至少两个第一积分元素,以及所述第一积分元素对应的取值范围;Obtaining integral data corresponding to the curve integral of the arc length to be calculated, and extracting at least two first integral elements and value ranges corresponding to the first integral elements from the integral data;
根据所述第一积分元素,确定所述对弧长的曲线积分对应的曲线积分模型;Determining a curve integral model corresponding to the curve integral of the arc length according to the first integral element;
根据所述曲线积分模型,确定所述对弧长的曲线积分对应的积分计算公式;Determine, according to the curve integral model, an integral calculation formula corresponding to the curve integral of the arc length;
根据所述第一积分元素对应的取值范围和所述积分计算公式,计算所述对弧长的曲线积分对应的积分结果。According to the value range corresponding to the first integral element and the integral calculation formula, an integral result corresponding to the curve integral of the arc length is calculated.
优选地,所述从所述积分数据中提取至少两个第一积分元素,以及所述第一积分元素对应的取值范围的步骤,包括:Preferably, the step of extracting at least two first integral elements and the value ranges corresponding to the first integral elements from the integral data includes:
根据预设的对应关系表,将所述积分数据转化为字符串,得到待处理字符串;According to a preset correspondence table, the integral data is converted into a character string to obtain a character string to be processed;
根据预设的非法字符表,过滤所述待处理字符串中的非法字符,得到目标字符串;According to a preset illegal character table, illegal characters in the character string to be processed are filtered to obtain a target character string;
从所述目标字符串中提取至少两个第一积分元素,以及所述第一积分元素对应的取值范围。At least two first integral elements and value ranges corresponding to the first integral elements are extracted from the target character string.
优选地,所述根据所述第一积分元素,确定所述对弧长的曲线积分对应的曲线积分模型的步骤,包括:Preferably, the step of determining the curve integral model corresponding to the curve integral of the arc length according to the first integral element comprises:
确定各第一积分元素在所述积分数据中所处的位置;Determining the position of each first integral element in the integral data;
根据各第一积分元素在所述积分数据中所处的位置的先后顺序,按序排列各所述第一积分元素,并在相邻的两个第一积分元素之间设置预设的间隔符合,得到所述对弧长的曲线积分对应的曲线积分模型。According to the order of the positions of the first integral elements in the integral data, the first integral elements are arranged in order, and a preset interval is set between two adjacent first integral elements to obtain the curve integral model corresponding to the curve integral of the arc length.
优选地,所述第一积分元素包括积分弧段元素和坐标元素;Preferably, the first integral element comprises an integral arc element and a coordinate element;
所述根据所述第一积分元素对应的取值范围和所述积分计算公式,计算所述对弧长的曲线积分对应的积分结果的步骤,包括:The step of calculating the integral result corresponding to the curve integral of the arc length according to the value range corresponding to the first integral element and the integral calculation formula includes:
根据所述积分弧段元素对应的取值范围,确定积分上下限;Determine the upper and lower limits of the integral according to the value range corresponding to the integral arc segment element;
根据所述坐标元素对应的取值范围,确定弧微分;Determining the arc differential according to the value range corresponding to the coordinate element;
将所述积分上下限和所述弧微分带入所述积分计算公式,得到目标积分计算公式;Substitute the integral upper and lower limits and the arc differential into the integral calculation formula to obtain a target integral calculation formula;
根据所述目标积分计算公式,计算所述对弧长的曲线积分对应的积分结果。According to the target integral calculation formula, the integral result corresponding to the curve integral of the arc length is calculated.
优选地,所述根据所述曲线积分模型,确定所述对弧长的曲线积分对应的积分计算公式的步骤之前,所述方法还包括:Preferably, before the step of determining the integral calculation formula corresponding to the curve integral of the arc length according to the curve integral model, the method further comprises:
判断所述曲线积分模型是否可用;Determining whether the curve integration model is available;
若所述曲线积分模型可用,则执行所述根据所述曲线积分模型,确定所述对弧长的曲线积分对应的积分计算公式的操作的步骤;If the curve integral model is available, then performing the step of determining the integral calculation formula corresponding to the curve integral of the arc length according to the curve integral model;
若所述曲线积分模型不可用,则向所述用户作出错误提示,以使所述用户根据所述错误提示修改所述积分数据;If the curve integral model is not available, an error prompt is given to the user, so that the user can modify the integral data according to the error prompt;
其中,所述判断所述曲线积分模型是否可用的步骤,包括:Wherein, the step of determining whether the curve integral model is available comprises:
将所述曲线积分模型与预先构建的曲线积分模型库中的预设曲线积分模型作比较,若所述曲线积分模型库中存在与所述曲线积分模型相同的预设曲线积分模型,则确定所述曲线积分模型可用;Comparing the curve integral model with a preset curve integral model in a pre-built curve integral model library, and determining that the curve integral model is available if there is a preset curve integral model in the curve integral model library that is identical to the curve integral model;
否则,确定所述曲线积分模型不可用。Otherwise, it is determined that the curve integration model is not applicable.
优选地,所述将所述曲线积分模型与预先构建的曲线积分模型库中的预设曲线积分模型作比较的步骤之前,所述方法还包括:Preferably, before the step of comparing the curve integral model with a preset curve integral model in a pre-built curve integral model library, the method further comprises:
获取预先确定的一级曲线积分模型,并提取所述一级曲线积分模型中包括的第二积分元素;Acquire a predetermined primary curve integral model, and extract a second integral element included in the primary curve integral model;
调整所述第二积分元素在所述一级曲线积分模型中所处的位置,得到与所述一级曲线积分模型等价的二级曲线积分模型,所述二级曲线积分模型包括所述一级曲线积分模型;Adjusting the position of the second integral element in the primary curve integral model to obtain a secondary curve integral model equivalent to the primary curve integral model, wherein the secondary curve integral model includes the primary curve integral model;
将所述二级曲线积分模型作为所述预设曲线积分模型。The secondary curve integral model is used as the preset curve integral model.
优选地,所述调整所述第二积分元素在所述一级曲线积分模型中所处的位置,得到与所述一级曲线积分模型等价的二级曲线积分模型的步骤之前,所述方法还包括:Preferably, before the step of adjusting the position of the second integral element in the primary curve integral model to obtain a secondary curve integral model equivalent to the primary curve integral model, the method further comprises:
统计所述一级曲线积分模型中包括的第二积分元素的个数N,N为大于等于2的整数;Counting the number N of second integral elements included in the primary curve integral model, where N is an integer greater than or equal to 2;
根据个数N,确定与所述一级曲线积分模型等价的二级曲线积分模型的个数M,M为大于等于N的整数;According to the number N, determining the number M of secondary curve integral models equivalent to the primary curve integral model, where M is an integer greater than or equal to N;
根据个数M和所述第二积分元素,确定所述一级曲线积分模型的调整规则;Determining an adjustment rule of the primary curve integral model according to the number M and the second integral element;
其中,所述调整所述第二积分元素在所述一级曲线积分模型中所处的位置,得到与所述一级曲线积分模型等价的二级曲线积分模型的步骤,包括:The step of adjusting the position of the second integral element in the primary curve integral model to obtain a secondary curve integral model equivalent to the primary curve integral model includes:
根据所述调整规则,调整所述第二积分元素在所述一级曲线积分模型中所处的位置,得到与所述一级曲线积分模型等价的M个二级曲线积分模型。According to the adjustment rule, the position of the second integral element in the primary curve integral model is adjusted to obtain M secondary curve integral models equivalent to the primary curve integral model.
此外,为实现上述目的,本发明还提出一种对弧长的曲线积分计算装置,所述装置包括:In addition, to achieve the above-mentioned purpose, the present invention also proposes a curve integral calculation device for arc length, the device comprising:
提取模块,用于获取待计算的对弧长的曲线积分对应的积分数据,并从所述积分数据中提取至少两个第一积分元素,以及所述第一积分元素对应的取值范围;An extraction module, used to obtain integral data corresponding to the curve integral of the arc length to be calculated, and extract at least two first integral elements and a value range corresponding to the first integral elements from the integral data;
第一确定模块,用于根据所述第一积分元素,确定所述对弧长的曲线积分对应的曲线积分模型;A first determining module, configured to determine a curve integral model corresponding to the curve integral of the arc length according to the first integral element;
第二确定模块,用于根据所述曲线积分模型,确定所述对弧长的曲线积分对应的积分计算公式;A second determination module is used to determine the integral calculation formula corresponding to the curve integral of the arc length according to the curve integral model;
计算模块,用于根据所述第一积分元素对应的取值范围和所述积分计算公式,计算所述对弧长的曲线积分对应的积分结果。A calculation module is used to calculate the integral result corresponding to the curve integral of the arc length according to the value range corresponding to the first integral element and the integral calculation formula.
此外,为实现上述目的,本发明还提出一种对弧长的曲线积分计算设备,所述设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的对弧长的曲线积分计算程序,所述对弧长的曲线积分计算程序配置为实现如上文所述的对弧长的曲线积分计算方法的步骤。In addition, to achieve the above-mentioned purpose, the present invention also proposes a curve integral calculation device for arc length, the device comprising: a memory, a processor, and a curve integral calculation program for arc length stored in the memory and executable on the processor, the curve integral calculation program for arc length being configured to implement the steps of the curve integral calculation method for arc length as described above.
此外,为实现上述目的,本发明还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有对弧长的曲线积分计算程序,所述对弧长的曲线积分计算程序被处理器执行时实现如上文所述的对弧长的曲线积分计算方法的步骤。In addition, to achieve the above-mentioned purpose, the present invention also proposes a computer-readable storage medium, on which a curve integral calculation program for arc length is stored. When the curve integral calculation program for arc length is executed by a processor, the steps of the curve integral calculation method for arc length as described above are implemented.
本发明提供的对弧长的曲线积分计算方案,在计算对弧长的曲线积分的积分结果时,通过获取对弧长的曲线积分对应的积分数据,并从所述积分数据中提取与当前需要计算的对弧长的曲线积分相关的第一积分元素,及各第一积分元素对应的取值范围,进而根据提取的第一积分元素确定当前需要计算的对弧长的曲线积分对应的曲线积分模型,然后根据确定的曲线积分模型确定该对弧长的曲线积分对应的积分计算公式,最后根据各第一积分元素对应的取值范围和确定的积分计算公式,便可以自动计算出该对弧长的曲线积分的积分结果。由于确定该对弧长的曲线积分对应的曲线积分模型的过程是依据提取出的第一积分元素,而并非直接根据用户提供的积分数据,因而不限定用户提供的积分数据的格式必需符合现有给出的14种原生的曲线积分模型,使得用户能够根据自己的输入习惯提供积分数据,从而大大方便了用户的使用,有效解决了现有技术中对弧长的曲线积分计算方式过于单一,无法满足用户实际需求的技术问题。The curve integral calculation scheme for arc length provided by the present invention, when calculating the integral result of the curve integral for arc length, obtains the integral data corresponding to the curve integral for arc length, extracts the first integral element related to the curve integral for arc length currently required to be calculated and the value range corresponding to each first integral element from the integral data, and then determines the curve integral model corresponding to the curve integral for arc length currently required to be calculated according to the extracted first integral element, and then determines the integral calculation formula corresponding to the curve integral for the arc length according to the determined curve integral model, and finally automatically calculates the integral result of the curve integral for the arc length according to the value range corresponding to each first integral element and the determined integral calculation formula. Since the process of determining the curve integral model corresponding to the curve integral for the arc length is based on the extracted first integral element, rather than directly based on the integral data provided by the user, the format of the integral data provided by the user is not limited to conform to the 14 existing native curve integral models, so that the user can provide integral data according to his own input habits, thereby greatly facilitating the use of the user, and effectively solving the technical problem that the curve integral calculation method for arc length in the prior art is too single and cannot meet the actual needs of the user.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本发明实施例方案涉及的硬件运行环境的对弧长的曲线积分计算设备的结构示意图;1 is a schematic diagram of the structure of a curve integral calculation device for arc length in a hardware operating environment according to an embodiment of the present invention;
图2为本发明对弧长的曲线积分计算方法第一实施例的流程示意图;FIG2 is a schematic flow chart of a first embodiment of a method for calculating arc length by curve integral according to the present invention;
图3为本发明对弧长的曲线积分计算方法第二实施例的流程示意图;3 is a schematic flow chart of a second embodiment of a method for calculating arc length by curve integral according to the present invention;
图4为本发明对弧长的曲线积分计算装置第一实施例的结构框图。FIG. 4 is a structural block diagram of a first embodiment of a curve integral calculation device for arc length according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings.
具体实施方式DETAILED DESCRIPTION
应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
参照图1,图1为本发明实施例方案涉及的硬件运行环境的对弧长的曲线积分计算设备结构示意图。Refer to FIG. 1 , which is a schematic diagram of the structure of a curve integral calculation device for arc length in a hardware operating environment involved in an embodiment of the present invention.
如图1所示,该对弧长的曲线积分计算设备可以包括:处理器1001,例如中央处理器(Central Processing Unit,CPU),通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如无线保真(WIreless-FIdelity,WI-FI)接口)。存储器1005可以是高速的随机存取存储器(RandomAccess Memory,RAM)存储器,也可以是稳定的非易失性存储器(Non-Volatile Memory,NVM),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG1 , the curve integral calculation device for the arc length may include: a
本领域技术人员可以理解,图1中示出的结构并不构成对对弧长的曲线积分计算设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art will appreciate that the structure shown in FIG. 1 does not constitute a limitation on the curve integral calculation device for arc length, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
如图1所示,作为一种存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及对弧长的曲线积分计算程序。As shown in FIG. 1 , the
在图1所示的对弧长的曲线积分计算设备中,网络接口1004主要用于与网络服务器进行数据通信;用户接口1003主要用于与用户进行数据交互;本发明对弧长的曲线积分计算设备中的处理器1001、存储器1005可以设置在对弧长的曲线积分计算设备中,所述对弧长的曲线积分计算设备通过处理器1001调用存储器1005中存储的对弧长的曲线积分计算程序,并执行本发明实施例提供的对弧长的曲线积分计算方法。In the curve integral calculation device for arc length shown in FIG1 , the
本发明实施例提供了一种对弧长的曲线积分计算方法,参照图2,图2为本发明一种对弧长的曲线积分计算方法第一实施例的流程示意图。An embodiment of the present invention provides a curve integral calculation method for arc length. Referring to FIG. 2 , FIG. 2 is a flow chart of a first embodiment of a curve integral calculation method for arc length according to the present invention.
本实施例中,所述对弧长的曲线积分计算方法包括以下步骤:In this embodiment, the curve integral calculation method for arc length includes the following steps:
步骤S10,获取待计算的对弧长的曲线积分对应的积分数据,并从所述积分数据中提取至少两个第一积分元素,以及所述第一积分元素对应的取值范围。Step S10, obtaining integral data corresponding to the curve integral of the arc length to be calculated, and extracting at least two first integral elements and value ranges corresponding to the first integral elements from the integral data.
可理解的是,所述积分数据可以来自于用户手动输入或者是系统内部输出的等待进一步处理的数据。本实施例中,所述积分数据来自于用户输入。It is understandable that the integral data may be from manual input by a user or data outputted from the system and waiting for further processing. In this embodiment, the integral data is from user input.
此外,本实施例中所说的积分数据具体是指需要计算积分结果的对弧长的曲线积分对应的相关数据,主要包括用于计算对弧长的曲线积分的第一积分元素和所述第一积分元素对应的取值范围。In addition, the integral data mentioned in this embodiment specifically refers to the relevant data corresponding to the curve integral of the arc length for which the integral result needs to be calculated, mainly including the first integral element used to calculate the curve integral of the arc length and the value range corresponding to the first integral element.
此外,需要说明的是,本实施例中所说的第一积分元素并非单纯的指对弧长的曲线积分中所说的弧长元素ds,还包括坐标元素、积分弧段元素、被积函数元素等,此处不再一一列举,对此也不做任何限制。In addition, it should be noted that the first integral element mentioned in this embodiment does not simply refer to the arc length element ds mentioned in the curve integral of the arc length, but also includes coordinate elements, integral arc segment elements, integrand elements, etc., which are not listed one by one here and no limitation is made.
此外,值得一提的是,根据现有的14种原生的曲线积分模型(以下称为:一级曲线积分模型)可以确定,构成一个一级曲线积分模型至少需要包括两个积分元素,以及这两个积分元素对应的取值范围。In addition, it is worth mentioning that, according to the existing 14 native curve integral models (hereinafter referred to as: first-level curve integral models), it can be determined that a first-level curve integral model needs to include at least two integral elements and the value ranges corresponding to the two integral elements.
而本实施例中所说的曲线积分模型,实质是与一级曲线积分模型等价的曲线积分模型,即含有的积分元素相同,只是积分元素的位置不同。The curve integral model mentioned in this embodiment is actually a curve integral model equivalent to the first-order curve integral model, that is, it contains the same integral elements, but the positions of the integral elements are different.
因而,为了保证步骤S20中确定曲线积分模型的操作能够顺利进行,在从所述积分数据中提取第一积分元素时,需要提取至少两个第一积分元素,以及所述第一积分元素对应的取值范围。Therefore, in order to ensure that the operation of determining the curve integral model in step S20 can proceed smoothly, when extracting the first integral element from the integral data, it is necessary to extract at least two first integral elements and the value range corresponding to the first integral element.
为了便于理解,以下罗列出了现有的14种一级曲线积分模型,分别为:For ease of understanding, the following are the 14 existing first-order curve integration models:
(1)y=y(x),a≤x≤b;(1) y = y(x), a≤x≤b;
(2)x=x(y),c≤y≤d;(2) x = x(y), c ≤ y ≤ d;
(3)x=x(t),y=y(t),α≤t≤β;(3)x=x(t), y=y(t), α≤t≤β;
(4)f=f(x,y),y=y(x),a≤x≤b;(4)f=f(x,y), y=y(x), a≤x≤b;
(5)f=f(x,y),x=x(y),c≤y≤d;(5)f=f(x,y), x=x(y), c≤y≤d;
(6)f=f(x,y),x=x(t),y=y(t),α≤t≤β;(6)f=f(x,y), x=x(t), y=y(t), α≤t≤β;
(7)y=y(x),z=z(x),a≤x≤b;(7)y=y(x), z=z(x), a≤x≤b;
(8)x=x(y),z=z(y),c≤y≤d;(8)x=x(y), z=z(y), c≤y≤d;
(9)x=x(z),y=y(z),p≤z≤q;(9)x=x(z), y=y(z), p≤z≤q;
(10)x=x(t),y=y(t),z=z(t),α≤t≤β;(10)x=x(t), y=y(t), z=z(t), α≤t≤β;
(11)f=f(x,y,z),y=y(x),z=z(x),a≤x≤b;(11)f=f(x,y,z), y=y(x), z=z(x), a≤x≤b;
(12)f=f(x,y,z),x=x(y),z=z(y),c≤y≤d;(12)f=f(x, y, z), x=x(y), z=z(y), c≤y≤d;
(13)f=f(x,y,z),x=x(z),y=y(z),p≤z≤q;(13)f=f(x, y, z), x=x(z), y=y(z), p≤z≤q;
(14)f=f(x,y,z),x=x(t),y=y(t),z=z(t),α≤t≤β。(14) f=f(x, y, z), x=x(t), y=y(t), z=z(t), α≤t≤β.
相应地,如果用户提供的所述积分数据为“y=y(x),a≤x≤b”,或者“a≤x≤b,y=y(x)”,则从所述积分数据中提取出的第一积分元素,具体为坐标元素“x”和坐标元素“y”,从所述积分数据中提取出的坐标元素“x”对应的取值范围为“a≤x≤b”,坐标元素“x”对应的取值范围为“y=y(x)”。Correspondingly, if the integral data provided by the user is "y=y(x), a≤x≤b", or "a≤x≤b, y=y(x)", then the first integral element extracted from the integral data is specifically the coordinate element "x" and the coordinate element "y", and the value range corresponding to the coordinate element "x" extracted from the integral data is "a≤x≤b", and the value range corresponding to the coordinate element "x" is "y=y(x)".
应当理解的是,以上仅为举例说明,对本发明的技术方案并不构成任何限定,在实际应用中,本领域的技术人员可以根据需要进行设置,此处不做限制。It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In practical applications, those skilled in the art can make settings as needed, and no limitation is made here.
此外,值得一提的是,由于在实际应用中,计算机设备在处理用户输入的数据时,其内部通常会将用户输入的数据转换为字符串格式,然后再根据业务需求在字符串的基础上进行相应处理。In addition, it is worth mentioning that in actual applications, when computer equipment processes data input by users, it usually converts the data input by users into a string format internally, and then performs corresponding processing based on the string according to business needs.
故,在执行上提取第一积分元素,以及第一积分元素对应的取值范围的操作之前,可以先将所述积分数据转换为字符串,然后从字符串中提取所述第一积分元素,以及所述第一积分元素对应的取值范围。Therefore, before executing the operation of extracting the first integral element and the value range corresponding to the first integral element, the integral data can be first converted into a character string, and then the first integral element and the value range corresponding to the first integral element can be extracted from the character string.
为了便于理解,本实施例给出一种具体的实现方式,大致如下:For ease of understanding, this embodiment provides a specific implementation method, which is roughly as follows:
(1)根据预设的对应关系表,将所述积分数据转化为字符串,得到待处理字符串。(1) According to a preset correspondence table, the integral data is converted into a character string to obtain a character string to be processed.
应当理解的是,所述对应关系表为执行本实例中所说的对弧长的曲线积分计算操作之前构建的。It should be understood that the corresponding relationship table is constructed before executing the curve integral calculation operation on the arc length mentioned in this example.
在实际应用中,为了能够尽可能准确的识别所述积分数据中的内容,可以预先从各大数据平台,收集不同用户书写的对弧长的曲线积分的积分数据,通过基于大数据分析技术和机器学习技术对大量的现有积分数据进行分析、学习,进而确定一个能够尽可能识别不同用户提供的积分数据的对应关系表。In practical applications, in order to be able to identify the content of the integral data as accurately as possible, the integral data of curve integrals of arc length written by different users can be collected in advance from major data platforms, and a large amount of existing integral data can be analyzed and learned based on big data analysis technology and machine learning technology to determine a correspondence table that can identify the integral data provided by different users as much as possible.
比如说,可以在所述对应关系表中设置,如果从所述积分数据中提取到的当前信息为“x∈[a,b]”,则可以将该内容转换为“a≤x≤b”的字符串。For example, it can be set in the correspondence table that if the current information extracted from the integral data is "x∈[a,b]", the content can be converted into a character string of "a≤x≤b".
还比如,可以在所述对应关系表中设置,如果任意两个第一积分元素之间是用分号,顿号,空格等符合间隔的,则将当前的符合替换为逗号。For another example, it can be set in the correspondence table that if any two first integral elements are separated by a semicolon, a comma, a space, or the like, the current symbol is replaced by a comma.
应当理解的是,以上仅为举例说明,对本发明的技术方案并不构成任何限定,在具体应用中,本领域的技术人员可以根据需要进行设置,本发明对此不做限制。It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.
(2)根据预设的非法字符表,过滤所述待处理字符串中的非法字符,得到目标字符串。(2) According to a preset illegal character table, illegal characters in the character string to be processed are filtered to obtain a target character string.
应当理解的是,由于在实际应用中,用户在提供积分数据时,除了会输入能够确定对弧长的曲线积分对应的曲线积分模型的第一积分元素,以及各第一积分元素对应的取值范围,还会根据个人的书写习惯,在添加一些非法字符。因而,为了保证计算机设备能够准确的从所述积分数据中提取所述第一积分元素,以及所述第一积分元素对应的取值范围,可以预先设置非法字符表,并在非法字符表中记录非法字符。这样,在对所述待处理字符串进行非法字符过滤操作时,直接遍历所述待处理字符串,并将遍历到的当前字符与所述非法字符表中的非法字符进行比较,若遍历到的所述当前字符与所述非法字符相同,则将遍历到的所述当前字符从所述待处理字符串中删除,进而得到所述目标字符串。It should be understood that in actual applications, when providing integral data, in addition to inputting the first integral element of the curve integral model that can determine the curve integral of the arc length, and the value range corresponding to each first integral element, the user will also add some illegal characters according to personal writing habits. Therefore, in order to ensure that the computer device can accurately extract the first integral element and the value range corresponding to the first integral element from the integral data, an illegal character table can be pre-set, and illegal characters can be recorded in the illegal character table. In this way, when the illegal character filtering operation is performed on the string to be processed, the string to be processed is directly traversed, and the current character traversed is compared with the illegal characters in the illegal character table. If the current character traversed is the same as the illegal character, the current character traversed is deleted from the string to be processed, and the target string is obtained.
(3)从所述目标字符串中提取至少两个第一积分元素,以及所述第一积分元素对应的取值范围。(3) Extracting at least two first integral elements and the value ranges corresponding to the first integral elements from the target character string.
为了便于理解,以下结合实例进行说明:For ease of understanding, the following examples are used to illustrate:
假设,用户输入的积分数据为:“y=y(x)和x∈[a,b]。”,预设的非法字符表B中记录了的非法字符为:B={“。”、“!”、“、”、“?”}。Assume that the integral data input by the user is: "y=y(x) and x∈[a,b].", and the illegal characters recorded in the preset illegal character table B are: B={".", "!", "", "?"}.
则通过字符串转化处理,上述积分数据对应的待处理字符串{S={y=y(x),a≤x≤b。}。Then, through the character string conversion process, the character string to be processed corresponding to the above integral data is {S={y=y(x), a≤x≤b. }.
接着,分别对待处理字符串S和非法字符表B进行遍历,并将从待处理字符串S中遍历出的字符与从非法字符表B中遍历出的字符进行比较,最终确定待处理字符串S中的字符“。”为非法字符。Next, the character string S to be processed and the illegal character table B are traversed respectively, and the characters traversed from the character string S to be processed are compared with the characters traversed from the illegal character table B, and finally it is determined that the character "." in the character string S to be processed is an illegal character.
接着,将待处理字符串S中的字符“。”过滤掉,得到目标字符串SP={S={y=y(x),a≤x≤b}。Next, the character “.” in the character string S to be processed is filtered out to obtain the target character string SP = {S = {y = y(x), a≤x≤b}.
最后,从所述目标字符串SP中提取出的第一积分元素,具体为坐标元素“x”和坐标元素“y”,从所述积分数据中提取出的坐标元素“x”对应的取值范围为“a≤x≤b”,坐标元素“x”对应的取值范围为“y=y(x)”。Finally, the first integral element extracted from the target string SP is specifically the coordinate element "x" and the coordinate element "y". The value range corresponding to the coordinate element "x" extracted from the integral data is "a≤x≤b", and the value range corresponding to the coordinate element "x" is "y=y(x)".
应当理解的是,以上给出的仅为一种从所述积分数据中提取第一积分元素的,以及第一积分元素对应的取值范围的具体实现方式,对本发明的技术方案并不构成任何限定,在具体应用中,本领域的技术人员可以根据需要进行设置,本发明对此不做限制。It should be understood that what is given above is only a specific implementation method of extracting the first integral element from the integral data, and the value range corresponding to the first integral element, which does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can set it as needed, and the present invention does not limit this.
此外,上述所说的“第一积分元素”中的“第一”仅仅是用于表示该积分元素是从所述积分数据中提取的,并不对积分数据本身造成限定,且该第一积分元素可以为所述积分数据中的任意一个积分元素。In addition, the "first" in the above-mentioned "first integral element" is only used to indicate that the integral element is extracted from the integral data, and does not limit the integral data itself, and the first integral element can be any integral element in the integral data.
相应地,所述“一级曲线积分模型”中的“一级”,也不对弧长的曲线积分对应的模型造成任何限定,在实际应用中,曲线积分模型可以是任意一种一级曲线积分模型,也可以是与所述一级曲线积分模型等价的任意一个二级曲线积分模型。Correspondingly, the "first level" in the "first level curve integral model" does not impose any limitation on the model corresponding to the curve integral of the arc length. In practical applications, the curve integral model can be any first level curve integral model, or any second level curve integral model equivalent to the first level curve integral model.
相应地,所述“二级曲线积分模型”中的“二级”,也不对弧长的曲线积分对应的模型造成任何限定。Correspondingly, the “secondary” in the “secondary curve integral model” does not impose any limitation on the model corresponding to the curve integral of arc length.
步骤S20,根据所述第一积分元素,确定所述对弧长的曲线积分对应的曲线积分模型。Step S20: determining a curve integral model corresponding to the curve integral of the arc length according to the first integral element.
关于,确定所述对弧长的曲线积分对应的曲线积分模型的步骤,大致如下:The steps of determining the curve integral model corresponding to the curve integral of the arc length are roughly as follows:
首先,确定各第一积分元素在所述积分数据中所处的位置;First, determine the position of each first integral element in the integral data;
然后,根据各第一积分元素在所述积分数据中所处的位置的先后顺序,按序排列各所述第一积分元素,并在相邻的两个第一积分元素之间设置预设的间隔符合,如逗号,得到所述对弧长的曲线积分对应的曲线积分模型。Then, according to the order of the positions of the first integral elements in the integral data, the first integral elements are arranged in order, and a preset interval, such as a comma, is set between two adjacent first integral elements to obtain the curve integral model corresponding to the curve integral of the arc length.
为了便于理解,以下结合实例进行说明:For ease of understanding, the following examples are used to illustrate:
假设,用户提供的积分数据为“y=y(x),a≤x≤b”,则提取出的第一积分元素,具体为坐标元素“x”和坐标元素“y”,从所述积分数据中提取出的坐标元素“x”对应的取值范围为“a≤x≤b”,坐标元素“x”对应的取值范围为“y=y(x)”。Assuming that the integral data provided by the user is "y=y(x), a≤x≤b", the first integral element extracted is specifically the coordinate element "x" and the coordinate element "y", and the value range corresponding to the coordinate element "x" extracted from the integral data is "a≤x≤b", and the value range corresponding to the coordinate element "x" is "y=y(x)".
同时,获取的坐标元素“x”的位置为wx,坐标元素“y”的位置为wy。At the same time, the position of the coordinate element "x" is obtained as w x , and the position of the coordinate element "y" is obtained as w y .
通过比较,发现wy对应的数值小于wx对应的数值,即坐标元素“y”应该位于坐标元素“x”之前,通过这种排列后得到的曲线积分模型即为“y=y(x),a≤x≤b”。By comparison, it is found that the value corresponding to w y is smaller than the value corresponding to w x , that is, the coordinate element "y" should be located before the coordinate element "x". The curve integral model obtained after this arrangement is "y=y(x), a≤x≤b".
若用户提供的积分数据为“a≤x≤b,y=y(x)”,虽然提取出的第一积分元素仍为坐标元素“x”和坐标元素“y”,从所述积分数据中提取出的坐标元素“x”对应的取值范围为“a≤x≤b”,坐标元素“x”对应的取值范围为“y=y(x)”。If the integral data provided by the user is "a≤x≤b, y=y(x)", although the first integral element extracted is still the coordinate element "x" and the coordinate element "y", the value range corresponding to the coordinate element "x" extracted from the integral data is "a≤x≤b", and the value range corresponding to the coordinate element "x" is "y=y(x)".
但是,通过比较wx对应的数值与wy对应的数值可以发现,wy对应的数值是大于于wx对应的数值的,即坐标元素“y”应该位于坐标元素“x”之后,通过这种排列后得到的曲线积分模型即为“a≤x≤b,y=y(x)”。However, by comparing the numerical value corresponding to wx with the numerical value corresponding to wy , it can be found that the numerical value corresponding to wy is greater than the numerical value corresponding to wx , that is, the coordinate element "y" should be located after the coordinate element "x". The curve integral model obtained after this arrangement is "a≤x≤b, y=y(x)".
应当理解的是,以上仅为举例说明,对本发明的技术方案并不构成任何限定,在具体应用中,本领域的技术人员可以根据需要进行设置,本发明对此不做限制。It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.
此外,值得一提的是,本实施例中所说的曲线积分模型,具体包括一级曲线积分模型和所述一级曲线模型等价的等价模型。In addition, it is worth mentioning that the curve integral model mentioned in this embodiment specifically includes a primary curve integral model and an equivalent model equivalent to the primary curve integral model.
为了便于说明,以下将所述一级曲线积分模型和所述一级曲线模型等价的等价模型称为二级曲线积分模型。For the sake of convenience, the primary curve integral model and an equivalent model of the primary curve model are referred to as secondary curve integral models below.
相应地,上述确定的所述曲线积分模型即为所述二级曲线积分模型中的任意一种。Correspondingly, the curve integral model determined above is any one of the secondary curve integral models.
步骤S30,根据所述曲线积分模型,确定所述对弧长的曲线积分对应的积分计算公式。Step S30: determining an integral calculation formula corresponding to the curve integral of the arc length according to the curve integral model.
具体的说,由于现有的14种一级曲线积分模型分别是对应四种不同的对弧长的曲线积分的,实际对应关系如下:Specifically, since the existing 14 first-order curve integral models correspond to four different curve integrals of arc length, the actual corresponding relationship is as follows:
一级曲线积分模型(1)至(3)是对应平面曲线弧长的,一级曲线积分模型(4)至(6)是对应对弧长的平面曲线的,一级曲线积分模型(7)至(10)是对应空间曲线弧长的,一级曲线积分模型(11)至(14)是对应对弧长的空间曲线的。The first-order curve integral models (1) to (3) correspond to the arc length of the plane curve, the first-order curve integral models (4) to (6) correspond to the plane curve of the corresponding arc length, the first-order curve integral models (7) to (10) correspond to the arc length of the space curve, and the first-order curve integral models (11) to (14) correspond to the space curve of the corresponding arc length.
相应地,派生出的所述曲线积分模型,也会对应着四种不同的对弧长的曲线积分。Correspondingly, the derived curve integral model will also correspond to four different curve integrals of arc length.
因而,根据所述曲线积分模型确定的所述对弧长的曲线积分对应的计费计算公式,也会有所不同。Therefore, the charging calculation formula corresponding to the curve integral of the arc length determined according to the curve integral model will also be different.
需要说明的是,在实际应用中,为了能够根据所述曲线积分模型,快速、准确的确定所述对弧长的曲线积分对应的积分计算公式,可以预先进行如下约定:It should be noted that, in practical applications, in order to be able to quickly and accurately determine the integral calculation formula corresponding to the curve integral of the arc length according to the curve integral model, the following agreement can be made in advance:
(1)用f1表示所述曲线积分模型中存在三元函数标志“f(xyz)=”的位置;(1) f1 is used to indicate the position where the ternary function mark “f(xyz)=” exists in the curve integral model;
(2)用f2表示在所述曲线积分模型中存在二元函数标志“f(xy)=”的位置;(2) f2 indicates the position where the binary function symbol "f(xy)=" exists in the curve integral model;
(3)用f3表示在所述曲线积分模型中存在标记“x=”的位置;(3) f3 represents the position where the mark "x=" exists in the curve integral model;
(4)用f4表示在所述曲线积分模型中存在标记“y=”的位置;(4) f4 represents the position where the mark "y=" exists in the curve integration model;
(5)用f5表示在所述曲线积分模型中存在标记“z=”的位置;(5) f5 indicates the position where the mark “z=” exists in the curve integral model;
(6)用f6表示在所述曲线积分模型中存在标记“≤x≤”的位置;(6) f6 represents the position where the mark “≤x≤” exists in the curve integral model;
(7)用f7表示在所述曲线积分模型中存在标记“≤y≤”的位置;(7) f7 represents the position where the mark “≤y≤” exists in the curve integral model;
(8)用f8表示在所述曲线积分模型中存在标记“≤z≤”的位置;(8) f8 represents the position where the mark “≤z≤” exists in the curve integral model;
(9)用f9表示在所述曲线积分模型中存在标记“≤t≤”的位置;(9) f9 represents the position where the mark “≤t≤” exists in the curve integration model;
(10)用ft1表示在所述曲线积分模型中存在第1个“,”的位置;(10) ft1 indicates the position where the first “,” exists in the curve integral model;
(11)用ft2表示在所述曲线积分模型中存在第2个“,”的位置;(11) ft2 indicates the position where the second “,” exists in the curve integral model;
(12)用ft3表示在所述曲线积分模型中存在第3个“,”的位置;(12) ft3 indicates the position where the third “,” exists in the curve integral model;
(13)用ft4表示在所述曲线积分模型中存在第4个“,”的位置。(13) ft4 indicates the position where the fourth “,” exists in the curve integral model.
相应地,如果在所述曲线积分模型中,f2>0,f3>0,f7>0,其余均等于0,则确定用户需要计算的对弧长的曲线积分实质为对弧长的平面曲线积分的积分结果,这种情况下,需要选用的积分计算公式为:Correspondingly, if in the curve integral model, f2>0, f3>0, f7>0, and the rest are equal to 0, it is determined that the curve integral of the arc length that the user needs to calculate is actually the integral result of the plane curve integral of the arc length. In this case, the integral calculation formula to be selected is:
积分计算公式1: Integral calculation formula 1:
应当理解的是,上述积分计算公式中I表示对弧长的平面曲线积分,表示积分弧段,f(x(y),y)表示被积函数,表示弧微分。It should be understood that in the above integral calculation formula, I represents the plane curve integral of the arc length, represents the integral arc, f(x(y), y) represents the integrand, represents the arc differential.
进一步地,如果在所述曲线积分模型中,f2>0,f4>0,f6>0,其余均等于0,则确定用户需要计算的对弧长的曲线积分实质为对弧长的平面曲线积分的积分结果,这种情况下,需要选用的积分计算公式为:Furthermore, if in the curve integral model, f2>0, f4>0, f6>0, and the rest are equal to 0, it is determined that the curve integral of the arc length that the user needs to calculate is actually the integral result of the plane curve integral of the arc length. In this case, the integral calculation formula to be selected is:
积分计算公式2: Integral calculation formula 2:
应当理解的是,上述积分计算公式中I表示对弧长的平面曲线积分,表示积分弧段,f(x,y(x))表示被积函数,表示弧微分。It should be understood that in the above integral calculation formula, I represents the plane curve integral of the arc length, represents the integral arc, f(x, y(x)) represents the integrand, represents the arc differential.
进一步地,如果在所述曲线积分模型中,f2>0,f3>0,f4>0,f9>0,其余均等于0,则确定用户需要计算的对弧长的曲线积分实质为对弧长的平面曲线积分的积分结果,这种情况下,需要选用的积分计算公式为:Furthermore, if in the curve integral model, f2>0, f3>0, f4>0, f9>0, and the rest are equal to 0, it is determined that the curve integral of the arc length that the user needs to calculate is actually the integral result of the plane curve integral of the arc length. In this case, the integral calculation formula to be selected is:
积分计算公式3: Integral calculation formula 3:
应当理解的是,上述积分计算公式中I表示对弧长的平面曲线积分,表示积分弧段,f(x(t),y(t))表示被积函数,表示弧微分。It should be understood that in the above integral calculation formula, I represents the plane curve integral of the arc length, represents the integral arc, f(x(t), y(t)) represents the integrand, represents the arc differential.
进一步地,如果在所述曲线积分模型中,f1>0,f3>0,f4>0,f8>0,其余均等于0,则确定用户需要计算的对弧长的曲线积分实质为对弧长的空间曲线积分的积分结果,这种情况下,需要选用的积分计算公式为:Furthermore, if in the curve integral model, f1>0, f3>0, f4>0, f8>0, and the rest are equal to 0, it is determined that the curve integral of the arc length that the user needs to calculate is actually the integral result of the spatial curve integral of the arc length. In this case, the integral calculation formula to be selected is:
积分计算公式4: Integral calculation formula 4:
应当理解的是,上述积分计算公式中S表示对弧长的空间曲线积分,表示积分弧段,f(x(z),y(z),z)表示被积函数,表示弧微分。It should be understood that in the above integral calculation formula, S represents the spatial curve integral of the arc length. represents the integral arc, f(x(z), y(z), z) represents the integrand, represents the arc differential.
进一步地,如果在所述曲线积分模型中,f1>0,f3>0,f5>0,f7>0,其余均等于0,则确定用户需要计算的对弧长的曲线积分实质为对弧长的空间曲线积分的积分结果,这种情况下,需要选用的积分计算公式为:Furthermore, if in the curve integral model, f1>0, f3>0, f5>0, f7>0, and the rest are equal to 0, it is determined that the curve integral of the arc length that the user needs to calculate is actually the integral result of the spatial curve integral of the arc length. In this case, the integral calculation formula to be selected is:
积分计算公式5: Integral calculation formula 5:
应当理解的是,上述积分计算公式中S表示对弧长的空间曲线积分,表示积分弧段,f(x(y),y,z(y))表示被积函数,表示弧微分。It should be understood that in the above integral calculation formula, S represents the spatial curve integral of the arc length. represents the integral arc, f(x(y), y, z(y)) represents the integrand, represents the arc differential.
进一步地,如果在所述曲线积分模型中,f1>0,f4>0,f5>0,f6>0,其余均等于0,则确定用户需要计算的对弧长的曲线积分实质为对弧长的空间曲线积分的积分结果,这种情况下,需要选用的积分计算公式为:Furthermore, if in the curve integral model, f1>0, f4>0, f5>0, f6>0, and the rest are equal to 0, it is determined that the curve integral of the arc length that the user needs to calculate is actually the integral result of the spatial curve integral of the arc length. In this case, the integral calculation formula to be selected is:
积分计算公式6: Integral calculation formula 6:
应当理解的是,上述积分计算公式中S表示对弧长的空间曲线积分,表示积分弧段,f(x,y(x),z(x))表示被积函数,表示弧微分。It should be understood that in the above integral calculation formula, S represents the spatial curve integral of the arc length. represents the integral arc, f(x, y(x), z(x)) represents the integrand, represents the arc differential.
进一步地,如果在所述曲线积分模型中,f1>0,f3>0,f4>0,f5>0,f9>0,其余均等于0,则确定用户需要计算的对弧长的曲线积分实质为对弧长的空间曲线积分的积分结果,这种情况下,需要选用的积分计算公式为:Furthermore, if in the curve integral model, f1>0, f3>0, f4>0, f5>0, f9>0, and the rest are equal to 0, it is determined that the curve integral of the arc length that the user needs to calculate is actually the integral result of the spatial curve integral of the arc length. In this case, the integral calculation formula to be selected is:
积分计算公式7: Integral calculation formula 7:
应当理解的是,上述积分计算公式中S表示对弧长的空间曲线积分,表示积分弧段,f(x(t),y(t),z(t))表示被积函数,表示弧微分。It should be understood that in the above integral calculation formula, S represents the spatial curve integral of the arc length. represents the integral arc, f(x(t), y(t), z(t)) represents the integrand, represents the arc differential.
进一步地,如果在所述曲线积分模型中,f3>0,f7>0,其余均等于0,则确定用户需要计算的对弧长的曲线积分实质为平面曲线的弧长,这种情况下,需要选用的积分计算公式为:Furthermore, if in the curve integral model, f3>0, f7>0, and the rest are equal to 0, it is determined that the curve integral of the arc length that the user needs to calculate is actually the arc length of the plane curve. In this case, the integral calculation formula to be selected is:
积分计算公式8: Integral calculation formula 8:
应当理解的是,上述积分计算公式中LI表示平面曲线的弧长,表示积分弧段,表示弧微分。It should be understood that in the above integral calculation formula, L I represents the arc length of the plane curve. represents the integral arc segment, represents the arc differential.
进一步地,如果在所述曲线积分模型中,f1=0,f2>0,f3>0,f4=0,f7>0,其余均等于0,则确定用户需要计算的对弧长的曲线积分实质为平面曲线的弧长,这种情况下,需要选用的积分计算公式为:Furthermore, if in the curve integral model, f1=0, f2>0, f3>0, f4=0, f7>0, and the rest are equal to 0, it is determined that the curve integral of the arc length that the user needs to calculate is actually the arc length of the plane curve. In this case, the integral calculation formula to be selected is:
积分计算公式9: Integral calculation formula 9:
应当理解的是,上述积分计算公式中LI表示平面曲线的弧长,表示积分弧段,表示弧微分。It should be understood that in the above integral calculation formula, L I represents the arc length of the plane curve. represents the integral arc segment, represents the arc differential.
进一步地,如果在所述曲线积分模型中,f3>0,f4>0,f9>0,其余均等于0,则确定用户需要计算的对弧长的曲线积分实质为平面曲线的弧长,这种情况下,需要选用的积分计算公式为:Furthermore, if in the curve integral model, f3>0, f4>0, f9>0, and the rest are equal to 0, it is determined that the curve integral of the arc length that the user needs to calculate is actually the arc length of the plane curve. In this case, the integral calculation formula to be selected is:
积分计算公式10: Integral calculation formula 10:
应当理解的是,上述积分计算公式中LI表示平面曲线的弧长,表示积分弧段,表示弧微分。It should be understood that in the above integral calculation formula, L I represents the arc length of the plane curve. represents the integral arc segment, represents the arc differential.
进一步地,如果在所述曲线积分模型中,f3>0,f4>0,f8>0,其余均等于0,则确定用户需要计算的对弧长的曲线积分实质为空间曲线的弧长,这种情况下,需要选用的积分计算公式为:Furthermore, if in the curve integral model, f3>0, f4>0, f8>0, and the rest are equal to 0, it is determined that the curve integral of the arc length that the user needs to calculate is actually the arc length of the space curve. In this case, the integral calculation formula to be selected is:
积分计算公式11: Integral calculation formula 11:
应当理解的是,上述积分计算公式中Ls表示空间曲线的弧长,表示积分弧段,表示弧微分。It should be understood that in the above integral calculation formula, Ls represents the arc length of the space curve. represents the integral arc segment, represents the arc differential.
进一步地,如果在所述曲线积分模型中,f3>0,f5>0,f7>0,其余均等于0,则确定用户需要计算的对弧长的曲线积分实质为空间曲线的弧长,这种情况下,需要选用的积分计算公式为:Furthermore, if in the curve integral model, f3>0, f5>0, f7>0, and the rest are equal to 0, it is determined that the curve integral of the arc length that the user needs to calculate is actually the arc length of the space curve. In this case, the integral calculation formula to be selected is:
积分计算公式12: Integral calculation formula 12:
应当理解的是,上述积分计算公式中Ls表示空间曲线的弧长,表示积分弧段,表示弧微分。It should be understood that in the above integral calculation formula, Ls represents the arc length of the space curve. represents the integral arc segment, represents the arc differential.
进一步地,如果在所述曲线积分模型中,f1=0,f2>0,f3>0,f4=0,f7>0,其余均等于0,则确定用户需要计算的对弧长的曲线积分实质为空间曲线的弧长,这种情况下,需要选用的积分计算公式为:Furthermore, if in the curve integral model, f1=0, f2>0, f3>0, f4=0, f7>0, and the rest are equal to 0, it is determined that the curve integral of the arc length that the user needs to calculate is actually the arc length of the space curve. In this case, the integral calculation formula to be selected is:
积分计算公式13: Integral calculation formula 13:
应当理解的是,上述积分计算公式中Ls表示空间曲线的弧长,表示积分弧段,表示弧微分。It should be understood that in the above integral calculation formula, Ls represents the arc length of the space curve. represents the integral arc segment, represents the arc differential.
进一步地,如果在所述曲线积分模型中,f1=0,f2>0,f3>0,f4=0,f7>0,其余均等于0,则确定用户需要计算的对弧长的曲线积分实质为空间曲线的弧长,这种情况下,需要选用的积分计算公式为:Furthermore, if in the curve integral model, f1=0, f2>0, f3>0, f4=0, f7>0, and the rest are equal to 0, it is determined that the curve integral of the arc length that the user needs to calculate is actually the arc length of the space curve. In this case, the integral calculation formula to be selected is:
积分计算公式14: Integral calculation formula 14:
应当理解的是,上述积分计算公式中Ls表示空间曲线的弧长,表示积分弧段,表示弧微分。It should be understood that in the above integral calculation formula, Ls represents the arc length of the space curve. represents the integral arc segment, represents the arc differential.
应当理解的是,以上给出的仅为一种根据所述曲线积分模型,确定所述对弧长的曲线积分对应的积分计算公式的具体实现方式,对本发明的技术方案并不构成任何限定,在具体应用中,本领域的技术人员可以根据需要进行设置,本发明对此不做限制。It should be understood that what is given above is only a specific implementation method of determining the integral calculation formula corresponding to the curve integral of the arc length according to the curve integral model, and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not impose any restrictions on this.
步骤S40,根据所述第一积分元素对应的取值范围和所述积分计算公式,计算所述对弧长的曲线积分对应的积分结果。Step S40: Calculate the integral result corresponding to the curve integral of the arc length according to the value range corresponding to the first integral element and the integral calculation formula.
为了便于理解,步骤S40中所说的根据所述第一积分元素对应的取值范围和所述积分计算公式,计算所述对弧长的曲线积分对应的积分结果的操作,本实施例以所述第一积分元素分别为积分弧段元素和坐标元素为例,进行说明:For ease of understanding, the operation of calculating the integral result corresponding to the curve integral of the arc length according to the value range corresponding to the first integral element and the integral calculation formula in step S40 is described by taking the first integral elements being the integral arc segment element and the coordinate element as an example:
首先,根据所述积分弧段元素对应的取值范围,确定积分上下限;First, the upper and lower limits of the integral are determined according to the value range corresponding to the integral arc segment element;
然后,根据所述坐标元素对应的取值范围,确定弧微分;Then, the arc differential is determined according to the value range corresponding to the coordinate element;
接着,将所述积分上下限和所述弧微分带入所述积分计算公式,得到目标积分计算公式;Next, the upper and lower limits of the integral and the arc differential are substituted into the integral calculation formula to obtain the target integral calculation formula;
最后,根据所述目标积分计算公式,计算所述对弧长的曲线积分对应的积分结果。Finally, according to the target integral calculation formula, the integral result corresponding to the curve integral of the arc length is calculated.
应当理解的是,以上给出的仅为一种计算所述对弧长的曲线积分对应的积分结果的具体实现方式,对本发明的技术方案并不构成任何限定,在具体应用中,本领域的技术人员可以根据需要进行设置,本发明对此不做限制。It should be understood that what is given above is only a specific implementation method for calculating the integral result corresponding to the curve integral of the arc length, and does not constitute any limitation to the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not impose any restrictions on this.
通过上述描述不难发现,本实施例中提供的对弧长的曲线积分计算方法,在计算对弧长的曲线积分的积分结果时,通过获取对弧长的曲线积分对应的积分数据,并从所述积分数据中提取与当前需要计算的对弧长的曲线积分相关的第一积分元素,及各第一积分元素对应的取值范围,进而根据提取的第一积分元素确定当前需要计算的对弧长的曲线积分对应的曲线积分模型,然后根据确定的曲线积分模型确定该对弧长的曲线积分对应的积分计算公式,最后根据各第一积分元素对应的取值范围和确定的积分计算公式,便可以自动计算出该对弧长的曲线积分的积分结果。由于确定该对弧长的曲线积分对应的曲线积分模型的过程是依据提取出的第一积分元素,而并非直接根据用户提供的积分数据,因而不限定用户提供的积分数据的格式必需符合现有给出的14种原生的曲线积分模型,使得用户能够根据自己的输入习惯提供积分数据,从而大大方便了用户的使用,有效解决了现有技术中对弧长的曲线积分计算方式过于单一,无法满足用户实际需求的技术问题。It is not difficult to find from the above description that the curve integral calculation method for arc length provided in this embodiment, when calculating the integral result of the curve integral for arc length, obtains the integral data corresponding to the curve integral for arc length, extracts the first integral element related to the curve integral for arc length currently to be calculated and the value range corresponding to each first integral element from the integral data, and then determines the curve integral model corresponding to the curve integral for arc length currently to be calculated according to the extracted first integral element, and then determines the integral calculation formula corresponding to the curve integral for the arc length according to the determined curve integral model, and finally automatically calculates the integral result of the curve integral for the arc length according to the value range corresponding to each first integral element and the determined integral calculation formula. Since the process of determining the curve integral model corresponding to the curve integral for the arc length is based on the extracted first integral element, rather than directly based on the integral data provided by the user, the format of the integral data provided by the user is not limited to conform to the 14 existing native curve integral models, so that the user can provide integral data according to his own input habits, thereby greatly facilitating the use of the user, and effectively solving the technical problem that the curve integral calculation method for arc length in the prior art is too single and cannot meet the actual needs of the user.
参考图3,图3为本发明一种对弧长的曲线积分计算方法第二实施例的流程示意图。Refer to FIG. 3 , which is a flow chart of a second embodiment of a curve integral calculation method for arc length according to the present invention.
基于上述第一实施例,本实施例对弧长的曲线积分计算方法在所述步骤S10之前,还包括:Based on the first embodiment, the curve integral calculation method for arc length in this embodiment further includes, before step S10:
步骤S00,判断所述曲线积分模型是否可用。Step S00, determining whether the curve integral model is available.
相应地,若通过判断确定所述曲线积分模型可用,则执行步骤S30;若通过判断确定所述曲线积分模型不可用,则执行步骤S50,向所述用户作出错误提示,以使所述用户根据所述错误提示修改所述积分数据。Accordingly, if it is determined that the curve integral model is available, step S30 is executed; if it is determined that the curve integral model is not available, step S50 is executed to give an error prompt to the user so that the user can modify the integral data according to the error prompt.
为了便于理解上述步骤S00中判断所述曲线积分模型是否可用的操作,本实施例给出一种具体的判断方式,大致如下:In order to facilitate understanding of the operation of determining whether the curve integral model is available in the above step S00, this embodiment provides a specific determination method, which is roughly as follows:
将所述曲线积分模型与预先构建的曲线积分模型库中的预设曲线积分模型作比较,若所述曲线积分模型库中存在与所述曲线积分模型相同的预设曲线积分模型,则确定所述曲线积分模型可用;Comparing the curve integral model with a preset curve integral model in a pre-built curve integral model library, and determining that the curve integral model is available if there is a preset curve integral model in the curve integral model library that is identical to the curve integral model;
否则,确定所述曲线积分模型不可用。Otherwise, it is determined that the curve integration model is not applicable.
应当理解的是,以上给出的仅为一种判断所述曲线积分模型是否可用的具体实现方式,对本发明的技术方案并不构成任何限定,在具体应用中,本领域的技术人员可以根据需要进行设置,本发明对此不做限制。It should be understood that the above is only a specific implementation method for determining whether the curve integral model is applicable, and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not impose any limitation on this.
此外,值得一提的是,为了保证上述操作的顺利进行,在将所述曲线积分模型与预先构建的曲线积分模型库中的预设曲线积分模型作比较之前,需要先构建曲线积分模型库,即需要先生成所述预设曲线积分模型,并将所述预设曲线积分模型添加到所述曲线积分模型库中。In addition, it is worth mentioning that in order to ensure the smooth progress of the above operations, before comparing the curve integral model with the preset curve integral model in the pre-constructed curve integral model library, it is necessary to first construct the curve integral model library, that is, it is necessary to first generate the preset curve integral model and add the preset curve integral model to the curve integral model library.
为了便于理解,以下给出一种生成所述预设曲线积分模型的具体方式,大致如下:For ease of understanding, a specific method for generating the preset curve integral model is given below, which is roughly as follows:
首先,获取预先确定的一级曲线积分模型,并提取所述一级曲线积分模型中包括的第二积分元素;First, a predetermined primary curve integral model is obtained, and a second integral element included in the primary curve integral model is extracted;
然后,调整所述第二积分元素在所述一级曲线积分模型中所处的位置,得到与所述一级曲线积分模型等价的二级曲线积分模型,所述二级曲线积分模型包括所述一级曲线积分模型;Then, adjusting the position of the second integral element in the primary curve integral model to obtain a secondary curve integral model equivalent to the primary curve integral model, wherein the secondary curve integral model includes the primary curve integral model;
最后,将所述二级曲线积分模型作为所述预设曲线积分模型。Finally, the secondary curve integral model is used as the preset curve integral model.
关于上述所说的调整所述第二积分元素在所述一级曲线积分模型中所处的位置,得到与所述一级曲线积分模型等价的二级曲线积分模型的操作,具体可以是:The operation of adjusting the position of the second integral element in the primary curve integral model to obtain a secondary curve integral model equivalent to the primary curve integral model may specifically be:
首先,统计所述一级曲线积分模型中包括的第二积分元素的个数N,N为大于等于2的整数;First, the number N of second integral elements included in the primary curve integral model is counted, where N is an integer greater than or equal to 2;
然后,根据个数N,确定与所述一级曲线积分模型等价的二级曲线积分模型的个数M,M为大于等于N的整数;Then, according to the number N, the number M of secondary curve integral models equivalent to the primary curve integral model is determined, where M is an integer greater than or equal to N;
接着,根据个数M和所述第二积分元素,确定所述一级曲线积分模型的调整规则;Next, determining an adjustment rule of the primary curve integral model according to the number M and the second integral element;
最后,根据所述调整规则,调整所述第二积分元素在所述一级曲线积分模型中所处的位置,得到与所述一级曲线积分模型等价的M个二级曲线积分模型。Finally, according to the adjustment rule, the position of the second integral element in the primary curve integral model is adjusted to obtain M secondary curve integral models equivalent to the primary curve integral model.
应当理解的是,以上给出的仅为一种生成所述预设曲线积分模型的具体实现方式,对本发明的技术方案并不构成任何限定,在具体应用中,本领域的技术人员可以根据需要进行设置,本发明对此不做限制。It should be understood that the above is only a specific implementation method for generating the preset curve integral model, which does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not impose any limitations on this.
此外,上述所说的“第二积分元素”中的“第二”仅仅是用于表示该积分元素是从所述一级曲线积分模型中提取的,并不对一级曲线积分模型本身造成限定,且该第二积分元素可以为所述一级曲线积分模型中的任意一个积分元素。In addition, the "second" in the above-mentioned "second integral element" is only used to indicate that the integral element is extracted from the first-level curve integral model, and does not limit the first-level curve integral model itself, and the second integral element can be any integral element in the first-level curve integral model.
此外,值得一提的是,由于14种一级曲线积分模型分别是对应四种不同的对弧长的曲线积分的,而生成的曲线积分模型为每一种一级曲线积分模型对应的等价模型。In addition, it is worth mentioning that since the 14 first-order curve integral models correspond to four different curve integrals of arc length, the generated curve integral model is an equivalent model corresponding to each first-order curve integral model.
故,为了便于理解,以下针对求平面曲线的弧长、求对弧长的平面曲线积分、求空间曲线的弧长和求对弧长的空间曲线积分四个角度,依次给出针对这四个对弧长的曲线积分对应的曲线积分模型。Therefore, for ease of understanding, the following curve integral models corresponding to the four curve integrals of arc length are given in turn for the four angles of finding the arc length of a plane curve, finding the plane curve integral with respect to the arc length, finding the arc length of a space curve, and finding the space curve integral with respect to the arc length.
具体的说,由于平面曲线的弧长对应的一级曲线积分模型有3个,分别为:(1)y=y(x),a≤x≤b;(2)x=x(y),c≤y≤d;(3)x=x(t),y=y(t),α≤t≤β。Specifically, there are three first-order curve integral models corresponding to the arc length of the plane curve, namely: (1) y = y(x), a≤x≤b; (2) x = x(y), c≤y≤d; (3) x = x(t), y = y(t), α≤t≤β.
相应地,针对一级曲线积分模型“y=y(x),a≤x≤b”,确定的等价二级曲线积分模型的个数M=2!=2。经过对第二积分元素位置的调整之后,得到的2个预设曲线积分模型分别为:Correspondingly, for the first-order curve integral model "y=y(x), a≤x≤b", the number of equivalent second-order curve integral models determined is M=2! =2. After adjusting the position of the second integral element, the two preset curve integral models obtained are:
①y=y(x),a≤x≤b;②a≤x≤b,y=y(x)。①y=y(x), a≤x≤b; ②a≤x≤b, y=y(x).
相应地,针对一级曲线积分模型“=x(y),c≤y≤d”,确定的等价二级曲线积分模型的个数M=2!=2。经过对第二积分元素位置的调整之后,得到的2个预设曲线积分模型分别为:Accordingly, for the first-order curve integral model "=x(y), c≤y≤d", the number of equivalent second-order curve integral models determined is M=2! =2. After adjusting the position of the second integral element, the two preset curve integral models obtained are:
①x=x(y),c≤y≤d;②c≤y≤d,x=x(y)。①x=x(y), c≤y≤d; ②c≤y≤d, x=x(y).
相应地,针对一级曲线积分模型“x=x(t),y=y(t),α≤t≤β”,确定的等价二级曲线积分模型的个数M=3!=6。经过对第二积分元素位置的调整之后,得到的6个预设曲线积分模型分别为:Correspondingly, for the first-order curve integral model "x = x(t), y = y(t), α≤t≤β", the number of equivalent second-order curve integral models determined is M = 3! = 6. After adjusting the position of the second integral element, the 6 preset curve integral models obtained are:
①x=x(t),y=y(t),α≤t≤β;②y=y(t),x=x(t),α≤t≤β;①x=x(t), y=y(t), α≤t≤β; ②y=y(t), x=x(t), α≤t≤β;
③x=x(t),α≤t≤β,y=y(t);④α≤t≤β,x=x(t),y=y(t);③x=x(t),α≤t≤β,y=y(t); ④α≤t≤β,x=x(t),y=y(t);
⑤y=y(t),α≤t≤β,x=x(t);⑥α≤t≤β,y=y(t),x=x(t)。⑤y=y(t), α≤t≤β, x=x(t); ⑥α≤t≤β, y=y(t), x=x(t).
此外,由于对弧长的平面曲线积分对应的一级曲线积分模型同样有3个,分别为:(1)f=f(x,y),y=y(x),a≤x≤b;(2)f=f(x,y),x=x(y),c≤y≤d;(3)f=f(x,y),x=x(t),y=y(t),α≤t≤β。In addition, there are also three first-order curve integral models corresponding to the plane curve integral of arc length, namely: (1) f = f(x, y), y = y(x), a≤x≤b; (2) f = f(x, y), x = x(y), c≤y≤d; (3) f = f(x, y), x = x(t), y = y(t), α≤t≤β.
相应地,针对一级曲线积分模型“f=f(x,y),y=y(x),a≤x≤b”,确定的等价二级曲线积分模型的个数M=3!=6。经过对第二积分元素位置的调整之后,得到的6个预设曲线积分模型分别为:Correspondingly, for the first-order curve integral model "f = f (x, y), y = y (x), a ≤ x ≤ b", the number of equivalent second-order curve integral models determined is M = 3! = 6. After adjusting the position of the second integral element, the 6 preset curve integral models obtained are:
①f=f(x,y),y=y(x),a≤x≤b;②y=y(x),f=f(x,y),a≤x≤b;①f=f(x,y),y=y(x),a≤x≤b; ②y=y(x),f=f(x,y),a≤x≤b;
③f=f(x,y),a≤x≤b,y=y(x);④a≤x≤b,f=f(x,y),y=y(x);③f=f(x,y),a≤x≤b,y=y(x); ④a≤x≤b,f=f(x,y),y=y(x);
⑤y=y(x),a≤x≤b,f=f(x,y);⑥a≤x≤b,y=y(x),f=f(x,y)。⑤y=y(x), a≤x≤b, f=f(x,y); ⑥a≤x≤b, y=y(x), f=f(x,y).
相应地,针对一级曲线积分模型“f=f(x,y),x=x(y),c≤y≤d”,确定的等价二级曲线积分模型的个数M=3!=6。经过对第二积分元素位置的调整之后,得到的6个预设曲线积分模型分别为:Correspondingly, for the first-order curve integral model "f = f (x, y), x = x (y), c ≤ y ≤ d", the number of equivalent second-order curve integral models determined is M = 3! = 6. After adjusting the position of the second integral element, the 6 preset curve integral models obtained are:
①f=f(x,y),x=x(y),c≤y≤d;②x=x(y),f=f(x,y),c≤y≤d;①f=f(x,y),x=x(y),c≤y≤d; ②x=x(y),f=f(x,y),c≤y≤d;
③f=f(x,y),c≤y≤d,x=x(y);④c≤y≤d,f=f(x,y),x=x(y);③f=f(x,y),c≤y≤d,x=x(y); ④c≤y≤d,f=f(x,y),x=x(y);
⑤x=x(y),c≤y≤d,f=f(x,y);⑥c≤y≤d,x=x(y),f=f(x,y)。⑤x=x(y), c≤y≤d, f=f(x,y); ⑥c≤y≤d, x=x(y), f=f(x,y).
相应地,针对一级曲线积分模型“f=f(x,y),x=x(t),y=y(t),α≤t≤β”,确定的等价二级曲线积分模型的个数M=4!=24。经过对第二积分元素位置的调整之后,得到的24个预设曲线积分模型,详见表1。Accordingly, for the first-order curve integral model "f = f(x, y), x = x(t), y = y(t), α≤t≤β", the number of equivalent second-order curve integral models determined is M = 4! = 24. After adjusting the position of the second integral element, the 24 preset curve integral models are obtained, as shown in Table 1.
表1一级曲线积分模型“f=f(x,y),x=x(t),y=y(t),α≤t≤β”对应的预设曲线积分模型Table 1 Preset curve integral model corresponding to the first-order curve integral model "f = f (x, y), x = x (t), y = y (t), α ≤ t ≤ β"
此外,由于空间曲线弧长对应的一级曲线积分模型有4个,分别为:(1)y=y(x),z=z(x),a≤x≤b;(2)x=x(y),z=z(y),c≤y≤d;(3)x=x(z),y=y(z),p≤z≤q;(4)x=x(t),y=y(t),z=z(t),α≤t≤β。In addition, there are four first-order curve integral models corresponding to the arc length of the space curve, namely: (1) y = y(x), z = z(x), a≤x≤b; (2) x = x(y), z = z(y), c≤y≤d; (3) x = x(z), y = y(z), p≤z≤q; (4) x = x(t), y = y(t), z = z(t), α≤t≤β.
相应地,针对一级曲线积分模型“y=y(x),z=z(x),a≤x≤b”,确定的等价二级曲线积分模型的个数M=3!=6。经过对第二积分元素位置的调整之后,得到的6个预设曲线积分模型分别为:Correspondingly, for the first-order curve integral model "y = y (x), z = z (x), a ≤ x ≤ b", the number of equivalent second-order curve integral models determined is M = 3! = 6. After adjusting the position of the second integral element, the 6 preset curve integral models obtained are:
①z=z(x),y=y(x),a≤x≤b;②y=y(x),z=z(x),a≤x≤b;①z=z(x), y=y(x), a≤x≤b; ②y=y(x), z=z(x), a≤x≤b;
③z=z(x),a≤x≤b,y=y(x);④a≤x≤b,z=z(x),y=y(x);③z=z(x), a≤x≤b, y=y(x); ④a≤x≤b, z=z(x), y=y(x);
⑤y=y(x),a≤x≤b,z=z(x);⑥a≤x≤b,y=y(x),z=z(x)。⑤y=y(x), a≤x≤b, z=z(x); ⑥a≤x≤b, y=y(x), z=z(x).
相应地,针对一级曲线积分模型“x=x(y),z=z(y),c≤y≤d”,确定的等价二级曲线积分模型的个数M=3!=6。经过对第二积分元素位置的调整之后,得到的6个预设曲线积分模型分别为:Correspondingly, for the first-order curve integral model "x = x (y), z = z (y), c ≤ y ≤ d", the number of equivalent second-order curve integral models determined is M = 3! = 6. After adjusting the position of the second integral element, the 6 preset curve integral models obtained are:
①x=x(y),z=z(y),c≤y≤d;②z=z(y),x=x(y),c≤y≤d;①x=x(y), z=z(y), c≤y≤d; ②z=z(y), x=x(y), c≤y≤d;
③x=x(y),c≤y≤d,z=z(y);④c≤y≤d,x=x(y),z=z(y);③x=x(y), c≤y≤d, z=z(y); ④c≤y≤d, x=x(y), z=z(y);
⑤z=z(y),c≤y≤d,x=x(y);⑥c≤y≤d,z=z(y),x=x(y)。⑤z=z(y), c≤y≤d, x=x(y); ⑥c≤y≤d, z=z(y), x=x(y).
相应地,针对一级曲线积分模型“x=x(z),y=y(z),p≤z≤q”,确定的等价二级曲线积分模型的个数M=3!=6。经过对第二积分元素位置的调整之后,得到的6个预设曲线积分模型,分别为:Accordingly, for the first-order curve integral model "x = x(z), y = y(z), p≤z≤q", the number of equivalent second-order curve integral models determined is M = 3! = 6. After adjusting the position of the second integral element, the 6 preset curve integral models obtained are:
①x=x(z),y=y(z),p≤z≤q;②y=y(z),x=x(z),p≤z≤q;①x=x(z), y=y(z), p≤z≤q; ②y=y(z), x=x(z), p≤z≤q;
③x=x(z),p≤z≤q,y=y(z);④p≤z≤q,x=x(z),y=y(z);③x=x(z), p≤z≤q, y=y(z); ④p≤z≤q, x=x(z), y=y(z);
⑤y=y(z),p≤z≤q,x=x(z);⑥p≤z≤q,y=y(z),x=x(z)。⑤y=y(z), p≤z≤q, x=x(z); ⑥p≤z≤q, y=y(z), x=x(z).
相应地,针对一级曲线积分模型“x=x(t),y=y(t),z=z(t),α≤t≤β”,确定的等价二级曲线积分模型的个数M=4!=24。经过对第二积分元素位置的调整之后,得到的24个预设曲线积分模型,详见表2。Accordingly, for the first-order curve integral model "x = x(t), y = y(t), z = z(t), α≤t≤β", the number of equivalent second-order curve integral models determined is M = 4! = 24. After adjusting the position of the second integral element, the 24 preset curve integral models are obtained, as shown in Table 2.
表2一级曲线积分模型“x=x(t),y=y(t),z=z(t),α≤t≤β”对应的预设曲线积分模型Table 2 Preset curve integral model corresponding to the first-level curve integral model “x=x(t), y=y(t), z=z(t), α≤t≤β”
此外,由于对弧长的空间曲线积分对应的一级曲线积分模型同样有4个,分别为:(1)f=f(x,y,z),y=y(x),z=z(x),a≤x≤b;(2)f=f(x,y,z),x=x(y),z=z(y),c≤y≤d;(3)f=f(x,y,z),x=x(z),y=y(z),p≤z≤q;(4)f=f(x,y,z),x=x(t),y=y(t),z=z(t),α≤t≤β。In addition, there are also four first-order curve integral models corresponding to the spatial curve integral of arc length, namely: (1) f = f(x, y, z), y = y(x), z = z(x), a≤x≤b; (2) f = f(x, y, z), x = x(y), z = z(y), c≤y≤d; (3) f = f(x, y, z), x = x(z), y = y(z), p≤z≤q; (4) f = f(x, y, z), x = x(t), y = y(t), z = z(t), α≤t≤β.
相应地,针对一级曲线积分模型“f=f(x,y,z),y=y(x),z=z(x),a≤x≤b”,确定的等价二级曲线积分模型的个数M=4!=24。经过对第二积分元素位置的调整之后,得到的24个预设曲线积分模型,详见表3。Accordingly, for the first-order curve integral model "f = f (x, y, z), y = y (x), z = z (x), a ≤ x ≤ b", the number of equivalent second-order curve integral models determined is M = 4! = 24. After adjusting the position of the second integral element, the 24 preset curve integral models are obtained, as shown in Table 3.
表3一级曲线积分模型“f=f(x,y,z),y=y(x),z=z(x),a≤x≤b”对应的预设曲线积分模型Table 3 Preset curve integral model corresponding to the first-level curve integral model "f=f(x,y,z), y=y(x), z=z(x), a≤x≤b"
相应地,针对一级曲线积分模型“f=f(x,y,z),x=x(y),z=z(y),c≤y≤d”,确定的等价二级曲线积分模型的个数M=4!=24。经过对第二积分元素位置的调整之后,得到的24个预设曲线积分模型,详见表4。Accordingly, for the first-order curve integral model "f = f (x, y, z), x = x (y), z = z (y), c ≤ y ≤ d", the number of equivalent second-order curve integral models determined is M = 4! = 24. After adjusting the position of the second integral element, the 24 preset curve integral models are obtained, as shown in Table 4.
表4一级曲线积分模型“f=f(x,y,z),x=x(y),z=z(y),c≤y≤d”对应的预设曲线积分模型Table 4 Preset curve integral model corresponding to the first-level curve integral model “f=f(x,y,z), x=x(y), z=z(y), c≤y≤d”
相应地,针对一级曲线积分模型“f=f(x,y,z),x=x(z),y=y(z),p≤z≤q”,确定的等价二级曲线积分模型的个数M=4!=24。经过对第二积分元素位置的调整之后,得到的24个预设曲线积分模型,详见表5。Accordingly, for the first-order curve integral model "f = f (x, y, z), x = x (z), y = y (z), p ≤ z ≤ q", the number of equivalent second-order curve integral models determined is M = 4! = 24. After adjusting the position of the second integral element, the 24 preset curve integral models are obtained, as shown in Table 5.
表5一级曲线积分模型“f=f(x,y,z),x=x(z),y=y(z),p≤z≤q”对应的预设曲线积分模型Table 5 Preset curve integral model corresponding to the first-level curve integral model “f=f(x,y,z), x=x(z), y=y(z), p≤z≤q”
相应地,针对一级曲线积分模型“f=f(x,y,z),x=x(t),y=y(t),z=z(t),α≤t≤β”,确定的等价二级曲线积分模型的个数M=5!=120。经过对第二积分元素位置的调整之后,得到的120个预设曲线积分模型,详见表6。Accordingly, for the first-order curve integral model "f = f (x, y, z), x = x (t), y = y (t), z = z (t), α ≤ t ≤ β", the number of equivalent second-order curve integral models determined is M = 5! = 120. After adjusting the position of the second integral element, the 120 preset curve integral models are obtained, as shown in Table 6.
表6一级曲线积分模型“f=f(x,y,z),x=x(t),y=y(t),z=z(t),α≤t≤β”对应的预设曲线积分模型Table 6 Preset curve integral model corresponding to the first-level curve integral model “f=f(x,y,z), x=x(t), y=y(t), z=z(t), α≤t≤β”
应当理解的是,表1至表6中给出的仅为280种具体的预设曲线积分模型,对本发明的技术方案并不构成任何限定,在实际应用中,本领域的技术人员可以根据实际需要修改表1至表6中的预设曲线积分模型,此处不做限制。It should be understood that only 280 specific preset curve integral models are given in Tables 1 to 6, which do not constitute any limitation on the technical solution of the present invention. In practical applications, technicians in this field can modify the preset curve integral models in Tables 1 to 6 according to actual needs, and no limitation is made here.
通过上述描述不难发现,本实施例中提供的对弧长的曲线积分计算方法,在执行根据所述曲线积分模型,确定所述对弧长的曲线积分对应的积分计算公式的步骤之前,通过将根据用户输入的积分数据确定的曲线积分模型与预先构建的存储有280种预设曲线积分模型的曲线积分模型库中的任意预设曲线积分模型作比较,在确定曲线积分模型库中存在与当前确定的曲线积分模型相同的预设曲线积分模型时,才执行根据所述曲线积分模型,确定所述对弧长的曲线积分对应的积分计算公式的操作,否则直接向用户作出错误提示,以使用户根据错误提示对提供的积分数据进行修改。通过这种方式,不仅实现了对弧长的曲线积分的积分结果的计算,同时也使对弧长的曲线积分的计算方案具备完备性和容错性,大大提升了用户体验。It is not difficult to find from the above description that the curve integral calculation method for arc length provided in this embodiment, before executing the step of determining the integral calculation formula corresponding to the curve integral of the arc length according to the curve integral model, compares the curve integral model determined according to the integral data input by the user with any preset curve integral model in the pre-built curve integral model library storing 280 preset curve integral models. When it is determined that there is a preset curve integral model in the curve integral model library that is the same as the currently determined curve integral model, the operation of determining the integral calculation formula corresponding to the curve integral of the arc length according to the curve integral model is executed. Otherwise, an error prompt is directly given to the user, so that the user can modify the provided integral data according to the error prompt. In this way, not only the calculation of the integral result of the curve integral of the arc length is realized, but also the calculation scheme of the curve integral of the arc length is complete and fault-tolerant, which greatly improves the user experience.
此外,本发明实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有对弧长的曲线积分计算程序,所述对弧长的曲线积分计算程序被处理器执行时实现如上文所述的对弧长的曲线积分计算方法的步骤。In addition, an embodiment of the present invention further proposes a computer-readable storage medium, on which a curve integral calculation program for arc length is stored. When the curve integral calculation program for arc length is executed by a processor, the steps of the curve integral calculation method for arc length as described above are implemented.
参照图4,图4为本发明对弧长的曲线积分计算装置第一实施例的结构框图。4, which is a structural block diagram of a first embodiment of a curve integral calculation device for arc length according to the present invention.
如图4所示,本发明实施例提出的对弧长的曲线积分计算装置包括:提取模块4001、第一确定模块4002、第二确定模块4003和计算模块4004。As shown in FIG. 4 , the curve integral calculation device for arc length proposed in the embodiment of the present invention includes: an
其中,所述提取模块4001,用于获取待计算的对弧长的曲线积分对应的积分数据,并从所述积分数据中提取至少两个第一积分元素,以及所述第一积分元素对应的取值范围;所述第一确定模块4002,用于根据所述第一积分元素,确定所述对弧长的曲线积分对应的曲线积分模型;所述第二确定模块4003,用于根据所述曲线积分模型,确定所述对弧长的曲线积分对应的积分计算公式;所述计算模块4004,用于根据所述第一积分元素对应的取值范围和所述积分计算公式,计算所述对弧长的曲线积分对应的积分结果。Among them, the
通过上述描述不难发现,本实施例中提供的对弧长的曲线积分计算装置,在计算对弧长的曲线积分的积分结果时,通过获取对弧长的曲线积分对应的积分数据,并从所述积分数据中提取与当前需要计算的对弧长的曲线积分相关的第一积分元素,及各第一积分元素对应的取值范围,进而根据提取的第一积分元素确定当前需要计算的对弧长的曲线积分对应的曲线积分模型,然后根据确定的曲线积分模型确定该对弧长的曲线积分对应的积分计算公式,最后根据各第一积分元素对应的取值范围和确定的积分计算公式,便可以自动计算出该对弧长的曲线积分的积分结果。由于确定该对弧长的曲线积分对应的曲线积分模型的过程是依据提取出的第一积分元素,而并非直接根据用户提供的积分数据,因而不限定用户提供的积分数据的格式必需符合现有给出的14种原生的曲线积分模型,使得用户能够根据自己的输入习惯提供积分数据,从而大大方便了用户的使用,有效解决了现有技术中对弧长的曲线积分计算方式过于单一,无法满足用户实际需求的技术问题。It is not difficult to find from the above description that the curve integral calculation device for arc length provided in this embodiment, when calculating the integral result of the curve integral for arc length, obtains the integral data corresponding to the curve integral for arc length, extracts the first integral element related to the curve integral for arc length currently to be calculated and the value range corresponding to each first integral element from the integral data, and then determines the curve integral model corresponding to the curve integral for arc length currently to be calculated according to the extracted first integral element, and then determines the integral calculation formula corresponding to the curve integral for the arc length according to the determined curve integral model, and finally automatically calculates the integral result of the curve integral for the arc length according to the value range corresponding to each first integral element and the determined integral calculation formula. Since the process of determining the curve integral model corresponding to the curve integral for the arc length is based on the extracted first integral element, rather than directly based on the integral data provided by the user, the format of the integral data provided by the user is not limited to conform to the 14 existing native curve integral models, so that the user can provide integral data according to his own input habits, thereby greatly facilitating the use of the user, and effectively solving the technical problem that the curve integral calculation method for arc length in the prior art is too single and cannot meet the actual needs of the user.
需要说明的是,以上所描述的工作流程仅仅是示意性的,并不对本发明的保护范围构成限定,在实际应用中,本领域的技术人员可以根据实际的需要选择其中的部分或者全部来实现本实施例方案的目的,此处不做限制。It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.
另外,未在本实施例中详尽描述的技术细节,可参见本发明任意实施例所提供的对弧长的曲线积分计算方法,此处不再赘述。In addition, for technical details not fully described in this embodiment, reference may be made to the curve integral calculation method for arc length provided in any embodiment of the present invention, and will not be repeated here.
此外,需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如只读存储器(Read Only Memory,ROM)/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM)/RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910287451.0A CN110020401B (en) | 2019-04-10 | 2019-04-10 | Method, device and equipment for calculating curve integral of arc length and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910287451.0A CN110020401B (en) | 2019-04-10 | 2019-04-10 | Method, device and equipment for calculating curve integral of arc length and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110020401A CN110020401A (en) | 2019-07-16 |
CN110020401B true CN110020401B (en) | 2023-03-24 |
Family
ID=67191105
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910287451.0A Active CN110020401B (en) | 2019-04-10 | 2019-04-10 | Method, device and equipment for calculating curve integral of arc length and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110020401B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2083867A1 (en) * | 1991-11-26 | 1993-05-27 | Takefumi Namiki | Integral value calculating device and function gradient calculating device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8520003B2 (en) * | 2006-05-22 | 2013-08-27 | Raphael L Levien | Method and apparatus for interactive curve generation |
-
2019
- 2019-04-10 CN CN201910287451.0A patent/CN110020401B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2083867A1 (en) * | 1991-11-26 | 1993-05-27 | Takefumi Namiki | Integral value calculating device and function gradient calculating device |
Non-Patent Citations (2)
Title |
---|
基于曲线积分的任意多边形填充算法;阳波等;《计算机工程与应用》;20021215(第24期);全文 * |
微积分理论重要极限"非汉字符号"sinx/x的再证明;潘晓苏;《南京邮电学院学报》;20041230(第04期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110020401A (en) | 2019-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3588279B1 (en) | Automated extraction of rules embedded in software application code using machine learning | |
WO2019061664A1 (en) | Electronic device, user's internet surfing data-based product recommendation method, and storage medium | |
CN106484699B (en) | Method and device for generating database query field | |
CN111652468A (en) | Business process generation method, device, storage medium and computer equipment | |
CN110543450A (en) | Electronic document generation method, device, computer equipment and storage medium | |
CN109241075B (en) | Index basic data processing method and equipment and computer readable storage medium | |
US8732655B2 (en) | Systems and methods for metamodel transformation | |
CN117874224A (en) | Data processing method and device, storage medium and electronic equipment | |
CN112015768A (en) | Information matching method based on Rete algorithm and related products thereof | |
US12190882B2 (en) | Method and apparatus for generating general voice commands and augmented reality display | |
CN110020401B (en) | Method, device and equipment for calculating curve integral of arc length and storage medium | |
CN103678349A (en) | Method and device for filtering useless data | |
CN115310407B (en) | Excel model analysis method and system | |
CN111831286B (en) | A user complaint handling method and device | |
CN115544214B (en) | Event processing method, device and computer readable storage medium | |
CN109977343B (en) | Ellipsoid equation drawing method, device, equipment and storage medium | |
CN107665443B (en) | Obtain the method and device of target user | |
CN110163975B (en) | Method, device, equipment and storage medium for drawing a straight line in space | |
CN110110280A (en) | To curve integral, device, equipment and the storage medium of coordinate | |
CN114547059A (en) | Platform data updating method and device and computer equipment | |
CN114283437A (en) | Legend identification method, device, equipment and storage medium | |
CN110047137B (en) | Paraboloid drawing method, device, equipment and storage medium | |
CN109947339B (en) | Drawing method, device and equipment of parabolic cylinder and storage medium | |
CN110070618B (en) | Parabolic cylinder identification method and device, terminal equipment and readable storage medium | |
CN115544626B (en) | Submodel extraction method, device, computer equipment and media |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |