CN113448909A - Electronic device, control method for electronic device, and recording medium - Google Patents

Electronic device, control method for electronic device, and recording medium Download PDF

Info

Publication number
CN113448909A
CN113448909A CN202110301139.XA CN202110301139A CN113448909A CN 113448909 A CN113448909 A CN 113448909A CN 202110301139 A CN202110301139 A CN 202110301139A CN 113448909 A CN113448909 A CN 113448909A
Authority
CN
China
Prior art keywords
input
calculation
mode
display unit
key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110301139.XA
Other languages
Chinese (zh)
Inventor
吉泽博明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Publication of CN113448909A publication Critical patent/CN113448909A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/02Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators
    • G06F15/025Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/02Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators
    • G06F15/0225User interface arrangements, e.g. keyboard, display; Interfaces to other computer systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Calculators And Similar Devices (AREA)

Abstract

An electronic apparatus, a control method of the electronic apparatus, and a storage medium. An electronic device includes an input unit and a display unit, and is operable in a calculator mode and a function mode in which operation is performed according to a specific rule based on an argument, wherein in the function mode, when a first numerical value is displayed on the display unit, the input unit receives input of calculation data including at least operator specifying data, performs operation based on the first numerical value and the calculation data, the input of which is received, and displays a result of the operation on the display unit, and the first numerical value is any one of an input value of the first argument of the function mode, an operation value based on the input value, and an output result of the function mode.

Description

Electronic device, control method for electronic device, and recording medium
Technical Field
The present invention relates to an electronic device having a function mode for performing a specific calculation process based on an argument, a control method for the electronic device, and a recording medium for recording a program for the process.
Background
In recent years, electronic devices called calculators have been proposed and put into practical use, which perform not only four arithmetic operations but also a functional mode in which calculation processing is performed according to a specific rule based on an argument, in order to improve user convenience and improve functionality.
Japanese patent application laid-open No. 2004-213456 describes a technique relating to a hand-held terminal having a numerical value input mode and a calculator mode. In this hand-held terminal, when a predetermined key (key F1) is operated while the hand-held terminal is in the numerical value input mode, the hand-held terminal shifts from the numerical value input mode to the calculator mode, and the numerical value input on the numerical value input screen immediately before the numerical value input is set as the input value of the calculator mode. When another key for determination (enter key) is operated after the execution of the four arithmetic operations in the calculator mode, the numerical value input mode is returned, and the arithmetic result in the calculator mode is set as the input value in the numerical value input mode.
Japanese patent application laid-open No. 6-202995 describes the following technique: in a character input device, it is determined whether an input character string is an arithmetic expression, and if so, an operation is performed, and the result of the operation or the arithmetic expression is output as a candidate as kana-to-kanji conversion data.
In the functional mode of the electronic device, since operations and processing are easily complicated by processing a plurality of arguments and data, it is required to improve usability and workability of a user in the functional mode. For example, when a specific calculation is performed in the functional mode, there is a demand for more efficient input and determination of an argument in addition to simple input of a numerical value. However, the conventional techniques such as those disclosed in Japanese patent application laid-open Nos. 2004-213456 and 6-202995 cannot meet such a demand.
Disclosure of Invention
An electronic device includes an input unit and a display unit, and is operable in a calculator mode and a function mode in which operation is performed according to a specific rule based on an argument, wherein in the function mode, when a first numerical value is displayed on the display unit, the input unit receives input of calculation data including at least operator specifying data, and performs operation based on the first numerical value and the calculation data, the input of which is received, and the result of operation is displayed on the display unit, and the first numerical value is any one of an input value of a first argument of the function mode, an operation value based on the input value, and an output result of the function mode.
The present invention also provides a control method for an electronic device including an input unit and a display unit, the electronic device being operable in a calculator mode and a function mode in which an operation is performed according to a specific rule based on an argument, the control method including the steps of: displaying, on the display unit, a first numerical value in the functional mode, the first numerical value being any one of an input value of a first argument in the functional mode, an operation value based on the input value, and an output result of the functional mode; and in the functional mode, when the first numerical value is displayed on the display unit, receiving an input of calculation data including at least operator specifying data from the input unit, performing a calculation based on the first numerical value and the calculation data, and displaying a result of the calculation on the display unit.
The present application also provides a recording medium having a program recorded thereon, the program causing a processor of an electronic device including an input unit and a display unit to execute: in a functional mode for operation according to a specific rule based on an argument, a first numerical value is displayed on the display unit, the first numerical value being any one of an input value of a first argument of the functional mode, an operation value based on the input value, and an output result of the functional mode, and in a state where the first numerical value is displayed on the display unit in the functional mode, an input of calculation data including at least operator specifying data is accepted by the input unit, an operation is executed based on the first numerical value and the calculation data, the input data having been accepted, and the operation result is displayed on the display unit.
Drawings
Fig. 1 is a diagram showing an external appearance of an embodiment of an electronic device of the present disclosure.
Fig. 2 is a block diagram showing an example of the hardware configuration of the electronic device.
Fig. 3 is an explanatory diagram showing a first usage example of the functional mode of the electronic device.
Fig. 4 is a flowchart showing processing in the first use example of the functional mode.
Fig. 5A and 5B are explanatory diagrams showing a second usage example of the function mode of the electronic device, where fig. 5A shows a period as a calculation result, and fig. 5B shows a date as a calculation result.
Fig. 6 is a flowchart showing processing in the second use example of the functional mode.
Detailed Description
Hereinafter, a mode for carrying out the present disclosure will be described in detail with reference to the drawings. Fig. 1 is a diagram showing an external appearance of an electronic device 10 as an embodiment of the present disclosure, and fig. 2 is a block diagram showing an example of a hardware configuration of the electronic device 10.
As shown in fig. 1, an electronic device 10 as a portable terminal (calculator) has an input section 11 and a display section 12. The input unit 11 is a part for receiving a user operation, and is constituted by a plurality of keys that can be pushed in. The display unit 12 is a portion for displaying numerals and predetermined characters on a display screen by a liquid crystal, an LED (Light Emitting Diode), or the like.
As shown in fig. 2, the hardware configuration of the electronic device 10 includes a CPU (Central Processing Unit) 13, a ROM (Read Only Memory) 14, a RAM (Random Access Memory) 15, and a display driver 16, in addition to the input Unit 11 and the display Unit 12.
When each key of the input unit 11 is pushed, a signal is input to the CPU13 from a key switch (not shown) corresponding to each key. The CPU13 is a processor that collectively controls the respective units of the electronic apparatus 10 in accordance with signal input from the input unit 11. Note that, among the functional blocks related to the control of the electronic device 10, functional blocks mounted in portions other than the hardware configuration of fig. 2 will be described with the CPU13 as the main body of the control for convenience of description.
The ROM14 is a read-only semiconductor memory that stores programs used for processing in the electronic device 10. The CPU13 executes various processes described later in accordance with programs stored in the ROM 14. The RAM15 is a semiconductor memory that can be accessed randomly, and is used as a work area for programs and data when the CPU13 executes the programs.
The display driver 16 executes a display process of numerals and characters on the display unit 12 under the control of the CPU 13.
The electronic device 10 according to the present embodiment is a calculator having a function mode for performing calculation in accordance with a specific rule based on an argument, in addition to a calculator mode for normal calculation that does not depend on the argument. The contents of the functional mode described below as the use example are suitable for medical practitioners such as pharmacists, but the functional mode in the present disclosure is not limited to the use example below.
The details of the input unit 11 will be described with reference to fig. 1. In the input unit 11, the numeric key area 20, the calculation command key area 21, and the storage key area 28, which are shown surrounded by a one-dot chain line in fig. 1, are each a conceptual group consisting of a plurality of keys.
10 numeric keys and decimal keys of 0 to 9 are arranged in the numeric key area 20. Each key of the numeric key region 20 is used as an operation unit for numeric value input in either the calculator mode or the function mode. In a second use example (fig. 5A and 5B) of the function mode described later, a part of the keys of the numeric key region 20 are also used as means for selecting the calculation content.
The calculation command key area 21 arranged on the right side of the numeric key area 20 is a portion for selecting the type of operation (four arithmetic operations, etc.) in the calculator mode and inputting operator specifying data, and has calculation keys for addition, subtraction, multiplication, and division (+, -, ×, and/or). A remainder calculation key for performing division operation with a remainder is also provided in the calculation command key region 21.
The calculation data in the present embodiment includes at least operator specifying data. As a first mode of the calculation data, a combination of operator designation data input by a key operation of the calculation command key region 21 and a numerical value input by a key operation of the numeric key region 20 becomes calculation data. As a second mode of the calculation data, there is a case where the calculation data is obtained only by a key operation of the calculation command key region 21, that is, only by an input of operator designation data. As an example of the second mode, a case where the "x" key is pressed a plurality of times to perform the multiplication calculation is given. Another example of the second method is a case where the factorial calculation is performed by pressing a key "x ^ 2" not arranged in the input unit 11 of the electronic device 10.
In the lowermost layer of the input unit 11, a constant sign key 22 is arranged between the numeric keypad area 20 and the calculation command key area 21. The equal-sign key 22 is used as an operation completion operation unit that inputs an instruction to make "═ for completing an operation in the calculator mode. The equal-sign key 22 is also used for inputting an instruction to execute an operation and for specifying an operation result in a function mode to be described later. In accordance with such an operating system, a character display of "enter/determine" is given below the equal-sign key 22, unlike the display of "enter" of the key top in the equal-sign key 22.
On the left side of the numeric key region 20, a full clear (AC) key 23, a clear (C) key 24, a backspace key 25, a sine-shift key 26, and an OFF (OFF) key 27 are arranged in this order from the lower side. The upper side of the numeric key region 20 is a memory key region 28 including 3 keys (MRC, M +, M-) for memory operation.
Function keys 30 and function keys 31 are arranged on the uppermost layer of the input unit 11. The function key 30 is an operation unit for entering a calculation mode of BMI (Body Mass Index) (hereinafter, referred to as BMI calculation mode) in a function mode in the electronic apparatus 10, and displays "BMI" on the key top. The function key 31 is an operation unit for entering a date calculation mode (hereinafter, referred to as a date calculation mode) among the function modes in the electronic apparatus 10, and displays "date calculation" on the key top. In the present embodiment, the calculation of the BMI and the date is described as an example, and only the function keys 30 and the function keys 31 corresponding to these are shown in the input unit 11, but other function keys corresponding to other function modes may be further provided.
First, a case of applying the method to the calculation of the BMI will be described as a first use example of the functional mode of the electronic device 10. BMI is a physique index indicating the degree of obesity calculated from the relationship between height and weight, and is calculated as w/h2 when weight (kg) is w and height (m) is h. The data including the calculation formula is stored in the ROM14 as an application program for BMI calculation.
Fig. 3 is a diagram showing a relationship between input contents to the input section 11, processing by the CPU13 or the like, and display contents to the display section 12 when the BMI is calculated by the electronic apparatus 10 in steps D01 to D09. It is to be noted that each process of the electronic device 10 in the following description is clearly described as a process other than an operation performed by the user, and is performed by a control block (fig. 2) centered around the CPU 13.
As described above, the function keys 30 become function keys for entering the BMI calculation mode. As shown in fig. 3, when an operation of the function key 30 by the user is input to the CPU13 following an operation of the all clear key 23 by the user (D01), an application program for BMI calculation is read from the ROM14, and the BMI calculation mode is entered (D02).
When entering the BMI calculation mode, a display of "BMI calculation" indicating the type of the function mode is performed on the upper layer of the display unit 12 (D02). The display continues until the BMI calculation mode ends. The first argument (parameter first set by the user) in the BMI calculation mode of the present embodiment is height. In the display unit 12, "height? "and a display of" cm "representing a unit of height (D02).
In the process of inputting the height, the numeric value is input using each key of the numeric key region 20, and the operator designation data is input using each key of the calculation command key region 21.
In the use example of fig. 3, the user first operates "1" and "0" of the numeric keys. In accordance with this operation, "10" is stored as an input value (first numerical value) in the RAM15, and this numerical value "10" is displayed in the numerical display area of the display unit 12 (D03). At this stage, the clear key 24, the backspace key 25, the keys in the numeric key area 20, and the like are operated to correct or change the input value.
Next, when the user operates the "x" key of the calculation command key region 21 as input of operator designation data, the process proceeds to a process of preparing multiplication, and "x" indicating the multiplication process is displayed on the right side of the numerical value "10" on the display unit 12 (D04). In this state, when the user operates the numeric keypad "5" as input of the second numeric value accompanying the operator specifying data, the input value "5" is stored in the RAM15, and "5" as the input value is displayed in the numeric display area of the display unit 12 (D05). First calculation data is input according to the operator designation data "x" in D04 and the numerical value "5" in D05.
Next, when the user further operates the "+" key of the calculation command key area 21 as input of operator specifying data, for the previously stored input value "10", an operation based on the first calculation data (multiplication operation based on the operator specifying data "x" of the first input and the second value "5" accompanying the operator) is performed. Then, the calculation value "50" of the calculated result is displayed in the numerical display area of the display unit 12 (D06). At the same time, the process shifts to a process of preparing addition of the displayed operation value by the operator designation data "+" input second, and "+" indicating the addition process is displayed on the right side of the numerical value "50" of the display unit 12 (D06). Here, when an operation based on the next calculation data is further performed, "50" which is the previous operation value becomes the first numerical value in the next operation.
Next, when the user continuously operates "1", "2", and "0" of the numeric keys as the input of the second numeric value accompanying the operator designation data "+" previously input, "120" corresponding to the operation is stored in the RAM15, and "120" as the input value is displayed in the numeric display area of the display unit 12 (D07). The second calculation data is input by the operator designation data "+" in D06 and the second numerical value "120" in D07. At this stage, the clear key 24, the backspace key 25, and the keys in the numeric key area 20 are operated to correct and change the input value.
In this state, when the user operates the equal sign key 22, an operation based on the second calculation data (an addition operation based on the operator specifying data "+" input second and the second numerical value "120" input accompanying the operator) is performed with respect to the operation value (first numerical value) "50" based on the first calculation data. A series of calculations in the state where the first argument is input is temporarily completed by the first operation of the equal-sign key 22, and the numerical value "170" as the calculation result based on the second calculation data is stored in the RAM15, and the calculation value "170" is displayed in the numerical display area of the display unit 12 (D08).
As described above, in the independent variable input in the functional mode, the calculation based on the calculation data can be appropriately performed with respect to the input value of the user and the calculation value based on the input value. In the above example, the first calculation data and the second calculation data are both data including input of operator specifying data and numerical values (the first embodiment described above), but calculation may be performed by calculation data including input of only operator specifying data (the second embodiment described above).
In addition, at this stage, the input of height as a first argument is not determined. When the user wants to change the height value, the user can change the height value by appropriately operating the keys of the numeric key area 20 and the calculation command key area 21, the clear key 24, the backspace key 25, and the like based on "170" as the calculation result. When the numerical value changing operation is performed, the count of the number of operations of the equal-sign key 22 is reset, and the next operation of the equal-sign key 22 is counted again as the first operation. That is, the equal-sign key 22 determines whether or not continuous operations have been performed, rather than performing the total number of operations.
When the user performs the second operation of the equal-sign key 22 at a stage when the numerical value displayed on the display unit 12 becomes the desired numerical value (in a state in which the calculation is completed by the first operation of the equal-sign key 22), the numerical value of the height as the first argument in the BMI calculation mode is specified. In this way, the height input process is completed by the second operation of the equal-sign key 22 for specifying the argument after the first operation of the equal-sign key 22 for the calculation is completed.
When the height value is determined by the second operation of the equal-sign key 22 as described above, the BMI calculation mode is shifted to the weight value input process as the second independent variable (the parameter set by the user for the second time). By this transition, "weight? "and" kg "as a unit of body weight (D09).
Although not described in detail in fig. 3, in the process of inputting the weight, as in the case of the above-described input of the height, not only the simple numeric value input but also the numeric value input using each key of the numeric key region 20 and the calculated value after the calculation can be calculated by the calculation data including at least the operator specifying data input using each key of the calculation command key region 21. That is, when the calculation data is input in a state where the first numerical value as the input value or the calculation value is displayed on the display unit 12, the calculation is executed based on the first numerical value and the calculation data, and the calculation result is displayed on the display unit 12.
In the use example of fig. 3, when the value of the height is specified and the process is shifted to the value input process of the weight (D09), the control is performed so as to automatically display "60" as a temporary value of the weight, which is the first value immediately after the shift. Unlike this example of use, the user may be set to directly input the first numerical value without performing a temporary numerical value display when shifting to the numerical value input process of the body weight.
When the user operates the equal sign key 22 while the calculation result is displayed on the display unit 12, the numerical value of the body weight as the second independent variable is determined. When the calculation is performed during the weight input process, the weight input process is terminated by the second operation of the equal-sign key 22 for specifying the independent variable after the first operation of the equal-sign key 22 for the calculation is completed.
Although omitted in fig. 3, the CPU13 executes the BMI calculation process at a stage when both the height as the first argument and the weight as the second argument are determined. Specifically, the BMI is calculated by inputting a value of the weight as the second independent variable to "w" of w/h2, which is the BMI calculation formula, and inputting a value of the height (a value obtained by converting a value determined in cm units into m units) as the first independent variable to "h". Then, the calculated BMI value is displayed in the numerical display area of the display unit 12.
Fig. 4 is a flowchart of control corresponding to the above BMI calculation mode. The flow chart corresponds to the input of both height as a first independent variable and weight as a second independent variable.
First, the CPU13 determines whether or not each key of the numeric key area 20 has been operated (step S100).
When any one of the keys in the numeric key area 20 is operated (yes in step S100), the CPU13 performs numeric value input processing (step S101) to store a numeric value based on a signal from the operated key in the RAM15 and to transmit an instruction to the display driver 16 to display the numeric value on the display unit 12. The numeric value input processing in step S101 is processing for displaying numbers on the display unit 12 in the order in which the keys of the numeric key area 20 are operated. After step S101 is executed, the process returns to step S100.
When there is no key operation in the numeric key area 20 (no in step S100), the CPU13 determines whether there is an operation of each key in the calculation command key area 21 (step S102).
When any one of the keys of the calculation instruction key area 21 is operated (yes in step S102), the CPU13 determines whether or not calculation data for calculation and an instruction to execute calculation are input (step S103). Note that the instruction to execute the arithmetic operation here means an instruction to execute the arithmetic operation other than the operation of the equal-sign key 22.
Here, when a numerical value is input subsequent to the operator specifying data, or when there is a specification of a predetermined multiplication calculation or the like from the operator specifying data, it is determined that there is input of calculation data (step S103: yes). Then, an operation based on the calculation data is executed in accordance with an instruction to execute the operation (step S104). After step S104 is executed, the instruction is sent to the display driver 16 to display the calculated value on the display unit 12, and the process returns to step S100.
For example, like D04 to D06 in the use example of fig. 3, the input of "5" following "x" is an input of calculation data, and the operation execution instruction is performed when the "+" key is operated next. Accordingly, the determination in step S103 becomes yes, and the process proceeds to the process of executing the calculation in step S104. Then, "50" as the calculated value is displayed on the display unit 12.
Further, as a method of operation based on the calculation data, there are a case of performing operation in the order of operator specifying data of the operation and a case of preferentially operating operator specifying data of a higher order. For example, it is assumed that the user operates the keys of the input unit 11 in the order of "+", "5", "×", and "8" following "10" as the first input value.
Here, when the arithmetic operation is performed in the order of the operator designation data to be operated, "10 + 5" is performed as the first arithmetic operation, and the second arithmetic operation "15 × 8" is performed based on the arithmetic value "15" to obtain the arithmetic value "120". In this case, the calculation data corresponding to the first numerical value "10" is operator specifying data "+" and the second numerical value "5". Next, a second operation based on the operator specifying data "x" and the second numerical value "8" is performed with the operation value "15" as a new first numerical value.
When the operator specifying data of higher order is preferentially operated, "5 × 8" is performed as the first operation, and the second operation "10 + 40" is performed based on the operation value "40" to obtain the operation value "50". In this case, the calculation data corresponding to the first numerical value "10" is the operator specifying data "+" and the second numerical value "40" based on the first operation.
In this way, the operation based on the first numerical value and the calculation data is not limited to the case of being completed once, and includes the case of performing the operation a plurality of times while updating the operation value based on the previous operation as the second numerical value. The input of the calculation data when performing the plurality of calculations does not mean the order of operations performed by the user, but means the input (reception process) of the calculation data corresponding to the order in which the actual calculations are performed. For example, when the operation in the function mode of the electronic device 10 is in a form in which the operator specifying data of the higher order is preferentially operated, it is determined that the input of the calculation data corresponding to "10" is made not by the time points of the operations of "+" and "5" by the user in the above-described operation example but by the input of the operator specifying data of the higher order "x" and the second value "8" (yes in step S103).
On the other hand, in the case where no numerical value is input after the operator specifying data in the determination of step S103 (including the case where no numerical value is input after the operator specifying data of higher order in priority, the case where no numerical value is input after the operator specifying data of higher order), the case where no specification of predetermined multiplication calculation based on the operator specifying data is made, and the like, it is determined that no calculation data is input (no in step S103), the operator specifying data reception processing is performed (step S105), and the process returns to step S100. In the processing of receiving operator specifying data, operation preparation (storage in the RAM 15) corresponding to the operator specifying data is performed, and an instruction is transmitted to the display driver 16 to display an operator (+, -, ×, and/or the like) on the display unit 12.
After the key operation of the numeric key area 20 (step S100: YES), if the key operation of the command key area 21 is not calculated (step S102: NO), the CPU13 judges whether or not the equal sign key 22 is operated (step S106).
When the equal-sign key 22 is not operated (no in step S106), the operation is not completed, and the operation is waited for in a state where the numeric value input by each key of the numeric key region 20 and the operator designation data input by each key of the calculation command key region 21 are allowed.
When the equal-sign key 22 is operated (yes in step S106), the CPU13 determines whether or not the calculation based on the calculation data is completed (step S107).
If the calculation is in the middle of the calculation based on the calculation data in the determination of step S107 (yes in step S107), that is, if the arithmetic completion state is not reached without operating the equal sign key 22 immediately before, the CPU13 performs the processing for executing the calculation and the processing for setting the display of the calculation result (step S108). In the processing of step S108, calculation based on the calculation data is executed, and an instruction is sent to the display driver 16 to cause the display unit 12 to display the numerical value of the calculated result. In the use example of fig. 3, the display unit 12 is in a state where the numerical value "170" is displayed (D08).
If it is determined in step S107 that the calculation is not in progress (no in step S107), the process proceeds to step S109. At this stage, after the calculation in step S108 is completed, the operation of the equal-sign key 22 by the user is performed. That is, as shown in D09 in fig. 3, the second operation of the equal-sign key 22 is performed. Then, the CPU13 performs determination processing of an argument in step S109. In the determination process, the numerical value of the calculation result displayed on the display unit 12 is held in the RAM15 as the determination value of the argument. In step S109, as in the case where the body weight is set after the body height is determined in the use example of fig. 3, processing such as waiting for key input and switching of screen display, which is provided in the next argument setting, is performed. In the use example of fig. 3, the display unit 12 corresponds to a state in which the numerical value "60" is displayed (D09).
In the above example of using the BMI calculation mode, not only simple input of numerical values but also four arithmetic operations are performed on the input value and the previous operation value in the state of inputting the independent variables (height and weight), and the final operation value is processed so as to be able to be set as the independent variable. Therefore, it is possible to improve the workability of information input in the functional mode (BMI calculation mode) in which calculation processing (calculation according to a specific rule based on an argument) of a type different from that in the calculator mode is performed. In particular, when each argument to be processed in the functional mode is a parameter of a type requiring some kind of operation, it takes time to input the recorded argument after switching to the functional mode after the argument is operated in the calculator mode in advance. In contrast, in the present usage example, since the argument setting using both the numerical value input and the operation is freely performed in the functional mode, complicated mode switching is not necessary, and convenience is improved.
As a comparative example, a case where height is input as an argument in a conventional function mode will be described. In the state of inputting an argument in a conventional functional mode, control is performed in which only a simple input of a numerical value is accepted. Therefore, when the same key operation as that of fig. 3 is performed on the input unit 11, the following is performed. In the key operations of "10", "x", and "5", the input of "x" is ignored, the numeric value input of "105" is performed, and "105" is displayed on the display unit 12. In the next key operation such as "+" or "120", the input of "+" is ignored, and only the numeric value input such as "120" is performed. As a result, the display of the display unit 12 becomes "105120". Therefore, in the conventional functional mode, when the user wants to obtain the independent variable by calculation by directly inputting the accurate independent variable only by selecting the accurate independent variable, the user cannot deal with the processing in the functional mode.
In the present usage example, in the state where the independent variables (height and weight) are input, the calculation result is displayed on the display unit 12 (D06 and D08 in fig. 3) after the calculation is executed, and the user confirms the displayed content and then operates the equal-sign key 22 to specify the independent variables. The user only needs to recognize that "the argument is specified when the equal sign key 22 is operated when the operation result is displayed in the functional mode", and does not need to perform a complicated operation. When the argument is input, the other keys in the numeric key area 20 and the calculation command key area 21 are used based on the function of each key in the calculator mode (numeric value input and operator designation data input), and therefore no confusion is caused in the operation. In this way, in the independent variable input in the functional mode, it is possible to realize an intuitive and easy-to-use operation system without giving a sense of incongruity to the user while improving the accuracy of input based on confirmation of the result of visual operation.
In addition, when there is an argument to be set next, since the display and processing for the next argument input are automatically entered by the previous argument specification by the operation of the equal sign key 22, it is possible to efficiently input a plurality of arguments.
Next, a case where the present invention is applied to date calculation will be described as a second usage example of the functional mode of the electronic device 10. Fig. 5A and 5B show a relationship between an input to the input unit 11, a process performed by the CPU13 or the like, and a display on the display unit 12 when the date is calculated by the electronic device 10. Fig. 5A is a use example of calculating a period (number of days) from a reference day to a predetermined date, and includes steps from D11 to D20. Fig. 5B is a use example of the date for calculating the predetermined period (number of days) from the reference day, and includes steps from D21 to D28. Data such as a formula used for date calculation is stored in the ROM14 as an application program for date calculation.
First, an example of use of fig. 5A is explained. The function key 31 in the input unit 11 is a function key for entering the date calculation mode. When the operation of the function key 31 is input to the CPU13 following the operation of the all clear key 23 by the user (D11), an application program for date calculation is read from the ROM14, and the date calculation mode is entered (D12).
"reference day? "and display of the year, month and day" 20yy mm dd "as a unit of date (D12). In addition, in the numerical value input area of the display unit 12, "20" which is the first two digits of the common calendar is displayed in advance in order to reduce the trouble of inputting numerical values by the user. However, instead of displaying the first two digits of the gregorian calendar, all the digits of the gregorian calendar may be set so that the user performs key input.
In the date calculation mode, determination of an input result and instruction for execution of calculation are performed by operation of the equal-sign key 22 by the user. When the year, month and day "20 yy mm dd" is displayed on the display unit 12, the electronic device 10 displays "═ on the right side thereof. The display of "═" is used to report to the user that the date in the display is decided as an input value by operating the equal-sign key 22 in a state in which the date is in display.
The reference day input by the user is performed using each key of the numeric key area 20. The user inputs, as a date, a 6-digit number other than the first two digits of the gregorian calendar, which has been displayed in advance. In the use example of fig. 5A, "200101" is input by operating 3 keys of the numeric key region 20 in order to set the reference day to 1/2020. Upon receiving the input, the date "2020-01-01" is displayed in the numeric display area of the display unit 12 (D13). In addition, only numerical values are input by the user, and hyphens between the year, month and day are automatically displayed.
At this stage, by operating the clear key 24, backspace key 25, keys of the numeric key area 20, and the like, a series of 6-digit numbers are appropriately input, and the reference day can be corrected or changed. When the input and display of the reference day are completed and the user operates the equal sign key 22, the date displayed on the display unit 12 is determined as the reference day.
Then, the state of the calculation content in the selected date calculation mode is entered. The calculation contents selected here include 3 of forward date calculation processing for calculating a date corresponding to a predetermined period (number of days) ahead of the reference day, backward date calculation processing for calculating a date corresponding to a predetermined period (number of days) behind the reference day, and period calculation processing for calculating a period (number of days) from the reference day to a predetermined date (one of before and after).
When the user operates the equal sign key 22 after the reference day is input, the determined reference day is stored in the RAM15, and the selection screen of the calculation content is displayed on the display unit 12 (D14). On the selection screen of the calculation content, a character and a number "1" indicating "before several days" of the preceding date calculation processing, a character and a number "2" indicating "after several days" of the following date calculation processing, and a character and a number "3" indicating "during the period calculation processing are displayed.
In the selection screen of the calculation content, the user selects a desired calculation content using the number keys from "1" to "3" of the number key area 20. In the use example of fig. 5A, since the period calculation processing is performed, the user operates "3" of the numeric keypad. By this key operation, the period calculation processing becomes selection completion. That is, in a state where the input reference day is displayed on the display unit 12, 1 out of the 3 types of calculation processing is selected by a combination of operations of the equal-sign key 22 and the numeric keys from "1" to "3".
When the user operates the numeric keypad "3" while the display unit 12 displays the selection screen of the calculation content, the display unit 12 enters a state in which the target day to be calculated from the reference day is input, and the display screen of the display unit 12 changes to the screen of the input target day. Specifically, "date? "and display of the year, month and day" 20yy mm dd "as a unit of date (D15). On the right side thereof, "(D15)" indicating the equal-sign key 22 functioning as a decision key for date input is displayed.
In the target day input, "20" which is the first two digits of the common calendar is displayed in advance in the numerical value input area of the display unit 12, similarly to the case of the reference day input described above (D15). Instead of displaying the first two digits, all the digits of the gregorian calendar may be set to be key-input by the user.
The input of the target day by the user is performed using each key of the numeric key area 20. In the use example of fig. 5A, in order to set the target day to 5/2025, a 6-digit number such as "250505" is input by operating 3 keys of the numeric key region 20. Upon receiving this input, the date "2025-05-05" is displayed in the numeric display area of the display unit 12 (D16).
At this stage, the correction of the target day can be performed by operating the clear key 24, the backspace key 25, the keys of the numeric key area 20, and the like, and inputting a series of 6-digit numbers again. When the user operates the equal sign key 22 after the input and display of the target day are completed, the date displayed on the display unit 12 is determined as the target day.
After the input of the target day, when the user operates the equal sign key 22, the calculation of the period from the reference day to the target day is performed based on the reference day (D13) and the target day (D16). The period (number of days) as a result of the calculation is 1951 days, and a numerical value "1951" indicating the period is displayed in the numerical display area of the display unit 12 (D17). The numerical value "1951" as the output result calculated in the function mode for date calculation is the first numerical value. Further, a character indicating "time period" indicating the numerical value of the calculation result is displayed on the display unit 12 (D17).
The function mode for date calculation is switched to the calculator mode for normal calculation, and continuous calculation based on the first numerical value (output result of the function mode) displayed on the display unit 12 can be executed. The transition from the function mode (date calculation mode) to the calculator mode is performed in accordance with the input of the calculation data on the condition that the first numerical value as the output result in the date calculation mode is displayed on the display unit 12 (D17). More specifically, the input of operator specifying data in the calculation data shifts from the functional mode to the calculator mode. That is, each key of the calculation command key area 21 is set in advance as a specific key that can be handed over to the calculator mode.
In the use example of fig. 5A, the calculator mode is switched by inputting operator specifying data input by the operation of the "+" key by the user. The CPU13 performs reading of the calculator application program saved in the ROM14, and causes the display section 12 to display a "+" mark indicating addition processing (D18). Thereafter, the process in the calculator mode is performed. For example, when the user operates the numeric key "9" as the second numerical value following the operator specifying data, "9" is displayed on the display unit 12 (D19), and when the equal sign key 22 is operated, the operation of adding "9" as the second numerical value input in the calculator mode to the operation result (first numerical value) "1951" in the period calculation process (operation based on the calculation data) is performed, and the numerical value "1960" as the operation result in the calculator mode is displayed on the display unit 12 (D20).
In addition, in the case of performing a multiplication calculation by a plurality of times of operation of the "x" key, etc., the input of the second numerical value by the operation of the numeric key region 20 is not performed, and the input of the calculation data is performed only by the operator specifying data, and the calculation in the calculator mode is executed.
In this way, by transferring the calculation result in the functional mode (period calculation processing) to the calculator mode, it is possible to perform continuous calculation of the calculation result for the functional mode. Since each key of the calculation command key area 21 is set as a specific key that can be handed over to the calculator mode and the mode switching is automatically executed by the operation of the specific key, the user can easily and efficiently shift to the continuous calculation of the calculation result without being aware of a special operation for the mode switching.
In the electronic device 10, as a result of the calculation in the function mode, while the display unit 12 displays the period (the number of days) (D17), the operation of the clear all key 23 and the function key 31 is accepted as the valid input in addition to the keys in the calculation command key area 21 shifted to the calculator mode.
When the clear all key 23 is operated in a state where the period (number of days) as the calculation result is displayed on the display unit 12, the calculation result of the period and the data of the reference day are cleared from the RAM15, the display of the period on the display unit 12 is deleted, and the date calculation mode is switched to the calculator mode.
When the function key 31 is operated in a state where the period (number of days) as the calculation result is displayed on the display unit 12, the calculation result is deleted, and the state where the reference day input earlier is displayed on the display unit 12 is returned (D13). That is, the control is performed so as to continue holding the reference day data input last time until exiting the date calculation mode as the functional mode.
In fig. 5A, the period calculation process in the case where the target day is a date after the reference day is exemplified, but the contents of the operation performed by the user and the process of the electronic device 10 are the same as described above with respect to the period calculation process in which the target day is a date before the reference day. Since the content of the calculation is the period (number of days), even when the target day is a day before the reference day, the numerical value (D17) of the calculation result is not displayed with a "-" added thereto on the display unit 12.
Next, an example of use of fig. 5B is described. The reference day is input to the display unit 12, and the time required to display the selection screen of the calculation content (from D21 to D24) is common to the use examples D11 to D14 in fig. 5A, and therefore, the description thereof is omitted.
In the use example of fig. 5B, in order to perform the previous date calculation process, the user operates "1" of the numeric keypad in a state (D24) in which the selection screen of the calculation content is displayed on the display unit 12. By this key operation, selection of the previous date calculation processing is input. By this input, the electronic device 10 changes the display screen of the display unit 12 to a screen in which the input is traced several days ahead from the reference day, "several days ahead? "is displayed (D25). On the right side thereof, "═ of the equal-sign key 22 that functions as a decision key for the period input is displayed.
Next, the user inputs the period (number of days) using each key of the numeric key area 20. In the use example of fig. 5B, in order to calculate the date 100 days before the reference date, 2 keys of the numeric key region 20 are operated to input a numeric value of "100". Accordingly, "100" is displayed in the numerical display area of the display unit 12 (D26). At this stage, the correction of the input period can be performed by operating the clear key 24, the backspace key 25, the keys of the numeric key area 20, and the like.
When the user operates the equal sign key 22 in a state where the period input and display are completed, the date 100 days before the reference day is calculated based on the previously input reference day (D23) and period (D26). In the use example of fig. 5B, the result of the calculation is 2019, 9, 23, and numerals "2019-09-23" indicating the date are displayed in the numeral display area of the display unit 12 (D27). Further, characters "100 days ago" indicating the date as the calculation result are displayed on the upper side of the numeric display area in the display unit 12.
When displaying the date as a result of the previous date calculation processing (D27), even if the operator specifying data is input by operating each key of the calculation command key region 21, the process is controlled not to proceed to the continuous calculation.
In the electronic device 10, the operation of the clear all key 23 and the function key 31 is accepted as an effective input in the process of displaying the date on the display unit 12 as the calculation result in the function mode.
When the clear all key 23 is operated in a state where the date as the calculation result is displayed on the display unit 12, the calculation result of the date and the data of the reference day are cleared from the RAM15, and the display of the date on the display unit 12 is deleted, and the mode is switched to the calculator mode.
When the function key 31 is operated in a state where the date as the calculation result is displayed on the display unit 12, the state returns to a state where the reference date inputted earlier is displayed on the display unit 12 (D28). That is, the control is such that the reference day data input last time is stored continuously until the date calculation mode as the functional mode is exited.
In addition, although the forward date calculation process for calculating the date to be traced from the reference date forward (in the past) is illustrated in fig. 5B, the control and process basically similar to the forward date calculation process are also applied to the backward date calculation process for calculating the date to be traced from the reference date backward (in the future). When the backward date calculation process is performed, the operation performed by the user differs in that the numeric keypad is operated "2" in a state (D24) in which the selection screen of the calculation content is displayed on the display unit 12. Regarding the display control of the display unit 12 of the electronic device 10, the character "several days later" of the input screen (D25, D26) during the period? This is different from the fact that the character of the display screen (D27) of the calculation result is "· · day later" (· · is the input value in D26).
Fig. 6 is a flowchart of control corresponding to the above date calculation mode. The flowchart of fig. 6 is a flowchart focusing on a difference between the processing in the case where the calculation result is a numeric value (number of days) (the period calculation processing shown in fig. 5A) and the processing in the case where the calculation result is a date (the date calculation processing shown in fig. 5B), and the process until the calculation result is obtained in each calculation processing is omitted.
When there is a key input to the input unit 11 in the date calculation mode, the CPU13 determines whether or not the result of the calculation in the date calculation mode is being displayed on the display unit 12 (step S200).
When the calculation result is displayed on the display unit 12 (yes in step S200), the CPU13 determines whether the content displayed on the display unit 12 is a numeric value (number of days) or a non-numeric value (date) (step S201).
When the content displayed on the display unit 12 is a numeric value (number of days) (yes in step S201), the CPU13 determines whether the key operated this time is a key that can be handed over to the calculator mode (step S202). The keys that can be handed over to the calculator mode are each key of the calculation command key area 21 in the use example of fig. 5A.
If the key operated this time is a key that can be handed over to the calculator mode (step S202: a key that can be handed over to the calculator), the CPU13 reads out the calculator application stored in the ROM14 and sets the state of transition to the calculator mode (step S203). In this case, the numerical value of the operation result in the date calculation mode is not deleted but held. Next, the application program for the date calculation mode is terminated and the calculator application program is started, and the transition to the calculator mode is completed (step S204).
Step S205 collectively represents all the following processing of each case without entering the transition to the calculator mode (step S203, step S204).
If the operation result is not displayed on the display unit 12 in the determination in step S200 (no in step S200), the CPU13 waits until the key input for executing the operation in the date calculation mode is received, if the operation in the date calculation mode is not executed in step S205. When the calculation is executed, the display unit 12 performs control so as to display the calculation result.
If the operation result displayed on the display unit 12 is not a numeric value (date) in the determination of step S201 (no in step S201), the CPU13 does not determine whether or not the key operated this time is a key that can be handed over to the calculator mode in step S205 (step S202), and performs processing according to the type of the key. In the use example of fig. 5B, the full clear key 23 and the function key 31 are processed as described above as the keys that are valid at this time, and when the key operated this time is the full clear key 23 or the function key 31, the processing of the content corresponding to each key is performed in step S205. When the key of the present operation is other than the clear all key 23 and the function key 31, the display unit 12 is kept displaying the date and time, and the next key input is waited for.
If the key operated this time is a key that cannot be handed over to the calculator mode (a key other than the calculation command key area 21) in the determination of step S202 (step S202: a key that cannot be handed over to the calculator), the CPU13 waits for the next key input without changing the numerical value while displaying the numerical value as the calculation result on the display unit 12 in step S205.
As described above, in the electronic device 10 of the present embodiment, when the display unit 12 displays the first numerical value (the input value of the first argument in the functional mode, the calculated value, or the output result in the functional mode) in the functional mode for performing the BMI calculation and the date calculation, and when the calculation data including at least the operator specifying data is input, the calculation is performed based on the first numerical value and the calculation data, and the calculation result is displayed on the display unit 12. In this way, the operation can be directly performed based on the output result of the functional mode, and the operation result can be displayed on the display unit, and the electronic device 10 has excellent workability in information input in the functional mode.
In the above-described embodiment, when the first numerical value is displayed on the display unit 12, if the calculation data including at least the operator specifying data is input, the calculation is executed based on the first numerical value and the calculation data, and the calculation result is displayed on the display unit 12.
In the above-described embodiment, the BMI calculation and the date calculation are exemplified as the use examples of the functional mode, but the present disclosure may be applied to a functional mode for which other calculation contents are targeted.
The electronic device 10 of the above-described embodiment includes the input unit 11 configured by a key capable of being pressed, but the input unit is not limited to this, and may be an electronic device that senses an input using a touch sensor or an optical sensor, an electronic device that performs an input by sound, or the like. In the case where the input unit is configured by using keys, a key arrangement or a key type different from those in the above-described embodiments may be employed.
The present disclosure is not limited to the above-described embodiments, and various modifications can be made in the implementation stage without departing from the scope of the present disclosure. Further, the functions performed in the above-described embodiments may be implemented in combination as appropriate as possible. The above-described embodiments include various stages, and various inventions can be extracted by appropriate combinations of a plurality of disclosed constituent elements. For example, even if some of the constituent elements shown in the embodiments are deleted, if an effect can be obtained, a configuration in which the constituent elements are deleted can be extracted as an invention.

Claims (6)

1. An electronic device having an input unit and a display unit, and capable of operating in a calculator mode and a function mode for performing a calculation according to a specific rule based on an argument,
in the functional mode, when a first numerical value is displayed on the display unit, the input unit receives input of calculation data including at least operator specifying data, and performs a calculation based on the first numerical value and the calculation data, the input of which is one of an input value of a first argument of the functional mode, a calculation value based on the input value, and an output result of the functional mode, and a result of the calculation is displayed on the display unit.
2. The electronic device of claim 1,
the input unit has an operation completion operation unit for completing an operation,
in the functional mode, when the input value of the first argument or the calculated value based on the input value is displayed on the display unit in the functional mode, after the calculation data is input and when the operation of the operation completion operation means is input, a calculation is performed based on the first numerical value and the calculation data, and a result of the calculation is displayed on the display unit,
when the operation of the operation completion operation means is further input in the case where the result of the operation in the functional mode is displayed on the display unit, the numerical value of the first argument in the functional mode is determined, and the display unit is shifted to display for inputting the numerical value of the second argument in the functional mode.
3. The electronic device of claim 1,
when the first numerical value is an output result of the functional mode, the operation mode is switched from the functional mode to the calculator mode in accordance with input of the calculation data.
4. The electronic device of claim 3,
switching from the functional mode to the calculator mode in accordance with an input of the calculation data when an output result of the functional mode is a numerical value,
when the output result of the functional mode is not a numerical value, the switching from the functional mode to the calculator mode is not performed even if the calculation data is input.
5. A method for controlling an electronic device that includes an input unit and a display unit and is operable in a calculator mode and a function mode in which an operation is performed according to a specific rule based on an argument, the method comprising:
displaying, on the display unit, a first numerical value in the functional mode, the first numerical value being any one of an input value of a first argument in the functional mode, an operation value based on the input value, and an output result of the functional mode; and
in the functional mode, when the first numerical value is displayed on the display unit, the input unit receives input of calculation data including at least operator specifying data, and performs a calculation based on the first numerical value and the calculation data, and the display unit displays a result of the calculation.
6. A recording medium having a program recorded thereon, the program causing a processor of an electronic device provided with an input unit and a display unit to execute:
in a functional mode for operation according to a specific rule based on an argument, displaying a first numerical value on the display unit, the first numerical value being any one of an input value of a first argument in the functional mode, an operation value based on the input value, and an output result of the functional mode,
the input unit receives an input of calculation data including at least operator specifying data in a state where the first numerical value is displayed on the display unit in the functional mode, performs a calculation based on the first numerical value and the calculation data, and displays a result of the calculation on the display unit.
CN202110301139.XA 2020-03-24 2021-03-22 Electronic device, control method for electronic device, and recording medium Pending CN113448909A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2020-053278 2020-03-24
JP2020053278A JP7259790B2 (en) 2020-03-24 2020-03-24 ELECTRONIC DEVICE, INPUT SUPPORT METHOD AND PROGRAM

Publications (1)

Publication Number Publication Date
CN113448909A true CN113448909A (en) 2021-09-28

Family

ID=77809136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110301139.XA Pending CN113448909A (en) 2020-03-24 2021-03-22 Electronic device, control method for electronic device, and recording medium

Country Status (2)

Country Link
JP (2) JP7259790B2 (en)
CN (1) CN113448909A (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60108956A (en) * 1983-11-18 1985-06-14 Canon Inc Electronic calculator
JP4134440B2 (en) * 1999-04-30 2008-08-20 カシオ計算機株式会社 Electronic computing device and storage medium storing program
JP2002157228A (en) 2001-11-12 2002-05-31 Sharp Corp Input canceling method
JP3176165U (en) 2012-03-29 2012-06-14 株式会社ファーマテックソリューションズジャパン Medical calculator
JP7383902B2 (en) 2018-09-07 2023-11-21 カシオ計算機株式会社 Calculators, calculation methods, and programs

Also Published As

Publication number Publication date
JP2021152806A (en) 2021-09-30
JP2023076624A (en) 2023-06-01
JP7259790B2 (en) 2023-04-18

Similar Documents

Publication Publication Date Title
JP4661654B2 (en) Formula display control apparatus and formula display control program
JP4462181B2 (en) Fraction display device and fraction display program
JP5652104B2 (en) Electronic computer and program
JP3140916B2 (en) Formula input device
US4686643A (en) Electronic equipment selectively storing a frequently used conversion function
CN113448909A (en) Electronic device, control method for electronic device, and recording medium
JP6635132B2 (en) Tax calculator, tax calculation method and tax calculation program
JP3529948B2 (en) Display method of mathematical formulas including electronic devices and variables
US20090113339A1 (en) Electronic calculator displayable with repeating decimal
USRE46215E1 (en) Computing machine with an inequality computation function
EP1059591B1 (en) Electronic calculation apparatus with currency converting function and storage medium storing currency converting calculation display program
JP2007026349A (en) Character input device and character input program
JP4935332B2 (en) Fraction input display device and fraction input display program
JP7110847B2 (en) Calculator, calculation confirmation method, information registration method, and program
JPH0227685B2 (en)
JP2738594B2 (en) Electronic computer
JP7192914B2 (en) Computing device, computational support method and program
JPH08152991A (en) Screen switching device
JP2023045848A (en) Calculator and calculation program
JP4165453B2 (en) Electronics
JP5487997B2 (en) Electronic computer and program
JP2008059314A (en) Formula calculation device and program
JP2000132517A (en) Electronic equipment having calculation function
JP2700960B2 (en) Electronic desk calculator
JP2006003975A (en) Electronic desk computer

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination