This application is based upon and claims the benefit of priority from the prior Japanese Patent Application No. 2021-207497, filed Dec. 21, 2021, the entire contents of which are incorporated herein by reference.
The present disclosure relates to an electronic device, a display control method and a storage medium.
Accordingly, a scientific calculator is desired into which a plurality of mathematical formulas can be inputted, and which can display calculation results of the plurality of inputted mathematical formulas, respectively, on a liquid crystal display so as to enhance the user's convenience.
In accordance with one aspect of the present invention, there is provided an electronic device comprising at least one processor configured to perform processing including: inputting a plurality of mathematical formulas in response to operations performed on operation keys; displaying a list of the plurality of inputted mathematical formulas on a display; and displaying, in different display forms, a first mathematical formula which is a mathematical formula currently being inputted and a second mathematical formula which is a mathematical formula previously inputted, when displaying the list of the plurality of mathematical formulas.
The above and further objects and novel features of the present invention will more fully appear from the following detailed description when the same is read in conjunction with the accompanying drawings. It is to be expressly understood, however, that the drawings are for the purpose of illustration only and are not intended as a definition of the limits of the invention.
A preferred embodiment of the present invention will hereinafter be described with reference to the drawings. Note that, although the embodiment described below is provided with various technically preferable limitations in order to carry out the present invention, these limitations are not intended to limit the scope of the present invention to the embodiment and examples shown in the drawings.
The processor 11, which controls various operations of the electronic device 1, may be a CPU (Central Processing Unit), an ASIC (Application-Specific Integrated Circuit), a FPGA (Field-Programmable Gate Array), or the like and may be constituted by two or more processors. This processor 11 operates as a judgment section for judging an operation manner related to a specific operation key among the operation keys 13. Also, this processor 11 operates as a control section for changing processing to be performed on the basis of an operation manner related to a specific operation key.
The memory 12 includes a RAM (Random-Access Memory) and a ROM (Read-Only Memory). The RAM, which is a volatile memory, is used as an operation memory for temporarily storing various types of data in the processor 11, a frame memory for displaying a plurality of inputted mathematical formulas (which may include functions, symbols, numerical values, decimal points, operators, and calculation results) on the display 15, and the like. On the other hand, the ROM, which is a non-volatile memory, has stored therein various types of programs such as a calculation program for actualizing various functions of the electronic device 1, various types of specific numerical values which are used as arguments in numerical calculation, and the like.
The operation keys 13 are various types of keys for a user to operate the electronic device 1. When an operation by an operation key 13 is accepted, an input signal according to the operation is transmitted to the processor 11.
The display driver 14 drives the display 15 under control of the processor 11. Also, the display driver 14 transmits various types of signals required for the driving of the display 15 to the display 15. The display 15 is a display device such as a liquid crystal display, and is capable of displaying at a resolution of n×m dots. Also, the display 15 performs various types of display related to a calculator function.
In particular, in the present embodiment, the processor 11 and the display driver 14 operate such that a plurality of mathematical formulas can be inputted in response to operations performed on the operation keys 13, the display area of the display 15 is divided into a plurality of areas (such as four lines), and mathematical formulas (which may include functions, symbols, numerical values, decimal points, operators, and calculation results) inputted into these areas acquired by the division are displayed. Also, the processor 11 operates such that, in mathematical formula input operations, a mathematical formula using a calculation result of another mathematical formula can be inputted.
Accordingly, in the present embodiment, the memory (RAM) 12 includes mathematical formula storage areas 121 (for example, four areas) for storing a plurality of mathematical formulas, and calculation result storage areas 123 for storing the calculation result of each mathematical formula, as shown in
By operating operation keys 13 (cursor keys), the user can set a mathematical formula in an arbitrary line to “activate”. Also, by operating an operation key 13 (REF key), the user can input a mathematical formula using a calculation result displayed in an arbitrary line. As described above, the processor 11 sets “unentered” (flag “0”) to a line where no mathematical formula has been inputted. When a new line is specified, the processor 11 automatically sets “active” (flag “1”) to this line, and changes “active” (flag “1”) set to a previously inputted (calculated) line to “inactive” (flag “3”). Also, the processor 11 changes “inactive” (flag “3”) to “semi-active” (flag “2”) for a line whose calculation result has been cited.
When displaying inputted mathematical formulas (which may include functions, symbols, numerical values, decimal points, operators, and calculation results) on the display 15, the processor 11 differentiates their display forms by varying their gray levels (four gray levels) in accordance with a predetermined rule. More specifically, the processor 11 controls such that a mathematical formula (which may include functions, symbols, numerical values, decimal points, operators, and calculation results) in an “active” field (line) is displayed in “black”, a mathematical formula in a “semi-active” field (line) is displayed in “dark gray”, a mathematical formula in an “inactive” field (line) is displayed in “light gray”, and a field where no mathematical formula has been inputted is unlit. As a result, by only viewing the display status of the display 15, the user can easily know a current input status on the basis of differences among the displayed gray levels. That is, the user can easily know whether a target field is “active” indicating that a mathematical formula is being inputted thereinto, “semi-active” indicating that a calculation result therein has been used in another mathematical formula, “inactive” indicating that a mathematical formula therein is a previously inputted (calculated) mathematical formula and the calculation result thereof has not been used in another mathematical formula, or “unentered”.
In the example of the drawing, the mathematical formula in the fourth line is “active”, and therefore has been displayed in “black”. In addition, since the mathematical formula in the fourth line is using the third line and the first line, the mathematical formulas in the third line and the first line are “semi-active” indicating that they are being used by another mathematical formula (which is in the fourth line in this case), and therefore have been displayed in “dark gray”. Moreover, the mathematical formula in the second line is “inactive” indicating that it is a previously inputted (calculated) mathematical formula and has not been cited, and therefore has been displayed in “light gray”.
The operation keys 13 include numerical keys, functional, symbolic, and arithmetic keys, and function keys. The numerical keys, which are used to input numerical values, include keys corresponding to numerical values such as 0 to 9. The functional, symbolic, and arithmetic keys include, for example, function-symbol keys such as “log”, “ln”, “sin”, “cos”, and “tan” which are used when calculation formulas and function expressions are inputted, operator keys corresponding to operators such as “+” (addition), “−” (subtraction), “×” (multiplication), and “±” (division), and an equal key corresponding to “=” (instruction execution). The function keys, which are operated to use various functions of the electronic device 1, include a reference key (REF key), an all clear key (AC key), a clear key (C key), and memory keys (MRC key, M+ key, and M− key), for example.
In the present embodiment, mathematical formulas (which may include functions, symbols, numerical values, decimal points, operators, and calculation results) in the plurality of lines set in the display 15 are displayed such that their display forms are different from one another by their gray levels being varied (to be four gray levels) in accordance with the predetermined rule. This rule specifies that each line where no mathematical formula has been inputted is unlit, a mathematical formula which is currently being inputted is displayed in “black”, a previously inputted mathematical formula whose calculation result has been used in another mathematical formula is displayed in “dark gray”, and a previously inputted mathematical formula whose calculation result has not been used in other mathematical formulas is displayed in “light gray”. Accordingly, as an example, the FRC (Frame Rate Control) method is used. More specifically, ON and OFF is controlled for each frame of each line with three frames as one cycle. That is, each line is unlit (light is turned off) by all the three frames being unlit. In addition, by one of the three frames being lit, a mathematical formula therein is displayed in light gray. Moreover, by two of the three frames being lit, a mathematical formula therein is displayed in dark gray. By all of the three frames being lit, a mathematical formula therein is displayed in black. Note that, although light gray and dark gray are expressed by hatching in
Moreover, as an alternative to the FRC method, a method may be adopted in which RAM for two screens is provided and two gray levels of 0/1 are increased to four gray levels of 00/01/10/11, or a method may be adopted in which data in the RAM are divided into the data of lower-order bits and the data of higher-order bits so as to express four gray levels.
When the specified input line is a line that is not active (not flag “1”) (YES at Step S12), the processor 11 sets the flag 122 of the mathematical formula storage area 121 corresponding to the specified input line to active (“1”), sets the flag 122 of another line that has been active (“1”) to inactive (“3”), and maintains the flag 122 of yet another line which has been semi-active (“2”) and whose calculation result has been cited so that this line remains as semi-active (“2”) (Step S14).
Here, further details of the input line are described below. When there is already a mathematical formula in the input line and the input line is active (“1”), the processor 11 maintains the input line as active (“1”). When there is already a mathematical formula in the input line but the input line is inactive (“3”), the processor 11 changes its state from inactive (“3”) to active (“1”). When the input line is semi-active (“2”) whose calculation result has been cited, the processor 11 changes its state from semi-active (“2”) to active (“1”). Then, the processor 11 proceeds to Step S16.
On the other hand, when the specified input line is not a line that is not active, that is, an active line (flag “1”) (NO at Step S12), the flags 122 of the mathematical formula storage areas 121 of this line and the other lines are not required to be changed, and therefore the processor 11 proceeds to the following Step S16 without performing any operation.
Next, the processor 11 accepts an operation of inputting a mathematical formula which is performed by use of the operation keys 13 (Step S16). Here, the user inputs a desired mathematical formula by use of the numerical keys and the functional, symbolic, and arithmetic keys of the operation keys 13. Then, the processor 11 judges whether or not the inputted mathematical formula includes a mathematical formula (calculation result) of another line (Step S18). When the inputted mathematical formula does not include any other mathematical formula (calculation result) (NO at Step S18), the processor 11 returns to Step S10 without changing the flags and repeats the above-described processing.
Conversely, when the inputted mathematical formula includes a mathematical formula (calculation result) of another line (YES at Step S18), the processor 11 sets the flag 122 of the mathematical formula storage area 121 corresponding to this cited line to semi-active (“2”) (Step S20). More specifically, when this cited line is inactive (“3”), the processor 11 changes its state from inactive (“3”) to semi-active (“2”). When this cited line is already semi-active (“2”), the processor 11 maintains its state as semi-active (“2”).
Here, although details of operations such as a calculation operation for calculating an inputted mathematical formula and an all clearing operation for deleting a mathematical formula are omitted in the above descriptions, one example is given below. When an all clearing operation is performed, the processor 11 performs operations such as processing for setting the flag 122 of the mathematical formula storage area 121 of the corresponding line to (“0”).
Next, the processor 11 judges whether or not the flag 122 of the mathematical formula storage area 121 indicated by variable i is “0”, that is, judges whether or not the line corresponding thereto is a blank line (Step S34). When the flag 122 is “0”, that is, when the corresponding line is a blank line (YES at Step S34), the processor 11 turns off the light of the display area of the display 15 corresponding to this line (Step S36).
Conversely, when the flag 122 is not “0”, that is, when the corresponding line is not a blank line (NO at Step S34), the processor 11 judges whether or not the flag 122 is “1”, that is, judges whether or not the corresponding line is an active line (Step S38). When the flag 122 is “1” representing an active line, that is, when input is being performed for the corresponding line (YES at Step S38), the processor 11 displays the display area of the display 15 corresponding to this line in “black” (Step S40).
Conversely, when the flag 122 is not “1”, that is, when the corresponding line is not an active line (NO at Step S38), the processor 11 judges whether or not the flag 122 is “2”, that is, judges whether or not the corresponding line is a semi-active line (whether or not a mathematical formula therein has been used in a mathematical formula in another line) (Step S42). When the flag 122 is “2” representing a semi-active line, that is, when the corresponding line is a line whose mathematical formula has been used in a mathematical formula in another line (YES at Step S42), the processor 11 displays the display area of the display 15 corresponding to this line in “dark grey” (Step S44). Conversely, when the flag 122 is not “2”, that is, when the corresponding line is not a semi-active line (NO at Step S42), the processor 11 judges that the flag 122 is “3”, that is, the corresponding line is an inactive line (a line where no data is currently being inputted and data therein has not been cited), and displays the display area of the display 15 corresponding to this line in “light gray” (Step S46).
After ending the above-described processing of Step S36, Step S40, Step S44, or Step S46, the processor 11 increments variable i by 1 (Step S48), and judges whether or not variable i is “5” (Step S50). When variable i is smaller than “5” (NO at Step S50), the processor 11 returns to Step S32 because there are lines for which the display processing has not been performed, and repeats the above-described display processing on the flag 122 of the next mathematical formula storage area 121. Then, when the processing on the flags 122 of #1 to #4 is ended in this order, variable i reaches “5” (YES at Step S50). Accordingly, the processor 11 ends this display processing (returns to the main routine).
More specifically, because the flag 122 of the mathematical formula storage area 121 of the fourth line is set to “1” by the fourth line being specified as an input line, the mathematical formula and the calculation result “(4) (3)÷(1)=5” in the fourth line are displayed in “black (BLK)” (refer to Step S40). Also, because the mathematical formula in the third line (calculation result (3)) and the mathematical formula in the first line (calculation result (1)) are being used in the fourth line, the flags 122 of the mathematical formula storage areas 121 corresponding to the third line and the first line are set to “2”, and the mathematical formula and the calculation result “(3) 15×3=45” in the third line and the mathematical formula and the calculation result “(1) 7+2=9” in the first line are displayed in “dark grey (DG)”. Moreover, because the second line is not “active” or “semi-active” indicating citation, the flag 122 therefor is set to “3” and the mathematical formula therein is displayed in “light gray (LG)”.
That is, when the four line is specified as an input line, all the flags 122 of the first to third lines are temporarily set to “3” indicating inactive, and the first line to the third line are displayed in “light gray (LG)” (refer to Step S46). Subsequently, when the third line (the calculation result therein) is cited while a mathematical formula is being inputted into the fourth line, the flag 122 of the third line is changed from “3” indicating inactive to “2” indicating semi-active, and the third line is displayed in “dark grey (DG)” (refer to Step S44). Then, when the first line (the calculation result therein) is cited, the flag 122 of the first line is changed from “3” indicating inactive to “2” indicating semi-active, and the first line is displayed in “dark grey (DG)” (refer to Step S44). Note that details of the method for citing mathematical formulas in other lines is described later.
As a result of the above-described configuration, by only viewing the display status of the display 15, the user can easily know a current input status on the basis of differences among displayed gray levels. That is, the user can easily know whether a target field is “active” indicating that a mathematical formula is being inputted thereinto, “semi-active” indicating that a calculation result therein has been used in another mathematical formula, “inactive” indicating that a mathematical formula therein is a previously inputted (calculated) mathematical formula and the calculation result thereof has not been used in another mathematical formula, or “unentered”.
When the user specifies the third line as a new input line, the third line is displayed in “black (BLK)”, and the first line (combination line) and the second line are temporarily displayed in “light gray (LG)”.
Next, when the user presses the “1” key while pressing the “REF” key, “(1)” is displayed on the display section, and the mathematical formula (calculation result) of the first line enters a cited state. Accordingly, the first line is displayed in “dark grey (DG)”. The second line is maintained in “light gray (LG)” since this line has not been cited.
Then, when the user inputs the mathematical formula “×2=” into the third line, the calculation result “(1)×2=134.49017442” is displayed in “black (BLK)” in the third line. The first line, which has been cited, is maintained to be displayed in “dark grey (DG)”, and the second line, which is not being used, is maintained to be displayed in “light gray (LG)”.
According to the present embodiment, mathematical formulas can be inputted into a plurality of lines independently. Therefore, even when a mathematical formula is being inputted into a line, another mathematical formula can be inputted into another line. As a result of this configuration, calculation can be easily performed without a previously inputted mathematical formula being deleted. In addition, burdens on the user inputting mathematical formulas can be reduced by the configuration where a calculation result of a mathematical formula can be used in another mathematical formula. Moreover, since inputted mathematical formulas can be stored in the mathematical formula storage areas 121, these mathematical formulas can be easily edited, and recalculation by changes in variables and constants can be easily performed.
In the above-described embodiment, all cited mathematical formulas including the calculation results thereof are displayed in “dark grey”. However, a configuration may be adopted in which these mathematical formulas are displayed in “dark grey” and the calculation results thereof are displayed “black”. With this configuration, cited calculation results can be easily distinguished.
Also, in the above-described embodiment, only calculation results can be cited from mathematical formulas in other lines. However, a configuration may be adopted in which numerical values and the like in the middle of a mathematical formula can be cited. In this configuration, cited numerical values may be displayed in “black” in a cited mathematical formula, and numerical values, symbols, and the like other than the numerical values may be displayed in “dark grey”.
Moreover, in the above-described embodiment, the method by which a plurality of mathematical formulas is displayed at different gray levels has been adopted as a method for varying display forms. However, in the case of a calculator capable of multicolor display, a method may be adopted in which a plurality of mathematical formulas is differentiated by being displayed in different predetermined colors, as long as a mathematical formula such as that currently being inputted or that just inputted in an active line can be distinguished.
In addition, although the method by which a plurality of mathematical formulas is displayed at different gray levels has been adopted as a method for varying display forms in the above-described embodiment, a method may be adopted in which, instead of the gray level expression, mathematical formulas configured to be displayed in “light gray” in the above-described embodiment are configured to blink at predetermined intervals and mathematical formulas configured to be displayed in “dark gray” in the above-described embodiment are configured to blink at different intervals, as long as a mathematical formula such as that currently being inputted or that just inputted in an active line can be distinguished.
According to the above-described embodiment, when a list of a plurality of mathematical formulas is to be displayed by the input of the mathematical formulas being accepted, a first mathematical formula currently being inputted and a second mathematical formula previously inputted are displayed in different forms. As a result of this configuration, the first mathematical formula currently being inputted and the second mathematical formula previously inputted can be easily distinguished from each other, which enhances the user's convenience.
Also, according to the above-described embodiment, the first mathematical formula currently being inputted is displayed at a first gray level, and the second mathematical formula previously inputted is displayed at a second gray level lighter than the first gray level. By this configuration as well, the first mathematical formula currently being inputted and the second mathematical formula previously inputted can be easily distinguished from each other, which enhances the user's convenience.
Moreover, according to the above-described embodiment, when the first mathematical formula currently being inputted and the second mathematical formula previously inputted are to be displayed in different forms, the first mathematical formula is displayed at the first gray level, and the second mathematical formula is displayed at the second gray level if the calculation result of the second mathematical formula has been used in the first mathematical formula, and displayed at a third gray level lighter than the second gray level if the calculation result of the second mathematical formula has not been used in the first mathematical formula. As a result of this configuration, the first mathematical formula currently being inputted, the second mathematical formula previously inputted, and a third mathematical formula which has been used in another mathematical formula can be easily distinguished from one another, which also enhances the user's convenience.
Furthermore, according to the above-described embodiment, the size of a display area is adjusted in accordance with the display size of an accepted mathematical formula. As a result of this configuration, even a complicated mathematical formula which requires a display area larger than that of a general mathematical formula can be displayed, which also enhances the user's convenience.
While the present invention has been described with reference to the preferred embodiments, it is intended that the invention be not limited by any of the details of the description therein but includes all the embodiments which fall within the scope of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
2021-207497 | Dec 2021 | JP | national |