Computer, input support method and program
The calculator's display unit automatically inserts parentheses to align user inputs with the correct calculation order, addressing discrepancies in calculation results by displaying the input history in the correct sequence, thus ensuring accurate recognition of the calculation process.
Patent Information
- Application Number
- JP2020210093
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-12-18
- Publication Date
- 2024-08-21
- Estimated Expiration
- 2040-12-18
AI Technical Summary
Calculators often perform calculations in a different order than users expect, leading to discrepancies between user calculations and actual results, particularly when mixing addition, subtraction, multiplication, and division operations, which can mislead users.
A calculator with a display unit that shows input history and automatically inserts parentheses based on the order of operation inputs, ensuring that calculations are displayed in the correct order by enclosing input contents in parentheses when multiplication or division is entered after addition or subtraction, and displaying these parentheses blinking to highlight the correct calculation sequence.
This solution allows users to accurately recognize the correct calculation order by matching the displayed formula with the actual calculator results, reducing misunderstandings and ensuring the displayed calculation history aligns with the calculator's computation.
Smart Images

Figure 0007537266000005 
Figure 0007537266000001 
Figure 0007537266000010
Abstract
Description
[Technical field]
[0001] The present invention relates to a computer , input assistance method and Regarding the program. [Background technology]
[0002] Some desktop calculators and other calculators have a function to display the history of numbers and arithmetic symbols entered by the user, allowing the user to check whether the numbers and arithmetic symbols he or she has entered are correct while he or she is still entering them. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Japanese Patent Application Publication No. 6-231081 Summary of the Invention [Problem to be solved by the invention]
[0004] In desktop calculators and the like, calculations are performed in the order entered by the user. However, the rules for mathematical expressions stipulate that multiplication and division are performed before addition and subtraction. For this reason, when a user enters a mixture of addition and subtraction and multiplication and division, the result of the calculation that the user checks without using a calculator based on the formulas displayed in the history may not match the result that is actually calculated by the calculator. Such a discrepancy in the calculation results may mislead the user.
[0005] The present invention relates to input Calculated on the computer from the formula displayed in the history Order A computer that users can correctly recognize , input assistance method and The purpose is to provide a program. [Means for solving the problem]
[0006] A calculator according to the present invention includes a display unit having an input history display area in which input numerical values and mathematical symbols are displayed based on the order in which they were input as an input history, and a control unit which, when an addition symbol or a subtraction symbol is input as the mathematical symbol following a predetermined input content and then a multiplication symbol or a division symbol is input as the first mathematical symbol following a predetermined first numerical value, displays the input history in the input history display area in a mathematical display form indicating that an addition based on the addition symbol or a subtraction symbol is executed before a multiplication based on the multiplication symbol or a division based on the division symbol. and the control unit, as the mathematical display form, encloses the input content up to the first numerical value in common parentheses as the mathematical symbol based on the timing at which the multiplication symbol or the division symbol is input, as the mathematical display form, encloses the input content up to the first numerical value in common parentheses as the mathematical symbol and causes the parentheses to blink, or, as the mathematical display form, encloses the input content up to the first numerical value in common parentheses as the mathematical symbol, and when a second numerical value is input following the multiplication symbol or the division symbol input following the first numerical value, switches the calculation formula of the part enclosed in the common parentheses to a calculation result of the calculation formula and displays it. It is characterized by:
[0007] An input support method according to the present invention is an input support method executed by a calculator having a display unit having an input history display area in which input numerical values and mathematical symbols are displayed based on the order in which they were input as an input history, and includes a control process for, when an addition symbol or a subtraction symbol is input as the mathematical symbol following a predetermined input content and then a multiplication symbol or a division symbol is input as the first mathematical symbol following a predetermined first numerical value, displaying the input history in the input history display area so that the input history has a mathematical display form indicating that an addition based on the addition symbol or a subtraction based on the subtraction symbol is executed prior to a multiplication based on the multiplication symbol or a division based on the division symbol. fruit , The control process, as the mathematical display form, encloses the input content up to the first numerical value in common parentheses as the mathematical symbol based on the timing at which the multiplication symbol or the division symbol is input; as the mathematical display form, encloses the input content up to the first numerical value in common parentheses as the mathematical symbol and causes the parentheses to blink; or as the mathematical display form, encloses the input content up to the first numerical value in common parentheses as the mathematical symbol and causes the parentheses to blink. It is characterized by: The program according to the present invention functions as a control means for controlling a computer having a display unit with an input history display area in which input numerical values and mathematical symbols are displayed based on the order in which they were input as an input history, such that when an addition symbol or a subtraction symbol is input as the mathematical symbol following a predetermined input content and then a multiplication symbol or a division symbol is input as the first mathematical symbol following a predetermined first numerical value, the input history is displayed in the input history display area in a mathematical display form indicating that an addition based on the addition symbol or a subtraction based on the subtraction symbol is executed before a multiplication based on the multiplication symbol or a division based on the division symbol. and the control means, as the mathematical display form, encloses the input content up to the first numerical value in common parentheses as the mathematical symbol based on the timing at which the multiplication symbol or the division symbol is input, as the mathematical display form, encloses the input content up to the first numerical value in common parentheses as the mathematical symbol and causes the parentheses to blink, or, as the mathematical display form, encloses the input content up to the first numerical value in common parentheses as the mathematical symbol, and when a second numerical value is input following the multiplication symbol or the division symbol input following the first numerical value, switches the calculation formula for the part enclosed in the common parentheses to the calculation result of the calculation formula and displays it. Effect of the Invention
[0008] According to the present invention, input Calculated on the computer from the formula displayed in the history Order A computer that users can correctly recognize , input assistance method and Programs can be provided. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram illustrating an example of the configuration of a computer according to each embodiment. [Diagram 2] FIG. 2 is a front view of the appearance of the calculator according to the first embodiment. [Figure 3A] FIG. 3A is a flowchart showing the calculation process of the computer according to the first embodiment. [Figure 3B] FIG. 3B is a flowchart showing the calculation process of the computer according to the first embodiment. [Figure 4] FIG. 4 is a diagram showing a display on the display in the first embodiment. [Diagram 5] FIG. 5 is a diagram showing a modification of the first embodiment. [Figure 6] FIG. 6 is a front view of the appearance of a calculator according to the second embodiment. [Figure 7] FIG. 7 is a flowchart showing the calculation process of the computer according to the second embodiment. [Figure 8A] FIG. 8A is a flowchart showing parentheses processing. [Figure 8B] FIG. 8B is a flowchart showing parentheses processing. [Figure 9] FIG. 9 is a diagram showing a display on a display in the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. [First embodiment] A first embodiment will be described. FIG. 1 is a diagram showing an example of the configuration of a calculator 1 according to each embodiment. Calculator 1 has a processor 11, a memory 12, operation keys 13, and a display 14. Calculator 1 may be a desk calculator, a so-called pocket calculator. Calculator 1 may be various electronic devices having a function of calculating numerical values other than a pocket calculator. Calculator 1 may also have a configuration other than that shown in FIG. 1.
[0011] Processor 11 is a processor that controls various operations of calculator 1. Processor 11 may be a CPU, an ASIC, an FPGA, or the like. Processor 11 may also be composed of two or more processors. Processor 11 operates as a processing unit that automatically inserts parentheses in the input history display area of display 14 according to the input contents.
[0012] The memory 12 includes a RAM and a ROM. The RAM is a volatile memory. The RAM is used as a working memory for temporarily storing various data in the processor 11. The ROM is a non-volatile memory. The ROM stores various programs such as calculation programs for executing various calculation functions.
[0013] The operation keys 13 are various keys for accepting input from a user to the calculator 1. When an operation using the operation keys 13 is accepted, an input signal corresponding to the operation is transmitted to the processor 11.
[0014] The display 14 is a display unit such as a liquid crystal display, etc. The display 14 displays various information related to the calculator function.
[0015] 2 is a front view of the appearance of calculator 1 in the first embodiment. As shown in FIG. 2, operation keys 13 and a display 14 are provided on the front of the housing of calculator 1.
[0016] The operation keys 13 have numeric keys 131, arithmetic keys 132, and function keys 133. The numeric keys 131 are keys for inputting numeric values, and include, for example, keys corresponding to the numeric values from 0 to 9. The arithmetic keys 132 are keys for performing the four arithmetic operations, and include, for example, keys corresponding to the arithmetic symbols + (addition), - (subtraction), × (multiplication), and ÷ (division), and an = (execute operation) key. The function keys 133 are keys for performing various functions of the calculator 1, and include, for example, an all clear key (AC key), a clear key (C key), and a delete key (Del key).
[0017] In the embodiment, the display 14 has a current numeric value display area 141 and an input history display area 142. The current numeric value display area 141 is a display area for displaying a numeric value input by the user and a calculation result based on the input numeric value. The display of the current numeric value display area 141 is updated every time a pair of a numeric value and an arithmetic symbol is input by the user. Then, when the calculation execution key is pressed, the display of the current numeric value display area 141 is updated to display the final calculation result. The input history display area 142 is a display area for displaying a history of numeric values and arithmetic symbols input by the user. The display of the input history display area 142 is updated every time the operation key 13 is operated by the user. Furthermore, as will be described in detail later, parentheses are automatically inserted in the input history display area 142 as necessary.
[0018] Figures 3A and 3B are flowcharts showing the calculation process of the calculator 1 of the first embodiment. The process of Figures 3A and 3B is performed by the processor 11 executing a calculation program stored in the ROM of the memory 12. Also, in Figures 3A and 3B, the process when a function key is pressed is omitted.
[0019] 3A and 3B is started when, for example, the user presses the AC key. In step S1, the processor 11 turns off the parentheses required flag. The parentheses required flag is a flag for managing whether or not parentheses are automatically inserted in the input history display area 142. The process of step S1 is a process for resetting the parentheses required flag.
[0020] In step S2, processor 11 determines whether or not a numeric key has been pressed. If it is determined in step S2 that a numeric key has been pressed, the process proceeds to step S3. If it is determined in step S2 that a numeric key has not been pressed, the process proceeds to step S5.
[0021] In step S3, the processor 11 stores the numerical input information corresponding to the pressed numerical key in the memory 12, for example, in the RAM.
[0022] In step S4, the processor 11 updates the displays in the current numeric value display area 141 and the input history display area 142. After that, the process returns to step S2.
[0023] In step S5, processor 11 determines whether or not the addition key or the subtraction key has been pressed. If it is determined in step S5 that the addition key or the subtraction key has been pressed, the process proceeds to step S6. If it is determined in step S5 that the addition key or the subtraction key has not been pressed, the process proceeds to step S10.
[0024] In step S6, the processor 11 stores the input information of the operation symbol corresponding to the pressed operation key in the memory 12, for example, in the RAM.
[0025] In step S7, the processor 11 performs a calculation based on the input information of the numerical values and operation symbols up to the pressed operation key, and stores the calculation result in the memory 12, for example, in the RAM.
[0026] In step S8, the processor 11 turns on the parentheses required flag. Thus, in this embodiment, the parentheses required flag is turned on when the addition key or subtraction key is pressed.
[0027] In step S9, the processor 11 updates the displays in the current numeric value display area 141 and the input history display area 142. After that, the process returns to step S2.
[0028] In step S10, processor 11 determines whether or not the multiplication key or the division key has been pressed. If it is determined in step S10 that the multiplication key or the division key has been pressed, the process proceeds to step S11. If it is determined in step S10 that the multiplication key or the division key has not been pressed, the process proceeds to step S17.
[0029] In step S11, the processor 11 stores the input information of the operation symbol corresponding to the pressed operation key in the memory 12, for example, in the RAM.
[0030] In step S12, the processor 11 performs a calculation based on the input information of the numerical values and operation symbols up to the pressed operation key, and stores the calculation result in the memory 12, for example, in the RAM.
[0031] In step S13, the processor 11 determines whether the parentheses required flag is on. If it is determined in step S13 that the parentheses required flag is on, the process proceeds to step S14. If it is determined in step S13 that the parentheses required flag is not on, the process proceeds to step S16.
[0032] In step S14, the processor 11 updates the display of the current numeric value display area 141 and the input history display area 142. At this time, the processor 11 inserts parentheses in the input history display area 142. The parentheses are inserted at the beginning of the formula displayed as the input history and at the position just before the multiplication or division symbol represented by the operation key last pressed by the user. That is, in the embodiment, when the multiplication key or division key is pressed after the addition key or subtraction key is pressed, a group of operation parts up to the immediately preceding numeric value are enclosed in parentheses. Therefore, for example, when a numeric value and an operation symbol are input such as "2×2+3×", "(2×2+3)×" is displayed in the input history display area 142, and when a numeric value and an operation symbol are input such as "2×2+3×4-5÷", "((2×2+3)×4-5)÷" is displayed in the input history display area 142.
[0033] In step S15, the processor 11 turns off the parentheses required flag. Then, the process returns to step S2. Thus, in the embodiment, the parentheses required flag is turned off when parentheses are inserted.
[0034] In step S16, processor 11 updates the display in input history display area 142. In step S16, parentheses are not inserted. That is, in the embodiment, even after the addition key or subtraction key is pressed, if the multiplication key or division key is not pressed, parentheses are not inserted in the group of calculations up to the numerical value immediately before the addition key or subtraction key is pressed.
[0035] In step S17, the processor 11 determines whether or not the calculation execution key has been pressed. If it is determined in step S17 that the calculation execution key has been pressed, the process proceeds to step S18. If it is determined in step S17 that the calculation execution key has not been pressed, the process returns to step S2.
[0036] In step S18, the processor 11 performs a calculation based on the input information of the numerical values and operation symbols up to the operation execution key, and stores the calculation result in the memory 12, for example, in the RAM.
[0037] In step S19, the processor 11 updates the display in the input history display area 142. After that, the processing in Figures 3A and 3B ends.
[0038] 4 is a diagram showing the display of the display 14 in the first embodiment. The user operates the numeric keys and the calculation keys to input the formula he or she wants to calculate. Then, when the user has completed inputting the formula, he or she presses the calculation execution key. During this series of operations, the current value display area 141 and the input history display area 142 are updated.
[0039] For example, suppose the user presses the numeric key "2." At this time, as shown in FIG. 4A, the numeric value "2" input by the user is displayed in the current numeric value display area 141. Similarly, "2" is also displayed in the input history display area 142.
[0040] Suppose the user then presses the addition key. At this time, as shown in Fig. 4b, "+" is further displayed in input history display area 142. Meanwhile, the display in current value display area 141 remains unchanged at "2". This is because the value before the addition key was pressed was only "2". At this time, the processor 11 also turns on the parentheses required flag.
[0041] Next, suppose that the user presses the numeric key "3." At this time, as shown in c of Fig. 4, the numeric value "3" input by the user is displayed in the current numeric value display area 141. In addition, "3" is also displayed in the input history display area 142.
[0042] Suppose the user then presses the multiplication key. At this time, as shown in d of FIG. 4, "5", which is the calculation result up to the previous value, is displayed in the current value display area 141. Also, "x" is further displayed in the input history display area 142. Furthermore, since the parentheses required flag is on at the time the multiplication key is pressed, an open parentheses "(" is inserted at the beginning of "2+3", which is the group of calculation parts from the beginning of the formula to the value immediately before the multiplication symbol "x", and a closing parentheses ")" is inserted at the end in the input history display area 142. Here, the automatically inserted parentheses may be displayed in a manner that makes it easy for the user to recognize that they have been automatically inserted, such as by flashing the parentheses.
[0043] Next, suppose that the user presses the numeric key "4." At this time, as shown in e of Fig. 4, the numeric value "4" input by the user is displayed in the current numeric value display area 141. Moreover, "4" is further displayed in the input history display area 142.
[0044] Next, suppose the user presses the addition key. At this time, as shown by f in Fig. 4, "20", which is the calculation result up to the previous value, is displayed in the current value display area 141. Also, "+" is displayed in the input history display area 142. At this time, the parentheses required flag is turned on.
[0045] Next, suppose that the user presses the numeric key "5." At this time, as shown in g of Fig. 4, the numeric value "5" input by the user is displayed in the current numeric value display area 141. In addition, "5" is also displayed in the input history display area 142.
[0046] Finally, suppose the user presses the calculation execution key. At this time, as shown by h in Fig. 4, "25", which is the calculation result up to the previous value, is displayed in the current value display area 141. In addition, "=" is also displayed in the input history display area 142. At this point, the parentheses required flag is on, but at the start of the next calculation, the parentheses required flag will be turned off.
[0047] Here, Fig. 4 shows an example in which one parenthesis is inserted into a formula. In the embodiment, the number of parentheses to be inserted is not limited. Depending on the formula, multiple parentheses may be inserted. In this case, the parentheses to be inserted may be classified as small parentheses, curly parentheses, or square parentheses.
[0048] As described above, according to the first embodiment, when the next operation key pressed after the addition key or subtraction key is pressed is the multiplication key or division key, parentheses are inserted to indicate that the calculation of a group of operation parts from the beginning of the formula in the input history display area 142 to the value immediately before the multiplication symbol, i.e., the operation part including the value and operation symbol whose input was accepted before the multiplication key or division key was pressed, is performed before the subsequent multiplication based on the multiplication symbol or division based on the division symbol. This causes the calculation result on the formula displayed in the input history display area 142 to match the calculation result by the calculator. Therefore, misunderstandings that occur when the user compares the calculation result currently displayed in the numeric value display area 141 with the formula displayed in the input history display area 142 can be reduced. Furthermore, since the parentheses are inserted during input of the formula, the user can compare the calculation result currently displayed in the numeric value display area 141 with the calculation result on the formula displayed in the input history display area 142 even during input of the formula.
[0049] In the first embodiment, parentheses are inserted around a group of operations from the beginning of the formula to the numerical value immediately before the multiplication / division symbol. However, as long as the correct calculation order can be presented to the user, the method of presentation is not limited to inserting parentheses. For example, an underline may be displayed around a group of operations before the multiplication / division symbol in the formula displayed in the input history display area 142, or the group of operations may be displayed in a blinking manner.
[0050] In addition, the display area of the display 14 is limited. Therefore, if the formula to be input is long, it becomes difficult to display the entire formula in the input history display area 142. For this reason, for example, the input history display area 142 may be configured to allow scrolling. Furthermore, for the above-mentioned calculation portion, the calculation result in parentheses may be displayed to save on the display area. For example, instead of displaying e in the above-mentioned FIG. 4, "5", which is the calculation result of (2+3), may be displayed as shown in FIG. 5.
[0051] In the embodiment, parentheses are automatically inserted in response to the operation of a physical key. Recently, there have been calculation programs that use software keys to perform calculations similar to those performed by a calculator. The embodiment can also be applied to such calculation programs that are operated using software keys.
[0052] [Second embodiment] Next, a second embodiment will be described. Here, the description of the same parts of the second embodiment as those of the first embodiment will be omitted or simplified. For example, the configuration of the computer 1 can be applied to the configuration of FIG. 1, so the description will be omitted.
[0053] 6 is a front view of the appearance of calculator 1 in the second embodiment. As shown in FIG. 6, operation keys 13 and a display 14 are provided on the front of the housing of calculator 1. The operation keys 13 have numeric keys 131, arithmetic keys 132, and function keys 133. The numeric keys 131 and arithmetic keys 132 are the same as those in the first embodiment. Meanwhile, the function keys 133 in the second embodiment further include an arrow key 1331 and a parentheses key 1332. The arrow keys 1331 include a right key (→) and a left key (←). The right key is a key used to move a cursor displayed in the input history display area 142 in the second embodiment to the right. The left key is a key used to move a cursor displayed in the input history display area 142 in the second embodiment to the left. The parentheses keys 1332 include an open parentheses key and a close parentheses key. The open parentheses key is a key used to input an open parentheses. The close parentheses key is a key used to input a close parentheses. That is, in the second embodiment, parentheses can be actively input by the user.
[0054] 7 is a flowchart showing the calculation process of the calculator 1 of the second embodiment. The process of FIG.
[0055] In step S101, the processor 11 turns off the parentheses necessary flag. The process of step S101 is a process for resetting the parentheses necessary flag.
[0056] In step S102, processor 11 determines whether or not an arrow key has been pressed. If it is determined in step S101 that an arrow key has been pressed, the process proceeds to step S102. If it is determined in step S101 that an arrow key has not been pressed, the process proceeds to step S103.
[0057] In step S103, the processor 11 updates the display of each of the current numeric value display area 141 and the input history display area 142. The processor 11 moves the cursor displayed in the input history display area 142. The processor 11 also updates the display of the current numeric value display area 141 according to the position of the cursor. After that, the process returns to step S101.
[0058] In step S104, processor 11 determines whether or not the open parenthesis key has been pressed. If it is determined in step S104 that the open parenthesis key has been pressed, the process proceeds to step S105. If it is determined in step S104 that the open parenthesis key has not been pressed, the process proceeds to step S106.
[0059] In step S105, the processor 11 performs parentheses processing. After the parentheses processing, the process returns to step S101. The parentheses processing will be described in detail later.
[0060] In step S106, the processor 11 performs other processes. The other processes may be basically the same as those shown in Fig. 3. However, in steps S4, S9, S15, and S17, the process returns to step S101 instead of returning to step S2.
[0061] 8A and 8B are flowcharts showing parentheses processing. In step S201, processor 11 starts parentheses display in current numeric value display area 141. Parentheses display is a display for making the user recognize that the numeric value and arithmetic symbol currently displayed in numeric value display area 141 are within parentheses.
[0062] In step S202, the processor 11 stores input information corresponding to the open parenthesis key in the memory 12, for example, in the RAM.
[0063] In step S203, the processor 11 displays an open parenthesis in the input history display area 142.
[0064] In step S204, the processor 11 determines whether or not a numeric key has been pressed. If it is determined in step S204 that a numeric key has been pressed, the process proceeds to step S205. If it is determined in step S204 that a numeric key has not been pressed, the process proceeds to step S207.
[0065] In step S205, the processor 11 stores the numerical input information corresponding to the pressed numerical key in the memory 12, for example, in the RAM.
[0066] In step S206, the processor 11 updates the displays in the current numeric value display area 141 and the input history display area 142. After that, the process returns to step S204.
[0067] In step S207, processor 11 determines whether or not an arithmetic key has been pressed. The arithmetic keys here are the addition key, the subtraction key, the multiplication key, and the division key. If it is determined in step S207 that an arithmetic key has been pressed, the process proceeds to step S208. If it is determined in step S207 that an arithmetic key has not been pressed, the process proceeds to step S211.
[0068] In step S208, the processor 11 stores the input information of the operation symbol corresponding to the pressed operation key in the memory 12, for example, in the RAM.
[0069] In step S209, the processor 11 performs a calculation based on the input information of the numerical values and the operation symbols from the numerical value immediately before the pressed operation key to the opening parenthesis immediately before the pressed operation key. Then, the processor 11 stores the calculation result in the memory 12, for example, in the RAM.
[0070] In step S210, the processor 11 updates the displays in the current numeric value display area 141 and the input history display area 142. After that, the process returns to step S204.
[0071] In step S211, the processor 11 determines whether or not the open parenthesis key has been pressed. If it is determined in step S211 that the open parenthesis key has been pressed, the process proceeds to step S212. If it is determined in step S211 that the open parenthesis key has not been pressed, the process proceeds to step S214.
[0072] In step S212, the processor 11 stores the input information corresponding to the open parenthesis key in the memory 12, for example, in the RAM.
[0073] In step S213, the processor 11 displays an open parenthesis in the input history display area 142. After that, the process returns to step S204.
[0074] In step S214, the processor 11 determines whether or not the closing parenthesis key has been pressed. If it is determined in step S214 that the closing parenthesis key has been pressed, the process proceeds to step S215. If it is determined in step S214 that the closing parenthesis key has not been pressed, the process returns to step S204.
[0075] In step S215, the processor 11 stores the input information corresponding to the closing parenthesis key in the memory 12, for example, in the RAM.
[0076] In step S216, the processor 11 displays a closing parenthesis in the input history display area 142.
[0077] In step S217, the processor 11 performs a calculation based on the input information of the numerical values from the numerical value immediately before the closing parenthesis to the immediately preceding opening parenthesis and the operation symbols. Then, the processor 11 stores the calculation result in the memory 12, for example, in the RAM.
[0078] In step S218, the processor 11 updates the displays in the current numeric value display area 141 and the input history display area 142.
[0079] In step S219, processor 11 compares the input information of the open parentheses with the input information of the close parentheses to determine whether the number of open parentheses is the same as the number of close parentheses. If it is determined in step S219 that the number of open parentheses is the same as the number of close parentheses, the process proceeds to step S220. If it is determined in step S219 that the number of open parentheses is not the same as the number of close parentheses, it is assumed that there is still input within the parentheses, and the process returns to step S204.
[0080] In step S220, the processor 11 ends the parenthetical display in the current numeric value display area 141.
[0081] In step S221, if the parentheses necessary flag is on, the processor 11 turns off the parentheses necessary flag, and then the processing of Figures 8A and 8B ends.
[0082] 9 is a diagram showing the display of the display 14 in the second embodiment. In the second embodiment, the user operates the numeric keys, the calculation keys, and the parentheses keys to input the formula that he or she wishes to calculate. Then, when the user has completed inputting the formula, he or she presses the calculation execution key. During this series of operations, the current value display area 141 and the input history display area 142 are updated.
[0083] For example, suppose the user presses the numeric key "2." At this time, as shown in FIG. 9A, the numeric value "2" input by the user is displayed in the current numeric value display area 141. Similarly, "2" is also displayed in the input history display area 142.
[0084] Next, suppose the user presses the addition key. At this time, as shown in Fig. 9b, "+" is further displayed in the input history display area 142. Meanwhile, the display in the current value display area 141 remains unchanged at "2". This is because the value before the addition key was pressed was only "2". Also, at this time, the parentheses required flag is turned on.
[0085] Next, suppose the user presses the left arrow key. At this time, as shown in c of Fig. 9, cursor 143 is displayed at the position of "2" before the addition symbol in input history display area 142. Meanwhile, the display in current value display area 141 remains unchanged at "2". This is because the value before the addition key is pressed is also "2". Note that while cursor 143 of Fig. 9 is displayed, the input information may be edited. In other words, if another numeric key is pressed while cursor 143 of Fig. 9 is displayed, the input information of the value "2" stored in memory 12, for example, in RAM, may be replaced with the input information corresponding to the pressed value.
[0086] For example, suppose the user presses the left arrow key again to return cursor 143, and then presses the open parenthesis key. At this time, parentheses 144 are displayed in current numeric value display area 141, as shown in Fig. 9d. Parentheses 144 are displayed while the calculation inside the parentheses is being performed. In addition, an open parenthesis is displayed after the addition symbol in input history display area 142.
[0087] Next, suppose the user presses the numeric key "3." At this time, "3" is further displayed in the input history display area 142, as shown in e of Fig. 9. At this point, the formula in parentheses is still being input, so the parentheses display 144 continues.
[0088] Suppose the user then presses the multiplication key. At this time, as shown by f in Fig. 9, the number "3" input by the user is displayed in the current number display area 141. Similarly, "3" is also displayed in the input history display area 142. At this point, the formula in the parentheses is still being input, so the parentheses display 144 continues. Here, the parentheses process is a process that is transitioned to when the open parentheses key is pressed by the user. In other words, in the parentheses process, automatic insertion of parentheses by the parentheses required flag does not need to be performed.
[0089] Next, suppose that the user presses the numeric key "4". At this time, "4" is further displayed in the input history display area 142, as shown in g of Fig. 9. At this point, the formula in parentheses is still being input, so the parentheses display 144 continues. Note that, to save display area, the input history display area 142 may display "12", which is the current calculation result in parentheses.
[0090] Next, suppose the user presses the closing parenthesis key. At this time, as shown by h in Fig. 9, the calculation result in parentheses, "12", is displayed in current numeric value display area 141. In other words, the calculation result in parentheses becomes the next input information. A closing parenthesis is also displayed in input history display area 142. Furthermore, as a result of pressing the closing parenthesis key, the number of opening parentheses and closing parentheses becomes the same, so parentheses display 144 is terminated. Also, with the end of parentheses processing, the parentheses required flag is turned off.
[0091] Next, suppose the user presses the addition key. At this time, as shown by i in Fig. 9, "+" is further displayed in the input history display area 142. Meanwhile, the current value display area 141 displays "14", which is the result of the calculation up to the previous value.
[0092] Next, suppose that the user presses the numeric key "5." At this time, as shown by j in Fig. 9, the numeric value "5" input by the user is displayed in the current numeric value display area 141. Moreover, "5" is further displayed in the input history display area 142.
[0093] Finally, suppose the user presses the calculation execution key. At this time, as shown by k in Fig. 9, "19", which is the calculation result up to the previous value, is displayed in the current value display area 141. In addition, "=" is also displayed in the input history display area 142.
[0094] As described above, according to the second embodiment, parentheses can be actively inserted by the user. Also, during parentheses processing, parentheses display 144 is currently displayed in numeric value display area 141. This allows the user to recognize that the numeric value currently displayed in numeric value display area 141 is the numeric value currently being parenthesized.
[0095] Here, in the parentheses processing of the second embodiment, the parentheses necessary flag is ignored. In contrast, the parentheses necessary flag may be used as a process for closing only during parentheses processing. In other words, parentheses may be automatically inserted when an addition / subtraction key is pressed during parentheses processing, and then a multiplication / division key is pressed without pressing the parentheses key.
[0096] Each process according to the above-mentioned embodiment can be stored as a program that can be executed by the processor 11, which is a computer. Alternatively, the program can be stored in a storage medium of an external storage device such as a magnetic disk, an optical disk, or a semiconductor memory and distributed. The processor 11 can then read the program stored in the storage medium of the external storage device, and the processor 11 can execute the above-mentioned process by having its operation controlled by the read program.
[0097] The present invention is not limited to the above-mentioned embodiment, and various modifications can be made in the implementation stage without departing from the gist of the invention. In addition, the embodiments may be implemented in appropriate combination, and in that case, the combined effect can be obtained. Furthermore, the above-mentioned embodiment includes 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 embodiment, the configuration from which the components are deleted can be extracted as an invention.
[0098] The following will addendum to inventions that can be extracted from the embodiments of the present invention. [1] An operation unit that accepts input of numerical values and arithmetic symbols; a display unit having an input history display area for displaying an input history of input numerical values and arithmetic symbols; a processing unit that changes the input history of the input history display area so that, when an input of an addition symbol or a subtraction symbol among the arithmetic symbols is accepted by the operation unit and the next arithmetic symbol accepted for input is a multiplication symbol or a division symbol, a display form is displayed indicating that an operation based on a numerical value and an arithmetic symbol accepted before the input of the multiplication symbol or the division symbol is accepted will be executed prior to a multiplication based on the multiplication symbol or a division based on the division symbol; A computer comprising: [2] The calculator according to [1], wherein the display form includes a display in which parentheses are inserted at the beginning and end of numerical values and arithmetic symbols whose input was accepted before the input of the multiplication symbol or division symbol was accepted. [3] The processing unit is when an input of an addition sign or a subtraction sign is accepted by the operation unit, turning on a parentheses necessary flag for determining whether parentheses need to be inserted; when the input of a multiplication symbol or a division symbol is accepted by the operation unit, if the parentheses required flag is on, modify the input history of the input history display area. 2. The computer according to claim 1, [4] The processing unit is The computer according to [3], wherein the parentheses required flag is turned off after the input history in the input history display area is changed. [5] The computer according to any one of [1] to [4], wherein the operation unit is further configured to accept input of parentheses. [6] The display unit further has a current numeric value display area for displaying a current numeric value based on the input numeric value and the arithmetic symbol; The computer according to [5], wherein the processing unit further performs a display to notify the user that the number currently displayed in the numeric display area is the number in parentheses when input of parentheses is accepted by the operation unit. [7] Accepting input of numbers and arithmetic symbols; when an input of an addition symbol or subtraction symbol among the arithmetic symbols is accepted and the next arithmetic symbol accepted for input is a multiplication symbol or division symbol, changing the input history of an input history display area of a display unit having the input history display area for displaying an input history of input numerical values and arithmetic symbols so as to have a display form indicating that an operation based on a numerical value and an arithmetic symbol accepted before the input of the multiplication symbol or division symbol is accepted will be executed prior to the multiplication based on the multiplication symbol or division based on the division symbol; A calculation program for causing a processor to execute the above. [Explanation of symbols]
[0099] 1 calculator, 11 processor, 12 memory, 13 operation keys, 14 display, 131 numeric keys, 132 calculation keys, 133 function keys, 1331 arrow keys, 1332 bracket keys, 141 current numeric display area, 142 input history display area, 143 cursor, 144 bracket display.
Claims
1. a display unit having an input history display area in which input numerical values and mathematical symbols are displayed based on the order in which they were input as an input history; a control unit that displays the input history in the input history display area in a mathematical display form indicating that an addition based on the addition symbol or a subtraction symbol is executed before a multiplication based on the addition symbol or a subtraction symbol is executed before a division based on the division symbol when a multiplication symbol or a division symbol is executed after a predetermined input content and a multiplication symbol or a division symbol is executed after the multiplication symbol or the division symbol is executed when the multiplication symbol or the division symbol is executed. Equipped with The control unit is As the mathematical display format, the input content up to the first numerical value is enclosed in common parentheses as the mathematical symbols based on the timing at which the multiplication symbol or the division symbol is input. As the mathematical display form, the input contents up to the first numerical value are enclosed in common parentheses as the mathematical symbols, and the parentheses are displayed in a blinking manner. Alternatively, as the mathematical display form, the input contents up to the first numerical value are enclosed in common parentheses as the mathematical symbols, and when a second numerical value is input following the multiplication symbol or the division symbol input following the first numerical value, the calculation formula of the part enclosed in the common parentheses is switched to the calculation result of the calculation formula and displayed.
1. A computer comprising:
2. 1. An input assistance method executed by a computer having a display unit with an input history display area in which input numerical values and mathematical symbols are displayed based on the order in which they were input as an input history, comprising: a control process for displaying the input history in the input history display area in such a way that, when a multiplication symbol or a division symbol is input as the first mathematical symbol following a predetermined first numerical value after an addition symbol or a subtraction symbol is input as the mathematical symbol following a predetermined input content, the input history is displayed in a mathematical display form indicating that an addition based on the addition symbol or a subtraction based on the subtraction symbol is executed prior to a multiplication based on the multiplication symbol or a division based on the division symbol, The control process includes: As the mathematical display format, the input content up to the first numerical value is enclosed in common parentheses as the mathematical symbols based on the timing at which the multiplication symbol or the division symbol is input. As the mathematical display form, the input contents up to the first numerical value are enclosed in common parentheses as the mathematical symbols, and the parentheses are displayed in a blinking manner. Alternatively, as the mathematical display form, the input contents up to the first numerical value are enclosed in common parentheses as the mathematical symbols, and the parentheses are displayed in a blinking manner.
13. An input assistance method comprising:
3. A computer having a display unit with an input history display area in which input numerical values and mathematical symbols are displayed based on the order in which they were input as an input history, when a multiplication symbol or a division symbol is input as the first mathematical symbol following a predetermined first numerical value after an addition symbol or a subtraction symbol is input as the mathematical symbol following a predetermined input content, the input history is displayed in a mathematical display form indicating that an addition based on the addition symbol or a subtraction based on the subtraction symbol is executed before a multiplication based on the multiplication symbol or a division based on the division symbol, The control means As the mathematical display format, the input content up to the first numerical value is enclosed in common parentheses as the mathematical symbols based on the timing at which the multiplication symbol or the division symbol is input. As the mathematical display form, the input contents up to the first numerical value are enclosed in common parentheses as the mathematical symbols, and the parentheses are displayed in a blinking manner. Alternatively, as the mathematical display form, the input contents up to the first numerical value are enclosed in common parentheses as the mathematical symbols, and when a second numerical value is input following the multiplication symbol or the division symbol input following the first numerical value, the calculation formula of the part enclosed in the common parentheses is switched to the calculation result of the calculation formula and displayed. A program characterized by:
Citation Information
Patent Citations
Numerical formula display system
JP1994231081A
Computation processing device and program
JP2016173763A
