Electronic device, display method and program
The device addresses unit misidentification errors by determining and correcting numerical values, ensuring accurate calculations through a rationality determining unit and display of correction information.
Patent Information
- Application Number
- JP2024001183
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2024-01-09
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2040-03-24
AI Technical Summary
Existing electronic devices fail to detect errors in both the unit and numerical value input, leading to significantly different and often incorrect calculation results when the set unit is misidentified.
The device includes a rationality determining unit to assess the reasonableness of input numerical values based on their units, converting them if necessary, and displays correction information to ensure accurate calculations.
Ensures users are alerted to and correct incorrect inputs, providing accurate calculation results by converting and displaying corrected values.
Smart Images

Figure 0007589842000001 
Figure 0007589842000002 
Figure 0007589842000003
Abstract
Description
[Technical field]
[0001] The present invention relates to an electronic device, Display method and programs. [Background technology]
[0002] Conventionally, there is known a technique for determining whether or not a numerical value or a unit is an error in an electronic device, such as a calculator, into which a numerical value or a unit is input. For example, Patent Document 1 describes this type of technique. Patent Document 1 describes a calculation device and a program that calculates an inputted formula with physical units, determines whether or not the units of the calculated solution are appropriate physical units, and displays the determination result. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2011-186771 A Summary of the Invention [Problem to be solved by the invention]
[0004] In electronic devices where values are input into input fields where units are set in advance, misidentifying the set units will output a significantly different result. For example, if a value converted to cm is input into an input field where the unit is set to m, a result with a different number of digits will be output. The technology in Patent Document 1 can determine whether the type of unit is correct, but cannot detect errors in the input numerical value or the size of the unit.
[0005] The present invention relates to for example Set unit of Misidentification Based on Number of Incorrect input In cases where a user detects and corrects a problem, it is possible to make the user aware of the result of the correction. electronic equipment, Display method The purpose of this website is to provide information and programs. [Means for solving the problem]
[0006] In order to achieve the above object, the present invention Related to Electronic devices include: The display control means is configured to display, after displaying a calculation result using a predetermined formula, numerical values substituted into each of a plurality of variable items in the formula in a predetermined order based on user operation in order to obtain the calculation result, and when there is a specific variable item among the plurality of variable items in which the substituted numerical value has been converted into a numerical value different from the numerical value input by the user, the display control means displays information indicating that the numerical value input by the user has been converted when displaying the numerical value substituted into the specific variable item. Furthermore, a display method according to the present invention is a display method executed by an electronic device, and includes a display control process for displaying a calculation result using a predetermined formula, and then displaying numerical values substituted into each of a plurality of variable items in the formula in a predetermined order based on user operation to obtain the calculation result, and the display control process is characterized in that, when there is a specific variable item among the plurality of variable items in which the substituted numerical value has been converted into a numerical value different from the numerical value input by the user, information indicating that the numerical value input by the user has been converted is added and displayed when the numerical value substituted into the specific variable item is displayed. In addition, the program of the present invention causes a computer to function as a display control means that, after displaying a calculation result using a predetermined formula, displays numerical values substituted into each of a plurality of variable items in the formula in a predetermined order based on user operation in order to obtain the calculation result, and the display control means is characterized in that, when there is a specific variable item among the plurality of variable items in which the substituted numerical value has been converted into a numerical value different from the numerical value input by the user, causes information indicating that the numerical value input by the user has been converted to be added when displaying the numerical value substituted into the specific variable item. Effect of the Invention
[0007] According to the present invention, for example Set unit of Misidentification Based on Number of Incorrect input In cases where a user detects and corrects a problem, it is possible to make the user aware of the result of the correction. electronic equipment, Display method and programs can be provided. [Brief description of the drawings]
[0008] [Figure 1] 1 is a schematic diagram showing the configuration of a calculator 1 according to one embodiment of the present invention. [Diagram 2] 1 is a block diagram showing a hardware configuration of a calculator 1 according to an embodiment of the present invention. [Diagram 3] 2 is a functional block diagram showing a functional configuration for executing a BMI calculation process, among the functional configurations of the calculator 1 of FIG. 1. FIG. [Figure 4] 4 is a flowchart illustrating the flow of a BMI calculation process executed by the calculator 1 of FIG. 1 having the functional configuration of FIG. 3. [Diagram 5] 2 is a schematic diagram showing an example of display content displayed on a display 3 in response to key operations in a calculator 1 according to an embodiment of the present invention. FIG. [Figure 6] FIG. 13 is a schematic diagram showing an example of display contents that are displayed on a display 3 in response to key operations in a conventional calculator. [Figure 7] 4 is a flowchart illustrating the flow of a correction value re-display process in the BMI calculation process executed by the calculator 1 of FIG. 1 having the functional configuration of FIG. 3. [Figure 8] 2 is a schematic diagram showing an example of display content displayed on a display 3 in response to key operations in a calculator 1 according to an embodiment of the present invention. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0010] [Calculator Overview] First, a calculator 1 according to an embodiment of the present invention will be described. Fig. 1 is a schematic diagram showing a calculator 1 according to an embodiment of the present invention.
[0011] The calculator 1 according to this embodiment is a calculation device having calculation functions necessary for dispensing medicines, etc. The calculator 1 includes an input key group 2 having various keys, and a display 3. The calculator 1 according to this embodiment may be hardware having a physical entity, or may be application software executed by hardware such as a personal computer or a mobile phone.
[0012] The input key group 2 is a group of keys for receiving instruction operations such as input operations of numerical values, arithmetic symbols, etc., and selection of various processes from the user. Specifically, the input key group 2 includes a numeric keypad 20, an input key 21, a delete key 22, a decimal point display selection key 23, and a mode switching key 24.
[0013] The numeric keypad 20 is a key that receives input operations for numerical values and various arithmetic symbols. The input keys 21 are keys that receive input operations for instructions to execute processing and for instructions to make decisions. The delete key 22 is a key that receives input operations for instructions to delete numerical values displayed on the display 3 and data stored in the memory unit 12, which will be described later. The decimal point display selection key 23 is a key that receives input operations for instructions to switch the display method for decimal places. The mode switching key 24 is a key that receives input operations to switch to a mode for performing various calculation processes.
[0014] Calculation processes that can be used with the calculator 1 of this embodiment include creatinine clearance calculation process, glomerular filtration rate calculation process, percentage conversion process, number of days calculation process, calculation process used when dividing powdered medicine into packets, BMI calculation process, body surface area calculation process, and remainder calculation process.
[0015] In addition, the calculator 1 of this embodiment has a function of automatically converting the numerical value of a given input item into a more appropriate numerical value if the numerical value is irrational. For example, in a BMI calculation process, if a first numerical value is inputted into the calculator 1, the BMI is calculated by converting the first numerical value into a second numerical value, which is a corrected value.
[0016] The display 3 is configured by an LCD (Liquid Crystal Display), ELD (Electronic Luminescent Display), etc. The display 3 displays various data necessary for using the calculator 1, such as characters, symbols, mathematical expressions, and calculation results in response to operations of the input keys 2.
[0017] [Hardware configuration] Next, the hardware configuration of the calculator 1 will be described. FIG. 2 is a block diagram showing the hardware configuration of the calculator 1. As shown in FIG. 2, the calculator 1 includes a CPU (Central Processing Unit). The computer includes a processing unit 11, a storage unit 12 including a read only memory (ROM) 4 and a random access memory (RAM) 5, an input unit 13, and a display unit 14.
[0018] The CPU 11 receives an operation signal corresponding to an input key from the input unit 13 and performs various processes such as displaying numerical values, character strings, etc. on the display 3, converting input values, and executing calculations. The CPU 11 executes various processes in accordance with programs recorded in the ROM 4 of the storage unit 12. The RAM 5 of the storage unit 12 also stores data, etc., necessary for the CPU 11 to execute various processes, as appropriate.
[0019] The input unit 13 includes an input key group 2, and outputs to the CPU 11 an operation signal corresponding to a pressed key.
[0020] The display unit 14 includes a display 3 and a DD6 (Display Driver). The display unit 14 displays numerical values and character strings on the display 3 in accordance with a display signal output from the CPU 11. Specifically, the display signal is output from the CPU 11 to the DD6, and the DD6 controls the display 3 based on the display signal to display various information.
[0021] The display section 14 includes a status display section 141, a numeric display section 142, and a unit display section 143. The status display section 141 displays the status of the numeric values, such as the input items and output items of the numeric values and the presence or absence of correction, in the area on the left side of the display 3 in Fig. 1, the numeric display section 142 displays the numeric values in the central area of the display 3, and the unit display section 143 displays the unit of the numeric values displayed by the numeric display section 142 in the area on the right side of the display 3.
[0022] [Function block] Next, the functional blocks included in the calculator 1 will be described with reference to Fig. 3. Fig. 3 is a functional block diagram showing the functional configuration of the calculator 1 for converting the first numerical value, which is an input value, as necessary and for executing a BMI calculation process. The BMI calculation process refers to a series of processes for calculating the BMI.
[0023] In this embodiment, in the CPU 11, a mode switching unit 111, a memory control unit 112, a rationality determination unit 113, a conversion unit 114, a BMI calculation unit 115, a display control unit 116, and a correction value reading unit 117 function to realize the process of calculating the BMI.
[0024] The mode switching unit 111 switches to a mode for performing various calculation processes in response to the mode switching key 24 pressed by the user. When switching to a mode for performing various calculation processes, the mode switching unit 111 determines an input item into which a first numerical value is input and a unit that is preset for the input item. For example, attributes of information to be input, such as height and weight, are set for the input item. In the BMI calculation processing mode of this embodiment, an input item whose attribute is height and whose preset unit is m, and an input item whose attribute is weight and whose unit is kg are set. In addition, in the BMI calculation processing mode, the input item of height is a target input item that is set as a conversion target by the conversion unit 114, and the input item of weight is a non-target input item that is not set as a conversion target by the conversion unit 114. When performing BMI calculation processing, when the [BMI] key of the mode switching key 24 is pressed and the input unit 13 accepts an operation signal, the mode switching unit 111 switches to the BMI calculation processing mode. Then, when height H1, which is a first numerical value, is input into the input item of height, the CPU 11 determines whether or not height H1 is reasonable. On the other hand, when the first numerical value, ie, weight W, is input in the weight input item, the CPU 11 does not determine whether or not weight W is reasonable.
[0025] The storage control unit 112 controls the storage of the first numerical value input by the user's operation, the second numerical value converted by the conversion unit 114, and the like in the storage unit 12. The storage unit 12 has an input value storage unit 121 in which the input value is stored, and a BMI calculation storage unit 122 in which a value used for calculating the BMI is stored. In this embodiment, when a weight W is input in the weight input item by the user's operation, the storage control unit 112 stores the weight W in a weight memory 123 which is one area of the input value storage unit 121. When a height H1 is input in the height input item by the user's operation, the storage control unit 112 stores the height H1 in a height memory 124 which is one area of the input value storage unit 121. In addition, the storage control unit 112 moves the weight W stored in the weight memory 123 to a first calculation memory 125 which is one area of the BMI calculation storage unit 122 in order to perform the BMI calculation. Furthermore, the memory control unit 112 transfers the height H1 stored in the height memory 124 to a second calculation memory 126 which is an area of the BMI calculation memory unit 122. When the height H1 is converted to the height H2 which is a second numerical value by the conversion unit 114, the memory control unit 112 stores the height H2 in a correction value memory 127 which is an area of the BMI calculation memory unit 122.
[0026] The rationality determination unit 113 determines whether the height H1 input by the user's operation is within a reasonable range in the unit corresponding to the height H1. In this embodiment, the rationality determination unit 113 determines whether the height H1 satisfies the condition of the numerical range. The numerical range is determined according to the attribute and unit of the input item into which the height H1 is input. That is, the rationality determination unit 113 refers to input items other than the unit corresponding to the height H1 and determines whether the height H1 is within a reasonable range as a numerical value to be input into the input item. When the height H1 satisfies the condition of the numerical range, the rationality determination unit 113 determines that the height H1 is reasonable. Conversely, when the height H1 does not satisfy the condition of the numerical range, the rationality determination unit 113 determines that the height H1 is unreasonable. Specifically, the rationality determination unit 113 determines that the height H1 is rational when the integer part of the height H1 is a single digit, and determines that the height H1 is unreasonable when the integer part of the height H1 is two or more digits or 0. In this specification, the "reasonable range" refers to a range in which the input value does not deviate from a predetermined standard when compared with the unit corresponding to the input value. For example, in the case of the height to be converted in this embodiment, if the input value exceeds one digit or is less than one digit when compared with the unit m, it deviates from the standard for adult height and is determined to be unreasonable.
[0027] When the rationality determination unit 113 determines that the first numerical value is unreasonable, the conversion unit 114 converts the first numerical value into a second numerical value according to a preset correspondence relationship. In this specification, the "correspondence relationship" refers to a relationship between a first numerical value and a second numerical value into which the first numerical value is converted. For example, in this embodiment, the correspondence relationship is that the first numerical value is 100 times the value of the second numerical value. That is, when the rationality determination unit 113 determines that the height H1 is unreasonable, the conversion unit 114 converts the height H1 into a height H2 by dividing the height H1 by 100.
[0028] The BMI calculation unit 115 performs calculation based on a predetermined formula using the first numerical value determined to be reasonable by the rationality determination unit 113 or the second numerical value determined to be unreasonable and converted by the conversion unit 114 as one of the variables. Specifically, the BMI calculation unit 115 performs calculation by substituting the weight W entered in the weight input item into (weight kg) in formula (1) and substituting the height H1 entered in the height input item or the height H2 converted by the conversion unit 114 into (height m). BMI=(Weight kg) / (Height m) 2 (1)
[0029] The display control unit 116 stores information such as numerical values and calculation results in a display memory 128 which is an area of the BMI calculation storage unit 122, and transmits a display signal to the display unit 14 to control the function of the display unit 14.
[0030] The correction value reading unit 117 is a part of the BMI calculation unit 115, and reads out the height H2 stored in the correction value memory 127 after the BMI is calculated.
[0031] Next, the flow of the BMI calculation process by the CPU 11 of the calculator 1 will be described with reference to Fig. 4. Fig. 4 is a flow chart illustrating the flow of the BMI calculation process executed by the calculator 1 having the functional configuration.
[0032] When the user presses the [BMI] key of the mode switching keys 24, the mode switching unit 111 receives an operation signal from the input unit 13, switches to the BMI calculation processing mode, and starts the BMI calculation processing.
[0033] In step S11, the memory control unit 112 reads out the weight W stored in the weight memory 123 and stores it in the first calculation memory 125.
[0034] In step S12, the memory control unit 112 reads out the height H1 stored in the height memory 124 and stores it in the second calculation memory 126.
[0035] In step S13, the rationality determination unit 113 determines whether or not the height H1 is reasonable based on the number of digits in the integer part of the height H1. If the number of digits in the integer part of the height H1 is one digit (Yes in step S13), the rationality determination unit 113 determines that the height H1 is reasonable, and proceeds to step S18. On the other hand, if the number of digits in the integer part of the height H1 is not one digit (No in step S13), the rationality determination unit 113 determines that the height H1 is unreasonable, and proceeds to step S14.
[0036] In step S14, the conversion unit 114 reads out the height H1 from the second calculation memory 126, and converts the height H1 into a height H2 by dividing the height H1 by 100.
[0037] In step S15, the rationality determination unit 113 determines whether or not the height H2 is reasonable based on the number of digits in the integer part of the height H2. If the number of digits in the integer part of the height H2 is one digit (Yes in step S15), the rationality determination unit 113 determines that the height H2 is reasonable, and proceeds to step S17. On the other hand, if the number of digits in the integer part of the height H1 is not one digit (No in step S15), the rationality determination unit 113 determines that the height H2 is unreasonable, and proceeds to step S18. At this time, the rationality determination unit 113 transmits a display signal to the display unit 14, and the status display unit 141 displays "(outside correction range)".
[0038] In step S16, the memory control unit 112 stores the height H2 converted from the height H1 in the second calculation memory 126. The memory control unit 112 also stores the height H2 in the correction value memory 127.
[0039] In step S17, the conversion unit 114 turns on a corrected flag indicating that the height H1 has been converted to the height H2.
[0040] In step S18, the BMI calculation unit 115 calculates the BMI based on the weight W stored in the first calculation memory 125 and the height H1 or height H2 stored in the second calculation memory 126 as variables.
[0041] In step S19, the display control unit 116 stores the BMI calculation result in the display memory 128 and transmits a display signal to the display unit 14 to display the BMI calculation result on the numerical display unit 142. At this time, if the BMI calculation has been performed via step S17, the display control unit 116 reads that the correction flag is on, stores information that the BMI calculation result has been corrected in the display memory 128, and displays "BMI (corrected)" on the status display unit 141. On the other hand, if the rationality determination unit 113 determines that the height H1 is rational in step S13, the display control unit 116 displays "BMI" on the status display unit 141.
[0042] Next, an example of the display contents shown on the display 3 in response to key operations in the BMI calculation processing mode of the calculator 1 will be described with reference to Fig. 5. Fig. 5 shows, from the left column, the contents of the key operations, the display in the status display section 141, the display in the numerical value display section 142, and the display in the unit display section 143. In Fig. 5, the display contents shown by key operations are shown on the same line. Fig. 5 shows a pattern in which, when the numerical value "1.75" should be entered in the height input item, the set unit is mistakenly recognized as "cm" instead of "m", and "175" is erroneously entered.
[0043] The user presses the [AC] key to erase information stored in the input value storage unit 121, the BMI calculation storage unit 122, etc., and then presses the [BMI] key. When the [BMI] key is pressed, "Height?" is displayed in the status display unit 141, indicating that the attribute of the input item is height, "0" is displayed in the numeric display unit 142, and "m" is displayed in the unit display unit 143.
[0044] 5, when keys [1], [7], and [5] on the numeric keypad 20 are pressed, the display in the numeric value display section 142 changes from "0" to "175." Then, when the input key 21 [Enter] is pressed, the height H1, "175," is stored in the height memory 124, and the status display section 141 displays "Weight?" indicating that the attribute of the input item is weight, "0" is displayed on the numeric value display section 142, and "kg" is displayed on the unit display section 143.
[0045] As shown in Fig. 5, when [7][0] on the numeric keypad 20 is pressed, the display on the numeric display unit 142 changes from "0" to "70". Then, when the [INPUT] key on the input key 21 is pressed, "70" which is the weight W is stored in the weight memory 123, and the BMI calculation process is started. The BMI calculation process is executed according to the above-mentioned process flow shown in Fig. 4.
[0046] In the example of Fig. 5, since "175" is entered as height H1 having an integer part of two or more digits in the height input item, the rationality determination unit 113 determines that height H1 is irrational, and the conversion unit 114 converts it to "1.75" as height H2. Then, BMI is calculated based on formula (1) using "70 kg" as weight W and "1.75 m" as height H2. As a result, as shown in Fig. 5, "BMI (corrected)" is displayed on the status display unit 141, and "22.285714285", which is the calculated BMI, is displayed on the numeric display unit 142.
[0047] Here, the key operations performed when performing BMI calculation processing with a conventional calculator and the display contents shown on the display 3 in response to the key operations will be described with reference to Fig. 6. The conventional calculator differs from the calculator 1 mainly in that it does not include the rationality determination unit 113 and the conversion unit 114. Descriptions of key operations and display contents that overlap with those in Fig. 5 will be omitted.
[0048] 6, when height H1 is input in the height input item by pressing [1], [7], or [5] on the numeric keypad 20, the display in the numeric display section 142 changes from "0" to "175." When the input key 21 [INPUT] is pressed, height H1, "175," is stored in the height memory 124, and "weight?" is displayed in the status display section 141 to indicate that the weight input item is selected, "0" is displayed in the numeric display section 142, and "kg" is displayed in the unit display section 143.
[0049] When [7][0] on the numeric keypad 20 is pressed, the display on the numeric display unit 142 changes from "0" to "70." When [INPUT] on the input key 21 is pressed, "70" which is the weight W is stored in the weight memory 123, and the BMI calculation process is started.
[0050] 6, BMI is calculated based on formula (1) using weight W of "70 kg" and height H1 of "175 m" instead of converting height H1 to height H2 as in calculator 1. As a result, as shown in FIG 6, "BMI" is displayed on status display section 141, and the calculated BMI result "0.002285714" is displayed on numeric display section 142.
[0051] As shown in Figure 6, in a conventional calculator, if a user inputs height H1 using the wrong unit, a value 100 times larger than the actual height is input as height H1, and a value 1 / 10,000 of the actual height is output as BMI.
[0052] On the other hand, as shown in FIG. 5, in the calculator 1 of this embodiment, even if the user misinterprets the set unit and inputs height H1, the reasonableness of height H1 is determined from the number of digits in the integer part and the value is automatically converted by dividing it by 100, so that an appropriate BMI can be obtained.
[0053] Next, the flow of the correction value display process by the CPU 11 of the calculator 1 will be described with reference to Fig. 7. Fig. 7 is a flow chart showing the flow of the correction value re-display process in the BMI calculation process executed by the calculator 1 having the functional configuration of Fig. 3.
[0054] The correction value re-display process is a process in which, during the BMI calculation process of the calculator 1, the conversion unit 114 converts a first numerical value to a second numerical value, and after the BMI is calculated, the second numerical value is read out again and displayed on the display 3.
[0055] In step S21, the correction value reading unit 117 reads out the height H2 stored in the correction value memory 127, and stores it in the display memory 128. At this time, the correction value reading unit 117 reads that the correction-completed flag is on, and stores in the display memory 128 the information that "the value has been corrected."
[0056] In step S22, the correction value reading unit 117 turns off the correction-completed flag indicating that the height H1 has been converted to the height H2.
[0057] In step S23, the display control unit 116 reads out height H2 and the information that "the value has been corrected" stored in the display memory 128, and transmits a display signal to the display unit 14. As a result, "Height? (corrected)" is displayed on the status display unit 141 of the display unit 14, and height H2 is displayed on the numeric display unit 142.
[0058] Next, an example of the display contents displayed on the display 3 in response to key operations when the BMI calculation process is executed again after executing the correction value redisplay process in the BMI calculation process mode of the calculator 1 will be described with reference to Fig. 8. Fig. 8 shows a pattern in which, as in the example of Fig. 5, when the value "1.75" should be entered in the height input field, the user mistakenly recognizes that the set unit is "cm" instead of "m", and erroneously enters "175". Note that the flow up to the first BMI calculation overlaps with the case of Fig. 5, and therefore the description will be omitted.
[0059] 8, when a height H1 of "175" is input in the height input field, a weight W of "70" is input in the weight input field, and a BMI calculation process is executed, height H1 of "175" is converted to height H2 of "1.75" by conversion unit 114. Then, "BMI (corrected)" is displayed in status display unit 141, and the BMI calculation result of "22.285714285" is displayed in numeric display unit 142.
[0060] As shown in FIG. 8, when the [INPUT] key 21 is pressed, the height H2 stored in the correction value memory 127 is read by the correction value reading unit 117, the status display unit 141 displays “Height? (corrected)”, and the numeric display unit 142 displays the height H2, “1.75”.
[0061] When the input key 21 [INPUT] is pressed, height H2 is stored in the second calculation memory 126, and the status display unit 141 displays "Weight?" to indicate that the weight input item is selected, the numerical value display unit 142 displays "70" which was previously input, and the unit display unit 143 displays "kg."
[0062] As shown in Fig. 8, when [6] [5] of the numeric keypad 20 is pressed, the display of the numerical value display unit 142 changes from "70" to "65". Then, when [INPUT] of the input key 21 is pressed, "65" which is the weight W is stored in the weight memory 123, and the BMI calculation process is started. The BMI calculation process is executed according to the above-mentioned process flow shown in Fig. 4.
[0063] 8, the BMI is calculated based on formula (1) using as variables the height H2 of "1.75" read from the correction value memory 127 by the correction value reading unit 117 of the BMI calculation unit 115 and the newly input weight W of "65". As a result, as shown in FIG. 5, "BMI (corrected)" is displayed on the status display unit 141, and the calculated BMI result of "21.22448979" is displayed on the numeric display unit 142.
[0064] As described above, the calculator has the following advantages. That is, the calculator 1 of this embodiment includes a rationality determination unit 113 that determines whether height H1 input by a user's operation is within a rational range for the unit corresponding to the height H1, and a conversion means that converts the first numerical value to a second numerical value or converts the unit of the first numerical value according to a preset correspondence relationship so that height H1 is within a rational range for the unit corresponding to the height H1 when height H1 is determined to be unreasonable by the rationality determination unit 113. As a result, it is possible to determine whether an input numerical value is within a rational range for the set unit, and convert it to height H2 if it is unreasonable, so that even if a numerical value is input incorrectly due to a misidentification of the set unit, it is possible to automatically correct it to a more appropriate numerical value.
[0065] The rationality determination unit 113 refers to the input item into which height H1 is input, and determines whether or not the value is within a rational range as a value to be input into the input item. This allows for more accurate determination of rationality, since it determines whether or not the value is within a rational range by taking into account not only the relationship between the value and the unit, but also the input item into which the value is input.
[0066] Furthermore, the rationality determination unit 113 determines that the height H1 is unreasonable when the height H1 does not satisfy the condition of the numerical range set based on the attribute and unit set in the input item, and determines that the height H1 is rational when the height H1 satisfies the condition of the numerical range. As a result, since the height H1 is determined to be unreasonable if it does not satisfy the condition of the numerical range, it is possible to reliably correct an input value that is outside the set range.
[0067] In addition, the rationality determination unit 113 determines whether the height H1 falls within the condition of the numerical range based on the number of digits of the height H1. This allows the user to correct the number of digits entered to a more appropriate value, even if the number of digits is incorrect.
[0068] The calculator 1 further includes a BMI calculation unit 115 that performs calculation based on formula (1) using height H1 determined to be reasonable by the rationality determination unit 113, height H2 determined to be unreasonable and converted by the conversion unit 114, or height H1 determined to be unreasonable and set in a unit converted by the conversion unit 114. This makes it possible to obtain a more appropriate calculation result even if a numerical value is input incorrectly due to a misidentification of the set unit.
[0069] Moreover, the calculator 1 further includes a correction value memory 127 that stores the height H2 converted by the conversion unit 114, and the BMI calculation unit 115 reads out the height H2 stored in the correction value memory 127 and uses it in the calculation based on the formula (1). This makes it possible to use a value corrected to an appropriate value when repeatedly measuring the BMI with the same height value, thereby eliminating the need to input the value again and determine whether it is reasonable, thereby making the processing more efficient.
[0070] The calculator 1 further includes a display unit 14 that displays a plurality of input items, and the rationality determination unit 113 determines whether or not height H1 is rational when it is input into a target input item that is set as a conversion target among the plurality of input items, and does not determine whether or not weight W is rational when it is input into a non-target input item that is not set as a conversion target among the plurality of input items. This allows selection of input item attributes as targets for rationality determination, so that input items that are unlikely to be erroneously input by the user can be excluded from targets for rationality determination. This reduces the processing load on the CPU 11, and makes processing more efficient.
[0071] Although the embodiment of the present invention has been described above, the present invention is not limited to the above-mentioned embodiment and can be modified as appropriate.
[0072] In the above-described embodiment, a first numerical value is input into the input unit 13 by a user operation, and a unit corresponding to the first numerical value is also input together with the first numerical value, and the rationality determination unit 113 may be configured to determine whether or not the unit is within a rational range for the first numerical value.
[0073] In the above embodiment, when the rationality determination unit 113 determines that the first numerical value is unreasonable, the conversion unit 114 converts the first numerical value to the second numerical value, but the unit of the first numerical value may be converted. For example, when the height H1 is erroneously input to the input unit 13 as "175m", the conversion unit 114 may convert the unit of the height H1 to cm to "175cm". In this way, even if the input numerical value is unreasonable for the corresponding unit, the unit can be adjusted to the input numerical value, and the data can be automatically corrected to a more appropriate value. In addition, the BMI calculation unit 115 may calculate the BMI based on the formula (1) using "175cm", which is the height H1 with the unit converted by the conversion unit 114 set. In addition, the memory control unit 112 may store the unit of the height H1 converted by the conversion unit 114 in the correction value memory 127. The BMI calculation unit 115 may read out the height H1 in which the unit stored in the correction value memory 127 is set, and use it for the BMI calculation based on the formula (1). Furthermore, the display unit 14 may display the height H1 in which the unit stored in the storage unit is set in the height input item.
[0074] In the above embodiment, the rationality determination unit 113 determines whether the first numerical value falls within the numerical range condition based on the number of digits in the integer part of the first numerical value, but the determination may be based on the number of digits in the decimal part, and the numerical range condition is not particularly limited. For example, the numerical range condition may be satisfied if the value is between 1 and 10, and not satisfied otherwise.
[0075] In the above embodiment, when the rationality determination unit 113 determines that the first numerical value is irrational, the conversion unit 114 converts the first numerical value into the second numerical value by dividing the first numerical value by 100, but the correspondence between the first numerical value and the second numerical value is not particularly limited. For example, the first numerical value may be 0.5 times, 2 times, or 100 times the second numerical value.
[0076] In the above embodiment, the rationality determination unit 113 determines the rationality of the height H1, which is the input value of the height, before the BMI is calculated, but the rationality determination unit 113 may determine whether the calculated value of the BMI is rational with respect to the unit corresponding to the calculated value, and if the calculated value is irrational, the first numerical value, which is the input value, may be converted to a second numerical value, or the unit of the first numerical value may be converted. This makes it possible to more reliably prevent the output of an erroneous calculation result by determining the rationality of the calculated value of the BMI.
[0077] In the above embodiment, the electronic device to which the present invention is applied has been described as a calculator 1, but the present invention is not limited to this. For example, the present invention can be applied to electronic devices in general into which values are input. Specifically, the present invention can be applied to notebook personal computers, printers, television receivers, video cameras, portable navigation devices, mobile phones, smartphones, portable game consoles, microwave ovens, clocks, and the like.
[0078] [Other variations] The above-mentioned series of processes can be executed by hardware or software. In other words, the functional configuration in FIG. 3 is merely an example and is not particularly limited. In other words, it is sufficient that the calculator 1 has a function capable of executing the above-mentioned series of processes as a whole, and the type of functional block used to realize this function is not particularly limited to the example in the figure. Furthermore, one functional block may be configured by hardware alone, software alone, or a combination of both.
[0079] The functional configuration in this embodiment is realized by a processor that executes arithmetic processing, and processors that can be used in this embodiment include those that are composed of various types of processing devices alone, such as single processors, multiprocessors, and multicore processors, as well as those that combine these various types of processing devices with processing circuits such as ASICs (Application Specific Integrated Circuits) and FPGAs (Field-Programmable Gate Arrays).
[0080] When a series of processes is executed by software, the programs constituting the software are installed into a computer or the like from a network or a recording medium. The computer may be a computer incorporated in dedicated hardware. The computer may also be a computer capable of executing various functions by installing various programs, such as a general-purpose personal computer.
[0081] The recording medium including such a program is not only constituted by the removable medium 31 shown in the figure that is distributed separately from the device main body in order to provide the program to the user, but also constituted by a recording medium provided to the user in a state in which it is pre-installed in the device main body. The removable medium 31 is constituted by, for example, a magnetic disk (including a floppy disk), an optical disk, or a magneto-optical disk. The optical disk is constituted by, for example, a CD-ROM (Compact Disk-Read Only Memory), a DVD (Digital Versatile Disk), a Blu-ray (registered trademark) Disc, etc. The magneto-optical disk is constituted by an MD (Mini-Disk), etc. Also, the recording medium provided to the user in a state in which it is pre-installed in the device main body is constituted by, for example, the ROM 4 shown in the figure in which the program is recorded, or a hard disk included in the storage unit 19 shown in the figure.
[0082] In this specification, the steps of describing a program to be recorded on a recording medium include not only processes that are performed chronologically according to the order, but also processes that are not necessarily performed chronologically but are executed in parallel or individually.
[0083] Although several embodiments of the present invention have been described above, these embodiments are merely illustrative and do not limit the technical scope of the present invention. The present invention can take various other embodiments, and various modifications such as omissions and substitutions can be made without departing from the gist of the present invention. These embodiments and their modifications are included in the scope and gist of the invention described in this specification, etc., and are included in the scope of the invention described in the claims and their equivalents.
[0084] The invention as described in the claims of the present application as originally filed is set forth below. [Appendix 1] a rationality determination means for determining whether or not a first numerical value input by a user operation is within a rational range for a unit corresponding to the first numerical value; a conversion means for converting the first numerical value into a second numerical value or converting a unit of the first numerical value according to a preset correspondence relationship so that the first numerical value falls within a reasonable range for a unit corresponding to the first numerical value when the rationality determination means determines that the first numerical value is unreasonable; An electronic device comprising: [Appendix 2] The rationality determination means includes: 2. The electronic device according to claim 1, further comprising: a step of referring to an input item into which the first numerical value is to be input, and determining whether or not the first numerical value is within a reasonable range as a numerical value to be input into the input item. [Appendix 3] 2. The electronic device of claim 1, wherein the rationality determination means determines that the first numerical value is irrational when the first numerical value does not satisfy a condition of a numerical range set based on attributes and units set in an input field into which the first numerical value is entered, and determines that the first numerical value is rational when the first numerical value satisfies the condition of the numerical range. [Appendix 4] 4. The electronic device according to claim 3, wherein the rationality determination means determines whether or not the first numerical value falls within the condition of the numerical range based on a number of digits of the first numerical value. [Appendix 5] 5. The electronic device according to claim 1, further comprising a calculation means for performing a calculation based on a predetermined formula using the first numerical value determined to be rational by the rationality determination means, the second numerical value determined to be irrational and converted by the conversion means, or the first numerical value determined to be irrational and having a unit converted by the conversion means. [Appendix 6] A storage unit that stores the unit of the second numerical value converted by the conversion means or the unit of the first numerical value converted by the conversion means, 6. The electronic device of claim 5, wherein the calculation means reads out the second numerical value, which is used in the calculation based on the formula and stored in the memory unit, or the first numerical value, which is used in the calculation based on the formula and stored in the memory unit, and to which the converted unit is set, and uses the read out numerical value in the calculation based on the formula. [Appendix 7] Further comprising a display means for displaying a plurality of input items, The rationality determination means includes: determining whether the first numerical value is reasonable when input into a target input item that is set as a conversion target among a plurality of input items; 7. An electronic device as described in any one of claims 1 to 6, wherein when the first numerical value is entered into a non-target input field among the plurality of input fields that is not set as a conversion target, it is not determined whether the first numerical value is rational or not. [Appendix 8] A calculation means for performing a calculation based on a predetermined formula using a first numerical value input by a user operation; a calculation value rationality determination means for determining whether or not the calculation value calculated by the calculation means is within a rational range for the unit corresponding to the calculation value; a conversion means for converting the first numerical value into a second numerical value or converting a unit of the first numerical value according to a preset correspondence relationship so that the calculated value falls within a reasonable range for a unit corresponding to the calculated value when the calculated value reasonableness determination means determines that the calculated value is unreasonable; An electronic device comprising: [Appendix 9] A method for controlling a computer of an electronic device to calculate a value, comprising: a rationality determination step of determining whether or not a first numerical value input by a user operation is within a rational range for a unit corresponding to the first numerical value; a conversion step of converting the first numerical value into a second numerical value or converting a unit of the first numerical value according to a preset correspondence relationship so that the first numerical value falls within a reasonable range for a unit corresponding to the first numerical value, when the first numerical value is determined to be unreasonable by the rationality determination step; Calculation methods including: [Appendix 10] a rationality determination function that determines whether a first numerical value input by a user operation is within a rational range for a unit corresponding to the first numerical value; a conversion function that converts the first numerical value into a second numerical value or converts a unit of the first numerical value according to a preset correspondence relationship so that the first numerical value falls within a reasonable range for a unit corresponding to the first numerical value when the rationality determination function determines that the first numerical value is unreasonable; A program that causes a computer to execute the following. [Explanation of symbols]
[0085] 1. Calculator (electronic device) 113 Rationality Judgment Unit (Rationality Judgment Means) 114 Conversion unit (conversion means) H1 Height (first number) H2 Height (second number)
Claims
1. A display control means for displaying, after displaying a calculation result of a predetermined calculation formula, numerical values substituted into a plurality of variable items in the calculation formula in order to obtain the calculation result in a predetermined order based on a user operation, the display control means, when there is a specific variable item among the plurality of variable items in which the substituted numerical value has been converted into a numerical value different from the numerical value input by the user, causes information indicating that the numerical value input by the user has been converted to be added when the numerical value substituted into the specific variable item is displayed.
1. An electronic device comprising:
2. A conversion means is provided which, when the user is made to input numerical values into each of the plurality of variable items in the predetermined order prior to calculation using the formula, if the numerical value input by the user is not within a range previously set in correspondence with the variable items, treats the numerical value input by the user as having been input in a second unit different from a first unit corresponding to the variable items, and converts the numerical value input by the user into a numerical value corresponding to the first unit based on predetermined correspondence information; 2. The electronic device according to claim 1 .
3. A display method executed by an electronic device, comprising: a display control process for displaying, after displaying a calculation result of a predetermined calculation formula, numerical values substituted into a plurality of variable items in the calculation formula to obtain the calculation result in a predetermined order based on a user operation; the display control process, when there is a specific variable item among the plurality of variable items in which the substituted numerical value is converted to a numerical value different from the numerical value input by the user, displays information indicating that the numerical value input by the user has been converted when the numerical value substituted into the specific variable item is displayed. A display method comprising:
4. A computer comprising: functioning as a display control means for displaying, after displaying a calculation result using a predetermined formula, numerical values substituted into a plurality of variable items in the formula in order to obtain the calculation result in a predetermined order based on a user operation; the display control means, when there is a specific variable item among the plurality of variable items in which the substituted numerical value has been converted into a numerical value different from the numerical value input by the user, causes information indicating that the numerical value input by the user has been converted to be added when the numerical value substituted into the specific variable item is displayed. A program characterized by:
Citation Information
Patent Citations
Numerical expression arithmetic processor
JP1993298258A
Document preparing device, kana / Kanji conversion method and recording medium recording kana / Kanji conversion program
JP1999025080A
Arithmetic unit and program
JP2011186771A
Magnetic resonance imaging apparatus, medical information processing apparatus, and patient information display method
JP2014213085A
Calculation data printer and program
JP2017124581A
