Calculator, method of registering operand in calculator, and computer-readable non-transitory storage medium
10599608 ยท 2020-03-24
Assignee
Inventors
Cpc classification
International classification
G06F3/023
PHYSICS
Abstract
A calculator includes: a plurality of numeric keys; a plurality of operation keys; a delimiter key; a memory; and a processor, wherein said processor is configured to: when a first numerical data having at least a first integer, a delimiter, and a second integer arranged in that order has been received, upon receiving a prescribed operation of one of said plurality of operation keys, registers said first integer in said memory as a first operand, and registers said second integer in said memory as a second operand; and registers in said memory a target-operand that has been inputted via an operation or operations of at least one of said plurality of numeric keys, and performs a prescribed arithmetic operation on said target-operand registered in said memory using a plurality of registered operands that include the registered first and second operands.
Claims
1. A calculator comprising: a plurality of numeric keys; a plurality of operation keys, including a first operation key and a second operation key; a delimiter key; a memory; and a processor, wherein said processor is configured to: when a first numerical data having at least a first integer, a delimiter, and a second integer arranged in that order has been received via operations by a user of said delimiter key and at least one of said plurality of numeric keys and when the first integer is larger than the second integer or the first integer is an integer multiple of the second integer, upon receiving a prescribed operation of the first operation key, register said first integer in said memory as a first operand, and registers said second integer in said memory as a second operand; thereafter, receive an integer as a target operand that is input via an operation or operations of at least one of said plurality of numeric keys; and when the second operation key is operated after registration of said first integer and said second integer in said memory, register in said memory said target-operand, and perform a prescribed arithmetic operation on said target-operand registered in said memory using a plurality of registered operands that include the registered first and second operands.
2. The calculator according to claim 1, wherein when said first numerical data that have been received further had a delimiter and a third integer arranged after said second integer and when said processor determines that the third integer is smaller than the second integer, said processor registers said third integer in said memory as a third operand as one of the plurality of registered operands.
3. The calculator according to claim 1, wherein when said processor determines that the second integer is larger than said first integer, the processor breaks up a numeric string of said second integer into a front-side numeric value that is a front-side portion of said numeric string, and a back-side numeric value that is a remaining back-side portion of said numeric string.
4. The calculator according to claim 3, wherein said processor breaks up the numeric string of said second integer so that said front-side numeric value is smaller than said first integer, and so that said back-side numeric value is smaller than said front-side numeric value.
5. The calculator according to claim 4, wherein said processor registers said front-side numeric value as said second operand, and registers said back-side numeric value as said third operand.
6. The calculator according to claim 3, wherein said processor registers said front-side numeric value as said second operand, and registers said back-side numeric value as said third operand.
7. The calculator according to claim 1, wherein when said first integer is not an integer multiple of the second integer, said processor breaks up a numeric string of said second integer into a front-side numeric value that is a front-side portion of said numeric string, and a back-side numeric value that is a remaining back-side portion of said numeric string.
8. The calculator according to claim 7, wherein said processor performs the breakup of said numeric string so that said first integer is an integer multiple of said front-side numeric value, and so that said front-side numeric value is an integer multiple of said back-side numeric value.
9. The calculator according to claim 1, wherein said prescribed operation of said one of said plurality of operation keys is a pressing operation of said first operation key successively a plurality of times.
10. The calculator according to claim 9, further comprising: a display part, wherein said processor displays a plurality of said operands on said display part when said prescribed operation is performed.
11. The calculator according to claim 1, wherein in performing said prescribed arithmetic operation performed on said target-operand, the processor divides said target-operand by the first operand, as a first divisor, and divides a remainder of the division by the first divisor by the second operand, and obtains respective quotients and a resulting remainder.
12. The calculator according to claim 11, further comprising: a display part, wherein said processor displays said calculated quotients and the remainder on said display part.
13. A calculator, comprising: a plurality of numeric keys; a plurality of operation keys, including a first operation key, a second operation key, and a third operation key; a delimiter key; a memory; and a processor, wherein said processor is configured to: when an integer is inputted via an operation or operations of at least one of the plurality of numeric keys, and when the first operation key is pressed one time thereafter, register the integer as a target operand in said memory; when a first numerical data having at least a first integer, a delimiter, and a second integer arranged in that order has been received via operations by a user of said delimiter key and at least one of said plurality of numeric keys and when the first integer is larger than the second integer or the first integer is an integer multiple of the second integer, upon receiving an operation of the second operation key, register said first integer of the first numerical data in said memory as a first operand, and register said second integer of the first numerical data in said memory as a second operand; and upon receiving an operation of the third operation key, perform a prescribed arithmetic operation on said target-operand using the first and second operands, or if the first and second operands are updated since the operation of the second operation key, using the updated first and second operands.
14. The calculator according to claim 13, wherein in performing said prescribed arithmetic operation, the processor divides said target-operand by the first operand, as a first divisor, and divides a remainder of the division by the first divisor by the second operand, and obtains respective quotients and a resulting remainder.
15. The calculator according to claim 13, wherein said second operation key that is pressed after the first numerical data is inputted is a display key.
16. The calculator according to claim 15, further comprising: a display part, wherein said processor displays the updated first and second operands on said display part.
17. The calculator according to claim 1, wherein said processor is further configured to cause a result of the prescribed arithmetic operation to be outputted to the user.
18. A method performed by a processor in a calculator that includes: a plurality of numeric keys; a plurality of operation keys including a first operation key and a second operation key; a delimiter key; a memory; and said processor, the method comprising, via the processor: when a first numerical data having at least a first integer, a delimiter, and a second integer arranged in that order has been received via operations by a user of said delimiter key and at least one of said plurality of numeric keys and when the first integer is larger than the second integer or the first integer is an integer multiple of the second integer, upon receiving a prescribed operation of the first operation key, registering said first integer in said memory as a first operand, and registering said second integer in said memory as a second operand; thereafter, receiving an integer as a target operand that is input via an operation or operations of at least one of said plurality of numeric keys; and when the second operation key is operated after registration of said first integer and said second integer in said memory, registering in said memory said target-operand, and performing a prescribed arithmetic operation on said target-operand registered in said memory using a plurality of registered operands that include the registered first and second operands.
19. The method according to claim 18, further comprising causing a result of the prescribed arithmetic operation to be outputted to the user.
20. A computer-readable non-transitory storage medium having stored thereon a program that causes a processor in a calculator that includes: a plurality of numeric keys; a plurality of operation keys including a first operation key and a second operation key; a delimiter key; a memory; and said processor, to perform the following: when a first numerical data having at least a first integer, a delimiter, and a second integer arranged in that order has been received via operations by a user of said delimiter key and at least one of said plurality of numeric keys and when the first integer is larger than the second integer or the first integer is an integer multiple of the second integer, upon receiving a prescribed operation of the first operation key, registering said first integer in said memory as a first operand, and registering said second integer in said memory as a second operand; thereafter, receiving an integer as a target operand that is input via an operation or operations of at least one of said plurality of numeric keys; and when the second operation key is operated after registration of said first integer and said second integer in said memory, registering in said memory the target-operand, and performing a prescribed arithmetic operation on said target-operand registered in said memory using a plurality of registered operands that include the registered first and second operands.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention, and together with the general description given above and the detailed description of the embodiments given below, serve to explain the principles of the invention.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
DETAILED DESCRIPTION OF THE EMBODIMENT
(12) The modes for carrying out the present invention (hereinafter referred to as embodiments) will be explained in detail below on the basis of the accompanying drawings.
(13) Furthermore, the same reference characters are given to the same elements throughout the entire description of the embodiments.
(14) <Overall Configuration of Calculator>
(15)
(16) The key input part 12 is provided with a numeric keypad 12a of 0 to 9, and 00 (plurality of numeric keys) for numerical computations, a decimal point key 12b of . (delimiter key), operator keys 12c of +, , , , a quotient and remainder computation key 12d of remainder (operation key), a divisor display/conversion key (display key) 12e of divisor display/conversion, a correction 12f of key right-facing black triangle (see
(17) The aforementioned quotient and remainder computation key remainder 12d here is operated instead of the aforementioned conventional division operator key 12c when performing a quotient and remainder computation that calculates a quotient obtained by dividing a target-operand by an operand, and a remainder obtained by dividing the target-operand by the operand.
(18) The functions of the divisor display/conversion key divisor display/conversion 12e and the correction key 12f will be described later.
(19) The memory 13 is configured using ROM and RAM.
(20) A computation program that allows the CPU 11 to function as a multiple-operands registering means and operating means is stored in a ROM 13a of the memory 13, and processing, which will be explained hereinafter, is executed by the CPU 11 serving as the multiple-operands registering means and operating means; hereinafter, only the CPU 11 will be described.
(21) Key-inputted numerical data and the like are stored in the RAM of the memory 13 as required.
(22) Inside the RAM of the memory 13, for example, there is provided an input buffer 13b that temporarily stores key-inputted numerical data, an operand memory 13c in which a plurality of operands (first operand, second operand, and third operand) is registered, and a target-operand memory 13d in which a target-operand is registered.
(23) Furthermore, in the description and drawings below, an operand is written as a divisor, a first operand is written as either operand 1 or divisor 1, a second operand is written as either operand 2 or divisor 2, and a third operand is written as either operand 3 or divisor 3, as appropriate.
(24) The display part 14 displays operand numerical data, operation symbols, constant lock characters, character strings describing computation results, and so forth corresponding to key input operations of the key input part 12.
(25) As will be described later by referring to
(26) The recording medium reader 15 reads data and programs from a recording medium 16 such as a removable flash memory.
First Operation Example
(27) Next, procedures, shown in
(28) Note that the quotient and remainder computation will be referred to as a remainder operation in the following description.
(29)
(30) Furthermore, in
(31) When the power is turned ON, the calculator 1 monitors whether any of the operations of Steps S101 through S107 is performed, as shown in
(32) When the AC key 12h is pressed, the CPU 11 determines that AC key? (Step S101) of
(33) Next, when a numeric value 109 (first numerical data) is inputted, that is, when a numeric value 1 input, a numeric value 0 input, and a numeric value 9 input are performed, the CPU 11 determines that numeric value, etc. inputted? (Step S102) of
(34) Furthermore, the inputted numerical data is stored in the input buffer 13b of the memory 13.
(35) Next, when the remainder key 12d is pressed, the CPU 11 determines that remainder key? (Step S103) of
(36) Also, the CPU 11 registers the displayed numeric value 109 in the target-operand memory 13d of the memory 13 as a target-operand of the remainder operation, and as shown in
(37) Next, when numerical data (also called second numerical data), that has at least a first integer, a decimal point, and a second integer arranged in that order, is inputted as in first integer 42, decimal point ., second integer 14, decimal point ., and third integer 7, the CPU 11 determines that numeric value, etc. inputted? (Step S102) of
(38) In the present embodiment, the display of a decimal point that has been inputted for a second time is omitted from the display part 14.
(39) Next, when the divisor display/conversion key 12e is pressed, the CPU 11 determines that divisor display/conversion key? (Step S106) of
(40) When the operands detection process shown in
(41) Since the first integer 42 is larger than the second integer 14, and the second integer 14 is larger than the third integer 7, the CPU 11 determines that first integer larger than second integer? (Step S206) of
(42) Upon returning to the main routine, the CPU 11 registers, in the operand memory 13c of memory 13, the respective operands (operand 1 42, operand 2 14, and operand 3 7) detected in the operands detection process, and, as shown in
(43) Specifically, the operands 42, 14, 7 are displayed in a numeric value display area of the display part 14 in a connected format using hyphens -, and divisor 1, divisor 2, divisor 3, which are character strings describing the operands, are respectively displayed in corresponding positions thereabove.
(44) That is, in the operands detection process and a step that follows thereafter (e.g., Step S123), the CPU 11 functions as a multiple-operands registering means, and, for numerical data that has been inputted in response to a user operation and that has at least a first integer, a decimal point, and a second integer arranged in that order, executes processing for registering the first integer as operand 1, and registering the second integer as operand 2.
(45) As described above, when the target-operand is registered in the target-operand memory 13d of the memory 13, and the operands (operand 1, operand 2, and operand 3) are registered in the operand memory 13c of the memory 13, it becomes possible for the CPU 11 to execute, in response to an = key 12i operation, remainder operation of a target-operand using a plurality of operands that will be described later, but in the first operation example shown in
(46) Specifically, as shown in
(47) That is, when the correction key 12f is pressed while the operands 42-14-7 are being displayed in the display part 14, as shown in
(48) Subsequently, when the correction key 12f is pressed one more time, the CPU 11 determines once again that correction key? (Step S105) of
(49) Specifically, when the correction key 12f is pressed while the operands 42-14- are being displayed in the display part 14, as shown in
(50) Next, when the decimal point . key 12b is pressed, the CPU 11 determines that numeric value, etc. inputted? (Step S102) of
(51) Next, when a numeric value 5 is inputted, the CPU 11 determines that numeric value, etc. inputted? (Step S102) of
(52) Furthermore, in accordance with the correction operation described above, the contents stored in the input buffer 13b, i.e., 42. 14. 7 (first integer, decimal point, second integer, decimal point, third integer), are corrected to 42. 14. 5 (first integer, decimal point, second integer, decimal point, third integer).
(53) Next, when the = key 12i is pressed, the CPU 11 determines that =key? (Step S104) of
(54) The only contents stored in the input buffer 13b are 42. 14. 5, and the contents themselves on which the operands detection process is performed are the same as when the contents stored in the input buffer 13b were 42. 14. 7.
(55) Therefore, a detailed description referencing
(56) Also, upon returning to the main routine, the CPU 11 registers, in the operand memory 13c of the memory 13, the operands (operand 1 42, operand 2 14, operand 3 5) detected in the operands detection process, executes a remainder operation a plurality of times using the operands 42, 14 and 5 with respect to the target-operand 109 registered in the target-operand memory 13d, and displays the respective quotients and remainder in the display part 14 using the format quotient 1-quotient 2-quotient 3-remainder (Step S118).
(57) That is, in Step S118, the CPU 11 functions as an operating means, and performs processing that operates on the target-operand using a plurality of registered operands.
(58) Specifically, the CPU 11 produces, as quotient 1, a quotient 2 obtained by dividing the target-operand 109 by the largest operand 1 42, produces, as quotient 2, a quotient 1 obtained by dividing the remainder thereof 25 by the next largest operand 2 14, produces, as quotient 3, a quotient 2 obtained by dividing the remainder thereof 11 by the smallest operand 3 5, and produces the remainder thereof 1 as the final remainder.
(59) Also, as shown in
(60) According to the first operation example of calculator 1 described above, when a calculation execution operation is performed in response to user operations by sequentially inputting first numerical data (the first numerical data in the aforementioned example is 109), pressing the remainder key 12d one time, inputting second numerical data having at least a first integer, a decimal point, and a second integer arranged in that order (in the aforementioned example, the second numerical data are arranged in the order of a first integer, a decimal point, a second integer, a decimal point, and a third integer), and pressing the = key 12i, the CPU 11 registers the first integer of the second numerical data as a first operand, registers the second integer as a second operand (since a third integer exists in the aforementioned example, an operation is also performed to register the third integer as a third operand), and thereafter, treating the first numerical data as a target-operand, repeatedly performs division operations whereby a remainder, which is obtained by dividing the target-operand by the operand having the largest numeric value (first operand) of the plurality of operands is divided by an operand having the next largest numeric value (second operand, and third operand), calculates the quotients and remainder of the plurality of operands, and displays the results thereof in the display part 14, thereby making it possible, with simple operations, to register a plurality of operands, and to perform a remainder calculation that uses the plurality of operands.
(61) Furthermore, when the divisor display/conversion key 12e is pressed subsequent to the input of the second numerical data, the CPU 11 registers the first integer of the second numerical data as a first operand, registers the second integer as a second operand, and thereafter displays the plurality of operands in the display part 14, thereby making the plurality of registered operands easily recognizable.
(62) Furthermore, in the aforementioned example, since a third integer exists, the third integer is registered as a third operand, and this third operand is also displayed in the display part 14.
(63) Furthermore, since the plurality of registered operands can be easily corrected on the basis of operating a correction key 12f or the like, even in a case where an error has occurred in the inputting of the second numerical data, there is no need to start over again from the inputting of the first numerical data.
Second Operation Example
(64)
(65) When the AC key 12h is pressed, the CPU 11 determines that AC key? (Step S101) of
(66) Next, when numerical data having at least a first integer, a decimal point, and a second integer arranged in that order is inputted as in first integer 42, decimal point ., and second integer 14, the CPU 11 determines that numeric value, etc. inputted? (Step S102) of
(67) Next, when the remainder key 12d is pressed, the CPU 11 determines that remainder key? (Step S103) of
(68) Also, the CPU 11 sets the displayed numeric values 42. 14 once as a target-operand of a remainder operation (registers the target-operand in the target-operand memory 13d of the memory 13), and as shown in
(69) Subsequently, when the remainder key 12d is pressed once again, because this is the second consecutive input, the CPU 11 determines that consecutive remainder keys this time? (Step S110) of
(70) Note that since a third integer does not exist, the second operation example will be explained while referring to
(71) Since 42. 14 (first integer, decimal point, and second integer) is stored in the input buffer 13b of the memory 13 upon executing the operands detection process shown in
(72) Also, since the first integer 42 is larger than the second integer 14, the CPU 11 determines that first integer larger than second integer? (Step S209) of
(73) Upon returning to the main routine, the CPU 11 registers the operands (operand 1 42 and operand 2 14) detected in the operands detection process in the operand memory 13c of the memory 13, and, as shown in
(74) Specifically, the operands 42 and 14 are displayed in the numeric value display area of the display part 14 in a connected format using hyphens -, and divisor 1 and divisor 2, which are character strings describing the operands, are displayed in corresponding positions thereabove.
(75) In addition, in Step S112, the CPU 11 sets a remainder constant lock calculation mode, and as shown in
(76) Next, after registering the operands when a numeric value 107 (post-registration numerical data) is inputted, that is, when a numeric value 1 input, a numeric value 0 input, and a numeric value 7 input are performed, the CPU 11 determines that numeric value, etc. inputted? (Step S102) of
(77) Next, when the = key 12i is pressed, the CPU 11 determines that =key? (Step S104) of
(78) More specifically, the CPU 11 produces, as quotient 1, a quotient 2 obtained by dividing the target-operand 107 by operand 1 42, produces, as quotient 2, a quotient 1 obtained by dividing the remainder thereof 23 by operand 2 14, and produces the remainder thereof 9 as the final remainder.
(79) Also, as shown in
(80) Subsequently, when a numeric value 240 (post-registration numerical data) is inputted, that is, when a numeric value 2 input, a numeric value 4 input, and a numeric value 0 input are performed, the CPU 11 determines that numeric value, etc. inputted? (Step S102) of
(81) Also, when the = key 12i is pressed subsequent to the input of this numeric value 240 (post-registration numerical data), the CPU 11 determines that =key? (Step S104) of
(82) More specifically, the CPU 11 produces, as quotient 1, a quotient 5 obtained by dividing the target-operand 240 by operand 1 42, produces, as quotient 2, a quotient 2 obtained by dividing the remainder thereof 30 by operand 2 14, and produces the remainder thereof 2 as the final remainder.
(83) Also, as shown in
(84) Accordance to the second operation example of calculator 1 described above, when a computation execution operation is performed in response to user operations by sequentially inputting numerical data having at least a first integer, a decimal point, and a second integer arranged in that order, pressing the remainder key 12d two times, inputting post-registration numerical data, and pressing the = key 12i, the CPU 11 registers the first integer of the numerical data as a first operand, registers the second integer as a second operand, and thereafter, treating the post-registration numerical data as a target-operand, repeatedly performs division operations whereby a remainder, that is obtained by dividing the target-operand by the first operand, which has the largest numeric value of the plurality of operands, is divided by the second operand, which has the next largest numeric value, calculates the quotients and remainder of the plurality of operands, and displays the results thereof in the display part 14, thereby making it possible, with simple operations, to register a plurality of operands, and to perform a remainder operation that uses this plurality of operands.
(85) Furthermore, when the remainder key 12d is pressed two times subsequent to the input of the numerical data, the CPU 11 registers the first integer of the numerical data as the first operand, registers the second integer as the second operand, and thereafter displays the plurality of operands in the display part 14, thereby making the plurality of registered operands easily recognizable.
(86) Furthermore, when the remainder key 12d is pressed two times subsequent to the input of the numerical data, the CPU 11 sets the plurality of registered operands in the lock mode, and thereafter, treating the inputted post-registration numerical data as the target-operand, switches to the constant lock mode for executing a remainder operation using the plurality of operands in the lock mode, thereby making the remainder operation easily executable using the plurality of specified operands.
Third Operation Example
(87)
(88) When the AC key 12h is pressed, the CPU 11 determines that AC key? (Step S101) of
(89) Next, when numerical data arranged as first integer 42, decimal point ., second integer 14, decimal point ., and third integer 7 are inputted, the CPU 11 determines that numeric value, etc. inputted? (Step S102) of
(90) Furthermore, as described in the first operation example, the display in the display part 14 of a decimal point that has been inputted for a second time is omitted.
(91) Next, when the remainder key 12d is pressed, the CPU 11 determines that remainder key? (Step S103) of
(92) Also, the CPU 11 sets the displayed numeric values 42. 147 once as the target-operand of the remainder operation (registers the target-operand in the target-operand memory 13d of the memory 13), and as shown in
(93) Subsequently, when the remainder key 12d is pressed once again, because this is the second consecutive input, the CPU 11 determines that consecutive remainder keys this time? (Step S110) of
(94) Upon executing the operands detection process shown in
(95) Since the first integer 42 is larger than the second integer 14, and the second integer 14 is larger than the third integer 7, the CPU 11 determines that first integer larger than second integer? (Step S206) of
(96) Upon returning to the main routine, the CPU 11 registers the operands (operand 1 42, operand 2 14, and operand 3 7) detected in the operands detection process in the operand memory 13c of the memory 13, and, as shown in
(97) Specifically, the CPU 11 displays the operands 42, 14, and 7 in the numeric value display area of the display part 14 in a connected format using hyphens -, and displays in corresponding positions thereabove divisor 1, divisor 2, and divisor 3, which are character strings describing the operands.
(98) In addition, in Step S112, the CPU 11 sets the remainder constant lock calculation mode, and as shown in
(99) Next, when a numeric value 107 (post-registration numerical data) is inputted, that is, when a numeric value 1 input, a numeric value 0 input, and a numeric value 7 input are performed, the CPU 11 determines that numeric value or the like inputted? (Step S102) of
(100) Next, when the = key 12i is pressed, the CPU 11 determines that =key? (Step S104) of
(101) Specifically, the CPU 11 produces, as quotient 1, a quotient 2 obtained by dividing the target-operand 107 by operand 1 42, produces, as quotient 2, a quotient 1 obtained by dividing the remainder thereof 23 by operand 2 14, produces, as quotient 3, a quotient 1 obtained by dividing the remainder thereof 9 by operand 3 7, and sets the remainder thereof 2 as the final remainder.
(102) Also, as shown in
(103) Subsequently, when a numeric value 240 (post-registration numerical data) is inputted, that is, when a numeric value 2 input, a numeric value 4 input, and a numeric value 0 input are performed, the CPU 11 determines that numeric value or the like inputted? (Step S102) of
(104) Also, when the = key 12i is pressed subsequent to the input of this numeric value 240 (post-registration numerical data), the CPU 11 determines that =key? (Step S104) of
(105) More specifically, the CPU 11 sets, as quotient 1, a quotient 5 obtained by dividing the target-operand 240 by operand 1 42, sets, as quotient 2, a quotient 2 obtained by dividing the remainder thereof 30 by operand 2 14, sets, as quotient 3, a quotient 0 obtained by dividing the remainder thereof 2 by operand 3 7, and sets the remainder thereof 2 as the final remainder.
(106) Also, as shown in
(107) According to the third operation example of calculator 1 described above, when a calculation execution operation is performed in response to user operations by sequentially inputting numerical data arranged in the order of a first integer, a decimal point, a second integer, a decimal point, and a third integer, pressing the remainder key 12d two times, inputting post-registration numerical data, and pressing the = key 12i, the CPU 11 registers the first integer of the numerical data as a first operand, registers the second integer as a second operand, and registers the third integer as a third operand, and thereafter, treating the post-registration numerical data as a target-operand, calculates the quotients and remainder of the plurality of operands by dividing the target-operand by the first operand, which has the largest numeric value of the plurality of operands, dividing the remainder thereof by the second operand, which has the next largest numeric value, and, in addition, dividing the remainder thereof by the third operand, and displays the results thereof in the display part 14, thereby making it possible, with simple operations, to register a plurality of operands, and to perform a remainder operation that uses this plurality of operands.
(108) Furthermore, when the remainder key 12d is pressed two times subsequent to the input of the numerical data, the CPU 11 registers the first integer of the numerical data as the first operand, registers the second integer as the second operand, and registers the third integer as the third operand, and thereafter displays the plurality of operands in the display part 14, thereby making the plurality of registered operands easily recognizable.
(109) Furthermore, when the remainder key 12d is pressed two times subsequent to the input of the numerical data, the CPU 11 sets the plurality of registered operands in the lock mode, and thereafter, treating the inputted post-registration numerical data as the target-operand, switches to the constant lock mode for executing the remainder operation using the plurality of operands in the lock mode, thereby making the remainder operation easily executable using the plurality of specified operands.
Fourth Operation Example
(110)
(111) When the AC key 12h is pressed, the CPU 11 determines that AC key? (Step S101) of
(112) Next, when numerical data arranged as first integer 168, decimal point ., second integer 4221 is inputted, the CPU 11 determines that numeric value or the like inputted? (Step S102) of
(113) Note that, in the numeric value 168. 4221 inputted here, the second integer 4221 is larger than the first integer 168, and therefore the numeric value 168. 4221 constitutes an example of an input error in which the inputting of the second decimal point has been forgotten.
(114) Next, when the remainder key 12d is pressed, the CPU 11 determines that remainder key? (Step S103) of
(115) Also, the CPU 11 sets the displayed numeric value 168. 4221 once as the target-operand of the remainder operation (registers the target-operand in the target-operand memory 13d of the memory 13), and as shown in
(116) Subsequently, when the remainder key 12d is pressed once again, because this is the second consecutive input, the CPU 11 determines that consecutive remainder keys this time? (Step S110) of
(117) Since 168. 4221 (first integer, decimal point, and second integer) is stored in the input buffer 13b of the memory 13 when the operands detection process shown in
(118) Also, because the first integer 168 is smaller than the second integer 4221, the CPU 11 determines that Step S209 is NO, and advances to the processing of Step S211.
(119) The first integer 168 is smaller than the second integer 4221 here, and the second integer 4221 can be split into a front-side numeric value 42 that is smaller than the first integer 168, and a back-side numeric value 21 that is smaller than the front-side numeric value.
(120) Therefore, the CPU 11 determines that second integer capable of being split into front-side numeric value of front-side portion that is smaller than first integer, and back-side numeric value of back-side portion that is smaller than front-side numeric value? (Step S211) of
(121) That is, even when there is an input error in which the inputting of a second decimal point has been forgotten, when the second integer can be split into a front-side numeric value of a front-side portion that is smaller than the first integer, and a back-side numeric value of a back-side portion that is smaller than the front-side numeric value, the CPU 11 is configured to automatically perform correction processing.
(122) Furthermore, the CPU 11 performs processing that changes the position for splitting the numeric string of the second integer sequentially from the front side, and detects the front-side numeric value and the back-side numeric value as described above, but in a case where a front-side numeric value and a back-side numeric value cannot be detected as described above, the CPU 11 determines that Step S211 is NO, and performs other processing (e.g., error processing).
(123) Upon returning to the main routine, the CPU 11 registers the operands (operand 1 168, operand 2 42, and operand 3 21) detected in the operands detection process in the operand memory 13c of the memory 13, and, as shown in
(124) Specifically, the CPU 11 displays the operands 168, 42, and 21 in a numeric value display area of the display part 14 in a connected format using hyphens -, and displays in corresponding positions thereabove divisor 1, divisor 2, and divisor 3, which are character strings describing the operands.
(125) In addition, in Step S112, the CPU 11 sets the remainder constant lock calculation mode, and as shown in
(126) Furthermore, in a case where a user sees the operands (operand 1 168, operand 2 42, and operand 3 21) displayed in the display part 14, and wishes to correct the operand, a correction can be made using the same correction procedures described in the first operation example.
(127) Next, when a numeric value 310 (post-registration numerical data) is inputted, that is, when a numeric value 3 input, a numeric value 1 input, and a numeric value 0 input are performed, the CPU 11 determines that numeric value, etc. inputted? (Step S102) of
(128) Next, when the = key 12i is pressed, the CPU 11 determines that =key? (Step S104) of
(129) More specifically, the CPU 11 produces, as quotient 1, a quotient 1 obtained by dividing the target-operand 310 by operand 1 168, produces, as quotient 2, a quotient 3 obtained by dividing the remainder thereof 142 by operand 2 42, produces, as quotient 3, a quotient 0 obtained by dividing the remainder thereof 16 by operand 3 21, and produces the remainder thereof 16 as the final remainder.
(130) Also, as shown in
(131) Subsequently, when a numeric value 375 (post-registration numerical data) is inputted, that is, when a numeric value 3 input, a numeric value 7 input, and a numeric value 5 input are performed, the CPU 11 determines that numeric value, etc. inputted? (Step S102) of
(132) Also, when the = key 12i is pressed subsequent to the input of this numeric value 375 (post-registration numerical data), the CPU 11 determines that =key? (Step S104) of
(133) More specifically, the CPU 11 sets, as quotient 1, a quotient 2 obtained by dividing the target-operand 375 by operand 1 168, sets, as quotient 2, a quotient 0 obtained by dividing the remainder thereof 39 by operand 2 42, sets, as quotient 3, a quotient 1 obtained by dividing the remainder thereof 39 by operand 3 21, and sets the remainder thereof 18 as the final remainder.
(134) Also, as shown in
(135) According to the fourth operation example of calculator 1 described above, when the second integer is larger than the first integer, the CPU 11 splits the second integer numeric string into a front-side numeric value of a front-side portion that is smaller than the first integer, and a back-side numeric value of a back-side portion that is smaller than the front-side numeric value, registers the front-side numeric value as the second operand, and registers the back-side numeric value as the third operand, thereby making an appropriate second integer and third integer automatically registerable even when a required decimal point input between the second integer and the third integer was forgotten.
Fifth Operation Example
(136)
(137) When the AC key 12h is pressed, the CPU 11 determines that AC key? (Step S101) of
(138) Next, when numerical data arranged as first integer 168, decimal point ., and second integer 42 is inputted, the CPU 11 determines that numeric value, etc. inputted? (Step S102) of
(139) Note that the numeric value 168. 42 inputted here should have been inputted as 168. 4. 2, and is an example of an input error in which the inputting of the second decimal point has been forgotten, showing a case in which an input error determination as in the fourth operation example is not possible.
(140) Next, when the remainder key 12d is pressed, the CPU 11 determines that remainder key? (Step S103) of
(141) Also, the CPU 11 sets the displayed numeric value 168. 42 once as a target-operand of a remainder operation (registers the target-operand in the target-operand memory 13d of the memory 13), and as shown in
(142) Subsequently, when the remainder key 12d is pressed once again, because this is the second consecutive input, the CPU 11 determines that consecutive remainder keys this time? (Step S110) of
(143) Since 168. 42 (first integer, decimal point, and second integer) is stored in the input buffer 13b of the memory 13 when the operands detection process shown in
(144) Also, since the first integer 168 is larger than the second integer 42, the CPU 11 determines that first integer larger than second integer? (Step S209) of
(145) Upon returning to the main routine, the CPU 11 registers the operands (operand 1 168 and operand 2 42) detected in the operands detection process in the operand memory 13c of the memory 13, and, as shown in
(146) Specifically, the operands 168 and 42 are displayed in the numeric value display area of the display part 14 in a connected format using hyphens -, and divisor 1 and divisor 2, which are character strings describing the operands, are displayed in corresponding positions thereabove.
(147) In addition, in Step S112, the CPU 11 sets the remainder constant lock calculation mode, and as shown in
(148) At this point, the user sees the display on the display part 14 shown in
(149) That is, the user should have inputted 168. 4. 2 as operand 1 168, operand 2 4, and operand 3 2, but mistakenly inputted the numeric values 168. 42, and therefore, as shown in
(150) Also, when there are no mistakes in a numeric string itself that has been inputted in this manner, the user can easily correct an operand by pressing the divisor display/conversion key 12e as described in detail below.
(151) When the divisor display/conversion key 12e is pressed, the CPU 11 determines that divisor display/conversion key? (Step S106) of
(152) Also, because the second integer 42 can be split into a front-side numeric value 4 that is smaller than the first integer 168, and a back-side numeric value 2 that is smaller than the front-side numeric value, the CPU 11 determines that second integer can be split into front-side numeric value and back-side numeric value (that is, second integer can be split into front-side numeric value of front-side portion that is smaller than first integer, and back-side numeric value of back-side portion that is smaller than front-side numeric value)? (Step S125) of
(153) Next, the CPU 11 registers the operands (operand 1 168, operand 2 4, and operand 3 2) detected in Step S126 in the operand memory 13c of the memory 13, and, as shown in
(154) Specifically, the CPU 11 displays the operands 168, 4, and 2 in the numeric value display area of the display part 14 in a connected format using hyphens -, and displays in corresponding positions thereabove divisor 1, divisor 2, and divisor 3, which are character strings describing the operands.
(155) Furthermore, in the above example, there is one combination for splitting the second integer into front and back, but when a plurality of combinations exist for splitting the second integer into front and back, the CPU 11 can process such a case by presetting, for example, so as to select the largest back-side numeric value that satisfies a condition whereby the front-side numeric value of the second integer is smaller than the first integer and the back-side numeric value of the second integer is smaller than the front-side numeric value.
(156) In particular, ensuring that the back-side numeric value constitutes a large numeric value facilitates the exclusion of numeric value 1, which cannot be set as a divisor, to be selected as the third operand.
(157) Furthermore, when there is a plurality of combinations for splitting the second integer into front and back, operand 2 and operand 3 obtained by automatically splitting the second integer into front and back and registered could differ from the numeric values desired by the user, in which case, when the user presses the divisor display/conversion key 12e once again, a different combination is presented as described in detail below.
(158) When the divisor display/conversion key 12e is pressed a second time, the CPU 11 determines that divisor display/conversion key? (Step S106) of
(159) The CPU 11 subsequently determines that when splitting numeric string, is there a new combination? (that is, when numeric string arranging operand 2 and operand 3 in order is split into front and back, is there any combination of operand 2 and operand 3 different from previous combination of operand 2 and operand 3)? (Step S127) of
(160) This enables the user to press the divisor display/conversion key 12e until a desired operand 2 and operand 3 are displayed, and to register the desired operand 2 and operand 3.
(161) When, subsequent to the registration of the operands (operand 1, operand 2, and operand 3) having been performed in this way, a numeric value 310 (post-registration numerical data) is inputted, that is, a numeric value 3 input, a numeric value 1 input, and a numeric value 0 input are performed, the CPU 11 determines that numeric value or the like inputted? (Step S102) of
(162) Next, when the = key 12i is pressed, the CPU 11 determines that =key? (Step S104) of
(163) More specifically, the CPU 11 sets, as quotient 1, a quotient 1 obtained by dividing the target-operand 310 by operand 1 168, sets, as quotient 2, a quotient 35 obtained by dividing the remainder thereof 142 by operand 2 4, sets, as quotient 3, a quotient 1 obtained by dividing the remainder thereof 2 by operand 3 2, and sets the remainder thereof 0 as the final remainder.
(164) Also, as shown in
(165) Subsequently, when a numeric value 375 (post-registration numerical data) is inputted, that is, when a numeric value 3 input, a numeric value 7 input, and a numeric value 5 input are performed, the CPU 11 determines that numeric value or the like inputted? (Step S102) of
(166) Also, when the = key 12i is pressed subsequent to the input of this numeric value 375 (post-registration numerical data), the CPU 11 determines that =key? (Step S104) of
(167) More specifically, the CPU 11 sets, as quotient 1, a quotient 2 obtained by dividing the target-operand 375 by operand 1 168, sets, as quotient 2, a quotient 9 obtained by dividing the remainder thereof 39 by operand 2 4, sets, as quotient 3, a quotient 1 obtained by dividing the remainder thereof 3 by operand 3 2, and sets the remainder thereof 1 as the final remainder.
(168) Also, as shown in
(169) According to the fifth operation example of calculator 1 described above, similar to the examples of the second operation and the third operation, a plurality of operands can be registered, and a remainder operation that uses this plurality of operands can be performed with simple operations, but when the divisor display/conversion key 12e is pressed while operand 1 and operand 2 are being displayed in the display part 14, the CPU 11 splits the numeric string of the second integer into a front-side numeric value, which is a portion on the front side that is smaller than the first integer, and a back-side numeric value, which is a portion on the back side that is smaller than the front-side numeric value, registers the front-side numeric value as the second operand, and registers the back-side numeric value as the third operand, thereby enabling the registration of an appropriate second integer and third integer even when a required decimal point input between the second integer and the third integer has been forgotten.
Modification Example
(170) Judging from trends, such as goods packing patterns, for example, as combinations of operand 1, operand 2, and operand 3, there are many cases in which the number of packing containers for goods constitutes integer multiples in terms of large, medium, and small, like a large packing container for 42, a medium packing container for 14, and a small packing container for 7, as in the first operation example and so forth.
(171) Therefore, as in a modification example shown in
(172) The modification example of the operands detection process will be explained below while referring to
(173) When executing the operands detection process shown in
(174) Also, because the first integer 168 is not a multiple of the second integer 4221, and the second integer 4221 can be split into a front-side numeric value 42, which, when subjected to integer multiplication, becomes the first integer 168, and a back-side numeric value 21, which, when subjected to integer multiplication, becomes the front-side numeric value 42, the CPU 11 determines that first integer is multiple of second integer? (Step S309) of
(175) In a case where integer multiplication is treated as the determination criteria, although the illustration of the main routine corresponding to
(176) Furthermore, in this modification example as well, in a case where the second integer is split into a front-side numeric value and a back-side numeric value in the above-described manner, the back-side numeric value could conceivably become 1, but since a divisor of 1 is not suitable for a remainder operation, it is preferable that a back-side numeric value of 1 be excluded automatically.
(177) The calculator 1 of the present invention has been described above on the basis of specific embodiments, but the present invention is not limited to the specific embodiments described above, and various modifications and improvements are included within the technical scope of the present invention, as will be clear to a person skilled in the art from the disclosures in the claims.
(178) For example, in the above embodiments, a decimal point is used as a delimiter separating a first integer and a second integer, and when a first integer, a decimal point, and a second integer are inputted, the first integer is registered as a first operand, and the second integer is registered as a second operand; however, an input key for a special delimiter (e.g., -, , or the like) for separating the first integer and the second integer may be provided on the keyboard of the calculator (electronic calculator), so that when a first integer, a delimiter -, and a second integer are inputted, the first integer is registered as a first operand, and the second integer is registered as a second operand.
(179) Additional advantages and modifications will readily occur to those skilled in the art. Therefore, the invention in its broader aspects is not limited to the specific details and representative embodiments shown and described herein. Accordingly, various modifications may be made without departing from the spirit or scope of the general inventive concept as defined by the appended claims and their equivalents.
(180) It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention cover modifications and variations that come within the scope of the appended claims and their equivalents. In particular, it is explicitly contemplated that any part or whole of any two or more of the embodiments and their modifications described above can be combined and regarded within the scope of the present invention.