Problem solving demonstration method and device based on formula clever calculation, electronic equipment and storage medium

By determining whether the formula meets the preset clever calculation type before each step of the calculation and using the target solution method for calculation, the problem of poor calculation accuracy caused by only being able to use clever calculation once in the existing technology is solved, and the accuracy of multiple clever calculation explanations within the same problem is improved.

CN116312152BActive Publication Date: 2025-12-09深圳市星桐科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310324954.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2025-12-09
Estimated Expiration
2043-03-24

AI Technical Summary

Technical Problem

Existing formula-based calculation explanations can only use the calculation method once, resulting in poor accuracy of formula calculations and an inability to cover all types of calculation problems.

Method used

Before each calculation, it checks whether the current formula meets the preset clever calculation type, and if it does, it performs the calculation using the target solution method, generating explanation steps and supporting multiple explanations of clever calculations within the same problem.

Benefits of technology

It improves the accuracy of formula calculations, covers all the clever calculations involved in the operation, and supports multiple explanations of clever calculations within the same problem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116312152B_ABST
    Figure CN116312152B_ABST
Patent Text Reader

Abstract

The present disclosure provides a problem solving demonstration method and device of formula smart calculation, electronic equipment and storage medium, the method comprises: obtaining a calculation formula to be demonstrated; when performing step-by-step operation on the calculation formula, judging whether the current formula corresponding to the current operation step satisfies a preset smart calculation type; in the case where the current formula satisfies the preset smart calculation type, determining a target solving mode corresponding to the target smart calculation type satisfied by the current formula; performing operation on the current formula based on the target solving mode, generating an explanation step corresponding to the current formula; after the step-by-step operation on the calculation formula is completed, generating a problem solving demonstration video corresponding to the calculation formula based on the explanation step corresponding to each operation. The present scheme enables the explanation process to cover all smart calculations involved in the operation, supports the use of multiple smart calculations in the same problem for explanation, and is conducive to improving the accuracy of formula calculation.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of computer, and particularly relates to a problem solving demonstration method and device for formula smart calculation, an electronic device and a storage medium. BACKGROUND

[0002] Mathematical smart calculation is a mathematical quick calculation skill, which utilizes mathematical operation rules and number rules in smart calculation to make smart calculation more convenient and have fewer calculation steps, so as to effectively improve calculation speed.

[0003] In the existing smart calculation explanation scheme, a common practice is to first identify which type of smart calculation the formula belongs to, then obtain the characteristics of the problem according to the specific smart calculation type, and generate the explanation steps. This processing method can only use one smart calculation in the explanation process, and has the problem of poor formula calculation accuracy. SUMMARY

[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the embodiments of the present disclosure provide a problem solving demonstration method and device for formula smart calculation, an electronic device and a storage medium.

[0005] According to an aspect of the present disclosure, a problem solving demonstration method for formula smart calculation is provided, comprising:

[0006] obtaining a calculation formula to be demonstrated;

[0007] judging whether a current formula corresponding to a current calculation step meets a preset smart calculation type when the calculation formula is calculated step by step;

[0008] determining a target solving mode corresponding to a target smart calculation type met by the current formula in a case where the current formula meets the preset smart calculation type;

[0009] performing calculation on the current formula based on the target solving mode, and generating an explanation step corresponding to the current formula;

[0010] generating a problem solving demonstration video corresponding to the calculation formula based on the explanation step corresponding to each calculation step after the calculation of the calculation formula is completed.

[0011] According to another aspect of the present disclosure, a problem solving demonstration device for formula smart calculation is provided, comprising:

[0012] an obtaining module configured to obtain a calculation formula to be demonstrated;

[0013] a judging module configured to judge whether a current formula corresponding to a current calculation step meets a preset smart calculation type when the calculation formula is calculated step by step;

[0014] determining, when the current formula satisfies the preset smart calculation type, a target solving mode corresponding to a target smart calculation type satisfied by the current formula;

[0015] operating, based on the target solving mode, the current formula to generate an explanation step corresponding to the current formula;

[0016] generating, after the step-by-step operation on the calculation formula is completed, a problem solving demonstration video corresponding to the calculation formula based on the explanation step corresponding to each operation step.

[0017] According to another aspect of the present disclosure, an electronic device is provided, comprising:

[0018] a processor; and

[0019] a memory storing a program,

[0020] wherein the program includes instructions that, when executed by the processor, cause the processor to perform the problem solving demonstration method for formula smart calculation according to the foregoing aspect.

[0021] According to another aspect of the present disclosure, a non-transitory computer readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to perform the problem solving demonstration method for formula smart calculation according to the foregoing aspect.

[0022] According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program, when executed by a processor, implements the problem solving demonstration method for formula smart calculation according to the foregoing aspect.

[0023] One or more technical solutions provided in the embodiments of the present disclosure are as follows: by obtaining a calculation formula to be demonstrated, when the calculation formula is operated step by step, it is determined whether a current formula corresponding to a current operation step satisfies a preset smart calculation type, and when the current formula satisfies the preset smart calculation type, a target solving mode corresponding to a target smart calculation type satisfied by the current formula is determined, and then the current formula is operated based on the target solving mode to generate an explanation step corresponding to the current formula, and after the step-by-step operation on the calculation formula is completed, a problem solving demonstration video corresponding to the calculation formula is generated based on the explanation step corresponding to each operation step. By using the solution of the present disclosure, it is determined whether the current formula corresponding to the current operation step satisfies the preset smart calculation type before each operation, and the current formula satisfying the preset smart calculation type is operated using the solving mode corresponding to the target smart calculation type satisfied by the current formula, so that the explanation process can cover all smart calculations involved in the operation, support the use of multiple smart calculations for explanation in the same problem, and be conducive to improving the accuracy of formula calculation. BRIEF DESCRIPTION OF DRAWINGS

[0024] More details, features and advantages of the present disclosure will be disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:

[0025] Figure 1 A flow chart of a problem solving demonstration method of formulaic clever calculation according to an exemplary embodiment of the present disclosure is shown;

[0026] Figure 2 An update process of a calculated identification sequence in an exemplary embodiment of the present disclosure is shown Figure 1 ;

[0027] Figure 3 An update process of a calculated identification sequence in an exemplary embodiment of the present disclosure is shown Figure 2 ;

[0028] Figure 4 A flow chart of a problem solving demonstration method of formulaic clever calculation according to another exemplary embodiment of the present disclosure is shown;

[0029] Figure 5 A flow chart of a problem solving demonstration method of formulaic clever calculation according to yet another exemplary embodiment of the present disclosure is shown;

[0030] Figure 6 A flow chart of a problem solving demonstration method of formulaic clever calculation according to a specific embodiment of the present disclosure is shown;

[0031] Figure 7 A schematic block diagram of a problem solving demonstration device of formulaic clever calculation according to an exemplary embodiment of the present disclosure is shown;

[0032] Figure 8 A structural block diagram of an exemplary electronic device that can be used to implement embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0033] Embodiments of the present disclosure will be described more fully hereinafter with reference to the accompanying drawings, in which some embodiments of the present disclosure are shown. This present disclosure may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and fully convey the scope of the present disclosure to those skilled in the art. It will be appreciated that the drawings described are for illustrative purposes and are not intended to limit the scope of the present disclosure as defined by the appended claims.

[0034] It should be understood that each of the steps in the method embodiments of the present disclosure can be performed in a different order and / or in parallel. In addition, the method embodiments can include additional steps and / or omit performing the steps shown. The scope of the present disclosure is not limited in this respect.

[0035] As used herein, the term "includes" and its variants are to be read as open-ended terms that mean "includes, but is not limited to." The term "based on" is to be interpreted as "based, at least in part, on." The term "one embodiment" does not preclude the existence of another embodiment. The term "another embodiment" means at least one additional embodiment. The term "some embodiments" means at least one but not all embodiments. Related terms are to be interpreted in a like fashion. It is to be understood that the use of "a" or "an", that is, a singular form, does not exclude a plurality. It is to be further understood that a specific number of units or measures of a particular material or substance is meant to be approximate only, not exact. The specific number of units or measures is to be understood to allow for error, approximation, variation, or bias introduced in the aforesaid pertaining to a measurement by a user.

[0036] It is to be noted that the terms "one", "multiple", mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that "one" or "multiple" should be understood as "one or more" unless otherwise explicitly indicated in the context.

[0037] The names of the messages or information exchanged between the plurality of devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of the messages or information.

[0038] The problem solving demonstration method, device, electronic equipment and storage medium provided by the present disclosure are described below with reference to the accompanying drawings.

[0039] Vertical calculation is a mathematical discipline term, that is, recursive equation calculation, the operation of writing the calculation process completely, that is, the calculation of vertical calculation. When calculating vertically, multiplication and division are calculated first, and addition and subtraction are calculated last. In an expression containing only operations of the same level, the operations are calculated in order from left to right. When a parenthesis is encountered, the content inside the parenthesis is calculated first.

[0040] Vertical clever calculation is a mathematical quick calculation skill. By using mathematical operation rules and number rules in vertical calculation, the vertical calculation is made more convenient, and the calculation steps are fewer, which can effectively improve the calculation speed. Some educational apps and teaching robots on the market currently support the explanation of primary school vertical clever calculation. A relatively common approach is to first identify which clever calculation type the vertical calculation belongs to, then for a specific clever calculation type, use rules to obtain and match the characteristics of the clever calculation type corresponding to the question from the formula, and generate the explanation steps by performing operations. This processing method has two problems. First, the covered clever calculation types are less, and only simple clever calculations such as the associative law of addition and subtraction and the distributive law of multiplication are supported. Second, the solution is harsh, cannot explain the question in the most optimal way, and can only use one clever calculation method in one explanation process, cannot cover all clever calculations involved in the formula, and has the problem of poor formula calculation accuracy.

[0041] To solve the above problems, the present disclosure provides a formula smart calculation problem solving demonstration method. By judging whether the current formula corresponding to the current operation step meets the preset smart calculation type during the operation process, all smart calculations in the formula can be identified, so that the explanation process can cover all smart calculations involved in the operation, supporting the use of multiple smart calculations in the same problem for explanation, which is conducive to improving the accuracy of formula calculation. The scheme of the present disclosure realizes a rich smart calculation explanation problem type, can determine the smart calculation explanation priority, selects the problem solving method with the highest explanation priority for each smart calculation explanation type for calculation, and can be combined with general detached calculation, making the detached explanation more flexible and accurate.

[0042] Figure 1 A flowchart of a formula smart calculation problem solving demonstration method according to an example embodiment of the present disclosure is shown, which can be executed by a formula smart calculation problem solving demonstration device. The device can be implemented by software and / or hardware, and can be integrated in an electronic device, such as a mobile phone, a computer, a tablet computer, a server, etc.

[0043] As shown in Figure 1 The formula smart calculation problem solving demonstration method can include the following steps:

[0044] Step 101, obtaining a calculation formula to be demonstrated.

[0045] The calculation formula can be composed of numbers, operator symbols, parentheses, etc. For example, the calculation formula can be "0.8x3.74+6.26x0.8", "0.8x3.74+6.26x(1-20%)", etc.

[0046] In the present embodiment of the present disclosure, when obtaining the calculation formula to be demonstrated, different ways can be used.

[0047] For example, in the scenario where a student learns a mathematical calculation problem provided by a related product (such as an APP) installed in an electronic device, the student can select the formula to be demonstrated as the calculation formula to be demonstrated.

[0048] For example, the user can input the formula to be demonstrated into the related product installed in the electronic device through manual input, so that the related product can receive the formula input by the user as the calculation formula to be demonstrated.

[0049] For example, an image of the problem to be demonstrated can be obtained, and then image recognition, text recognition, etc. can be used to identify the formula from the image to obtain the calculation formula to be demonstrated.

[0050] In step 102, when performing step-by-step operation on the calculation formula, it is judged whether the current formula corresponding to the current operation step satisfies a preset clever calculation type.

[0051] The preset clever calculation type can be set according to actual needs, for example, the preset clever calculation type can include but is not limited to commutative law, associative law, distributive law, extracting common factors, arithmetic progression, fraction splitting, bit value principle, pyramid number, etc.

[0052] In the embodiment of the present disclosure, for the obtained calculation formula to be demonstrated, when performing operation at each step, it is first judged whether the current formula corresponding to the current operation step satisfies a preset clever calculation type, that is, whether the current formula can be operated by clever calculation, if yes, step 103 is executed, and if not, the current formula is operated based on a regular operation rule.

[0053] It can be understood that the current formula corresponding to the current operation step can be determined according to the operation result of the previous step. After the previous step of operation is completed, based on the calculation result of the previous operation, the current formula corresponding to the current operation step can be determined.

[0054] As a possible implementation manner, when the current formula is obtained, the formula resetting method can be used to determine the current formula corresponding to the current step, that is, after the calculation at each step, the formula information is reset by the calculated formula item, and the reset formula is the current latest calculation formula, that is, the current formula. Therefore, in the embodiment of the present disclosure, when the first step of operation is performed on the calculation formula to be demonstrated, the original calculation formula is the current formula, and then, when the operation at each subsequent step is performed, the current formula can be generated based on the calculation result of the previous formula.

[0055] For example, assuming that the calculation formula is "0.8*3.74+6.26*(1-20%)", when the first step of operation is performed, the current formula is "0.8*3.74+6.26*(1-20%)". The first step of operation first calculates "1-20%" in the parentheses, and the calculation result is "80%". According to the statistical information of the number type of the calculation formula, it can be known that the other numbers outside the parentheses are all decimals. In order to facilitate calculation, the calculation result can be converted in number type, "80%" is converted into "0.8", and then the formula information is reset by using the converted calculation result, to obtain a new formula "0.8*3.74+6.26*0.8". For the second step of operation, the new formula is the current formula corresponding thereto. It can be understood that in order to facilitate students to understand the process of number type conversion, the number type conversion can also be recorded in the corresponding explanation step.

[0056] As a possible implementation, when the current formula is obtained, the numbers and operator symbols in the original formula that have participated in the operation can be marked by the original formula mark, the corresponding positions of the items that have been calculated and will not appear again are marked as calculated after each step of calculation, and whether each position of the current formula has been calculated can be known by querying the calculated mark of each item when each step is generated, and the current formula corresponding to the current operation step is generated according to the numbers and operator symbols that do not participate in the operation and the operation result of the last operation. Thus, in the embodiment of the present disclosure, a calculated mark sequence equal in length to the calculation formula can be generated according to the position information of each symbol in the calculation formula, wherein the symbols include numbers, operator symbols, parentheses, %, etc. in the calculation formula. The calculated mark sequence is used to record the calculation state of each symbol, and the calculation state includes calculated and not calculated. It can be understood that before the first operation is completed, the calculation state of each symbol in the calculated mark sequence is not calculated.

[0057] As an example, the calculation state of each symbol in the calculated mark sequence can be marked in different ways. For example, "1" can be used to represent calculated and "0" can be used to represent not calculated. For each symbol in the calculated mark sequence, the initial calculation state of each symbol is not calculated, and "0" is marked on each symbol. As the operation proceeds, if a symbol has participated in the operation, the calculation state of the symbol is updated from "0" to "1", indicating that the symbol has been calculated. For another example, only the symbols in the calculated mark sequence that have participated in the operation can be marked, and the symbols that have not participated in the operation are not marked, so that the current formula is generated by querying the unmarked symbols in the calculated mark sequence.

[0058] Further, when the calculated mark sequence is used to record the symbols that have participated in the operation in the calculation formula, after the calculation of the current formula is completed, the symbols and the calculation state of the symbols in the corresponding position of the calculated mark sequence can be updated according to the position information of the symbols that participate in the current operation (referred to as target symbols for convenience of description) and the operation result.

[0059] It can be understood that when the calculation state of the symbol in the corresponding position of the calculated mark sequence is updated, since the formula participating in the current calculation will produce a calculation result, the calculation result needs to participate in the subsequent calculation process, and therefore a storage position needs to be provided for the calculation result in the calculated mark sequence, and the calculation result needs to be marked as not calculated.

[0060] As an example, the smallest position in the positional information corresponding to the target symbol participating in this operation can be used as the location to store the calculation result. The symbol corresponding to that position in the already calculated identifier sequence is updated with the calculation result of this operation, and the calculation status of that position is kept as uncalculated. For example, if the positional information corresponding to the target symbol participating in this operation is 6 to 10 bits, then the symbol corresponding to the 6th bit can be updated with the calculation result of this operation and marked as uncalculated.

[0061] For example, suppose the formula to be demonstrated is "0.8×3.74+6.26×(1-20%)", Figure 2 This illustration shows an exemplary embodiment of the present disclosure of the process for updating a calculated identifier sequence. Figure 1 . Figure 2 In each set of tables, the first row represents the calculation status of each symbol, and the second row represents each symbol in the corresponding formula. In the first row, "0" means that the corresponding symbol has not been calculated, and "1" means that the corresponding symbol has been calculated. Each column in the second row represents a digit. For example, the position information corresponding to "3.74" is 3, the position information corresponding to "6.26" is 5, and the position information corresponding to "20%" is 10. Figure 2 Figure (a) shows the initial calculated identifier sequence generated based on the original calculation formula. It can be seen that the calculation status of each symbol is uncalculated. Based on the formula characteristics and numerical characteristics of the formula, it can be determined that the calculation formula does not meet the preset clever calculation type. Therefore, in the first step of the calculation, the calculation is performed according to the general rules of mixed arithmetic operations. First, the sub-formula "(1-20%)" in the parentheses is calculated. Before the calculation, 20% can be converted to 0.2 to keep the numerical type consistent with other symbols. The target symbol "(1-20%)" participating in this operation corresponds to positions 7-11. The calculation result is 0.8. After this operation, the calculated identifier sequence is updated. The smallest position (the 7th position) among the position information (positions 7-11) of the target symbol participating in this operation is used as the storage position for the calculation result. The symbol corresponding to the 7th position is updated to the calculation result of this operation, i.e., from "(" to "0.8". The calculation status identifier corresponding to the 7th position remains unchanged at "0" so that the symbol "0.8" at this position can continue to participate in the next operation. The calculation status identifiers corresponding to the symbols in positions 8-11 are updated from "0" to 1, resulting in... Figure 2 The calculated identifier sequence is shown in Figure (b). Figure 2 The symbols in the calculated identifier sequence shown in Figure (b) that were not included in the calculation can generate the current formula corresponding to the second step of the operation as "0.8×3.74+6.26×0.8".

[0062] As an example, the minimum position of the position information corresponding to the target symbol participating in the current operation can be taken as the position for storing the result of the current calculation, and the other positions and corresponding symbols are deleted from the calculated identification sequence, and the result of the current calculation is taken as the symbol of the minimum position, that is, only the symbols not participating in the operation are recorded in the calculated identification sequence. For example, the position information corresponding to the target symbol participating in the current operation is 6-10, and the symbol corresponding to the 6th position can be updated to the result of the current calculation, and marked as not calculated, and the symbols corresponding to the 7th-10th positions and the calculation state identifier are deleted.

[0063] For example, it is assumed that the calculation formula to be demonstrated is "0.8*3.74+6.26*(1-20%)", Figure 3 The updating process of the calculated identification sequence in an example embodiment of the present disclosure is shown Figure 2 . Figure 3 In each group of tables in the table, the first row represents the calculation state identifier of each symbol, and the second row represents each symbol in the corresponding formula. In the first row, "0" represents that the corresponding symbol has not been calculated, and "1" represents that the corresponding symbol has been calculated. In the second row, a list represents a bit. For example, the position information corresponding to "3.74" is 3, the position information corresponding to "6.26" is 5, and the position information corresponding to "20%" is 10. Figure 3 In the (a) figure in the table, the initial calculated identification sequence generated based on the original calculation formula is shown. As can be seen, the calculation state of each symbol is not calculated. Based on the formula characteristics and numerical characteristics of the formula, it can be determined that the calculation formula does not satisfy the preset clever calculation type, and therefore, in the first step of operation, the calculation is performed according to the general four-operation rule. Before calculation, 20% can be converted to 0.2 to maintain the same numerical type as other symbols. The position information corresponding to the target symbol "(1-20%)" participating in the current operation is 7-11, and the result of the current calculation is 0.8. After the current operation is completed, the calculated identification sequence is updated, the minimum position (i.e., the 7th position) of the position information (i.e., the 7th-11th positions) corresponding to the target symbol participating in the current operation is taken as the position for storing the result of the current calculation, the symbol corresponding to the 7th position is updated to the result of the current operation, that is, "(0.8)" is updated from "(" and the calculation state identifier corresponding to the 7th position is kept unchanged, still "0", so that the symbol "0.8" corresponding to the position continues to participate in the next operation, and the symbols of the 8th-11th positions and the corresponding calculation state identifiers are deleted from the calculated identification sequence, obtaining the calculated identification sequence shown in the (b) figure in the table. Figure 3 Figure 3 ​As can be seen from the (a) figure and the (b) figure in FIG. 1, only the symbols that need to participate in the subsequent operation are recorded in the calculated identification sequence, and based on this, only the symbols that need to participate in the subsequent operation can be recorded in the calculated identification sequence, and the calculation state identification corresponding to each symbol is omitted. According to the calculated identification sequence shown in the (b) figure in FIG. 1, the symbol that does not participate in the calculation can generate the current formula corresponding to the second step operation as "0.8*3.74+6.26*0.8". Figure 4 As can be seen from the (a) figure and the (b) figure in FIG. 1, only the symbols that need to participate in the subsequent operation are recorded in the calculated identification sequence, and based on this, only the symbols that need to participate in the subsequent operation can be recorded in the calculated identification sequence, and the calculation state identification corresponding to each symbol is omitted. According to the calculated identification sequence shown in the (b) figure in FIG. 1, the symbol that does not participate in the calculation can generate the current formula corresponding to the second step operation as "0.8*3.74+6.26*0.8".

[0064] In the embodiments of the present disclosure, the current formula is generated by the formula resetting method, or the current formula is generated by querying the symbols that have not been calculated in the calculated identification sequence, so that the current step and the subsequent step can be seamlessly connected.

[0065] Then, for the current formula corresponding to the current step, before the operation, the current step can be determined whether to satisfy the preset clever calculation type according to the formula characteristics, the number characteristics and the like corresponding to the current formula, and for the current formula satisfying the preset clever calculation type, the clever calculation is performed. For example, assuming that the current formula is "0.8*3.74+6.26*0.8", it can be determined that the formula satisfies the multiplication distribution law in the preset clever calculation type.

[0066] In an optional embodiment of the present disclosure, before the step-by-step operation of the to-be-presented calculation formula, the to-be-presented calculation formula can be parsed first, and after the parsing, the structure reconstruction and information acquisition of the formula are performed, and the to-be-presented calculation formula is converted into the internal representation form of the program, so as to facilitate the program to understand and acquire the related formula information. The formula information acquired in this part mainly includes the operation symbols of the calculation formula and the related position information thereof, the brackets and the related position information thereof, the number type and the number characteristics, the formula characteristics and the like. The operation symbols are such as "+", "-", "x", " / ", the number type is such as integer, decimal, fraction and percentage, and the number characteristics can include but are not limited to the number of digits and who can be rounded. The formula characteristics can be but are not limited to continuous addition, continuous multiplication, mixed operation, with or without brackets, and whether to contain multiple types of numbers. The acquired formula information can be used to determine whether the formula satisfies the preset clever calculation type in the operation process, and is used to select the appropriate operation mode.

[0067] Generally, the clever calculation is performed on the split calculation formula, and therefore, in an optional embodiment of the present disclosure, after the to-be-presented calculation formula is acquired, whether the calculation formula is a split calculation formula can be determined according to the formula characteristics, the number characteristics, the contained operation symbols and the like of the formula, and if yes, whether the current formula corresponding to the current step satisfies the preset clever calculation type is determined in the step-by-step operation process. If the calculation formula is not a split calculation formula, the matching of the clever calculation type is not performed.

[0068] Step 103, in a case where the current formula satisfies the preset smart calculation type, determining a target solving manner corresponding to a target smart calculation type satisfied by the current formula.

[0069] In the embodiments of the present disclosure, for a current formula corresponding to a current operation step, if the current formula satisfies a preset smart calculation type, a target solving manner corresponding to a target smart calculation type satisfied by the current formula can be further determined.

[0070] It can be understood that there can be one or more solving manners satisfying the same smart calculation type, when there is only one solving manner corresponding to the target smart calculation type, the solving manner can be determined as the target solving manner; when there are multiple solving manners corresponding to the target smart calculation type, one of the multiple solving manners can be randomly selected as the target solving manner.

[0071] For example, assuming that the current formula is “0.8*3.74+6.26*0.8”, it can be determined that the formula satisfies the multiplication distribution law in the preset smart calculation type, “3.74” and “6.26” in the formula can be combined and then added to obtain an integer 10, therefore, for the formula, the target solving manner corresponding to the satisfied multiplication distribution law can be determined as performing summation on “3.74” and “6.26” in the current step.

[0072] Step 104, performing operation on the current formula based on the target solving manner, to generate an explanation step corresponding to the current formula.

[0073] In the embodiments of the present disclosure, after the target solving manner is determined, the current formula can be operated based on the target solving manner, and a corresponding explanation step can be generated.

[0074] In the embodiments of the present disclosure, the explanation step can describe the operation process of the corresponding operation step. As an example, the explanation step can be “first calculate 1 minus 20% in the parentheses”, “use the association law to combine 3.74 and 6.26”, and the like. It should be noted that the explanation step can be described in natural language, or can be described in a language convenient for computer understanding, and then converted into the required language, and the present disclosure does not limit the language used to describe the explanation step.

[0075] As a possible implementation manner, in the embodiments of the present disclosure, a corresponding explanation step template can be preset for each operation, for example, for the operation of calculating the algorithm in the parentheses, the corresponding explanation step template can be “there are parentheses in the formula, first calculate the ___○ (indicates any operator symbol) ___ in the parentheses”, and then in the actual operation, the explanation step template can be filled according to the numbers and operator symbols involved in the operation step, to generate the corresponding explanation step.

[0076] As a possible implementation, for the current formula that does not satisfy the preset calculation type, operation is performed according to the general four-operation mixed operation rule, and the generated result of the explanation step can include: a next formula, an operation position of the current formula, an operation position of the next formula, a related sub-formula, and an action type.

[0077] The next formula is a formula to be displayed in the next operation, and can be empty and related to the action type. The operation position of the current formula is position information of a number or a number part, a symbol, or the like of the current formula that needs to be operated by the current action. The operation position of the next formula is position information of a number, a symbol, or the like of the next formula generated after the operation of the current action, that is, a display position of a calculation result of the symbol at the operation position of the current formula after operation. The related sub-formula is a sub-calculation related to the current action, and can be empty. The action type is an operation of the current formula, and is used to match an animation action in an explanation demonstration video and an explanation text in post-processing according to the type. For example, the action type can include, but is not limited to, calculation, movement, and the like.

[0078] For example, it is assumed that one step operation is performed on the formula “0.8×3.74+6.26×(1-20%)” to obtain the formula “0.8×3.74+6.26×0.8”, which is the next formula. The operation position of the current formula is the position corresponding to “(1-20%)”, that is, the 7th to 11th positions. The operation position of the next formula is the 7th position. The related sub-formula is “1-20%”. The action type is calculation. Thus, after the first step operation is performed on the formula “0.8×3.74+6.26×(1-20%)”, the general explanation step generated can be represented as [0.8×3.74+6.26×0.8, 7-11, 7, 1-20%, calculation], which means that the calculation operation is performed on the current formula at the 7th to 11th positions to obtain the formula 0.8×3.74+6.26×0.8. The sub-formula participating in the calculation of the current formula is 1-20%. The calculation result is 0.8.

[0079] In the embodiments of the present disclosure, the difference between the special explanation step based on the target problem solving mode corresponding to the satisfied target clever calculation type and the explanation step based on the general four arithmetic operation rules when the preset clever calculation type is not satisfied (for the convenience of description, it is called the general explanation step) is that the special explanation step is stored in the explanation flow in the form of a set of general explanation steps, and this set will have a type name related to the target clever calculation type, so as to provide more information for subsequent post-processing and final explanation demonstration video generation. That is, the structure of the special explanation step includes a set of general explanation steps corresponding to the target clever calculation type satisfied by the current formula and the name of the target clever calculation type, which can be denoted as [set of general explanation steps, name of target clever calculation type].

[0080] It can be understood that for the current formula satisfying the preset clever calculation type, after moving, combining and other operations according to the target problem solving mode corresponding to the satisfied target clever calculation type, the formula after the operation is still calculated according to the general four arithmetic operation rules, such as calculating the addition operation in the parentheses first after combination, therefore, the general four arithmetic operation process involved in the special explanation step can still be described by using the structure of the above-mentioned general explanation step, and the general explanation steps involved in the process can be stored in the form of a set, that is, a set of general explanation steps, and named by the name of the satisfied target clever calculation type. Of course, it can also be named by the identifier of the target clever calculation type, and the present disclosure only takes the name as an example, but cannot be regarded as a limitation of the present disclosure.

[0081] In the embodiments of the present disclosure, by defining the structure of the explanation step, the current formula can be generated based on the result after the operation of the previous formula, and the result after the operation of the current formula can be used to generate the formula corresponding to the next operation step, so that the explanation steps generated by each operation step can be seamlessly connected, and the conditions for generating a smooth explanation demonstration video are provided.

[0082] In an optional embodiment of the present disclosure, in order to store the explanation steps generated by each operation step, a common explanation step storage flow, simply referred to as an explanation flow, can be defined in advance, which is responsible for storing the explanation steps generated in the operation process. In the operation process, the explanation steps generated in each operation step can be stored in the explanation flow in sequence according to the generation order, so that when generating the problem solving demonstration video subsequently, each explanation step stored in the explanation flow is processed in sequence to generate the problem solving demonstration video.

[0083] It can be understood that based on the operation result of the current step, the formula information can be reset to obtain the formula corresponding to the next operation step, and so on until the operation is completed.

[0084] In step 105, after the step-by-step operation of the calculation formula is completed, the problem-solving demonstration video corresponding to the calculation formula is generated based on the explanation step corresponding to each operation step.

[0085] In the embodiments of the present disclosure, after the step-by-step operation of the calculation formula to be demonstrated is completed, for example, the current formula corresponding to the current operation step obtained is only a number, which indicates that the operation is completed. Then, the problem-solving demonstration video corresponding to the calculation formula can be generated based on the explanation step corresponding to each operation step.

[0086] As an example, when generating the problem-solving demonstration video, the explanation text corresponding to each explanation step can be generated according to the content recorded in the explanation step, that is, the explanation text corresponding to the related operation step is obtained. Then, the explanation text can be converted into explanation speech, for example, the explanation text can be converted into explanation speech by using the currently common text-to-speech technology, and then the problem-solving demonstration video corresponding to the calculation formula is generated based on the explanation text and the explanation speech.

[0087] It can be understood that the numbers and operation symbols involved in the corresponding operation step are recorded in the explanation step. According to the previous explanation step, it can be known that the previous operation step has performed what kind of operation. Based on the operation result, the new formula corresponding to the current operation step can be obtained, and the step-by-step operation is performed until the operation is completed, and the final operation result is obtained. Therefore, in the embodiments of the present disclosure, the explanation text generated based on the explanation step can not only include the operation content involved in the current operation step, but also include the current formula. Based on the operation result of each operation step, the formula information is reset to obtain the new formula, and multiple images can be generated to construct a video animation to demonstrate the step-by-step operation process of the calculation formula. By converting the explanation text into explanation speech, the explanation speech can be associated with each related image in the video animation to generate a problem-solving demonstration video containing explanation speech, so that when the problem-solving demonstration video is played, the purpose of synchronous voice explanation during the demonstration of the operation step can be achieved, and the automatic explanation demonstration of the calculation formula is realized.

[0088] In an optional embodiment of the present disclosure, when generating the problem-solving demonstration video, the sub-formula of the current operation step can also be determined according to the positions corresponding to the numbers and operation symbols involved in each operation step, and the sub-formula in the explanation text corresponding to the current operation step is highlighted, underlined or processed in other ways, so as to facilitate students to intuitively know the object of the current operation step and improve the demonstration effect of the problem-solving demonstration video.

[0089] The problem solving demonstration method of the formula clever calculation of the embodiments of the present disclosure, by acquiring a calculation formula to be demonstrated, judging whether the current formula corresponding to the current operation step meets the preset clever calculation type when performing step-by-step operation on the calculation formula, and determining a target solving mode corresponding to the target clever calculation type that the current formula meets in the case that the current formula meets the preset clever calculation type, and then performing operation on the current formula based on the target solving mode, generating an explanation step corresponding to the current formula, and generating a problem solving demonstration video corresponding to the calculation formula based on the explanation step corresponding to each operation step after the step-by-step operation on the calculation formula is completed. By using the scheme of the present disclosure, whether the current formula corresponding to the current operation step meets the preset clever calculation type is judged before each operation, and the current formula that meets the preset clever calculation type is operated by using the solving mode corresponding to the target clever calculation type that it meets, so that the explanation process can cover all clever calculations involved in the operation, support the use of multiple clever calculations for explanation in the same problem, and be beneficial to improving the accuracy of formula calculation.

[0090] Further, in an optional embodiment of the present disclosure, in the case that the current formula does not meet the preset clever calculation type, the current formula is operated based on the preset step-by-step calculation rule to generate an explanation step corresponding to the current formula.

[0091] The preset step-by-step calculation rule is a general four-operation mixed operation rule used for step-by-step calculation. The general four-operation mixed operation rule is to calculate addition and subtraction first, and then calculate multiplication and division. If there is a parenthesis, calculate the expression in the parenthesis first. If the formula contains parentheses, square brackets and curly braces, calculate the content in the parentheses first. If the formula contains only "+" and "-", or only "×" and "÷", calculate them in order from left to right. Generally, clever calculation is based on step-by-step calculation, that is, only for step-by-step calculation can mathematical operation rules and number rules be used for clever calculation. Therefore, for the current formula that does not meet the preset clever calculation type, the general four-operation mixed operation rule can be used for operation, and the corresponding explanation step can be obtained.

[0092] For example, assuming that the current formula is "0.8×3.74+6.26×(1-20%)", according to the formula characteristics of the formula, it can be determined that the formula does not meet the preset clever calculation type, and the calculation is performed according to the general four-operation mixed operation rule. The generated explanation step can be "there is a parenthesis, calculate 1-20% in the parenthesis first".

[0093] In the embodiments of the present disclosure, whether the current formula meets the preset clever calculation type is judged at each operation step, and if it meets, the operation is performed according to the target clever calculation type that it meets, and if it does not meet, the operation is performed according to the step-by-step calculation rule. In this way, the clever calculation and the general step-by-step calculation are combined ingeniously, and the step-by-step explanation is more flexible.

[0094] In an optional implementation of the present disclosure, as shown in Figure 5 On the basis of the foregoing embodiment, step 102 can include the following sub-steps:

[0095] Step 201: Obtain the algorithmic symbol features and formula features of the current formula.

[0096] In the embodiment of the present disclosure, for the obtained current formula, the algorithmic symbol features and formula features corresponding to the current formula can be obtained.

[0097] The algorithmic symbol features can include but are not limited to the types of algorithmic symbols, the number of each type of algorithmic symbol, and the types of algorithmic symbols such as "+", "-", "x", and " / ". The formula features can include but are not limited to formula structure features and numerical features. The formula structure features can include but are not limited to continuous multiplication, continuous addition, mixed addition and subtraction, mixed addition and multiplication, and containing two identical numbers. The numerical features include but are not limited to who can make a whole, how many digits of an integer, and which factors are contained.

[0098] Step 202: Determine the algorithmic classification corresponding to the current formula based on the algorithmic symbol features.

[0099] The algorithmic classification can be pre-set according to actual needs, including but not limited to continuous addition, continuous multiplication, and mixed addition and multiplication.

[0100] In the embodiment of the present disclosure, after obtaining the algorithmic symbol features corresponding to the current formula, the current formula can be classified based on the obtained algorithmic symbol features, and the algorithmic classification corresponding to the current formula is determined.

[0101] For example, assuming that the algorithmic symbol features of the current formula obtained are two "x" and one "+", it can be determined that the algorithmic classification corresponding to the current formula is mixed addition and multiplication.

[0102] Step 203: Determine whether the current formula satisfies the preset algorithm type corresponding to the algorithmic classification based on the formula features.

[0103] The preset algorithm type corresponding to each algorithmic classification can be pre-set. For example, for the algorithmic classification of continuous addition, the preset algorithm type can include the commutative law of addition, the associative law of addition, and the use of the associative law of addition after splitting, etc. For the algorithmic classification of mixed addition and multiplication, the preset algorithm type can include the distributive law of multiplication, extraction of common factors, and the use of the associative law of multiplication after splitting, etc. For the algorithmic classification of continuous multiplication, the preset algorithm type can include extraction of common factors and the use of the associative law of multiplication after splitting, etc.

[0104] In the embodiments of the present disclosure, after determining the formula classification corresponding to the current formula, it can be determined whether the current formula satisfies the preset clever calculation type corresponding to the formula classification based on the obtained formula features.

[0105] For example, assuming that the current formula is "0.8*3.74+6.26*0.8", according to the formula symbol features of the formula, it can be determined that the formula classification corresponding to the formula is addition and multiplication mixed, and assuming that the preset clever calculation types corresponding to the addition and multiplication mixed formula classification include multiplication distribution law, extracting common factor and splitting and then using multiplication association law. According to the formula features of the current formula, "3.74" and "6.26" in the formula can be combined using multiplication distribution law, and therefore, it can be determined that the current formula satisfies the multiplication distribution law in the preset clever calculation types corresponding to the addition and multiplication mixed formula classification.

[0106] In an optional embodiment of the present disclosure, when determining whether the current formula satisfies the preset clever calculation type corresponding to the formula classification based on the formula features, a clever calculation type list corresponding to the formula classification can be obtained, each clever calculation type in the clever calculation type list is arranged in order of priority from high to low, then based on the formula features, the clever calculation type matching is started from the head of the clever calculation type list, and in the case that a clever calculation type is matched from the clever calculation type list, it is determined that the current formula satisfies the preset clever calculation type corresponding to the formula classification.

[0107] In the present disclosure, each formula classification corresponds to a clever calculation type list, the clever calculation type list includes all clever calculation types corresponding to the same formula classification, each clever calculation type is pre-set, and each clever calculation type is sorted according to the priority corresponding to each clever calculation type. That is, for all clever calculation types corresponding to the same formula classification, after sorting in order of priority from high to low, the clever calculation type list corresponding to the formula classification is obtained.

[0108] For example, the priority of each clever calculation type can be determined based on the number of times each clever calculation type is used in the questions under the formula classification. For example, a certain number of questions of the same formula classification can be collected in advance, and for each clever calculation type corresponding to the formula classification, the number of questions in which each clever calculation type can be used in these questions is counted. If the number of questions in which a clever calculation type is used in these questions is the most, it is determined that the priority of the clever calculation type is the highest, and similarly, if the number of questions in which a clever calculation type is used in these questions is the least, it is determined that the priority of the clever calculation type is the lowest. Thus, the priority of each clever calculation type is obtained. Then, each clever calculation type is sorted in order of priority from high to low to obtain the clever calculation type list corresponding to the formula classification.

[0109] In the embodiments of the present disclosure, according to the formula feature of the current formula, each clever calculation type in the clever calculation type list can be matched in turn, and the matching is performed in turn from the head of the clever calculation type list, and according to the principle of returning as matched, when the clever calculation type is matched for the first time from the clever calculation type list, it is determined that the current formula satisfies the preset clever calculation type corresponding to the calculation type, and the clever calculation type matched for the first time can be determined as the target clever calculation type satisfied by the current formula.

[0110] It can be understood that, according to different arrangement manners of the clever calculation types, the position corresponding to the head of the clever calculation type list is different, and the matching direction is also different. For example, assuming that each clever calculation type is arranged from top to bottom in the order of priority from high to low, the position corresponding to the head of the clever calculation type list is the top of the clever calculation type list, and the matching direction is from top to bottom; assuming that each clever calculation type is arranged from left to right in the order of priority from high to low, the position corresponding to the head of the clever calculation type list is the leftmost side of the clever calculation type list, and the matching direction is from left to right. However, it should be understood that, regardless of the arrangement manner of each clever calculation type in the clever calculation type list, the first matched is the clever calculation type with the highest priority in the clever calculation type list, and the matching is performed in turn in the order of priority from high to low. Therefore, the clever calculation type with high priority is matched preferentially, so that the finally matched clever calculation type is the optimal clever calculation type satisfied, which helps to improve the accuracy of clever calculation.

[0111] The problem solving demonstration method of formula clever calculation in the embodiments of the present disclosure, by obtaining the formula symbol feature and the formula feature of the current formula, and determining the calculation formula classification corresponding to the current formula based on the formula symbol feature, and then judging whether the current formula satisfies the preset clever calculation type corresponding to the calculation formula classification based on the formula feature, thereby realizing that the suitable calculation formula classification is matched based on the formula symbol in the formula first, and then the clever calculation type is matched from the preset clever calculation type corresponding to the matched calculation formula classification, which can avoid a large number of useless calculation formula matching and clever calculation type matching, and improve the matching efficiency.

[0112] In an optional embodiment of the present disclosure, when judging whether the current formula corresponding to the current operation step satisfies the preset clever calculation type, it can be judged first whether the current formula contains parentheses, in the case that the current formula contains parentheses, the current formula is de-bracketed based on the preset bracket processing rule to obtain a new formula, and then it is judged whether the new formula satisfies the preset clever calculation type, and in the case that the new formula does not satisfy the preset clever calculation type, it is judged whether the sub-formula in the parentheses of the current formula satisfies the preset clever calculation type.

[0113] The bracket processing rule can be preset, and the bracket processing rule can be a commonly used bracket removal rule. When a plus sign is in front of the bracket, the bracket is removed, and the calculation formula in the bracket remains unchanged. When a minus sign is in front of the bracket, the bracket is removed, and a plus sign in the bracket is changed to a minus sign, and a minus sign is changed to a plus sign. When a multiplication sign is in front of the bracket, the bracket is removed, and the calculation formula in the bracket remains unchanged.

[0114] In the embodiments of the present disclosure, when the current formula contains brackets, the brackets in the current formula can be removed based on the preset bracket processing rule to obtain a new formula, and then it is determined whether the new formula satisfies the preset clever calculation type. If not, it is further determined whether the calculation formula in the brackets of the current formula satisfies the preset clever calculation type. If not, the operation is performed according to the general four arithmetic operation rule. In this way, all clever calculation types in the formula can be recognized as much as possible, which helps to improve the operation accuracy.

[0115] In an optional embodiment of the present disclosure, as shown in FIG. 10, on the basis of the foregoing embodiment, step 103 can include the following sub-steps: Figure 6

[0116] Step 301: Based on the formula feature corresponding to the current formula, at least one solving method corresponding to the target clever calculation type is obtained.

[0117] The formula feature can include but is not limited to a formula structure feature and a number feature, and the formula structure feature can include but is not limited to continuous multiplication, continuous addition, addition-subtraction mixing, addition-multiplication mixing, and containing two same numbers. The number feature includes but is not limited to who can make a whole, how many digits of an integer, and which factors are contained.

[0118] In the embodiments of the present disclosure, for the current formula that satisfies the target clever calculation type, at least one solving method corresponding to the target clever calculation type can be obtained according to the formula feature of the current formula.

[0119] For example, assuming that the current formula is "8x125", and the target clever calculation type is to split and use the multiplication association law, according to the formula feature of the current formula such as multiplication of two numbers, 8=2x4, 125=5x25, etc., it can be determined that the corresponding solving method can have the following three kinds: (1) 125 is split into 5x25, that is, the formula "8x125" is split into "8x5x25", and then the association law is used for operation; (2) 8 is split into 2x4, that is, the formula "8x125" is split into "2x4x125", and then the association law is used for operation; (3) 8 is split into 2x4, and 125 is split into 5x25, that is, the formula "8x125" is split into "2x4x5x25", and then the association law is used for operation.

[0120] ​At step 302, weights corresponding to the at least one solving manner are determined based on a weight distribution rule corresponding to the target clever calculation type.

[0121] The weight distribution rule can be pre-set, for example, a weight corresponding to each solving manner can be distributed according to the operation complexity of combining the last two numbers, and the higher the operation complexity, the smaller the weight. It can be understood that different weight distribution rules can be set for different clever calculation types, and the present disclosure does not limit this.

[0122] In the embodiment of the present disclosure, for each solving manner obtained, a weight corresponding to each solving manner can be determined according to the corresponding weight distribution rule.

[0123] Continuing the above example, for the current formula "8*125", the determined solving manners are as follows: (1) 125 is split into 5*25, that is, the formula "8*125" is split into "8*5*25", and then the operation is performed by using the associative law; (2) 8 is split into 2*4, that is, the formula "8*125" is split into "2*4*125", and then the operation is performed by using the associative law; (3) 8 is split into 2*4, and 125 is split into 5*25, that is, the formula "8*125" is split into "2*4*5*25", and then the operation is performed by using the associative law. Assuming that the corresponding weight distribution rule is that the higher the operation complexity of combining the last two numbers, the smaller the weight, then for the above first solving manner, it can be combined as "(8*25)*5", for the above second solving manner, it can be combined as "(2*125)*4", and for the above third solving manner, it can be combined as "(2*5)*(4*25)", according to the calculation result size of the formula in the parentheses after combining each solving manner, it can be determined that the operation complexity of the combination of "(2*5)*(4*25)" is the lowest, and the maximum weight can be assigned to it, and the operation complexity of the combination of "(2*125)*4" is the highest, and the minimum weight can be assigned to it, and the solving manner of "(8*25)*5" is assigned an intermediate weight, thereby obtaining the weight corresponding to each solving manner.

[0124] At step 303, the solving manner with the maximum weight among the at least one solving manner is determined as the target solving manner.

[0125] In the embodiment of the present disclosure, after obtaining the weight corresponding to each solving manner, the solving manner with the maximum weight can be selected from the at least one solving manner as the target solving manner corresponding to the target clever calculation type.

[0126] In an optional embodiment of the present disclosure, a weight can also be assigned to each combination in the solving mode, and when determining the weight of the solving mode, the weights of all the combinations in the solving mode are weighted and summed or averaged, etc., to obtain the weight corresponding to the solving mode.

[0127] The problem solving demonstration method of the formula clever calculation according to the embodiments of the present disclosure obtains at least one solving mode corresponding to the target clever calculation type based on the formula characteristics corresponding to the current formula, determines the weights corresponding to the at least one solving mode based on the weight distribution rule corresponding to the target clever calculation type, and then determines the solving mode with the largest weight in the at least one solving mode as the target solving mode, thereby realizing the selection of the optimal solving mode for the operation of the current formula and helping to improve the operation accuracy.

[0128] Figure 6 A flowchart of a problem solving demonstration method of formula clever calculation according to an embodiment of the present disclosure is shown in FIG. 1. Figure 7 As shown in FIG. 1, for the input calculation formula, formula analysis can be performed first to obtain the formula information corresponding to the input calculation formula, such as the algorithm symbol characteristics, the formula structure characteristics, the numerical characteristics, the position information of each symbol, etc. Then, the formula can be classified according to the algorithm symbol characteristics, and it is determined whether the formula is a clever calculation formula. If it is, the subsequent clever calculation type matching step is entered, otherwise, it is processed according to the general calculation. When the input calculation formula is a clever calculation formula, the clever calculation type is further matched, and it is determined whether the current formula matches the preset clever calculation type. If it matches, the corresponding target solving mode is determined, and the operation is performed based on the determined target solving mode to generate the explanation step, and the explanation step is stored in the explanation flow. If the clever calculation type is not matched, the operation is performed according to the general four arithmetic operation rules to generate the explanation step, and the explanation step is stored in the explanation flow. Then, the formula information is reset and it is determined whether it is the last step of operation. If it is not, the step of matching the clever calculation type is returned. If it has been calculated to the last step of operation, i.e., the result after resetting the formula information is a number and does not contain an operator symbol, the explanation demonstration video is generated based on the explanation flow. When generating the explanation demonstration video, the explanation text can be matched based on the explanation flow first, and then the explanation text is converted into explanation audio, and then the explanation demonstration video is generated based on the explanation text and the explanation audio. The explanation demonstration video can be played on the front end to realize the explanation demonstration of the input formula.

[0129] The present disclosure also provides a problem solving demonstration device for formula clever calculation. Figure 7 A schematic block diagram of a problem solving demonstration device for formula clever calculation according to an exemplary embodiment of the present disclosure is shown in FIG. 2. Figure 8As shown, the problem-solving demonstration device 60 for the formula includes: an acquisition module 610, a judgment module 620, a determination module 630, a calculation module 640, and a generation module 650.

[0130] Among them, the acquisition module 610 is used to acquire the calculation formula to be demonstrated;

[0131] The judgment module 620 is used to determine whether the current formula corresponding to the current calculation step satisfies the preset clever calculation type when performing step-by-step calculation on the calculation formula;

[0132] The determining module 630 is used to determine the target solution method corresponding to the target clever calculation type satisfied by the current formula when the current formula satisfies the preset clever calculation type;

[0133] The calculation module 640 is used to perform calculations on the current formula based on the target solution method and generate the explanation steps corresponding to the current formula;

[0134] The generation module 650 is used to generate a problem-solving demonstration video corresponding to the calculation formula after the step-by-step calculation of the calculation formula is completed, based on the explanation steps corresponding to each step of the calculation.

[0135] Optionally, the determination module 620 includes:

[0136] The acquisition unit is used to acquire the arithmetic symbol features and formula features of the current formula;

[0137] The determining unit is used to determine the formula category corresponding to the current formula based on the formula symbol features;

[0138] The judgment unit is used to determine, based on the formula characteristics, whether the current formula satisfies the preset clever calculation type corresponding to the formula classification.

[0139] Optionally, the determining unit is further configured to:

[0140] Obtain a list of clever calculation types corresponding to the formula category, and arrange the clever calculation types in the list in descending order of priority;

[0141] Based on the formula characteristics, the matching of clever calculation types begins from the head of the list of clever calculation types;

[0142] If a clever calculation type is matched from the list of clever calculation types, it is determined that the current formula satisfies the preset clever calculation type corresponding to the formula category.

[0143] Optionally, the determination module 620 is further configured to:

[0144] In a case where the current formula contains brackets, the current formula is debracketed based on preset bracket processing rules to obtain a new formula.

[0145] It is judged whether the new formula satisfies a preset tricky calculation type.

[0146] In a case where the new formula does not satisfy the preset tricky calculation type, it is judged whether a sub-formula in the brackets in the current formula satisfies the preset tricky calculation type.

[0147] Optionally, the determination module 630 is further configured to:

[0148] Based on the formula feature corresponding to the current formula, at least one solving manner corresponding to the target tricky calculation type is obtained.

[0149] Based on a weight distribution rule corresponding to the target tricky calculation type, weights corresponding to the at least one solving manner are determined respectively.

[0150] The solving manner with the largest weight in the at least one solving manner is determined as a target solving manner.

[0151] Optionally, the formula tricky calculation problem solving demonstration apparatus 60 further includes:

[0152] The conventional operation module is configured to, in a case where the current formula does not satisfy the preset tricky calculation type, perform operation on the current formula based on a preset detached calculation rule to generate an explanation step corresponding to the current formula.

[0153] Optionally, the generation module 650 is further configured to:

[0154] Generate an explanation text corresponding to the explanation step according to the explanation step corresponding to each operation step.

[0155] Convert the explanation text into an explanation voice.

[0156] Generate a problem solving demonstration video corresponding to the calculation formula based on the explanation text and the explanation voice.

[0157] The formula tricky calculation problem solving demonstration apparatus provided in the embodiments of the present disclosure can perform any formula tricky calculation problem solving demonstration method applicable to an electronic device provided in the embodiments of the present disclosure, and has the function modules and beneficial effects corresponding to the execution method. The contents not described in detail in the device embodiments of the present disclosure can be referred to the description in any method embodiment of the present disclosure.

[0158] The exemplary embodiments of the present disclosure further provide an electronic device, comprising: at least one processor; and a memory connected with the at least one processor in communication. The memory stores a computer program capable of being executed by the at least one processor, and the computer program, when executed by the at least one processor, is configured to cause the electronic device to perform the problem solving demonstration method of formulaic calculation according to the embodiments of the present disclosure.

[0159] The exemplary embodiments of the present disclosure further provide a non-transitory computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is configured to cause the computer to perform the problem solving demonstration method of formulaic calculation according to the embodiments of the present disclosure.

[0160] The exemplary embodiments of the present disclosure further provide a computer program product comprising a computer program, wherein the computer program, when executed by a processor of a computer, is configured to cause the computer to perform the method according to the embodiments of the present disclosure.

[0161] Reference Figure 8 A block diagram of the structure of an electronic device 1100 that can be a server or a client of the present disclosure, which is an example of a hardware device that can be applied to aspects of the present disclosure, will now be described. The electronic device is intended to represent a wide variety of digital electronic computer devices, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent a wide variety of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present disclosure described and / or claimed in this document.

[0162] As ​ shown, the electronic device 1100 includes a computing unit 1101 that can perform various appropriate actions and processes in accordance with a computer program stored in a read-only memory (ROM) 1102 or a computer program loaded into a random access memory (RAM) 1103 from a storage unit 1108. In the RAM 1103, various programs and data required for the operation of the device 1100 can also be stored. The computing unit 1101, the ROM 1102, and the RAM 1103 are connected to each other through a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0163] The various components in the electronic device 1100 are connected to the I / O interface 1105, including an input unit 1106, an output unit 1107, a storage unit 1108, and a communication unit 1109. The input unit 1106 can be any type of device capable of inputting information to the electronic device 1100, and can receive inputted digital or character information, and generate key signal inputs related to user settings and / or function controls of the electronic device. The output unit 1107 can be any type of device capable of presenting information, and can include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 1108 can include, but is not limited to, a magnetic disk, an optical disk. The communication unit 1109 allows the electronic device 1100 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and can include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0164] The computing unit 1101 can be various general and / or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 1101 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 1101 performs various methods and processes described above. For example, in some embodiments, the problem-solving demonstration method of formulaic cleverness can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 1108. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 1100 via the ROM 1102 and / or the communication unit 1109. In some embodiments, the computing unit 1101 can be configured to perform the problem-solving demonstration method of formulaic cleverness by any other appropriate means, such as by means of firmware.

[0165] Program code for carrying out the methods of the present disclosure can be written in any combination of one or more programming languages. The program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, produces the functions / operations specified in the flowcharts and / or the block diagrams. The program code can be executed entirely on a machine, partially on a machine, partially on a machine as part of a separate software package, and partially on a remote machine or server.

[0166] In the context of this disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0167] As used in this disclosure, the terms "machine-readable medium" and "computer- readable medium" refer to any computer program product, apparatus and / or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and / or data to a programmable processor.

[0168] To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.

[0169] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.

[0170] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.

Claims

1. A method of demonstrating problem solving by formula manipulation, wherein, The method comprises: acquiring a calculation formula to be demonstrated; determining whether a current formula corresponding to a current operation step meets a preset smart calculation type during step-by-step operation of the calculation formula; in a case where the current formula meets the preset smart calculation type, acquiring at least one solving mode corresponding to a target smart calculation type based on a formula feature corresponding to the current formula; determining weights respectively corresponding to the at least one solving mode based on a weight distribution rule corresponding to the target smart calculation type; determining a target solving mode as a solving mode with the largest weight in the at least one solving mode; operating the current formula based on the target solving mode to generate an explanation step corresponding to the current formula; generating a problem-solving demonstration video corresponding to the calculation formula based on the explanation step corresponding to each operation step after the step-by-step operation of the calculation formula is completed.

2. The method of claim 1, wherein, The determination of whether the current formula corresponding to the current operation step meets the preset smart calculation type comprises: acquiring an equation symbol feature and a formula feature of the current formula; determining an equation classification corresponding to the current formula based on the equation symbol feature; determining whether the current formula meets a preset smart calculation type corresponding to the equation classification based on the formula feature.

3. The method of claim 2, wherein, The determination of whether the current formula meets the preset smart calculation type based on the formula feature comprises: acquiring a smart calculation type list corresponding to the equation classification, each smart calculation type in the smart calculation type list being arranged in order from high to low priority; performing smart calculation type matching from the head of the smart calculation type list based on the formula feature; in a case where a smart calculation type is matched from the smart calculation type list, determining that the current formula meets the preset smart calculation type corresponding to the equation classification.

4. The method of claim 1, wherein, The determination of whether the current formula meets the preset smart calculation type comprises: in a case where the current formula contains parentheses, performing de-parenthesis processing on the current formula based on a preset parenthesis processing rule to obtain a new formula; determining whether the new formula meets the preset smart calculation type; in a case where the new formula does not meet the preset smart calculation type, determining whether a sub-formula in the parentheses in the current formula meets the preset smart calculation type.

5. The method of claim 1-4, wherein, The method further comprises: in a case where the current formula does not meet the preset smart calculation type, performing operation on the current formula based on a preset detachment calculation rule to generate an explanation step corresponding to the current formula.

6. The method of claim 1-4, wherein, The generation of a problem-solving demonstration video corresponding to the calculation formula based on the explanation step corresponding to each operation step comprises: generating an explanation text corresponding to the explanation step according to the explanation step corresponding to each operation step; converting the explanation text into an explanation voice; generating a problem-solving demonstration video corresponding to the calculation formula based on the explanation text and the explanation voice.

7. A device for demonstrating the solution of a problem by formula manipulation, wherein, The device comprises: an acquisition module configured to acquire a calculation formula to be demonstrated; a determination module configured to determine whether a current formula corresponding to a current operation step meets a preset smart calculation type during step-by-step operation of the calculation formula; The determining module is configured to, when the current formula satisfies the preset smart calculation type, acquire at least one solving mode corresponding to a target smart calculation type based on a formula feature corresponding to the current formula; determine weights respectively corresponding to the at least one solving mode based on a weight distribution rule corresponding to the target smart calculation type; and determine a solving mode with the largest weight in the at least one solving mode as a target solving mode. The operation module is configured to operate the current formula based on the target solving mode, and generate an explanation step corresponding to the current formula. The generating module is configured to, after the step-by-step operation on the calculation formula is completed, generate a problem solving demonstration video corresponding to the calculation formula based on the explanation step corresponding to each operation step.

8. An electronic device comprising: a processor; and a memory storing a program, wherein the program includes instructions that, when executed by the processor, cause the processor to perform the problem solving demonstration method for formula smart calculation according to any one of claims 1-6.

9. A non-transitory computer readable storage medium having stored thereon computer instructions, wherein, The computer instructions are used to cause the computer to perform the problem solving demonstration method for formula smart calculation according to any one of claims 1-6.

Citation Information

Patent Citations

  • Problem solving demonstration method and device

    CN111369403A

  • Explanation video generation method and device, and explanation video display method and device

    CN112447073A