Mathematical expression processing device, method and program
The mathematical formula processing device simplifies the input and editing of complex formulas by grouping and displaying elements based on their hierarchy, maintaining clarity during input and editing processes.
Patent Information
- Application Number
- JP2023110630
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-07-05
- Publication Date
- 2025-01-20
AI Technical Summary
Conventional electronic computers struggle with supporting the input operation of mathematical formulas having a hierarchical structure, making it difficult to easily confirm and input such formulas.
A mathematical formula processing device that selects groups based on the structure of the formula, updates group classifications, and displays formula elements using a display process, controlled by a control unit to facilitate easy input of hierarchical structures.
Enables easy input and editing of mathematical formulas with hierarchical structures by grouping and displaying formula elements based on their hierarchy levels, ensuring the structure remains understandable even for complex formulas.
Smart Images

Figure 2025008449000001_ABST
Abstract
Description
[Technical field]
[0001] An embodiment of the present invention relates to a computer algebraic processing device, a computer algebraic processing method, and a program. [Background technology]
[0002] A technique is known for a conventional electronic calculator that makes it easy to check the calculation order of an input formula by identifying and displaying multiple formula elements contained in the input formula according to the priority of calculations (see, for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2011-107772 A Summary of the Invention [Problem to be solved by the invention]
[0004] The electronic calculator disclosed in the prior art documents makes it possible to easily check the calculation order of a formula having a hierarchical structure that has already been input, but does not support the input operation of a formula having a hierarchical structure that is currently being input.
[0005] An object of the present invention is to provide a formula processing device, a formula processing method, and a program that enable easy input of a formula having a hierarchical structure. [Means for solving the problem]
[0006] The mathematical expression processing device of the present invention includes a control unit that executes, in response to a new mathematical expression element being added to a mathematical expression being input by a first user operation, an update process of classifying the new mathematical expression element into one of a plurality of groups based on a structure of the mathematical expression and updating a group to which input mathematical expression elements other than the new mathematical expression element belong, a display process of displaying the mathematical expression being input on a display unit, and a first process for displaying the mathematical expression being input based on the updated group classification. Effect of the Invention
[0007] According to the computer algebra processing device of the present invention, it becomes possible to easily input a mathematical expression having a hierarchical structure. [Brief description of the drawings]
[0008] [Figure 1] 1 is a front view showing the external configuration of a scientific calculator 10 according to an embodiment of a formula processing device, a formula processing method, and a program of the present invention. [Diagram 2] 2 is a diagram showing the relationship between a formula inputted in a scientific calculator 10 and the term hierarchical levels (term levels) and bracket hierarchical levels (bracket levels) set corresponding to each formula element of the formula. FIG. [Diagram 3] 3 is a diagram showing a state in which each formula element included in the formula of FIG. 2 inputted in the scientific calculator 10 is grouped and identifiable displayed based on the term level and parentheses level set for each formula element. FIG. [Figure 4] 1 is a block diagram showing the configuration of an electronic circuit of a scientific calculator 10. [Diagram 5] 4 is a flowchart showing a formula display process according to a calculator control program 14a of the scientific calculator 10. [Figure 6] 4 is a flowchart showing a hierarchical level setting process (S3) included in the formula display process of the scientific calculator 10. [Figure 7] 6 is a flowchart showing a gradation determination process (S4) included in the mathematical expression display process of the scientific calculator 10. [Figure 8A]13 is a diagram showing the contents (part 1) of the formula element list data (14d) generated in response to input of a formula according to the formula display process of the scientific calculator 10. FIG. [Figure 8B] 13 is a diagram showing the contents (part 2) of the formula element list data (14d) generated in response to input of a formula in accordance with the formula display process of the scientific calculator 10. FIG. [Figure 8C] 13 is a diagram showing the contents (part 3) of the formula element list data (14d) generated in response to input of a formula according to the formula display process of the scientific calculator 10. FIG. [Figure 9] 2A to 25 are diagrams showing display operations (transition states (1) to (25)) associated with input of a formula in accordance with the formula display process of the scientific calculator 10. [Figure 10] 3A to 3C are diagrams showing the movement state of a cursor Cr for an input mathematical expression in the scientific calculator 10. [Figure 11] FIG. 13 is a diagram showing the configuration of a computer algebra system according to another embodiment of the computer algebra processing device, computer algebra processing method, and computer program of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0010] (Configuration of the embodiment) FIG. 1 is a front view showing the external configuration of a scientific calculator 10 according to an embodiment of a formula processing device, a formula processing method, and a program of the present invention. The mathematical processing device is not limited to the scientific calculator 10, but also includes other electronic devices having a mathematical expression input function, a mathematical expression display function, and a calculation function.
[0011] Because of the need for portability, the scientific calculator 10 is small enough to be held and operated by a user in one hand, and a key input section 11 and a display section 12 are provided on the front of the main body of the scientific calculator 10. The key input section 11 is provided with a group of numeric value / operation symbol keys 111 for inputting numeric values and formulas and for instructing the execution of calculations, a group of function keys 112 for inputting various functions and activating memory functions, a group of mode setting keys 113 for displaying menu screens of various operation modes and for instructing the setting of an operation mode, and cursor keys 114 for moving a cursor displayed on the display section 12 and selecting data items.
[0012] The numeric value / operation symbol key group 111 includes numeric values [0] to [9], four arithmetic symbols [+], [-], [×], and [÷], execute keys [Ans] and [=], and an [AC] (clear) key. The function key group 112 includes [x -1 The keyboard is equipped with a [√□] (-1 power; reciprocal) key, a [√□] (root) key, a [□ / □] (fraction) key, a [sin] (sine) key, a [cos] (cosine) key, and a [tan] (tangent) key. The mode setting keys 113 include a [MODE] key, a [SHIFT] key 113S, an [ALPHA] key, an [ON] (power on) key, and the like. Cursor keys 114 (operation unit) include an [↑] (up) key, a [↓] (down) key, a [←] (left) key, and a [→] (right) key.
[0013] In addition, when a key of the numeric / operation symbol key group 111 or the function key group 112 is operated after the [SHIFT] key 113S is operated, it can function as the key written above that key, not as the key function written on the key top. For example, when the [AC] key is operated after the [SHIFT] key 113S is operated (hereinafter, referred to as [SHIFT] + [AC] key, etc.), it becomes the [OFF] (power off) key. The [SHIFT] + [OPTN] key becomes the [ID / communication] key, and the [SHIFT] + [RCL] key becomes the [STO] (memory registration) key. In addition, the [SHIFT] + cursor key becomes a cursor jump key for quickly moving the cursor Cr to the desired position.
[0014] The display unit 12 is made of a dot-matrix type liquid crystal display unit, and has a multi-tone display function that expresses colors in multiple gradations (gray scale in the embodiment) without providing a special drive circuit by driving the pixels (dots) to be displayed by voltage control in a time division manner. The number of gradations and their colors are not limited. The display unit 12 may also be a color liquid crystal display unit.
[0015] The scientific calculator 10 of the embodiment has at least the following functions (a) to (k). (a) A function of displaying on the display unit 12 in a predetermined display form the letters, numbers, and symbols (including arithmetic symbols and function symbols) entered in response to each key operation on the key input unit 11 each time a key operation is performed. (b) A function for inputting mathematical expressions in response to key operations on the key input unit 11. (c) A function for generating and managing list data of formula elements (14d: see Figs. 8A to 8C) for formula elements included in a formula being input, and updating the data whenever a new formula element is added. (d) A function for setting a hierarchical variable (hierarchical level: including a term hierarchical level and a parentheses hierarchical level) of a new formula element based on the hierarchical structure of a formula including the added formula element and the input order of the formula elements in response to the addition of a new formula element, and for grouping a plurality of formula elements according to the set hierarchical level. In the embodiment, the hierarchy of a formula element means a hierarchy corresponding to the priority of an operation, for example, where the formula element is grouped based on the "term", "addition / subtraction", "multiplication / division", "parentheses", "function", etc. to which the formula element belongs. Here, the term hierarchical level and parentheses hierarchical level of the formula element are basically set according to the priority of the operation, but a plurality of formula elements may be grouped by setting a hierarchical level that does not correspond to the priority of the operation. (e) When a specific formula element (in an embodiment, a multiplication or division symbol) is added, a function for determining whether or not it is necessary to change the term hierarchy level of the already-entered formula element based on the term hierarchy level set for the already-entered formula element, and changing the term hierarchy level determined to be necessary. (f) A function for determining the display form (including display tone and color) of each mathematical element depending on the hierarchical level of each mathematical element and whether or not the mathematical expression (mathematical element) is being input (edited). (g) A function for changing the correspondence between the hierarchical level of a formula element and the display form according to the number of possible changes in the display form (number of gradations and numbers of colors). (h) A function for updating the display format of the entire formula, including formula elements that have already been entered (displayed), in response to the addition of a formula element. (i) The ability to edit formula elements of an entered formula. (j) In editing a formula, a function for moving the position (designated position) of the cursor Cr, which designates the position of the formula element to be edited, in units according to the hierarchical level set for the formula element. (k) A function that selectively switches the unit of movement of the cursor Cr (specified position) in a formula between one character (number, symbol) that is an element of the formula, or a group unit grouped according to a hierarchical level, depending on user operation.
[0016] FIG. 2 is a diagram showing the relationship between a formula inputted in the scientific calculator 10 and the term hierarchical levels (term levels) and bracket hierarchical levels (bracket levels) set corresponding to each formula element of the formula. For example, when the formula "123+...+543" as shown in Fig. 2 is input, the bracket level is set as follows: bracket level "1" for each formula element with brackets "( )" corresponding to transition states (3) to (13) in the formula input, bracket level "2" for each formula element with function "sin" corresponding to transition states (19) to (23), and bracket level "0" for each other formula element. In addition, the term level is set as the same term level "1" for each formula element with multiplication "x" corresponding to transition states (6) to (10) and each formula element with multiplication "x" corresponding to transition states (14) and (15), and term level "0" for each other formula element. As a result, in the formula shown in FIG. 2, the formula elements belonging to bracket level “2” are grouped as formula elements with the first priority, the formula elements belonging to bracket level “1” and term level “1” are grouped as formula elements with the second priority, the formula elements belonging to bracket level “1” and term level “0” are grouped as formula elements with the third priority, the formula elements belonging to bracket level “0” and term level “1” are grouped as formula elements with the fourth priority, and the formula elements belonging to both bracket level and term level “0” are grouped as formula elements with the same fifth priority.
[0017] FIG. 3 is a diagram showing a state in which each formula element included in the formula of FIG. 2 inputted into the scientific calculator 10 is grouped and identifiably displayed based on the term level and parentheses level set for each formula element. FIG. 3A shows a case where each grouped formula element in the formula of FIG. 2 is identifiably displayed by changing the display gradation at the position where the bracket hierarchical level (bracket level) and the term hierarchical level (term level) switch. FIG. 3B shows a case where each grouped formula element of the formula in FIG. 2 is identifiably displayed by changing the display gradation at the position where the bracket hierarchical level (bracket level) is switched.
[0018] In either case shown in Figure 3 (A) or (B), by changing the display gradation of each of the grouped formula elements to make them identifiable, the user can easily input even long formulas without having difficulty understanding the structure of the formula, not only while inputting the formula but also when editing a formula that has already been input. In addition, the display gradation of each grouped formula element is changed, for example, with the formula element corresponding to the term being input (edited) at the maximum gradation, and the gradation is lowered in order according to the priority of the calculation determined based on the set hierarchical level, making it easier to input the formula structure. The change in the display form for distinguishing each of the grouped mathematical formula elements is not limited to a change in the display tone, but may be a change in character decoration such as shading or bolding, a change in display color, or a combination thereof.
[0019] FIG. 4 is a block diagram showing the configuration of the electronic circuit of the scientific calculator 10. As shown in FIG. The electronic circuit of the scientific calculator 10 includes a key input section 11, a display section 12, a control section (CPU: central processing unit) 13 which is a computer, a storage section 14, a recording medium reading section 15, and a short-range wireless communication section 16 such as Bluetooth (registered trademark). The control section 13 has at least one processor. The control unit 13 controls the operation of each part of the circuit in accordance with a calculator control program 14a stored in the memory unit 14, and executes various types of arithmetic processing in response to key input signals from the key input unit 11 and received signals received from the outside via the communication unit 16.
[0020] Calculator control program 14a includes programs for executing at least the above-mentioned functions (a) to (k). Calculator control program 14a may be stored in advance in memory unit 14, or may be read from an external recording medium M such as a memory card via recording medium reading unit 15 and stored in memory unit 14, or may be downloaded from a Web server (here, a program server) 20 on an external communications network N via communication unit 16 and stored in memory unit 14. Calculator control program 14a is designed so that it cannot be rewritten by the user by operating key input unit 11.
[0021] The memory unit 14 further has various data storage areas, such as a formula data storage area 14b, a hierarchical variable data storage area 14c, a formula element list data storage area 14d, a display data storage area 14e, a cursor position data storage area 14f and a working data storage area 14g. The mathematical formula data storage area 14b stores mathematical formula data inputted in response to the operation of the key input unit 11, data of the calculation results, and the like. In the hierarchy variable data memory area 14c, data of a term hierarchy variable (term hierarchy level) or a bracket hierarchy variable (bracket hierarchy level) to be set for an added formula element is stored each time a character (including numbers and symbols) that becomes a formula element is input (added) in response to the operation of the key input unit 11. Each time one character of a formula element is input (added), formula element list data is stored in the formula element list data storage area 14d, which is generated as a list by associating the input (added) formula element with the term hierarchical level (term level) and bracket hierarchical level (bracket level) stored in the hierarchical variable data storage area 14c set for the added formula element, and the display gradation determined for each formula element including the already input formula element (see FIGS. 8A to 8C). In one example described in the embodiment, which will be described in detail in the operation description below, when a predetermined condition is satisfied that a newly input (added) formula element is a multiplication symbol or a division symbol and the term hierarchical level (term level) stored in the hierarchical variable data storage area 14c is “0” (i.e., the formula element input before the new formula element does not belong to the same group as the new formula element which is a multiplication or division symbol), the term hierarchical level (term level) in the hierarchical variable data storage area 14c is changed to “1”, and the term hierarchical level (term level) “1” is set for the input (added) formula element, and the term hierarchical levels set for all numerical value (number) formula elements multiplied by the formula element of the operator (operation symbol) input before the input (added) formula element (multiplication symbol or division symbol) are updated by +1. The display data memory area 14e stores display data of a formula to be displayed on the display unit 12, which is generated based on each formula element, including the already-input formula elements stored in the formula element list data memory area 14d, each time a formula element of the formula is input (added) and its display gradation. The cursor position data storage area 14f stores data indicating the position (designated position) of the cursor Cr displayed in association with an input position or an edit position on the display screen of the display unit 12 (or an element of a mathematical expression when a mathematical expression is to be input). In the working data storage area 14g, various data generated or acquired in response to the control of the operation of each part by the control unit 13 is temporarily stored as necessary.
[0022] In the scientific calculator 10 (symbol processing device) configured in this manner, the control unit 13 controls the operation of each part of the circuit in accordance with the commands written in the calculator control program 14a, and the software and hardware operate in cooperation to realize various functions as described in the operation explanation below.
[0023] (Operation of the embodiment) Next, the operation of the scientific calculator 10 (symbol processing device) of the embodiment will be described. <Formula display process (first process)> FIG. 5 is a flowchart showing the formula display process according to the calculator control program 14a of the scientific calculator 10. For example, when the formula display process is started in response to the operation of the [ON] (power on) key or the [AC] (clear) key, the control unit 13 initializes both the term hierarchy variable (term hierarchy level) and the bracket hierarchy variable (bracket hierarchy level) stored in the hierarchy variable data memory area 14c to “0” (step S1). The control unit 13 waits for key input corresponding to a user operation (first user operation) for inputting a mathematical formula to the key input unit 11 (step S2), and each time one character (including numbers and symbols) is input (step S2 (Yes)), executes a hierarchical level setting process (step S3: see FIG. 6) for setting a hierarchical level of the mathematical formula element according to the input character, and a gradation determination process (step S4: see FIG. 7) for determining a display gradation of the mathematical formula element based on the set hierarchical level. In the hierarchical level setting process (step S3), the hierarchical level of the input formula element is set each time the hierarchical level setting process is performed, and accordingly, if a predetermined condition is satisfied, the hierarchical level set for the input formula element is reset (updated). In the gradation determination process (step S4), the display gradation of each mathematical formula element, including all mathematical formula elements that have already been input, is determined anew each time the gradation determination process is performed. The control unit 13 causes the display unit 12 to display the mathematical formula elements in accordance with the determined display gradation, and causes the display unit 12 to sequentially display the mathematical formula elements that make up the input mathematical formula (step S5). By repeating the processing of steps S2 to S5, a user-specified formula containing multiple formula elements is input and displayed, and when the [=] (execute) key is operated to indicate completion of input (third user operation) (step S6 (Yes)), the control unit 13 executes a calculation process according to the displayed formula and displays the calculation result on the display unit 12 (step S7).
[0024] FIG. 6 is a flow chart showing the hierarchical level setting process (S3) included in the formula display process of the scientific calculator 10. FIG. 7 is a flowchart showing the gradation determination process (S4) included in the formula display process of the scientific calculator 10. FIG. 8A is a diagram showing the contents (part 1) of the mathematical formula element list data (14d) generated in response to input of a mathematical formula according to the mathematical formula display process of the scientific calculator 10. As shown in FIG. FIG. 8B is a diagram showing the contents (part 2) of the formula element list data (14d) generated in response to input of a formula in accordance with the formula display process of the scientific calculator 10. As shown in FIG. FIG. 8C is a diagram showing the contents (part 3) of the formula element list data (14d) generated in association with input of a formula in accordance with the formula display process of the scientific calculator 10. As shown in FIG. FIG. 9 is a diagram showing the display operation (transition states (1) to (25)) accompanying the input of a formula in accordance with the formula display process of the scientific calculator 10. As shown in FIG. Here, as an example of an embodiment, it is assumed that the user inputs the formula "123+...+543" as shown in Fig. 9. It is also assumed that the number of gradations that can be displayed on the display unit 12 is 5 (gradation level 4 [black]>gradation level 3 [dark gray]>gradation level 2 [gray]>gradation level 1 [light gray]>gradation level 0 [white]). In addition, in the cells of the formula element list data (14d) shown in Figures 8A to 8C, the numerical values in the cells of the "term hierarchy variable" and "bracket hierarchy variable" on the left side indicate the term hierarchy level (term level) and bracket hierarchy level (bracket level) stored in the hierarchy variable data storage area 14c.
[0025] <Hierarchical level setting process (Figure 6)> The control unit 13 determines, for an input character (mathematical formula element) inputted one character in response to a user operation, whether the input order is the first input or the input order is the second or subsequent input and the type of the input character is the same as the previously input character (step S31), if not (step S31 (No)), whether the input character is a parentheses symbol or a parentheses symbol with a function (step S32), if not (step S32 (No)), whether the input character is a multiplication symbol (multiplication operator) or a division symbol (division operator) (step S33), if not (step S33 (No)), or whether the input character is an addition symbol (addition operator) or a subtraction symbol (subtraction operator) (step S34).
[0026] If it is determined that the input character (mathematical formula element) is the first input or the type of the input character is the same as the previously input character (step S31 (Yes)), or if it is determined that the input character (mathematical formula element) is not a parentheses symbol or a parentheses symbol with a function, a multiplication symbol or a division symbol, or an addition symbol or a subtraction symbol (steps S32 to S34 (No)), the control unit 13 sets the term hierarchical level (term level) and the parentheses hierarchical level (parentheses level) stored in the hierarchical variable data storage area 14c in association with the input character (mathematical formula element), and stores them in the mathematical formula element list data (14d) (step S35).
[0027] If the input character (mathematical formula element) is determined to be a parentheses symbol or a parentheses symbol with a function (step S32 (Yes)), the control unit 13 changes the parentheses hierarchical level (parentheses level) stored in the hierarchical variable data memory area 14c by +n if it is an open parentheses symbol, or by -n if it is a closing parentheses symbol (n=1 for normal parentheses symbols, and n=2 or more for parentheses with a function) (step S39). If the input character is an open parenthesis symbol (step S310 (No)), the control unit 13 sets a term hierarchical level (term level) and a bracket hierarchical level (bracket level) stored in the hierarchical variable data storage area 14c in association with the input character (mathematical formula element) (open parenthesis symbol), and stores them in the mathematical formula element list data (14d) (step S35). On the other hand, if it is a closing parenthesis symbol (step S310 (Yes)), the term hierarchical level (term level) stored in the hierarchical variable data storage area 14c and the parentheses hierarchical level (parentheses level) before -n (subtraction) in step S39 are set in correspondence with the input character (mathematical formula element) (closing parenthesis symbol) and stored in the mathematical formula element list data (14d) (step S311).
[0028] If the input character (mathematical element) is determined to be a multiplication symbol or a division symbol (step S33 (Yes)), the control unit 13 changes the term hierarchical level (term level) stored in the hierarchical variable data storage area 14c from "0" to "1". Then, the control unit 13 sets the term hierarchical level associated with all mathematical elements subsequent to the numerical value (number) multiplied by the operator (operation symbol) input before the input character (multiplication symbol or division symbol) by +1, and stores the term hierarchical level in the mathematical element list data (14d) (step S38).
[0029] If the input character is determined to be an addition symbol or a subtraction symbol (step S34 (Yes)), the control unit 13 determines whether the term hierarchical level stored in the hierarchical variable data storage area 14c is greater than "0" (greater than or equal to "1") (step S36). Here, if the term hierarchical level stored in the hierarchical variable data storage area 14c is “0” (step S36 (No)), the control unit 13 sets the term hierarchical level (term level) and the bracket hierarchical level (bracket level) stored in the hierarchical variable data storage area 14c in correspondence with the input character (mathematical formula element) (addition symbol or subtraction symbol), and stores them in the mathematical formula element list data (14d) (step S35). On the other hand, if the term hierarchical level stored in the hierarchical variable data storage area 14c is greater than "0" (greater than or equal to "1") (step S36 (Yes)), the control unit 13 changes the term hierarchical level stored in the hierarchical variable data storage area 14c by -1 (step S37), sets the term hierarchical level (term level) and bracket hierarchical level (bracket level) stored in the hierarchical variable data storage area 14c in correspondence with the input character (mathematical formula element) (addition symbol or subtraction symbol), and stores them in the mathematical formula element list data (14d) (step S35).
[0030] That is, in the hierarchical level setting process (steps S31 to S311), the hierarchical level of the group to which the new formula element should belong is set by assuming that the formula element to be input after the new formula element is the minimum formula element required to complete input of at least one group of formula elements of the formula being input (one numerical value after an operator, a closing parenthesis ")", "=", etc.). Also, on the condition that the new formula element is different from the assumption and has been input as a formula element (multiplication / division symbol) that should belong to the same group as the previously input formula element as an operand, the hierarchical level set for the input formula element is updated to the hierarchical level of the group to which the new formula element should belong.
[0031] Based on such a hierarchical level setting process (step S3), for example, when a formula "123+...+543" as shown in FIG. 9 is input, the term hierarchical level (term level) and bracket hierarchical level (bracket level) set in association with each formula element are stored in the formula element list data (14d) generated as shown in FIGS. 8A to 8C.
[0032] When the formula element
[0123] is input as the transition state (1) (step S31 (Yes)), as shown in FIG. 8A, the term hierarchical level “0” and the parentheses hierarchical level “0” which are initially set and stored in the hierarchical variable data storage area 14c are stored in the formula element list data (14d) in correspondence with each of the input formula elements
[0123] (step S35). When a formula element [+] (addition symbol) is input as the transition state (2) (step S34 (Yes)), the term hierarchical level “0” and the parentheses hierarchical level “0” stored in the hierarchical variable data storage area 14c are stored in the formula element list data (14d) in association with the input formula element [+] (step S36 (No) → S35). When a formula element [(] (open parenthesis symbol) is input as the transition state (3) (step S32 (Yes)), the parentheses hierarchical level stored in the hierarchical variable data storage area 14c is incremented by +n (n=1) to be changed to “1” (step S39), and a term hierarchical level “0” and a parentheses hierarchical level “1” are stored in the formula element list data (14d) in association with the input formula element [(] (step S35). When the formula element
[0456] is input as the transition state (4), steps S31 to S34 (No) are performed. When the formula element [+] (addition sign) is input as the transition state (5), step S34 (Yes) is performed. When the formula element [7] is input as the transition state (6), steps S31 to S34 (No) are performed. Both the formula elements
[0456] [+] [7] are associated with the term hierarchical level “0” and the parentheses hierarchical level “1” stored in the hierarchical variable data storage area 14c, and are stored in the formula element list data (14d) (step S35).
[0033] When a formula element [×] (multiplication symbol) is input as the transition state (7) (step S33 (Yes)), the term hierarchical level “0” stored in the hierarchical variable data storage area 14c is incremented by 1 to change it to “1”, and, as shown by symbol a in FIG. 8A, in the formula element list data (14d), a term hierarchical level “1” and a parentheses hierarchical level “1” are set and stored in association with all formula elements (here, [7][×]) following the numerical value (digit) multiplied by the operator (operation symbol) [+] input in the previous state (transition state (5)) (step S38).
[0034] When a formula element [8] is input as a transition state (8), steps S31 to S34 (No) are performed, and when a formula element [×] (multiplication symbol) is input as a transition state (9), step S38 is performed. When a formula element [9] is input as a transition state (10), steps S31 to S34 (No) are performed, and each of the formula elements [8][×][9] is associated with the term hierarchical level “1” and the parentheses hierarchical level “1” stored in the hierarchical variable data storage area 14c as shown in FIG. 8B, and stored in the formula element list data (14d) (step S35). When a formula element [-] (subtraction symbol) is input as the transition state (11) (step S34 (Yes)), the term hierarchical level “1” stored in the hierarchical variable data storage area 14c is incremented by 1 to “0” (step S36 (Yes) → S37), and as shown in FIG. 8B, a term hierarchical level “0” and a parentheses hierarchical level “1” are stored in the formula element list data (14d) in association with the input formula element [-] (step S35). When the formula element
[0987] is input as the transition state (12), by steps S31 to S34 (No), any formula element
[0987] is associated with the term hierarchical level “0” and the parentheses hierarchical level “1” stored in the hierarchical variable data storage area 14c as shown in FIG. 8B, and is stored in the formula element list data (14d) (step S35). When a formula element [)] (close parentheses symbol) is input as the transition state (13) (step S32 (Yes)), as shown in FIG. 8B, the parentheses hierarchical level stored in the hierarchical variable data storage area 14c is changed to “0” by subtracting n (n=1) (step S39), and the term hierarchical level “0” and the parentheses hierarchical level before the subtraction (change) of “1” are stored in the formula element list data (14d) in association with the input formula element [)] (step S310 (Yes) → S311).
[0035] When a formula element [×] (multiplication symbol) is input as the transition state (14) (step S33 (Yes)), as shown in FIG. 8B, the term hierarchical level “0” stored in the hierarchical variable data storage area 14c is incremented by 1 to be changed to “1”, and a term hierarchical level “1” and a parentheses hierarchical level “0” are set and stored in the formula element list data (14d) in association with the input formula element [×] (step S38).
[0036] When the formula elements
[0654] [-]
[0321] [-] are input as transition states (15) to (18), in accordance with the hierarchical level setting process similar to that described above, a term hierarchical level of “1” and a parentheses hierarchical level of “0” are set and stored in the formula element list data (14d) in association with the input formula element
[0654] , as shown in FIG. 8B, and a term hierarchical level of “0” and a parentheses hierarchical level of “0” are set and stored in association with the input formula elements [-]
[0321] [-].
[0037] When a formula element [sin(] (bracket symbol with a function) is input as the transition state (19) (step S32 (Yes)), as shown in FIG. 8B, the bracket hierarchical level stored in the hierarchical variable data storage area 14c is changed to “2” by adding n (n=2) (step S39), and a term hierarchical level “0” and a bracket hierarchical level “2” are stored in the formula element list data (14d) in association with the input formula element [sin(] (step S35). In addition, the function symbol [sin] and parentheses [(], which are elements of the formula, are actually keyed in separately, but for the sake of convenience, it is assumed here that they are keyed in a single operation.
[0038] When the formula element [7][+][1] is input as the transition states (20) to (22), according to the hierarchical level setting process similar to that described above, the term hierarchical level “0” and the parentheses hierarchical level “2”, both of which are stored in the hierarchical variable data storage area 14c, are set and stored in the formula element list data (14d) in association with the input formula element [7][+][1], as shown in FIG. 8C.
[0039] When a formula element [)] (close bracket symbol with a function) is input as the transition state (23) (step S32 (Yes)), as shown in FIG. 8C, the bracket hierarchical level stored in the hierarchical variable data storage area 14c is changed to “0” by subtracting n (n=2) (step S39), and the term hierarchical level “0” and the bracket hierarchical level before the subtraction (change) of “2” are stored in the formula element list data (14d) in association with the input formula element [)] (step S310 (Yes) → S311). When the mathematical element [+]
[0543] is input as the transition states (24) and (25), the mathematical element list data (14d) is set with a term hierarchical level “0” and a parentheses hierarchical level “0”, both of which are stored in the hierarchical variable data storage area 14c, in association with the input mathematical element [+]
[0543] , in accordance with the hierarchical level setting process described above.
[0040] In this way, by generating formula element list data (14d) corresponding to the input formula "123+...+543" according to the hierarchical level setting process, it is possible to set bracket level "1" for each formula element that is multiplied by parentheses "( )", bracket level "2" for each formula element that is multiplied by the function "sin", and bracket level "0" for each other formula element. In addition, it is possible to set term level "1" for each formula element that is multiplied by multiplication "x", and term level "0" for each other formula element. Therefore, in the formula "123+...+543" shown in FIG. 9, the formula elements belonging to bracket level "2" can be grouped as formula elements with the first priority, the formula elements belonging to bracket level "1" and term level "1" as formula elements with the second priority, the formula elements belonging to bracket level "1" and term level "0" as formula elements with the third priority, the formula elements belonging to bracket level "0" and term level "1" as formula elements with the fourth priority, and the formula elements belonging to both bracket level and term level "0" as formula elements with the same fifth priority.
[0041] <Gradation determination process (Figure 7)> In the gradation determination process (S4), each time the hierarchical level of the input formula element is set by the hierarchical level setting process (FIG. 6: S3) in response to the input of the formula element (input of one character: step S2), a display gradation is determined for each formula element, including elements that have already been input. When the process proceeds to the gradation determination process, the control unit 13 acquires the maximum bracket level Bmax in the formula being input, and determines the gradation width W, which is the gradation range of the bracket level, as the gradation width W (=3) obtained by subtracting one gradation corresponding to [black] and one gradation corresponding to [white] from the maximum gradation (here, 5 gradations) of the display unit 12 (step S41). The control unit 13 repeatedly executes the processes of steps S42 to S47 below for each of the formula elements, including input formula elements stored in the formula element list data (14d), each time the hierarchical level of the input formula element is set by the hierarchical level setting process (S3) in response to the input of the formula element (input of one character).
[0042] The control unit 13 targets each formula element, including an already-input formula element, and if the element belongs to the item being input or the item being selected where the cursor Cr is located (step S42 (Yes)), sets the maximum gradation (gradation level 4 [black]) (step S43), determines the display gradation to be "4" (specific display form), and stores it in association with the corresponding formula element in the formula element list data (14d) shown in Figures 8A to 8C (step S47).
[0043] If the target formula element does not belong to the term being input or the term being selected (step S42 (No)), the control unit 13 determines whether the bracket level of the corresponding formula element stored in the formula element list data (14d) is higher than the bracket level associated with the formula element of the term being input (step S44). If the bracket level associated with the target formula element is equal to or lower than the bracket level associated with the formula element of the term being input (step S44 (No)), and if the bracket level of the term being input is "2" and the bracket level of the target formula element is not "1" or higher (step S44a (No)), the control unit 13 sets the lowest gradation (gradation level 1 [light gray]) (step S45), determines the display gradation to be "1", and stores it in association with the corresponding formula element in the formula element list data (14d) shown in Figures 8A to 8C (step S47).
[0044] If the target formula element does not belong to the term being input or the term being selected (step S42 (No)) and the bracket level associated with the target formula element is higher than the bracket level associated with the formula element of the term being input (step S44 (Yes)), or if the bracket level is lower than the bracket level associated with the formula element of the term being input but the bracket level of the term being input is "2" and the bracket level of the target formula element is "1" or higher (step S44 (No) -> S44a (Yes)), the control unit 13 compares the maximum bracket level Bmax in the formula being input with the bracket level of its own target formula element (step S46). If there is a level difference between the maximum bracket level Bmax in the formula being input and the bracket level of the target formula element, and if the gradation width W (here W=3) is two or more gradations, a display gradation according to the level difference within the gradation width W (1: light gray / 2: gray / 3: dark gray) is set (step S46), and stored in association with the corresponding formula element in the formula element list data (14d) (step S47).
[0045] For example, as shown in FIG. 8C, if the parentheses level Bmax (=2) in the formula being entered is the maximum, and the parentheses level of the target formula element is “1”, the level difference is “−1”, so a display gradation (gradation level 2 [gray]) that is one gradation lower than the display gradation (gradation level 3 [dark gray]) that should be set for the numerical element with the maximum parentheses level Bmax in the gradation width W (=3) is set. If the maximum bracket level Bmax in the formula being entered is equal to the bracket level of the target formula element, the display gradation (gradation level 3 [dark gray]) to be set for the numerical element with the maximum bracket level Bmax within the gradation width W (= 3) is set. Furthermore, when the maximum bracket level Bmax in the formula being input exceeds the gradation width W, it is not possible to fully distinguish and display the formula elements according to the bracket level by simply setting the display gradation. Therefore, for example, for formula elements belonging to brackets with functions that require a higher bracket level setting, a different display format may be set and displayed for distinction.
[0046] Based on such a gradation determination process (FIG. 7: S4), when the formula "123+...+543" is input as shown in FIG. 9, each time a formula element is input (one character is input), the display gradation determined in association with each formula element, including formula elements that have already been input, is stored in the formula element list data (14d) as shown in FIGS. 8A to 8C, and each formula element in the formula is displayed while being updated sequentially according to the determined display gradation (FIG. 5: step S5).
[0047] That is, in the state where the formula element
[0123] [+] is input as the transition state (1) (2), as shown in Fig. 8A, the maximum gradation (gradation level 4 [black]) is set in association with each of the input formula elements
[0123] [+] (step S42 (Yes) → S43). As shown in Fig. 9, the control unit 13 causes the display unit 12 to display the input formula (formula element) "123+" in the display gradation level 4 [black] (specific display form) (step S5). As a transition state (3), in a state in which the mathematical element [(] has been input, the minimum gradation (gradation level 1 [light gray]) is set in correspondence with each of the input mathematical elements
[0123] [+] (steps S44, S44a (No) → S45), and the maximum gradation (gradation level 4 [black]) is set in correspondence with the input mathematical element [(] (step S42 (Yes) → S43). As shown in FIG. 9, the control unit 13 causes the display unit 12 to display the input mathematical element "123+" in display gradation 1 [light gray] and the input mathematical element [(] in display gradation 4 [black] (step S5). Even in the state in which formula elements
[0456] [+] ...
[0987] [)] are input sequentially as transition states (4) to (13), similarly to the case of transition state (3), as shown in FIGS. 8A and 8B, the minimum gradation (gradation level 1 [light gray]) is set in correspondence with the formula elements that do not belong to the term being input among the input formula elements (steps S44, S44a (No) → S45), and the maximum gradation (gradation level 4 [black]) is set in correspondence with the formula elements that belong to the term being input (step S42 (Yes) → S43). As shown in FIG. 9, in each of the transition states (4) to (13), the control unit 13 sequentially displays the formula elements "456+", "7×8×9", "-987", and ")" belonging to the term being input in [black] at display gradation 4, and also sequentially displays the formula elements "123+(", "123+(456+", "123+(456+7×8×9", and "123+(456+7×8×9-987" that have been input prior to that term in [light gray] at display gradation 1 (step S5).
[0048] In the transition state (14), in which the formula element [×] has been input, as shown in FIG. 8B, the minimum gradation (gradation level 1 [light gray]) is set to each of the formula elements
[0123] [+], which are not the term being input but have a bracket level of “0”, among the input formula elements (steps S44, S44a (No)→S45), and gradation level 3 [dark gray] is set to each of the formula elements [(]
[0456] [+] ... [-]
[0987] [)], which are bracket level “1” higher than the bracket level “0” of the term being input (formula element [×]) (step S44 (Yes)→S46), and the maximum gradation (gradation level 4 [black]) is set to each of the input formula element [×] (step S42 (Yes)→S43). As shown in FIG. 9, the control unit 13 causes the display unit 12 to display the input formula element "123+" in [light gray] of display gradation 1, the input formula element "(456+7×8×9-987)" in [dark gray] of display gradation 3, and the input formula element [×] in [black] of display gradation 4 (step S5).
[0049] Even in the state in which the formula elements
[0654] [-]
[0321] [-] are input sequentially as transition states (15) to (18), as in the case of transition state (14), the minimum gradation (gradation level 1 [light gray]) is set to the formula elements that do not belong to the term being input and are at or below the parentheses level of the term being input, among the input formula elements (steps S44, S44a (No) → S45), gradation level 3 [dark gray] is set to the formula elements that are above the parentheses level of the term being input (step S44 (Yes) → S46), and the maximum gradation (gradation level 4 [black]) is set to the formula elements that belong to the term being input (step S42 (Yes) → S43), as shown in FIG. 8B. As shown in FIG. 9, in each of the transition states (15) to (18), the control unit 13 sequentially displays the formula elements “×654”, “-321”, and “-” belonging to the term being input in [black] of display gradation 4, and also sequentially displays the formula elements “123+” and “×654-321-” inputted before that term in [light gray] of display gradation 1, and the formula elements “(456+7×8×9-987)” enclosed in parentheses in [dark gray] of display gradation 3 (step S5).
[0050] In the transition state (19), in which the formula element [sin(] has been input, as shown in FIG. 8B, the minimum gradation (gradation level 1 [light gray]) is set to each of the input formula elements "123+" and "×654-321" (steps S44, S44a (No) → S45), the gradation level 2 [gray] is set to each of the input formula elements "(456+7×8×9-987)" (steps S44, S44a (Yes) → S46), and the maximum gradation (gradation level 4 [black]) is set to each of the formula elements "-sin(" belonging to the term being input (step S42 (Yes) → S43). As shown in FIG. 9, the control unit 13 causes the display unit 12 to display the already-entered formula elements "123+" and "×654-321" in display gradation 1 [light gray], the respective formula elements enclosed in parentheses "(456+7×8×9-987)" in display gradation 2 [gray], and the formula element "-sin(" belonging to the term being entered in display gradation 4 [black] (step S5).
[0051] In the transition state (20)(21), when the formula element [7][+] is input, as shown in FIG. 8C, among the input formula elements, the lowest gradation (gradation level 1 [light gray]) is set in correspondence with each of the formula elements [123+][×654-321-], which are not the term being input but have a bracket level of “0”, among the input formula elements (steps S44, S44a (No)→S45), and gradation level 2 [gray] is set in correspondence with each of the formula elements [(456+...-987)], which have a bracket level of “1”, when the term being input (formula element [7+]) is at bracket level “2” (steps S44 (No)→S44a (Yes)→S46). Furthermore, when the term being input (formula element [7][+]) is at bracket level "2", gradation level 3 [dark gray] is set in association with the formula element [sin(], which has bracket level "1" or higher (step S44 (No) → S44a (Yes) → S46), and the maximum gradation (gradation level 4 [black]) is set in association with the term being input (formula element [7][+]) (step S42 (Yes) → S43). As shown in FIG. 9, the control unit 13 causes the display unit 12 to display the input formula elements "123+" and "×654-321-" in display gradation 1 [light gray], the input formula element enclosed in parentheses "(456+7×8×9-987)" in display gradation 2 [gray], the input formula element of the function "sin(" in display gradation 3 [dark gray], and the input formula element [7][+]] in display gradation 4 [black] (step S5).
[0052] As for the transition states (22) to (25), even in a state in which the formula elements [1][)][+]
[0543] are input sequentially, as in the case of the transition state (21), as shown in FIG. 8C, the minimum gradation (gradation level 1 [light gray]) is set to the formula elements that do not belong to the term being input and are at the bracket level or lower of the term being input, among the input formula elements (steps S44, S44a (No) → S45), gradation level 2 [gray] and gradation level 3 [dark gray] are set to the formula elements that are at the bracket level “1” or higher when the term being input is at the bracket level “2” (steps S44 (No) → S44a (Yes) → S46), and the maximum gradation (gradation level 4 [black]) is set to the formula elements that belong to the term being input (steps S42 (Yes) → S43). As shown in FIG. 9, in each of the transition states (22) to (25), the control unit 13 sequentially displays the formula elements “+1”, “)”, and “+543” belonging to the term being input in [black] (specific display form) of display gradation 4, and sequentially displays the formula elements “123+” and “×654-321-” input prior to that term in [light gray] of display gradation 1, the formula elements enclosed in parentheses “(456+7×8×9-987)” in [gray] of display gradation 2, and the formula elements “sin(7+1)” multiplied by the function in [dark gray] of display gradation 3 (step S5).
[0053] In this way, in the process of the user inputting a formula, the control unit 13 determines the display gradation according to the hierarchical level according to the gradation determination process (S4) in association with each formula element (one character input) grouped according to the hierarchical level setting process (S3), and displays each grouped formula element in a distinctive manner according to, for example, the priority order of the operation, allowing the user to easily input even long formulas without having difficulty understanding the structure of the formula.
[0054] <Cursor movement process on a formula (Figure 10: 1st process)> FIG. 10 is a diagram showing the movement state of the cursor Cr for a formula input in the scientific calculator 10. As shown in FIG. Assume that the formula “123+...-321” entered by a user in accordance with the hierarchical level setting process (FIG. 6: S3) and the gradation determination process (FIG. 7: S4) of the scientific calculator 10 is displayed on the display unit 12, for example, as shown in FIG. 10. FIG. 10(A) shows the state in which the user has finished inputting the formula "123+...-321", the cursor Cr has moved to a position away from the end of the formula, and the entire formula is displayed in the same display gradation (for example, gradation level 4 [black]).
[0055] In Fig. 10(A), when editing a formula, if the [SHIFT]+cursor key (here, [←] (left)) (cursor jump key) is operated, the control unit 13, as shown in Fig. 10(B) to Fig. 10(E), jumps and moves the designated position of the cursor Cr from the end side to the beginning side of the formula in group units (here, term units) of each formula element based on the hierarchical level (term level and parentheses level) of each formula element in the formula element list data (14d) generated corresponding to the formula, every time the cursor jump key ([SHIFT]+[←]) is operated (second user operation), sequentially. If the cursor jump key ([SHIFT]+[→] (right)) is operated, the designated position of the cursor Cr jumps and moves the designated position of the cursor Cr from the beginning side to the end side of the formula in group units (term units) of each formula element. When the cursor Cr is displayed at the position of an element in the formula, as described above, each formula element in the formula is displayed in a distinguishable manner for each group of formula elements in accordance with the display gradation associated with each formula element in the formula element list data (14d).
[0056] It goes without saying that when the cursor key 114 is operated alone without operating the [SHIFT] key 113S, the designated position of the cursor Cr is displayed by moving the formula elements in the formula one character at a time. The user can selectively switch the unit of movement of the cursor Cr in the formula by whether or not to operate the [SHIFT] key 113S before operating the cursor key 114.
[0057] This formula display process (Figs. 5 to 7) and cursor movement process (Fig. 10) not only allows the user to easily perform input operations without becoming confused about the structure of the formula, but also enables efficient editing operations when editing a formula by quickly moving the cursor Cr to the position of the target formula element.
[0058] (Summary of the embodiment) According to the scientific calculator 10 (formula processing device) of the embodiment, the control unit 13 sets a term hierarchical level indicating by a numerical value whether the formula element belongs to a multiplication or division term or other term and a bracket hierarchical level indicating by a numerical value whether the formula element belongs to a term multiplied by a bracket or a function, in association with the input formula element, and sequentially adds (updates) and stores the level in the formula element list data storage area 14d. Also, based on the set term hierarchical level and bracket hierarchical level, the control unit 13 determines a display tone (display form) to be associated with the formula element, including the input formula element, and sequentially adds (updates) and stores the level in the formula element list data (14d). Then, the control unit 13 sequentially adds (updates) and displays the input formula elements in a display form according to the determined display tone (display form) on the display unit 12. As a result, the mathematical elements displayed while being added in sequence to the display unit 12 are distinguishably displayed in different display forms for each mathematical element grouped (classified) based on the term hierarchical level and the parentheses hierarchical level.
[0059] In addition, the control unit 13 moves and displays the cursor Cr, which indicates the position of the formula element in the formula to be input (or edited) on the display unit 13, in the left direction (from the end of the formula to the beginning) or the right direction (from the beginning of the formula to the end) for each group of formula elements in response to the operation of the [SHIFT] key 113S + cursor key 114 ([←] or [→]) (cursor jump key). This allows efficient editing operations when editing a formula by quickly moving the cursor Cr to the position of a target formula element. The user can easily input even long formulas without becoming confused about the structure of the formula, not only while inputting the formula but also when editing the formula that has already been input.
[0060] Furthermore, according to the scientific calculator 10 (formula processing device) of the embodiment, the control unit 13 changes the display gradation of each of the grouped formula elements, for example, by setting the formula element corresponding to the term being input (edited) to the maximum gradation and gradually decreasing the gradation in accordance with the priority of the operation determined based on the set hierarchical level, thereby enabling the user to easily perform input operations while making the structure of the formula easier to understand.
[0061] Therefore, the scientific calculator 10 (symbol processing device) of the embodiment makes it possible to easily input a hierarchical formula.
[0062] (Other embodiments) FIG. 11 is a diagram showing the configuration of a formula processing system according to another embodiment of the formula processing device, formula processing method, and program of the present invention. In the above-described embodiment, the scientific calculator 10 or other electronic device (formula processing device) having a formula input function, a formula display function, and a calculation function stores the calculator control program (14a), the hierarchical variable data (14c), the formula element list data (14d), and the cursor position data (14f), so that the electronic device (10) alone is configured to realize various functions including the formula display function, the hierarchical level setting function, the gradation determination function, and the cursor movement function. Without being limited to this, for example, as shown in the formula processing system of Figure 11, the above-mentioned calculator control program (14a), hierarchical variable data (14c), formula element list data (14d) and cursor position data (14f) may be stored in a database DB of a formula processing server 30 (formula processing device) provided on a communications network N, and a communication terminal (user terminal) such as a tablet terminal 40 or a PC 50 connectable to the communications network N may be connected to the formula processing server 30 for communication, thereby realizing various functions similar to those of the above-mentioned embodiment. In this case, for example, the emulator screen Em of the scientific calculator 10 is displayed by the mathematical processing server 30 on the touch panel display unit 12 of the tablet terminal 40. The user can input, display, and calculate mathematical expressions by performing operations similar to those in the above-described embodiment.
[0063] The methods of each process by the scientific calculator 10 (formula processing device) described in each of the above embodiments, i.e., the formula display process shown in the flowchart of Fig. 5, the hierarchical level setting process shown in the flowchart of Fig. 6, the gradation determination process shown in the flowchart of Fig. 7, the cursor movement process shown in the display operation of Fig. 10, etc., can be stored in a medium of an external recording device such as a memory card (ROM card, RAM card, etc.), a magnetic disk (floppy (registered trademark) disk, hard disk, etc.), an optical disk (CD-ROM, DVD, etc.), or a semiconductor memory and distributed as a program that can be executed by a computer. Then, the control unit (CPU) of the formula processing device (electronic device) reads the program recorded in the medium of the external recording device into the storage device, and the operation is controlled by the read program, thereby realizing the various functions described in each of the embodiments and executing the same processes by the above-mentioned methods.
[0064] In addition, the program data for realizing each technique can be transmitted over a communication network (N) in the form of program code, and the program data can be imported into a mathematical processing device (electronic device) from a computer device (program server) connected to this communication network (N) and stored in a storage device, thereby realizing the various functions described above.
[0065] The present invention is not limited to the embodiments, and can be modified in various ways without departing from the gist of the invention. The embodiments may be combined as appropriate, and in that case, the combined effects can be obtained. Furthermore, the embodiments include various inventions, and various inventions can be extracted by combinations selected from the multiple components disclosed. For example, if the problem can be solved and the effect can be obtained even if some components are deleted from all the components shown in the embodiments, the configuration from which the components are deleted can be extracted as an invention. [Explanation of symbols]
[0066] 10...Scientific calculator (mathematical processing unit) 11 ...Key input section 12...Display section 13...Control unit (CPU) 14...Storage section 14a…Calculator control program 14b…Formula data storage area 14c... Hierarchical variable data storage area 14d…Formula element list data storage area 14e…Display data storage area 14f…Cursor position data storage area 20 ... Web server 30 ... Mathematical processing server (mathematical processing device) Em …Scientific calculator emulator screen
Claims
1. an update process in which, in response to a new formula element being added to the formula being input by a first user operation, the new formula element is classified into one of a plurality of groups based on a structure of the formula, and a group to which input formula elements other than the new formula element belong is updated; A display process for displaying the mathematical expression being input on a display unit; a first process for displaying the mathematical expression being input based on the updated group classification; A computer algebra processing device comprising a control unit that executes the above.
2. the first process is a process of identifying and displaying, on the display unit, a plurality of mathematical formula elements included in the mathematical formula being input based on the classification of the group in response to the addition of the new mathematical formula element; The computer algebraic processing device according to claim 1 .
3. the first process is a process of moving a designated position for designating a position for adding a new mathematical element of the mathematical formula displayed on the display unit or a position for editing the input mathematical element in response to a second user operation. The computer algebraic processing device according to claim 1 .
4. the updating process includes a process of changing a group to which a mathematical formula element that satisfies a first condition among the input mathematical formula elements belongs, The computer algebraic processing device according to claim 1 .
5. The control unit, in the update process, When classifying the new formula element into a plurality of groups based on the structure of the formula, classifying the new formula element into a group by assuming that a formula element inputted next to the new formula element is a minimum formula element necessary to complete inputting the formula; When updating a group to which an input formula element other than the new formula element belongs, updating the group to which the input formula element belongs, using as the first condition that a formula element different from the assumption when the input formula elements were classified into groups has been input as the new formula element. The computer algebra system according to claim 4 .
6. The control unit is in response to a third user operation indicating that input of the formula has been completed, a calculation process is executed in accordance with the formula that is being displayed on the display unit and that has been input, and a calculation result is displayed on the display unit; the first processing is processing that is sequentially executed in response to the first user operation before the third user operation is performed; The computer algebraic processing device according to claim 1 .
7. The classification of the groups is performed based on a hierarchical structure of the formula corresponding to the priority of operations and an input order of the plurality of formula elements in the formula being input. The computer algebraic processing device according to claim 1 .
8. The process of identifying and displaying the plurality of mathematical formula elements on the display unit based on the classification of the groups is a process of displaying the plurality of mathematical formula elements in a display form determined for each of the classified groups. The computer algebraic processing device according to claim 2 .
9. the process of moving the designated position for designating the position of the mathematical formula in response to a user operation is a process of moving the designated position in units of the classified groups. The computer algebraic processing device according to claim 3 .
10. The classification of the groups is performed based on a bracket level indicating a classification of the formula elements inputted in brackets corresponding to a hierarchical structure of the formula, and a term level indicating a classification of the formula elements inputted with an operator of multiplication / division or addition / subtraction corresponding to a term of the formula. The computer algebra system according to claim 1 or 7.
11. The control unit is executing a process of setting the bracket level and the term level for a new formula element as the new formula element is added to the formula being input; displaying, on the display unit, a plurality of formula elements included in the formula being inputted so as to be identifiable at a position where either the set bracket level or the set term level is switched; The computer algebraic processing device according to claim 10.
12. The control unit is execute a process of displaying, on the display unit in a specific display form, a formula element corresponding to a position of a formula element newly added to the formula and a formula element corresponding to a position of a formula element to be edited in the formula. The computer algebra system according to claim 1 or 3.
13. the first condition is that the new formula element is a multiplication / division operator and that the formula element input before the new formula element is in a group that includes addition / subtraction formula elements; The update process is a process of changing a group to which the previously input formula element belongs to a group to which the multiplication / division formula element belongs.
6. The computer-aided mathematical processing device according to claim 4 or 5.
14. The control unit is execute a process of displaying a cursor in correspondence with the mathematical expression element at the specified position; 10. The computer-implemented mathematical processing device according to claim 3 or 9.
15. The control unit of the mathematical processing device an update process in which, in response to a new formula element being added to the formula being input by a first user operation, the new formula element is classified into one of a plurality of groups based on a structure of the formula, and a group to which input formula elements other than the new formula element belong is updated; A display process for displaying the mathematical expression being input on a display unit; a first process for displaying the mathematical expression being input based on the updated group classification; A mathematical processing method for performing the above.
16. A control unit of the computer algebra processing device, an update process in which, in response to a new formula element being added to the formula being input by a first user operation, the new formula element is classified into one of a plurality of groups based on a structure of the formula, and a group to which input formula elements other than the new formula element belong is updated; A display process for displaying the mathematical expression being input on a display unit; a first process for displaying the mathematical expression being input based on the updated group classification; A program that functions to execute.
Citation Information
Patent Citations
Electronic computer and program therefor
JP2011107772A