CN116108326A - Mathematic tool software control method, device, equipment and storage medium - Google Patents

Mathematic tool software control method, device, equipment and storage medium Download PDF

Info

Publication number
CN116108326A
CN116108326A CN202310382065.6A CN202310382065A CN116108326A CN 116108326 A CN116108326 A CN 116108326A CN 202310382065 A CN202310382065 A CN 202310382065A CN 116108326 A CN116108326 A CN 116108326A
Authority
CN
China
Prior art keywords
formula
calculation formula
calculation
mathematical
input
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.)
Withdrawn
Application number
CN202310382065.6A
Other languages
Chinese (zh)
Inventor
张芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Engineering Vocational and Technical University
Original Assignee
Shandong Engineering Vocational and Technical University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shandong Engineering Vocational and Technical University filed Critical Shandong Engineering Vocational and Technical University
Priority to CN202310382065.6A priority Critical patent/CN116108326A/en
Publication of CN116108326A publication Critical patent/CN116108326A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/15Correlation function computation including computation of convolution operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Algebra (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Operations Research (AREA)
  • Probability & Statistics with Applications (AREA)
  • Stored Programmes (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a mathematical tool software control method, a device, equipment and a storage medium, and relates to the technical field of mathematical tool control. The mathematical tool software control method comprises the following steps: s1, acquiring calculation type input by a user and preprocessing; s2, matching formulas in a mathematical library according to the calculation formula: according to the input calculation formula, automatically matching the formula in the mathematical library, if the input calculation formula is matched with the formula contained in the mathematical library, directly entering S3 for calculation processing, if the input calculation formula is not matched with the formula in the mathematical library, sending out an error prompt, and returning to S1; s3, processing a calculation formula according to a formula; s4, outputting a processing result; s5, resetting and judging. The invention reduces the difficulty and complexity of using mathematical tool software by providing a plurality of input modes for users and automatically matching the calculation formula and the formula in the mathematical library, and solves the problem of high difficulty of controlling the mathematical tool software by users in the prior art.

Description

Mathematic tool software control method, device, equipment and storage medium
Technical Field
The present invention relates to the field of mathematical tool control technologies, and in particular, to a mathematical tool software control method, device, apparatus, and storage medium.
Background
Under the background of the continuous expansion of computer technology and mathematical application, mathematical tool software is widely applied and developed. With the continuous progress of computer technology, mathematical tool software is continuously promoted in the aspects of algorithm optimization, visualization, cross-platform support, cloud computing, big data and the like, so that more efficient, intelligent, extensible and user-friendly mathematical computing and processing services are realized. Meanwhile, the application range of the mathematical tool software is continuously expanded, and the mathematical tool software is not only used for mathematical research and education, but also widely applied to the fields of scientific research, financial analysis, data mining and the like.
Currently, mathematical tool software implementation techniques include artificial intelligence, visualization, cross-platform support, cloud computing, and big data techniques, among others. The application of artificial intelligence techniques may improve the accuracy and efficiency of algorithm selection and parameter adjustment, for example, in machine learning and deep learning, automated mathematical calculations may be implemented by training models. The application of visualization techniques may help users better understand and present the results of the computation, for example, in scientific drawings and data visualization, the results of the computation may be presented to the user in an intuitive manner in the form of charts, images, etc. The realization of the cross-platform support can enable the application of the digital tool software on different operating systems and devices to be more convenient and flexible, for example, the cross-platform application is realized through the modes of Web application, mobile application, cloud service and the like. Applications of cloud computing and big data techniques may provide more powerful computing and storage capabilities, such as using distributed computing and storage techniques to handle large-scale mathematical computing and data analysis tasks.
For example, publication No.: the CN112764610B discloses a method, a device, a system and a medium for controlling interaction of mathematical elements and functions, which comprises the following steps: when the user uses the mathematical education software, the first input operation in the preset calculation area and the second input operation in the preset function area are detected firstly, namely, the user performs input operations such as clicking, dragging and the like in the preset calculation area and the preset function area respectively, so that the selection, movement control and the like of mathematical elements and graphic operation functions are realized, the mathematical elements selected by the current user are displayed at corresponding positions according to the detected first input operation in the preset calculation area, and the display operation result can be output by performing corresponding function operation on the mathematical elements according to the graphic operation function selected in the second input operation. The selection sequence of the mathematical elements and the graphic operation functions is not limited, and a user can input a first input operation to select the mathematical elements and then select the graphic operation functions to calculate, or input a second input operation to select the graphic operation functions and then select the mathematical elements to be calculated, so that the mathematical operation is converted into the graphic operation functions by converting the image of the mathematical calculation process, the interrelationship between each number and each operation function in the mathematical calculation process is represented in an imaging manner, and the abstract mathematical operation is converted into the graphic expression of the image.
For example, publication No.: CN112764645B discloses a mathematical element interaction control method, device, system and medium, comprising: when the mathematical education software is used by a user, firstly detecting input operation in a preset calculation area, displaying corresponding mathematical elements in the preset calculation area according to the detected input operation, namely, the user can select the corresponding mathematical elements to be displayed in the preset calculation area through input operations such as clicking, dragging and moving, and the position of the mathematical elements is moved, when the position of the mathematical elements is changed, if two or more mathematical elements are detected to be overlapped, a graphic folder with the corresponding number of mathematical elements is generated according to a preset interaction rule, specifically, any mathematical element in the preset calculation area can be defined as a unit, each unit is independent, and when the two or more units are combined together through operation, a graphic folder appears in the operation area, the corresponding number of mathematical elements are displayed according to the preset interaction rule, and in the process, the graphic folder can be converted into abstract graphic expressions through the graphic folder with the number of the mathematical elements and the graphic relations between the figures in the graphic folder.
However, in the process of implementing the technical scheme of the invention in the embodiment of the application, the inventor of the application finds that at least the following technical problems exist in the above technology:
in the prior art, mathematical software needs a user to manually input a formula and corresponding parameters, which requires the user to have certain mathematical knowledge and calculation capability, and the problem of high difficulty in controlling the mathematical tool software by the user exists.
Disclosure of Invention
According to the mathematical tool software control method, device, equipment and storage medium, the problem that in the prior art, the mathematical tool software is difficult to control by a user is solved, the control difficulty of the mathematical tool software for the user is reduced, and a more complex calculation formula can be supported for user input.
The embodiment of the application provides a mathematical tool software control method, which comprises the following steps: s1, acquiring calculation type input by a user and preprocessing: reading a calculation formula input by a user, and preprocessing the calculation formulas of various input forms; s2, matching formulas in a mathematical library according to the calculation formula: according to the input calculation formula, automatically matching the formula in the mathematical library, if the input calculation formula is matched with the formula contained in the mathematical library, directly entering S3 for calculation, if the input calculation formula is not matched with the formula in the mathematical library, sending out an error prompt, and returning to S1; s3, processing a calculation formula according to a formula: according to the matched formula, corresponding calculation processing operation is carried out; s4, outputting a processing result: outputting the result after calculation processing to a user; s5, resetting judgment: judging whether the calculation process needs to be returned to S1 to continue, and if so, returning to S1; otherwise, the operation is ended.
Further, the manner in which the formula is input in S1 includes pasting the formula and selecting the formula template to be filled with the formula, wherein the pasting the formula is copying from other pages and pasting the formula into the input box, the selecting the formula template to be filled with the formula is providing the formula template to the user through the math library, and then the selected formula is rewritten by the user.
Furthermore, after the paste calculation formula is obtained, the text format needs to be preprocessed through a conversion algorithm, the text format of the formula is unified, and the specific algorithm formula for converting the unified format is as follows:
Figure SMS_1
in the above-mentioned formula(s),
Figure SMS_2
is a conversion function, the input content is
Figure SMS_3
Wherein g represents the formula of the original text format of the formula,/->
Figure SMS_4
Representing the type of the i-th computational original text format,/->
Figure SMS_5
Text content representing the i-th computational original text format,/->
Figure SMS_6
Representing the target text format.
Further, the selection formula template is filled into a calculation formula, and characters in the original formula template are replaced through a rewriting algorithm, so that a new calculation formula V is obtained as an input calculation formula:
Figure SMS_7
in the above formula, f represents a calculation formula generation function,
Figure SMS_8
representing a formula template string,/->
Figure SMS_9
Representing dictionary type data including variables and parameters appearing in the formula and their corresponding values, ++>
Figure SMS_10
Representing a set of mathematical functions in a mathematical library.
Further, the specific implementation process of the computational formula generating function is as follows: step 1, replacing placeholders in a formula template character string with corresponding numerical values to obtain a new calculation formula expression; step 2, analyzing the function call in the calculation formula and converting the function call into a corresponding function object in the mathematical library; and 3, replacing function calls in the calculation formula by using the function objects in the mathematical library to generate an executable new calculation formula.
Further, the specific flow of the formula in the automatic matching math library in S2 is as follows: step 1, complete matching: for a simple calculation formula, searching character variables in a formula corresponding to the matching in a mathematical library according to the character sequence of the input calculation formula, if the complete matched formula can be searched for by uninterrupted characters, transmitting the calculation formula and the formula matched with the calculation formula into the S3 for processing, and if the complete matched formula is not searched for in the mathematical library, transmitting the calculation formula into the step 2 for continuous processing; step 2, segment matching: for the complex calculation formula, the calculation formula needs to be subjected to segment matching, the most conforming formula of the character variable is searched in the mathematical library from the first character according to the character sequence of the input calculation formula, namely, the first segment search is performed, when the character variable which does not conform to the most conforming formula is searched, the formula search is suspended, the next segment search is performed from the first character variable, namely, the second segment search is performed, the subsequent search is analogized, when a completely conforming formula is searched in a certain segment search, the formula obtained by the segment search matching is returned to the previous segment search as a character variable, the previous segment search is continued until the calculation formula is searched, all the searched formulas matched with the calculation formula are saved, the position of the calculation formula segment and the segmented formula list are recorded, all the segmented formulas are ordered according to the operation priority, if the completely conforming formula is not found, the calculation formula is input into the step 3 for continuous processing; step 3, outputting a result: after the calculation formula is matched with the formulas stored in the math library in the step 2, if no matched formulas are found, an error prompt is sent out, and the step 1 is returned to acquire the calculation formula again.
Further, the processing procedure of the processing calculation formula in S3 is that when the received calculation formula is complete and successfully matched, the calculation formula is processed according to the formula in the math library matched with the calculation formula, when the received calculation formula is successfully matched with the segments, the position of the segments of the calculation formula and the list of the segmented formulas are received, the corresponding segment calculation formula is obtained and divided according to the segment position of the calculation formula, and the segment calculation formula is processed according to the priority of the corresponding formula of each segment calculation formula.
The embodiment of the application provides a mathematic tool software control device, including acquisition module, matching module, processing module, output module and judgement module: the acquisition module is used for: the computing method is used for acquiring user input for preprocessing: reading a calculation formula input by a user, and preprocessing the calculation formulas of various input forms; and a matching module: for matching formulas in a mathematical library according to a computational formula: according to the input calculation formula, automatically matching the formula in the mathematical library, if the input calculation formula is matched with the formula contained in the mathematical library, directly entering S3 for calculation, if the input calculation formula is not matched with the formula in the mathematical library, sending out an error prompt, and returning to S1; the processing module is used for: for processing the calculation formula according to the formula: according to the matched formula, corresponding calculation processing operation is carried out; and an output module: for outputting the processing result: outputting the result after calculation processing to a user; and a judging module: for reset judgment: judging whether the calculation process needs to be returned to S1 to continue, and if so, returning to S1; otherwise, the operation is ended.
The embodiment of the application provides mathematical tool software control equipment, wherein the at least one processor and a memory are in communication connection with the at least one processor, and the mathematical tool software control equipment comprises the following components: the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a math tool software control method.
Embodiments of the present application provide a computer readable storage medium storing a program that when executed by a processor implements a math tool software control method.
One or more technical solutions provided in the embodiments of the present application at least have the following technical effects or advantages:
1. because the input mode of pasting the calculation formula and selecting the formula template to be filled into the calculation formula is provided for the user, the user does not need to manually search a proper formula or input a complex calculation formula, the efficiency and the accuracy of using mathematical tool software by the user are improved, the difficulty and the complexity of using the mathematical tool software are reduced, and the problem that the mathematical tool software is difficult to control by the user in the prior art is effectively solved.
2. The composite calculation formula is processed by segment matching, and the segment calculation formula is processed according to the formula according to the priority of the corresponding formula of each segment calculation formula, so that the matching accuracy is greatly improved, and the calculation accuracy and the calculation speed are improved.
3. The formulas in the automatic matching mathematical library are matched in a way of combining complete matching and segment matching, so that the matching of a simple calculation formula can be adapted, a complex calculation formula can be processed, and the applicability and the practicability of mathematical tool software are improved.
Drawings
FIG. 1 is a flow chart of a mathematical tool software control method provided in an embodiment of the present application;
FIG. 2 is a process diagram of a specific implementation of a computational generation function provided in an embodiment of the present application;
FIG. 3 is a flowchart of an embodiment of the present application for automatically matching formulas in a math library;
fig. 4 is a block diagram of a mathematical tool software control apparatus according to an embodiment of the present application.
Detailed Description
According to the mathematical tool software control method, device, equipment and storage medium, the problem that in the prior art, the mathematical tool software is difficult to control by a user is solved, through automatically matching formulas in a mathematical library, the user does not need to manually search a proper formula or input a complex calculation formula, and therefore the difficulty and complexity of using the mathematical tool software are reduced.
The technical scheme in this application embodiment is to solve the problem that the difficulty of controlling mathematical tool software by a user is high, and the overall thought is as follows:
the method comprises the steps that a calculation formula input by a user is obtained through an obtaining module, and because the calculation formula input by the user comprises pasting the calculation formula and selecting a formula template to be filled into the calculation formula, the calculation formula needs to be preprocessed, the preprocessed calculation formula unifies the formats, then the preprocessed calculation formula is input into a matching module, the calculation formula is matched with a formula pre-stored in a mathematical library through the matching module, the main matching method is that characters in the calculation formula and character variables in the formula are subjected to complete matching or segmented matching retrieval comparison, the calculation formula which cannot be successfully matched is subjected to error reporting processing, and the calculation formula is returned to the obtaining module for the user to input the calculation formula again; after the formulas in the mathematical library are successfully matched, the formulas are ordered according to the operation priority, the calculation formulas corresponding to the formulas are sequentially calculated according to the ordering order, then the output module displays the result obtained after the calculation process, and the judgment module judges the reset condition according to whether the user needs to continue operation or not, namely, if the user needs to continue inputting the calculation formulas, the reset is carried out to the acquisition module, and if the user needs to continue inputting the calculation formulas, the operation is ended, so that the aims of supporting the user to input more complex formulas, increasing the way of inputting the calculation formulas by the user and simplifying the difficulty of inputting the calculation formulas are fulfilled.
In order to better understand the above technical solutions, the following detailed description will refer to the accompanying drawings and specific embodiments.
As shown in fig. 1, a flowchart of a mathematical tool software control method provided in an embodiment of the present application is applied to a mathematical tool software control device, and the method includes the following steps: s1, acquiring calculation type input by a user and preprocessing: reading a calculation formula input by a user, and preprocessing the calculation formulas of various input forms; s2, matching formulas in a mathematical library according to the calculation formula: according to the input calculation formula, automatically matching the formula in the mathematical library, if the input calculation formula is matched with the formula contained in the mathematical library, directly entering S3 for calculation, if the input calculation formula is not matched with the formula in the mathematical library, sending out an error prompt, and returning to S1; s3, processing a calculation formula according to a formula: according to the matched formula, corresponding calculation processing operation is carried out; s4, outputting a processing result: outputting the result after calculation processing to a user; s5, resetting judgment: judging whether the calculation process needs to be returned to S1 to continue, and if so, returning to S1; otherwise, the operation is ended.
Further, the manner in which the formula is input in S1 includes pasting the formula and selecting the formula template to be filled into the formula, wherein pasting the formula refers to copying the formula from other pages and pasting the formula into the input box, selecting the formula template to be filled into the formula refers to providing the formula template to the user through the mathematical library, and then the selected formula will be rewritten to the data therein by the user.
Furthermore, after the paste calculation formula is obtained, the text format needs to be preprocessed through a conversion algorithm, the text format of the formula is unified, and the specific algorithm formula for converting the unified format is as follows:
Figure SMS_11
in the above-mentioned formula(s),
Figure SMS_12
is a conversion function, the input content is +.>
Figure SMS_13
Wherein g represents the formula of the original text format of the formula,/->
Figure SMS_14
Representing the type of the i-th computational original text format,/->
Figure SMS_15
Text content representing the i-th computational original text format,/->
Figure SMS_16
Representing the target text format.
In this embodiment, the specific algorithm formula for converting the unified format converts the types of different computational original text formats (such as MathML, microsoft Word, image, etc.) into the LaTeX format, the formula is suitable for the user to input once after pasting the computational formulas of multiple format types for subsequent processing, and if the computational original text format has only one type, the formula can be simplified as follows:
Figure SMS_17
further, the formula template is selected to be filled into a calculation formula, characters in the original formula template are replaced through a rewriting algorithm, and a new calculation formula V is obtained as an input calculation formula:
Figure SMS_18
in the above formula, f represents a calculation formula generation function,
Figure SMS_19
representing a formula template string,/->
Figure SMS_20
Representing dictionary type data including variables and parameters appearing in the formula and their corresponding values, ++>
Figure SMS_21
Representing a set of mathematical functions in a mathematical library.
Further, as shown in fig. 2, in a specific implementation process diagram of the computational formula generating function provided in the embodiment of the present application, a specific implementation process of the computational formula generating function is: step 1, replacing placeholders in a formula template character string with corresponding numerical values to obtain a new calculation formula expression; step 2, analyzing the function call in the calculation formula and converting the function call into a corresponding function object in the mathematical library; and 3, replacing function calls in the calculation formula by using the function objects in the mathematical library to generate an executable new calculation formula.
In this embodiment, first, according to the formula template and the parameter dictionary selected by the user, the calculation formula generating function replaces the parameters and variables in the formula template with corresponding values to generate a new calculation formula, for example, if the formula template is a+b, the value of a in the parameter dictionary is 2, and the value of b is 3, the calculation formula generator generates a new calculation formula of 2+3.
In the new calculation formula, some formulas or function calls may be included, such as \sin (x) or \log (x), etc. Because the function in the mathematical library is not necessarily the same as the name of the function call in the formula, the formula generator needs to traverse each function call in the formula and convert it to a corresponding mathematical function, e.g., if the formula contains a sin (x) function call, but the name of the function in the mathematical library is sin, the function call sin (x) needs to be converted to a sin (x) function.
Once the function calls in the formula are converted to mathematical functions by the formula generator, the function calls may be replaced with functions in the mathematical library, each function call in the formula may be traversed by the formula generator and replaced with a corresponding mathematical function, and the replaced formula may then be saved to memory for execution.
Further, as shown in fig. 3, in a specific flowchart of a formula in the automatic matching math library provided in the embodiment of the present application, a specific flow of a formula in the automatic matching math library in S2 is as follows: step 1, complete matching: for a simple calculation formula, searching character variables in a formula corresponding to the matching in a mathematical library according to the character sequence of the input calculation formula, if the complete matched formula can be searched for by uninterrupted characters, transmitting the calculation formula and the formula matched with the calculation formula into the S3 for processing, and if the complete matched formula is not searched for in the mathematical library, transmitting the calculation formula into the step 2 for continuous processing; step 2, segment matching: for the complex calculation formula, the calculation formula needs to be subjected to segment matching, the most conforming formula of the character variable is searched in the mathematical library from the first character according to the character sequence of the input calculation formula, namely, the first segment search is performed, when the character variable which does not conform to the most conforming formula is searched, the formula search is suspended, the next segment search is performed from the first character variable, namely, the second segment search is performed, the subsequent search is analogized, when a completely conforming formula is searched in a certain segment search, the formula obtained by the segment search matching is returned to the previous segment search as a character variable, the previous segment search is continued until the calculation formula is searched, all the searched formulas matched with the calculation formula are saved, the position of the calculation formula segment and the segmented formula list are recorded, all the segmented formulas are ordered according to the operation priority, if the completely conforming formula is not found, the calculation formula is input into the step 3 for continuous processing; step 3, outputting a result: after the calculation formula is matched with the formulas stored in the math library in the step 2, if no matched formulas are found, an error prompt is sent out, and the step 1 is returned to acquire the calculation formula again.
In the embodiment, the accuracy of matching is greatly improved by carrying out complete matching and then carrying out a process of segment matching; when the segments are matched, the calculation formula of each segment can be matched with the most conforming formula from the mathematical library according to the similarity, so that the condition that the calculation formulas cannot be matched is avoided, and the probability of successful matching is improved; for the calculation formula which cannot be completely matched, the process can continue segment matching or return to S1 to acquire the calculation formula again so as to enhance matching fault tolerance, thus, when matching fails, the program can not be directly ended, but the opportunity of re-input is provided, and the time and energy for restarting the program due to the matching failure of a user are reduced; because the method of combining automatic matching and segmented matching is used, the program supports a more complex calculation formula of matching, the matching speed is increased, and the method is favorable for processing large-scale calculation formula matching.
Further, the processing procedure of the processing calculation formula in S3 is that when the received calculation formula is that the complete matching is successful, the calculation formula is processed according to the formula in the math library matched with the received calculation formula, when the received calculation formula is that the segment matching is successful, the position of the calculation formula segment and the formula list of the segment are received, the corresponding segment calculation formula is obtained and divided according to the position of the calculation formula segment, the priority of the corresponding formula of each segment calculation formula is calculated and processed according to the formula.
In this embodiment, in S3, the specific procedure of processing the calculation formula is as follows: for a calculation formula which is successfully matched, calculating the calculation formula according to a formula in a math library matched with the calculation formula, specifically, extracting symbols and numerical values in the calculation formula, and calculating according to an operation sequence in the formula to finally obtain a result of the calculation formula; for a calculation formula with successful segment matching, firstly, receiving the position of the calculation formula segment and a formula list of the segment, obtaining and dividing a corresponding segment calculation formula according to the position of the calculation formula segment, and then calculating and processing the segment calculation formula according to the priority of the corresponding formula of each segment calculation formula; when processing the segment calculation formula, a recursive mode can be adopted to calculate the expression in the internal brackets, then calculate the value of the whole segment expression according to the priority of the operator, and in the calculation process, the operator and the numerical value can be stored and processed by means of data structures such as stacks and the like.
As shown in fig. 4, in order to provide a structure diagram of a mathematical tool software control device according to an embodiment of the present application, the mathematical tool software control device provided in the embodiment of the present application includes an obtaining module, a matching module, a processing module, an output module, and a judging module: the acquisition module is used for: the computing method is used for acquiring user input for preprocessing: reading a calculation formula input by a user, and preprocessing the calculation formulas of various input forms; and a matching module: for matching formulas in a mathematical library according to a computational formula: according to the input calculation formula, automatically matching the formula in the mathematical library, if the input calculation formula is matched with the formula contained in the mathematical library, directly entering S3 for calculation, if the input calculation formula is not matched with the formula in the mathematical library, sending out an error prompt, and returning to S1; the processing module is used for: for processing the calculation formula according to the formula: according to the matched formula, corresponding calculation processing operation is carried out; and an output module: for outputting the processing result: outputting the result after calculation processing to a user; and a judging module: for reset judgment: judging whether the calculation process needs to be returned to S1 to continue, and if so, returning to S1; otherwise, the operation is ended.
In this embodiment, firstly, a calculation formula input by a user is obtained through an obtaining module, then the calculation formula is preprocessed to form a calculation formula with uniform format, then the preprocessed calculation formula is input into a matching module for automatic matching, the matching target is a pre-stored formula in a math library, when the calculation formula is matched with the formula in the math library, the calculation formula and the matched formula are transmitted into a processing module, the processing module carries out calculation processing on the calculation formula according to the matched formula, and finally, the result obtained after calculation processing is displayed to the user through an output module and whether reset is carried out is judged.
The mathematical tool software control device provided by the embodiment of the application comprises: at least one processor, and a memory communicatively coupled to the at least one processor, wherein: the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the math tool software control method.
The embodiment of the application also provides a computer readable storage medium for storing a program, and the program is executed by a processor to realize a mathematical tool software control method.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages: compared with the interactive control method, device, system and medium of mathematical elements and functions disclosed by the publication number CN112764610B, the method, device and system for controlling the interaction of mathematical elements and functions, disclosed by the publication number CN112764610B, the method and device for controlling the interaction of mathematical elements and functions provided by the embodiment of the invention provide an input mode for a user to paste a calculation formula and select a formula template to fill the calculation formula, so that the user does not need to manually search a proper formula or input a complex calculation formula, and the efficiency and accuracy of using mathematical tool software by the user are improved; compared with the mathematical element interaction control method, device, system and medium disclosed by the publication No. CN112764645B, the method, device and system for controlling the mathematical element interaction control device and medium disclosed by the embodiment of the application are used for processing the complex calculation formula by adopting the segmentation matching, and calculating the segmentation calculation formula according to the priority of the corresponding formula of each segmentation calculation formula, so that the matching accuracy is greatly improved, and the calculation accuracy and the calculation speed are further improved.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. A method of controlling a mathematical tool software comprising the steps of:
s1, acquiring calculation type input by a user and preprocessing: reading a calculation formula input by a user, and preprocessing the calculation formulas of various input forms;
s2, matching formulas in a mathematical library according to the calculation formula: according to the input calculation formula, automatically matching the formula in the mathematical library, if the input calculation formula is matched with the formula contained in the mathematical library, directly entering S3 for calculation, if the input calculation formula is not matched with the formula in the mathematical library, sending out an error prompt, and returning to S1;
s3, processing a calculation formula according to a formula: according to the matched formula, corresponding calculation processing operation is carried out;
s4, outputting a processing result: outputting the result after calculation processing to a user;
s5, resetting judgment: judging whether the calculation process needs to be returned to S1 to continue, and if so, returning to S1; otherwise, the operation is ended.
2. The mathematical tool software control method of claim 1, wherein: the method for inputting the calculation formula in the S1 comprises the steps of pasting the calculation formula and selecting a formula template to be filled into the calculation formula, wherein the pasting the calculation formula refers to copying the calculation formula copied from other pages and pasted into an input box, the selecting the formula template to be filled into the calculation formula refers to providing the formula template for a user through a mathematical library, and then the selected formula is used for rewriting data in the selected formula by the user.
3. A mathematical tool software control method as claimed in claim 2, wherein: after the paste calculation formula is obtained, the text format needs to be preprocessed through a conversion algorithm, the text format of the formula is unified, and the specific algorithm formula for converting the unified format is as follows:
Figure QLYQS_1
in the above-mentioned formula(s),
Figure QLYQS_2
is a conversion function, the input content is +.>
Figure QLYQS_3
Wherein g represents the formula of the original text format of the formula,/->
Figure QLYQS_4
Representing the type of the i-th computational original text format,/->
Figure QLYQS_5
Text content representing the i-th computational original text format,/->
Figure QLYQS_6
Representing the target text format.
4. The mathematical tool software control method of claim 2, wherein the selection formula template is changed to a calculation formula, and characters in the original formula template are replaced by a rewrite algorithm to obtain a calculation formula with a new calculation formula V as an input:
Figure QLYQS_7
in the above formula, f represents a calculation formula generation function,
Figure QLYQS_8
representing a formula template string,/->
Figure QLYQS_9
Representing dictionary type data including variables and parameters appearing in the formula and their corresponding values, ++>
Figure QLYQS_10
Representing a set of mathematical functions in a mathematical library.
5. The mathematical tool software control method of claim 4, wherein the computational generating function is implemented as:
step 1, replacing placeholders in a formula template character string with corresponding numerical values to obtain a new calculation formula expression;
step 2, analyzing the function call in the calculation formula and converting the function call into a corresponding function object in the mathematical library;
and 3, replacing function calls in the calculation formula by using the function objects in the mathematical library to generate an executable new calculation formula.
6. The mathematical tool software control method of claim 1, wherein: the specific flow of the formula in the automatic matching math library in the step S2 is as follows:
step 1, complete matching: for a simple calculation formula, searching character variables in a formula corresponding to the matching in a mathematical library according to the character sequence of the input calculation formula, if the complete matched formula can be searched for by uninterrupted characters, transmitting the calculation formula and the formula matched with the calculation formula into the S3 for processing, and if the complete matched formula is not searched for in the mathematical library, transmitting the calculation formula into the step 2 for continuous processing;
step 2, segment matching: for the complex calculation formula, the calculation formula needs to be subjected to segment matching, the most conforming formula of the character variable is searched in the mathematical library from the first character according to the character sequence of the input calculation formula, namely, the first segment search is performed, when the character variable which does not conform to the most conforming formula is searched, the formula search is suspended, the next segment search is performed from the first character variable, namely, the second segment search is performed, the subsequent search is analogized, when a completely conforming formula is searched in a certain segment search, the formula obtained by the segment search matching is returned to the previous segment search as a character variable, the previous segment search is continued until the calculation formula is searched, all the searched formulas matched with the calculation formula are saved, the position of the calculation formula segment and the segmented formula list are recorded, all the segmented formulas are ordered according to the operation priority, if the completely conforming formula is not found, the calculation formula is input into the step 3 for continuous processing;
step 3, outputting a result: after the calculation formula is matched with the formulas stored in the math library in the step 2, if no matched formulas are found, an error prompt is sent out, and the step 1 is returned to acquire the calculation formula again.
7. The mathematical tool software control method of claim 6, wherein: and S3, the processing procedure of the processing calculation formula is that when the received calculation formula is completely matched successfully, the calculation formula is calculated according to the formula in the matched mathematical library, when the received calculation formula is segmented successfully, the position of the calculation formula segment and the segmented formula list are received, the corresponding segmentation calculation formula is obtained and divided according to the position of the calculation formula segment, the priority of the corresponding formula of each segmentation calculation formula is calculated and processed according to the formula.
8. The mathematical tool software control device is characterized by comprising an acquisition module, a matching module, a processing module, an output module and a judging module:
the acquisition module is used for: the computing method is used for acquiring user input for preprocessing: reading a calculation formula input by a user, and preprocessing the calculation formulas of various input forms;
and a matching module: for matching formulas in a mathematical library according to a computational formula: according to the input calculation formula, automatically matching the formula in the mathematical library, if the input calculation formula is matched with the formula contained in the mathematical library, directly entering S3 for calculation, if the input calculation formula is not matched with the formula in the mathematical library, sending out an error prompt, and returning to S1;
the processing module is used for: for processing the calculation formula according to the formula: according to the matched formula, corresponding calculation processing operation is carried out;
and an output module: for outputting the processing result: outputting the result after calculation processing to a user;
and a judging module: for reset judgment: judging whether the calculation process needs to be returned to S1 to continue, and if so, returning to S1; otherwise, the operation is ended.
9. A mathematical tool software control apparatus, the mathematical tool software control apparatus comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein:
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 7.
10. A computer-readable storage medium storing a program, wherein the program, when executed by a processor, implements the mathematical tool software control method of any one of claims 1 to 7.
CN202310382065.6A 2023-04-12 2023-04-12 Mathematic tool software control method, device, equipment and storage medium Withdrawn CN116108326A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310382065.6A CN116108326A (en) 2023-04-12 2023-04-12 Mathematic tool software control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310382065.6A CN116108326A (en) 2023-04-12 2023-04-12 Mathematic tool software control method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116108326A true CN116108326A (en) 2023-05-12

Family

ID=86254690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310382065.6A Withdrawn CN116108326A (en) 2023-04-12 2023-04-12 Mathematic tool software control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116108326A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116680502A (en) * 2023-08-02 2023-09-01 中国科学技术大学 Intelligent solving method, system, equipment and storage medium for mathematics application questions

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090915A (en) * 2014-06-12 2014-10-08 小米科技有限责任公司 Method and device for updating user data
CN104933158A (en) * 2015-06-26 2015-09-23 百度在线网络技术(北京)有限公司 Training method and device and reasoning method and device for mathematical problem solving model
CN105868177A (en) * 2016-03-24 2016-08-17 河北师范大学 Universal formula search method
GB201620932D0 (en) * 2016-12-08 2017-01-25 Texthelp Ltd Mathematical and scientific expression editor for computer systems
CN106897256A (en) * 2017-02-23 2017-06-27 广东小天才科技有限公司 A kind of formula by Office software editings is converted into the method and device of MathML formula
CN107590268A (en) * 2017-09-25 2018-01-16 咪咕互动娱乐有限公司 A kind of moving line recommends method, apparatus and computer-readable recording medium
CN108319724A (en) * 2018-02-28 2018-07-24 北京仁和汇智信息技术有限公司 A kind of Homepage Publishing method and device with formula file
CN109902670A (en) * 2017-12-08 2019-06-18 亿度慧达教育科技(北京)有限公司 Data entry method and system
CN110795526A (en) * 2019-10-29 2020-02-14 北京林业大学 Mathematical formula index creating method and system for retrieval system
CN110825867A (en) * 2019-11-01 2020-02-21 科大讯飞股份有限公司 Similar text recommendation method and device, electronic equipment and storage medium
CN114138931A (en) * 2021-11-02 2022-03-04 蚌埠学院 Mathematical formula perception indexing and ranking method, storage medium and equipment
CN114722245A (en) * 2022-03-28 2022-07-08 北京砍石高科技有限公司 Application question correcting method and device, storage medium and electronic equipment
CN115329048A (en) * 2022-09-05 2022-11-11 中国银行股份有限公司 Statement retrieval method and device, electronic equipment and storage medium
CN115687717A (en) * 2022-10-28 2023-02-03 中通服创发科技有限责任公司 Method, device and equipment for acquiring hook expression and computer readable storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090915A (en) * 2014-06-12 2014-10-08 小米科技有限责任公司 Method and device for updating user data
CN104933158A (en) * 2015-06-26 2015-09-23 百度在线网络技术(北京)有限公司 Training method and device and reasoning method and device for mathematical problem solving model
CN105868177A (en) * 2016-03-24 2016-08-17 河北师范大学 Universal formula search method
GB201620932D0 (en) * 2016-12-08 2017-01-25 Texthelp Ltd Mathematical and scientific expression editor for computer systems
CN106897256A (en) * 2017-02-23 2017-06-27 广东小天才科技有限公司 A kind of formula by Office software editings is converted into the method and device of MathML formula
CN107590268A (en) * 2017-09-25 2018-01-16 咪咕互动娱乐有限公司 A kind of moving line recommends method, apparatus and computer-readable recording medium
CN109902670A (en) * 2017-12-08 2019-06-18 亿度慧达教育科技(北京)有限公司 Data entry method and system
CN108319724A (en) * 2018-02-28 2018-07-24 北京仁和汇智信息技术有限公司 A kind of Homepage Publishing method and device with formula file
CN110795526A (en) * 2019-10-29 2020-02-14 北京林业大学 Mathematical formula index creating method and system for retrieval system
CN110825867A (en) * 2019-11-01 2020-02-21 科大讯飞股份有限公司 Similar text recommendation method and device, electronic equipment and storage medium
CN114138931A (en) * 2021-11-02 2022-03-04 蚌埠学院 Mathematical formula perception indexing and ranking method, storage medium and equipment
CN114722245A (en) * 2022-03-28 2022-07-08 北京砍石高科技有限公司 Application question correcting method and device, storage medium and electronic equipment
CN115329048A (en) * 2022-09-05 2022-11-11 中国银行股份有限公司 Statement retrieval method and device, electronic equipment and storage medium
CN115687717A (en) * 2022-10-28 2023-02-03 中通服创发科技有限责任公司 Method, device and equipment for acquiring hook expression and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
闫慧丽: "基于 Lucene 框架的 Latex 数学公式检索研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》, vol. 2015, no. 8, pages 5 - 2 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116680502A (en) * 2023-08-02 2023-09-01 中国科学技术大学 Intelligent solving method, system, equipment and storage medium for mathematics application questions
CN116680502B (en) * 2023-08-02 2023-11-28 中国科学技术大学 Intelligent solving method, system, equipment and storage medium for mathematics application questions

Similar Documents

Publication Publication Date Title
CN111898696B (en) Pseudo tag and tag prediction model generation method, device, medium and equipment
US11544604B2 (en) Adaptive model insights visualization engine for complex machine learning models
CN112528977B (en) Target detection method, target detection device, electronic equipment and storage medium
CN111815738B (en) Method and device for constructing map
CN116108326A (en) Mathematic tool software control method, device, equipment and storage medium
CN111373406B (en) Accelerated simulation setup process using a priori knowledge extraction of problem matching
JPWO2020240808A1 (en) Learning device, classification device, learning method, classification method, learning program, and classification program
CN112508078A (en) Image multitask multi-label identification method, system, equipment and medium
US11570318B2 (en) Performing global image editing using editing operations determined from natural language requests
CN112582073B (en) Medical information acquisition method, device, electronic equipment and medium
US11709690B2 (en) Generating in-app guided edits including concise instructions and coachmarks
CN116361502B (en) Image retrieval method, device, computer equipment and storage medium
Altinbas et al. GUI element detection from mobile UI images using YOLOv5
CN111741329A (en) Video processing method, device, equipment and storage medium
CN111582101A (en) Remote sensing image detection method and system
CN115482588A (en) Method for predicting posture of three-dimensional model and electronic equipment
CN111176624B (en) Method and device for generating stream type calculation index
KR20230065339A (en) Model data processing method, device, electronic device and computer readable medium
CN111124387A (en) Modeling system, method, computer device and storage medium for machine learning platform
CN111324351B (en) File processing method, device, computer readable medium and electronic equipment
CN117576517B (en) Optical remote sensing image self-supervision contrast learning change detection method and device
US20230360271A1 (en) Tracking image modifications for a digital image
CN114373191A (en) Hand condyle positioning method and device
CN115407995A (en) Graphical interface code generation method and device
JP2015045939A (en) Unstructured data processing system, unstructured data processing method, and program

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20230512