Electronic equipment, control methods, and programs
By displaying exponential notation in parentheses within mathematical expressions, the device addresses the ambiguity in existing technologies, ensuring correct operation order and accurate calculation results.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2026-04-02
AI Technical Summary
Existing mathematical expressions with exponential notation are difficult to distinguish from other operators, leading to potential misinterpretation of the order of operations due to their representation as 'x10', which is indistinguishable from multiplication by a power of 10.
The electronic device encloses exponential notation in parentheses on the display unit when a mathematical formula is input, ensuring it is easily recognizable and prioritizes calculations in exponential notation over other operators.
This approach clarifies the presence of exponential notation, ensuring correct interpretation of the order of operations and accurate calculation results, enhancing user understanding and compliance with intended calculations.
Smart Images

Figure 2026056954000001_ABST
Abstract
Description
[Technical Field]
[0001] This invention relates to electronic equipment, control methods, and programs. [Background technology]
[0002] Patent Document 1 discloses an electronic computer equipped with an exponential key. In the technology described in Patent Document 1, calculations are performed according to exponential notation by first entering a number to be entered in the mantissa, then pressing the exponential key, and then entering a number to be entered in the exponential part. [Prior art documents] [Patent Documents]
[0003] [Patent Document 1] Japanese Patent Publication No. 2015-197907 [Overview of the project] [Problems that the invention aims to solve]
[0004] The scientific notation is "m × 10 n Because "x10" represents a single value, operations in exponential notation take precedence over operations using other operators. However, in exponential notation, "x10" represents a single value, so operations in exponential notation take precedence over operations using other operators. n The expression "..." looked the same as multiplication by a power of 10, making it difficult to distinguish between the two. Therefore, when exponential notation and other operators were mixed within a mathematical expression, there was a risk of misinterpreting the order of operations.
[0005] The present invention has been made in view of the problems of the prior art described above, and aims to make it easy to recognize that a mathematical formula contains exponential notation. [Means for solving the problem]
[0006] To solve the above problems, the electronic device of the present invention includes a control unit that, when a mathematical formula including exponential notation is input by the user and an operation is instructed to perform calculations on said formula, displays the formula with the exponential notation portion enclosed in parentheses on the display unit. [Effects of the Invention]
[0007] According to the present invention, when a mathematical formula includes exponential notation, it can be easily recognized that it is in exponential notation. [Brief explanation of the drawing]
[0008] [Figure 1] This is a plan view showing the external configuration of a calculator as an electronic device according to the first embodiment of the present invention. [Figure 2] This is a block diagram showing the functional configuration of a calculator. [Figure 3] This flowchart shows the calculation processes performed in a calculator. [Figure 4] This is a flowchart showing the input code parsing process. [Figure 5] This diagram illustrates the key operations and display screen when entering exponential values. [Figure 6] This diagram illustrates the key operations and display screen when inputting power values. [Figure 7] This flowchart shows the exponential key assignment process performed in the calculator of the second embodiment. [Figure 8] This is an example of the settings screen for assigning exponential keys. [Figure 9] This is an example of the settings screen for assigning exponential keys. [Figure 10] This diagram illustrates the key operations and display screen when the exponential keys are assigned the function of inputting powers of 10. [Figure 11] This is a block diagram showing the functional configuration of a PC as an electronic device in the third embodiment. [Modes for carrying out the invention]
[0009] Hereinafter, embodiments of an electronic device, a control method, and a program according to the present invention will be described with reference to the drawings. Note that, although various technically preferable limitations are imposed on the embodiments described below for implementing the present invention, the scope of the present invention is not limited to the following embodiments and illustrated examples.
[0010] First, a first embodiment of the present invention will be described. As shown in FIG. 1, a calculator 10 as an electronic device in the first embodiment is a so-called function calculator capable of performing calculations of calculation formulas (mathematical formulas) including functions. The calculator 10 has arithmetic functions, spreadsheet functions, graph functions, function calculation functions, statistical calculation functions, equation functions, program functions, and the like. As shown in FIG. 2, the calculator 10 includes a CPU (Central Processing Unit) 11, a key input unit 12, a display unit 13, a storage unit 14, and a RAM (Random Access Memory) 15. The CPU 11 is a control unit that controls each part of the calculator 10. The CPU 11 reads out a specified program from various programs stored in the storage unit 14 and expands it in the RAM 15, and executes various processes in cooperation with the expanded program.
[0011] The key input unit 12 is a group of keys for receiving input operations of components of a calculation formula such as numerical values and operators from the user and receiving instruction operations for various processes, and includes a plurality of keys assigned with respective unique functions. The key input unit 12 receives a pressing operation by the user on various keys and outputs an operation signal to the CPU 11. The CPU 11 performs various processes based on the operation signal corresponding to the input operation by the user on the key input unit 12. As shown in FIG. 1, the key input unit 12 includes, in addition to numeric keys, arithmetic operation keys, cursor keys, an OK key, an EXE key (operation execution key) 21, an exponent key 22, a power key 23, a setting key 24, and the like. The EXE key 21 is a key for instructing the execution of an operation. The exponent key 22 is a key for inputting exponential notation. The power key 23 is a key for inputting a power. The setting key 24 is a key for performing various settings in the calculator 10.
[0012] The display unit 13 is composed of a liquid crystal display (LCD) or the like, and displays various information on the display screen according to the control from the CPU 11. The display unit 13 displays various data such as numerical values, characters, symbols, notations, mathematical formulas, calculation results, etc. according to the operation from the key input unit 12. The storage unit 14 is a ROM (Read Only Memory) or the like, and stores various programs including the arithmetic processing program 141 according to the present invention, data used for various processes, etc. Programs corresponding to various functions of the calculator 10 are stored in the storage unit 14. The RAM 15 is a volatile semiconductor memory capable of reading and writing information. The RAM 15 provides a working area for the CPU 11 and temporarily stores data and programs. The RAM 15 has an input buffer 151, a copy buffer 152, etc. The input buffer 151 temporarily stores the data input from the key input unit 12. The copy buffer 152 temporarily stores the data copied from the data in the input buffer 151.
[0013] When a mathematical formula including exponential notation is input by the user's operation and the execution of the calculation for the mathematical formula is instructed, the CPU 11 (control unit) causes the display unit 13 to display the mathematical formula with the part related to the exponential notation enclosed in parentheses. Specifically, the CPU 11 uses m for the mantissa part and n for the exponent part, and encloses "[m×10 n " in parentheses. That is, the CPU 11 inserts an opening parenthesis "(" before "[m×10 n " which is the part related to the exponential notation, and inserts a closing parenthesis ")" after "[m×10 n " and then displays the mathematical formula. When a mathematical formula including exponential notation is input and the execution of the calculation for the mathematical formula is instructed, the CPU 11 executes the calculation for the mathematical formula by giving priority to the calculation in the exponential notation over the calculations by other operators included in the mathematical formula. The CPU 11 causes the display unit 13 to display the calculation result of the mathematical formula. Other operators are, for example, binary operators. A binary operator is an operator that obtains one result from two variables (values).
[0014] The CPU 11 can accept operations on the exponential key 22 (see Figure 1) for inputting exponential notation. The CPU 11 displays the exponential notation on the display unit 13, with the rational number entered before the operation of the exponential key 22 as the mantissa and the integer entered after the operation of the exponential key 22 as the exponent. In other words, the CPU 11 displays the exponential notation on the display unit 13, with the number entered before the instruction operation for inputting exponential notation as the mantissa and the number entered after the instruction operation for inputting exponential notation as the exponent. When the user inputs a number using exponential notation, they input in the order of mantissa, exponential key 22, and exponent. The exponential key 22 is a physical key (hardware key) that is provided on the calculator 10 (electronic device) so that it can be pressed.
[0015] The CPU 11 can accept input to the power key 23 (see Figure 1) for entering exponents. The CPU 11 displays the exponent on the display unit 13, using the number entered before the operation of the power key 23 as the base and the number entered after the operation of the power key 23 as the exponent. In other words, when the user enters an exponent, they input the base, the power key 23, and the exponent in that order.
[0016] Next, the operation of the calculator 10 in the first embodiment will be described. Processing in the calculator 10 is realized by software processing through the cooperation of the CPU 11 and the arithmetic processing program 141 stored in the memory unit 14. As shown in Figure 3, in the arithmetic processing, the CPU 11 accepts key input from the user via the key input unit 12 (step S1). The various keys that are input are sequentially stored in the input buffer 151. The CPU 11 determines whether or not the EXE key 21 (see Figure 1) has been pressed by the user (step S2). If it is determined that the EXE key 21 has not been pressed (step S2; NO), the CPU 11 returns to step S1.
[0017] In step S2, if it is determined that the EXE key 21 has been pressed (step S2; YES), the CPU 11 performs input code analysis (step S3). In the input code analysis process, as shown in Figure 4, the CPU 11 copies the data in the input buffer 151 to the copy buffer 152 (step S11). The data copied to the copy buffer 152 is called the copy data. Next, the CPU 11 determines whether or not there is an exponential code in the copy data (step S12). The exponential code is a code that corresponds to "×10" in exponential notation.
[0018] If the CPU determines that there is an exponential code in the copied data (step S12; YES), the CPU 11 reads one character code from the exponential code into the mantissa side of the copied data (step S13). The mantissa side is the data entered before the exponential key 22. Here, the CPU 11 determines whether the character code to be processed is the beginning of the mantissa (step S14). If the CPU determines that the character code to be processed is not the beginning of the mantissa (step S14; NO), the CPU 11 returns to step S13. In step S14, if the CPU 11 determines that the character code to be processed is the beginning of the mantissa (step S14; YES), the CPU 11 inserts a starting parenthesis "(" before the character code to be processed (step S15). To determine whether or not it is the beginning of the mantissa, for example, if a code other than a number or decimal point (for example, an operator) appears in the mantissa, the code immediately preceding it (in data order, the code immediately following the code that appeared) should be considered the beginning. If there is a code indicating a negative value in the mantissa, rather than the operator "- (minus)", the negative sign is included in the parentheses as the beginning.
[0019] Next, the CPU 11 reads one character code from the exponential code into the exponential part of the copied data (step S16). The exponential part is the data entered after the exponential key 22. Here, the CPU 11 determines whether the character code to be processed is the end of the exponential part (step S17). If it is determined that the character code to be processed is not the end of the exponential part (step S17; NO), the CPU 11 returns to step S16. If it is determined in step S17 that the character code to be processed is the end of the exponential part (step S17; YES), the CPU 11 inserts a closing parenthesis ")" after the character code to be processed (step S18). To determine whether it is the end of the exponential part, for example, the end of a superscript code can be considered the end of the exponential part. Note that some calculators do not use superscripts and display exponential notation as "m × 10^n". In that case, for example, the end can be determined to be after the number corresponding to "n", or after a combination of a "+" (plus) or "-" (minus) sign and a number. After that, the CPU 11 returns to step S12 and determines whether or not there are exponential codes in the remaining copied data. If there are exponential codes in the copied data, parentheses are inserted before and after the part related to the exponential notation. When moving from step S11 to step S12, for example, it is good to read the character codes sequentially from the beginning of the copied data (the beginning of the formula). In that case, when it is determined that there are exponential codes and the insertion of parentheses is completed and the process returns to step S12, it is possible to determine whether or not there are exponential codes in the remaining copied data by reading the character codes from the end of the exponential part where the parentheses were inserted toward the end of the copied data (the end of the formula).
[0020] In step S12, the CPU reads the character code to the end of the copied data, and if it determines that there are no exponential codes in the copied data (step S12; NO), the CPU 11 determines whether the data in the copy buffer 152 matches the data in the input buffer 151 (step S19). If it determines that the data in the copy buffer 152 does not match the data in the input buffer 151 (step S19; NO), the CPU 11 copies the data in the copy buffer 152 to the input buffer 151 (step S20). In other words, the CPU 11 replaces the data in the input buffer 151 with data in which parentheses are inserted before and after the parts related to exponential notation. In step S19, if it determines that the data in the copy buffer 152 matches the data in the input buffer 151 (step S19; YES), or after step S20, the input code analysis process ends. If there are no exponential codes and no parentheses are inserted in the copied data obtained in step S11, the data in the copy buffer 152 will match the data in the input buffer 151.
[0021] Returning to Figure 3, the CPU 11 performs calculations based on the data in the input buffer 151 (step S4). For example, the CPU 11 prioritizes calculations on parts enclosed in parentheses. The CPU 11 also prioritizes multiplication and division over addition and subtraction. The CPU 11 displays the formula and calculation result on the display unit 13 (step S5). When displaying the formula, the CPU 11 displays the formula including parentheses if they are inserted based on the data in the input buffer 151. This completes the calculation process.
[0022] Referring to FIG. 5, the key operations and display screen during exponential input will be described. When the user presses the "1" key, the "÷" key, and the "2" key in sequence on the key input unit 12, the display screen 131A is displayed on the display unit 13. The display screen 131A shows "1÷2". Next, when the user presses the exponent key 22 on the key input unit 12, the display screen 131B is displayed on the display unit 13. On the display screen 131B, a numerical value using exponential notation is displayed with the "2" that was last input before pressing the exponent key 22 as the mantissa part. At this stage, the exponent part of the exponential notation is blank. On the display screen 131B, the blank is indicated by a square. Next, when the user presses the "3" key on the key input unit 12, the display screen 131C is displayed on the display unit 13. On the display screen 131C, the "3" that was first input after pressing the exponent key 22 is displayed as a superscript as the exponent part of the exponential notation. In the calculator 10, "×10" of the exponential notation is displayed in a smaller font size than the mantissa part "2". By being displayed in a smaller font size, it becomes easier for the user to recognize that it is an input in exponential notation during formula input, but it is not limited to this. For example, "×10" may have the same font size as the mantissa part. Here, when the user presses the EXE key 21 on the key input unit 12, the display screen 131D is displayed on the display unit 13. On the display screen 131D, the formula 31 is displayed with parentheses inserted before and after the part related to the exponential notation. Also, the calculation result 32 of the formula is displayed on the display screen 131D. In the formula 31 displayed on the display screen 131D, the part related to the exponential notation, "2×10 3 ", is enclosed in parentheses, so it can be seen at a glance that the priority of "2×10 3 " is high. The value obtained by dividing "1" by "2×10 3 ", which is "5×10 -4 ", becomes the calculation result 32 of the formula. In FIG. 5, the case where the exponent part is displayed in one digit, such as "3", "-4", etc., is exemplified, but the exponent part may be displayed in two digits, such as "03", "-04", etc.
[0023] Referring to Figure 6, the key operations and display screens when inputting exponents will be explained. When the user presses the "1" key, the "÷" key, and the "2" key in order on the key input unit 12, display screen 132A is displayed on the display unit 13. Next, when the user presses the "×" key, the "1" key, the "0" key, and the exponent key 23 in order on the key input unit 12, display screen 132B is displayed on the display unit 13. On display screen 132B, the numbers or symbols (operators) corresponding to the pressed keys are displayed as they are up to "1÷2×10". The exponent key 23 is a key for inputting the exponent of the last number entered before pressing the exponent key 23 (in this case, "10"). At this stage, the exponent of "10" is left blank. On display screen 132B, the blank space is indicated by a rectangle. Next, when the user presses the "3" key on the key input unit 12, display screen 132C is displayed on the display unit 13. On display screen 132C, the first "3" entered after pressing the exponentiation key 23 is displayed as a superscript, representing the exponent of "10". On calculator 10, the base of the exponentiation "10" and the multiplication operator "×" immediately preceding the exponentiation are displayed in the same font size as other numbers and operators. When the user presses the EXE key 21 on the key input unit 12, display screen 132D is displayed on the display unit 13. Display screen 132D displays the entered mathematical expression 33 and the calculation result 34 of the expression. In the mathematical expression 33 displayed on display screen 132D, the exponent is "10 3 The highest priority is "10 3 When we perform the calculation on "", we get "1000", so for the entire equation 33, we should perform the operation "1 ÷ 2 × 1000". Since division and multiplication have the same order of precedence, we perform the division operation first. We get "0.5" from "1 ÷ 2", and then we perform "0.5 × 1000", which gives us "500", the result of the calculation in equation 34.
[0024] According to the first embodiment, when a mathematical expression including exponential notation is input by the user and an operation is performed on the expression, the CPU 11 of the calculator 10 displays the expression with the exponential notation enclosed in parentheses on the display unit 13. Therefore, the CPU 11 can easily recognize that the expression contains exponential notation. Furthermore, exponential notation is "m × 10 n Since " represents a single value, within the calculation in the formula, "m × 10 n The block of characters " is given the highest priority. The CPU 11 can clarify the order of operations by adding parentheses to the exponential notation. The user can easily distinguish between exponential notation and powers of 10 included in a mathematical expression. Furthermore, when a mathematical expression containing exponential notation is input and an operation on that expression is instructed, the CPU 11 executes the operation on the expression by prioritizing the operation on the exponential notation over operations on other operators included in the expression, and displays the result of the calculation on the display unit 13. This ensures that the calculation result is in line with the user's intention. In addition, the CPU 11 displays the exponential notation on the display unit 13 with the number entered before the exponential notation input instruction operation (pressing the exponential key 22) as the mantissa and the number entered after the exponential notation input instruction operation as the exponent. By using the exponential key 22, the user can easily input numbers using exponential notation. Thus, the interaction process between the user and the calculator 10 can reliably support the user in performing technical tasks (calculations including exponential notation).
[0025] Next, a second embodiment to which the present invention is applied will be described. The calculator in the second embodiment has the same configuration as the calculator 10 shown in the first embodiment, so the differences from the first embodiment will be explained with reference to Figures 1 and 2. In the second embodiment, the CPU 11 (setting unit) of the calculator 10 can be assigned either a function for inputting exponential notation or a function for inputting powers of 10 to the exponential key 22 (see Figure 1). When the exponential key 22 is operated while the function for inputting exponential notation is assigned to the exponential key 22, the CPU 11 displays exponential notation on the display unit 13, with the number entered before the operation of the exponential key 22 as the mantissa and the number entered after the operation of the exponential key 22 as the exponent. At this time, the CPU 11 displays a mathematical expression on the display unit 13 with the part related to the exponential notation enclosed in parentheses. When the exponential key 22 is operated while the exponential key 22 is assigned the function of inputting powers of 10, the CPU 11 displays the multiplication operator and the power of 10 with the number entered after the operation of the exponential key 22 as the exponent on the display unit 13.
[0026] Next, the operation of the calculator 10 in the second embodiment will be described. Processing in the calculator 10 is realized by software processing through the cooperation of the CPU 11 and the arithmetic processing program 141 stored in the memory unit 14. As shown in Figure 7, in the exponential key assignment process, the CPU 11 accepts the pressing of the setting key 24 (see Figure 1) by the user through the key input unit 12 (step S21). The CPU 11 displays the names of several keys as candidates for setting on the display unit 13. The CPU 11 accepts the selection of the exponential key 22 as the setting target by the user through the key input unit 12 (step S22). As shown in Figure 8, the CPU 11 displays the exponential key assignment setting screen 133A on the display unit 13 (step S23). On the exponential key assignment setting screen 133A, it is possible to select either exponentiation 41 or exponential notation 42 as the function of the exponential key 22.
[0027] Next, the CPU 11 determines, in response to the user's operation from the key input unit 12, whether to assign a function to input exponential notation or a function to input powers of tens to the exponential key 22 (step S24). For example, the user operates the cursor keys (up arrow key, down arrow key) to select power 41 or exponential notation 42, and confirms the selection by operating the OK key. In the exponential key assignment setting screen 133A shown in Figure 8, exponential notation 42 is selected, and in the exponential key assignment setting screen 133B shown in Figure 9, power 41 is selected. If, in step S24, it is determined to assign a function to input exponential notation to the exponential key 22 (step S24; exponential notation), the CPU 11 associates the input of an exponential code with the pressing of the exponential key 22 (step S25). In step S24, if it is determined to assign the function of inputting powers of 10 to the exponent key 22 (step S24; powers of 10), the CPU 11 associates the input of a multiplication operator code and a power of 10 code with the pressing of the exponent key 22 (step S26). After step S25 or step S26, the exponent key assignment process ends. After the exponent key assignment process, when the exponent key 22 is pressed, the CPU 11 stores the code associated with the pressing of the exponent key 22 in the input buffer 151.
[0028] In the second embodiment, the arithmetic processing (see Figure 3) and input code analysis processing (see Figure 4) are the same as in the first embodiment. When the exponential key 22 is assigned the function for inputting exponential notation, the transition of the display screen in response to the key operation is the same as in Figure 5. Referring to Figure 10, the key operation and display screen when the exponential key 22 is assigned the function for inputting powers of 10 will be described. When the user presses the "1" key, the "÷" key, and the "2" key in order on the key input unit 12, the display screen 134A is displayed on the display unit 13. The display screen 134A displays "1÷2". Next, when the user presses the exponential key 22 on the key input unit 12, the display screen 134B is displayed on the display unit 13. On the display screen 134B, after "1÷2", the multiplication operator "×" and the power of 10 are displayed. At this stage, the exponent of "10" is left blank. On the display screen 134B, the blank space is indicated by a rectangle. Next, when the user presses the "3" key on the key input unit 12, display screen 134C is displayed on the display unit 13. On display screen 134C, the "3" that was first entered after pressing the exponential key 22 is displayed as a superscript, representing the exponent of "10". At this point, when the user presses the EXE key 21 on the key input unit 12, display screen 134D is displayed on the display unit 13. Display screen 134D shows the entered mathematical formula 35 and the calculation result 36 of the formula.
[0029] According to the second embodiment, the CPU 11 of the calculator 10 can assign either a function for inputting exponential notation or a function for inputting powers of 10 to the exponential key 22, depending on the user's selection. For example, when the exponential key 22 is operated while the function for inputting exponential notation is assigned to the exponential key 22, the CPU 11 displays the exponential notation on the display unit 13, with the number entered before the operation of the exponential key 22 as the mantissa and the number entered after the operation of the exponential key 22 as the exponent. The CPU 11 also displays the formula with the exponential notation part enclosed in parentheses on the display unit 13. The CPU 11 makes it easy to recognize that a formula contains exponential notation. On the other hand, when the exponential key 22 is operated while the function for inputting powers of 10 is assigned to the exponential key 22, the CPU 11 displays the multiplication operator and the power of 10 with the number entered after the operation of the exponential key 22 as the exponent on the display unit 13. The presence or absence of parentheses allows the user to understand the assignment status of the exponential key 22, i.e., the technical status of the device, as well as the order of operations, thereby improving user convenience. The user can change the function of the exponential key 22 according to the frequency of use of exponential notation or powers of tens, etc., further improving user convenience.
[0030] Next, a third embodiment to which the present invention is applied will be described. As shown in Figure 11, the PC (Personal Computer) 50 as an electronic device in the third embodiment includes a CPU 51, an operation unit 52, a display unit 53, a storage unit 54, and RAM 55. The PC 50 is assumed to be a tablet PC. However, the PC 50 is not limited to this and may be a notebook PC, desktop PC, smartphone, etc.
[0031] The CPU 51 is a control unit that controls various parts of the PC 50. The CPU 51 reads a specified program from among the various programs stored in the memory unit 54, loads it into the RAM 55, and executes various processes in cooperation with the loaded program. The operation unit 52 has a touch panel and accepts touch operations from the user, outputting the operation signal to the CPU 51. The display unit 53 is composed of a liquid crystal display or the like, and displays various information on the display screen according to the control from the CPU 51. The memory unit 54 is composed of an HDD (Hard Disk Drive), SSD (Solid State Drive), or the like, and is a memory unit that can read and write information. The memory unit 54 stores various data and various programs. In particular, the calculator application program 541 is stored in the memory unit 54. The RAM 55 is a volatile semiconductor memory that can read and write information. The RAM 55 provides the CPU 51 with a work area for temporary storage of data and programs.
[0032] The CPU 51, in cooperation with the calculator application program 541, implements scientific calculator functionality on the PC 50. The CPU 51 displays keys on the display unit 53 that are similar to the keys that make up the key input unit 12 of the calculator 10 shown in Figure 1. That is, the CPU 51 displays various keys related to scientific calculator functionality (numeric keypad, arithmetic operation keys, exponential keys, power keys, EXE keys, etc.) as soft keys. The arrangement or shape of the various keys is not limited. The user inputs mathematical formulas and performs calculations by touching the various keys on the display unit 53 using the operation unit 52 (touch panel). The operation unit 52 may also include a mouse, and the user may specify (select) the target key by clicking on the various keys on the display unit 53 with the mouse. When the CPU 51 (control unit) receives input of a mathematical formula including exponential notation from the user's operation unit 52 and is instructed to perform calculations on the formula, it displays the formula with the exponential notation enclosed in parentheses on the display unit 53. When a mathematical expression containing exponential notation is input to the CPU 51 and an operation on that expression is instructed, the CPU 51 executes the operation on the expression by prioritizing the operation in exponential notation over operations by other operators included in the expression. The CPU 51 displays the result of the operation on the display unit 53. Other operators include, for example, binary operators.
[0033] The CPU 51 can accept input from the exponential keys (soft keys) displayed on the display unit 53 for entering exponential notation. The CPU 51 displays the exponential notation on the display unit 53, using the number entered before the exponential key operation as the mantissa and the number entered after the exponential key operation as the exponent. The CPU 51 can accept input from the power keys (soft keys) displayed on the display unit 53 for entering powers. The CPU 51 displays the power on the display unit 53, using the number entered before the power key operation as the base and the number entered after the power key operation as the exponent.
[0034] In the PC50 of the third embodiment, the various keys related to the scientific calculator function are not physical keys, but soft keys displayed on the display screen of the display unit 53 by software. The operation of the PC50 is the same as the arithmetic processing (see Figure 3) and input code analysis processing (see Figure 4) described in the first embodiment, so the explanation is omitted. However, pressing the various keys should be read as touching (or clicking) the various keys. Also, in the PC50, a predetermined area of the RAM 55 can be used instead of the input buffer 151 and copy buffer 152 in the calculator 10 of the first embodiment. The key operation and display screen when inputting exponents are the same as in Figure 5. The key operation and display screen when inputting powers are the same as in Figure 6.
[0035] According to the third embodiment, when a mathematical expression including exponential notation is input from the user's operation unit 52 and an operation is performed on the expression, the CPU 51 of the PC 50 displays the expression with the exponential notation enclosed in parentheses on the display unit 53. Therefore, the CPU 51 can easily recognize that an expression contains exponential notation. Furthermore, when a mathematical expression including exponential notation is input and an operation is performed on the expression, the CPU 51 prioritizes the operation in exponential notation over operations using other operators included in the expression, and performs the operation on the expression, displaying the calculation result on the display unit 53. This ensures that the calculation result is in line with the user's intention. In addition, since the CPU 51 displays the exponential key for inputting exponential notation as a soft key on the display unit 53, calculator functionality suitable for exponential notation can be realized even without a dedicated calculator electronic device. Thus, the interaction process between the user and the PC 50 can reliably support the user in performing technical tasks (calculations including exponential notation).
[0036] In the third embodiment, a calculator application (scientific calculator function) used in the PC50 was described, but in a server-client system, the server device may provide the scientific calculator function to the client terminal. Specifically, the operation unit and display unit of the client terminal, which can communicate data with the server device, are used as input and display devices corresponding to the scientific calculator function in the server device. In other words, the control unit of the server device displays keys on the display unit of the client terminal that are the same as the keys that make up the key input unit 12 of the calculator 10 shown in Figure 1. The control unit of the server device then accepts operations on the various keys based on operations from the operation unit of the client terminal. The control unit of the server device displays mathematical formulas and calculation results, with the parts related to exponential notation enclosed in parentheses, on the display unit of the client terminal.
[0037] The descriptions in the above embodiments are examples of the electronic device, control method, and program according to the present invention, and are not limited thereto. The detailed configuration and detailed operation of each part constituting the device can also be modified as appropriate without departing from the spirit of the present invention. For example, each configuration or process described in each of the above embodiments may be combined as appropriate. The scope of the present invention includes the scope of the invention as described in the claims and its equivalents. [Explanation of Symbols]
[0038] 10...Calculator (electronic device), 11...CPU (control unit, setting unit), 13...Display unit, 50...PC (electronic device), 51...CPU (control unit), 53...Display unit
Claims
1. An electronic device comprising a control unit that, when a user inputs a mathematical formula including exponential notation and instructs the user to perform an operation on said formula, displays the formula with the exponential notation portion enclosed in parentheses on the display unit.
2. The electronic device according to claim 1, wherein when a mathematical expression including exponential notation is input and an operation on the mathematical expression is instructed, the control unit performs an operation on the mathematical expression by prioritizing the operation in exponential notation over operations by other operators included in the mathematical expression, and displays the result of the operation on the mathematical expression on the display unit.
3. The electronic device according to claim 1, wherein the control unit causes the control unit to display the exponential notation on the display unit, with the mantissa being the number entered before the exponential notation input instruction operation and the exponent being the number entered after the exponential notation input instruction operation.
4. The control unit is capable of accepting operations on the index keys, The aforementioned exponential key is equipped with a setting unit to which either a function for inputting the exponential notation or a function for inputting powers of 10 can be assigned. The electronic device according to claim 3, wherein, when the exponent key is operated while the exponent key is assigned a function for inputting powers of 10, the control unit displays a multiplication operator and a power of 10 with the number entered after the operation of the exponent key as the exponent on the display unit.
5. A control method that includes the step of displaying the formula, with the portion relating to the exponential notation enclosed in parentheses, on a display unit when a formula including exponential notation is input by a user and an operation on the formula is instructed to be performed.
6. Computers, A program for functioning as a control unit that, when a user inputs a mathematical formula including exponential notation and instructs the user to perform an operation on said formula, displays the formula with the exponential notation portion enclosed in parentheses on the display unit.
Citation Information
Patent Citations
Computer to easily calculate number with large digit number such as logarithm and involution
JP2015197907A