Background technology
Counter is because the demand of computation process will be built in counter in physical constant (PhysicalConstant) commonly used or the physics astronomical constants (Physical Astronomical Constant) at present.Therefore can allow the user when carrying out the calculation of calculating formula, and can access the definition value of physical constant or physics astronomical constants fast for the user, to save time because of inquiry physical constant or physics astronomical constants.
And for the interior counter that has physical constant or physics astronomical constants (hereinafter to be referred as constant), when the user wants to access the definition value of constant, this constant of input is stored in the typical value (ITUMNUMBER) in the counter earlier, pushes the display screen that execute key (const key) just can be shown in the definition value of constant counter again.
Seeing also Fig. 1 is to be the operational flowchart of constant input, includes the following step:
Step 41: input typical value;
Step 42: judge whether to finish the typical value input;
If then skip to step 43;
If not, rebound step 41 then;
Step 43: judge whether to push const key;
If skip to step 44;
If not, skip to step 46;
Step 44: whether the numerical value of judging the input typical value surpasses 136; Wherein 136 is for being stored in the total value of counter internal constant,
If skip to step 47;
If not, skip to step 45;
Step 45: show constant numerical value
Step 46: enter the arithmetical logic computing unit;
Step 47: counter shows ERROR.
For example: if light velocity c (the Speed of Light Vacuum) typical value in the counter internal constant is 1.When wanting to access the constant of light velocity c, user's input 1 earlier pushes execute key (const key) again, and the numerical value that the display screen of counter promptly can demonstrate light velocity c is 299792458.
Yet in above-mentioned input process, the user must know the numerical value of constant representative in counter earlier, and the typical value of common constant can be inquired about the operation manual or the attached index card that is used for inquiring about the constant typical value of giving of counter.Therefore the user is when the input constant, and process not only bothers, and last counter also only demonstrates the numerical value or the conventional letter (is c as the light velocity) of constant, there is no Faxian the unit of constant or the numerical value of this representative in calculating of constant are shown.If operation manual or index card are lost, then the user can't correctly import constant.
So as from the foregoing, the aforementioned calculation device obviously has inconvenience and disappearance when the actual use of input constant, await being improved.
The inventor with not enough, proposes a kind of " calculating device capable of displaying constant and method thereof " reasonable in design at shortcoming of the prior art.
Summary of the invention
Fundamental purpose of the present invention is a kind of calculating device capable of displaying constant and method thereof can be provided, and can allow the user directly with the typical value input of constant or the menu interface of switching constant, and numerical value, unit, the symbol of last energy output constant.
In order to reach above-mentioned purpose, the invention provides a kind of calculating device capable of displaying constant, in order to operate in the counter, be by an input block input operation, and result of calculation is shown in the device of an output unit, and comprising: a button judging unit, judge the button that input block is pushed; One constant data library unit stores constant information; One arithmetical logic computing unit; And a constant performance element, be to electrically connect button judging unit and constant data library unit, the constant performance element is the judged result according to the button judging unit, reading the content of constant data library unit, and carries out computing by the arithmetical logic computing unit.
In order to reach above-mentioned purpose, the invention provides a kind of computing method that show constant, comprise the following steps: (a). show constant menu interface information; (b). judge whether the typical value of direct input constant, then jump directly to of the page demonstration of this typical value, then switch the page of this constant menu interface if not corresponding to this constant menu interface if having; And (c). import these constant menu interface data to show the content of constant information.
In order to reach above-mentioned purpose, the present invention provides a kind of program recording medium that can show constant that is loaded with again, and software program comprises: one first procedure code, the input button of reception input block; One second procedure code, the function of judgement button that input block is imported; One the 3rd procedure code reads the constant content of constant data library unit; And one the 4th procedure code, constant is handled and is exported demonstration by the constant performance element.
Embodiment
In order further to understand feature of the present invention and technology contents, see also following about detailed description of the present invention and accompanying drawing, yet appended graphic only provide with reference to and the explanation usefulness, be not to be used for the present invention is limited.
Seeing also Fig. 2, is the system block diagrams of calculation element of the present invention.Calculation element mainly is to include an input block 11, a button judging unit 12, a constant performance element 13, a constant data library unit 14, an I/O buffer zone 15, an arithmetical logic computing unit 16 and an output unit 17 in a counter (CALCULATOR) 10.
Wherein input block 11 is for being located in the counter 10 a plurality of buttons for input operations, button have at least numerical key, symbolic key, four fundamental rules (+,-, *, ÷) calculation keys or the like, and the execute key (hereinafter to be referred as const key) that is used for transferring constant function.Button judging unit 12 is to be used for judging the function that input block 11 is pushed button.Constant performance element 13 is electrically connected at button judging unit 12, constant performance element 13 and according to the judged result of button judging unit 12 to carry out transferring of constant.Constant data library unit 14 is electrically connected at constant performance element 13, and constant data library unit 14 is numerical value, symbol, unit and the constant typical values (ITEM NUMBER) in counter 10 that are used for storing general constant (including physical constant and physics astronomical constants) commonly used.I/O buffer zone 15 is electrically connected at button judging unit 12 and constant performance element 13, and I/O buffer zone 15 can be kept in for the numerical information of counter 10 in calculating process.Arithmetical logic computing unit 16 is electrically connected at I/O buffer zone 15, and arithmetical logic computing unit 16 is to be used for the calculating formula that input block 11 is imported is calculated.Output unit 17 is electrically connected at I/O buffer zone 15, and output unit 17 is with input data information, symbol and the result of calculation of liquid crystal display displays counter 10 in operating process.
See also Fig. 3, be the operational flowchart of constant input of the present invention.Include the following step:
Step 21: the const key that pushes input block 11;
Step 22: show the constant menu interface in output unit 17, and step 23,28,31 is carried out in the A place;
Step 23: the typical value input that judges whether to push constant;
If then skip to step 24;
If not, then rebound A place etc. is pending;
Step 24: change the typical value of line of input, the user can change the typical value of being imported by the right and left key of input block 11;
Step 25: the enter key (enter) that judges whether to push input block 11;
If then skip to step 26;
If not, rebound step 24 then;
Step 26 judges that whether typical value surpasses 136, and wherein 136 is total values for constant data library unit 14 stored constants;
If then skip to step 30;
If not, rebound step 27 then;
Step 27: show the interface of this typical value corresponding to constant;
Step 28: judge whether to push const key;
If then skip to step 29;
If not, then rebound A place etc. is pending;
Step 29: page or leaf is jumped in double hit downwards, to show that typical value is corresponding to the interface of constant in the nextpage;
Step 30: output unit shows the error message of ERROR;
Step 31: judge whether by enter key;
If then skip to step 32;
If not, then rebound A place etc. is pending;
Step 32: the typical value of demonstration constant, unit are in the literal line of output unit, and numerical value is in line of input;
Step 33: judge whether by enter key;
If then skip to step 34;
If not, then rebound A place etc. is pending;
Step 34: show that constant symbol is in literal line.
In order to make the operating process of Fig. 3 more clear, see also Fig. 4 shows the constant input for output unit of the present invention synoptic diagram.Wherein output unit 17 is for showing the LCD of two row up and down, include literal line 171 and line of input 172, and counter 10 is in the input process of operation constant, at first in the T1 time, push the const key of input block 11, literal line 171 can demonstrate the constant menu interface, and is begun to show by the place of typical value 1 (be that constant symbol is c, and have subscript to represent present position); The T2 time, push the numerical key 1 and 2 of input block 11, line of input 172 can demonstrate numeral 12; The T3 time, push the enter key (enter) of input block 11, literal line 171 can show that typical values 12 (promptly indicate down target constant m
u) corresponding to the interface of constant, and line of input 172 can demonstrate constant m
uNumerical value be 1.6605387313 * 10
-27The T4 time, push the enter key of input block 11 once more, literal line 171 can demonstrate constant m
uTypical value be 12 and unit be kg; The T5 time, when pushing the enter key of input block 11 once more, literal line 171 can direct constant symbol m with typical value 12
uDemonstrate.
Calculation element of the present invention in view of the above is after pushing const key, be the information that shows constant with menu interface, the user can directly import the position of typical value constant of being wanted to jump to immediately of constant, and the double hit enter key is to switch typical value, unit, numerical value and the constant symbol that shows constant.Perhaps not knowing the user also can be by double hit const key to do the switching of the next page under the situation of constant typical value, and cut the page of wanting constant to some extent to comprising, the position that promptly can right and left key be moved to the constant of wanting, the double hit enter key is to switch typical value, unit, numerical value and the constant symbol that shows constant again.
And the present invention also can show that the program of constant is write as by software program with above-mentioned, and imprinting is on recording medium.This software program comprises that first procedure code receives the input button of input block; Second procedure code is judged the function of button that input block is imported; The 3rd procedure code reads the constant content of constant data library unit; The 4th procedure code is handled constant and export demonstration by the constant performance element.
To sum up, by calculating device capable of displaying constant and method thereof of the present invention, has following effect.
(1) can prevent the loss of counter operation manual,, can switch page display content, allow the user in the process of switching, find to want the constant of importing by double hit const key even do not know the typical value of constant.
(2) can reduce the cost of the index card that is used for seeking the corresponding typical value of constant.
(3) can reduce the counter operation manual and browse number of times, increase the service efficiency of operation.
(4) can demonstrate typical value, numerical value, unit and the symbol of constant, help the memory of user constant, and the study path of reducing the user.
The above, only be the detailed description of the specific embodiment of one of the best of the present invention and graphic, yet feature of the present invention is not limited thereto, be not in order to restriction the present invention, all scopes of the present invention should be as the criterion with the described scope of claims, anyly be familiar with this operator in the field of the invention, can think easily and variation or modify all can be encompassed in the claim that the present invention applies for.