The present application is based upon and claims priority from prior Japanese Patent Application No. 2008-000868, filed on Jan. 8, 2008, the entire content of which are incorporated herein by reference.
1. Field of the Invention
The present invention relates to an arithmetic processing apparatus.
2. Description of the Related Art
Electronic apparatuses of a compact size such as scientific electronic calculators with various arithmetic processing functions and graphing function are widely in practical use. Particularly in the field of education, the scientific electronic calculators are used by teachers and students in classrooms for lesson in making a calculation of a mathematical expression and drawing a graph.
The scientific electronic calculator has a so-called program function. The program function calls up a character string (hereinafter, a “program”) consisting of a group of instructions and successively performs arithmetic operations corresponding to the instructions, wherein the instructions include an instructions to make a calculation of a mathematical expression and instruction to draw a graph of the mathematical expression. Using the program function, an arithmetic process consisting of plural steps can be performed at a time and stored in a single file. Lessons using the program function are frequently conducted in the classrooms.
With respect to the scientific electronic calculators with various functions, it has been proposed to record the history of a series of operations performed on the calculator. For example, JP 2006-331484 A discloses an apparatus, in which a history of key input operations is registered and a manipulation guide is displayed in accordance with the registered history of key input operations, allowing users to make his or her desired arithmetic calculation without hesitating in manipulating the calculator.
To display the manipulation guide on the scientific electronic calculator in accordance with the registered history of key input operations, the calculator must have a mode specified for that purpose, and the manipulation guide can be displayed only on the calculator having such specified mode. Further, it is hard in conventional calculators to replace an operation out of the registered operations with another one or to add a new operation in the registered operations.
The present invention has an object to provide an arithmetic processing apparatus which produces a program for re-performing a series of operations previously performed by a user, and allows another scientific electronic calculators with a program function to use such program, whereby the series of operations previously performed in the present arithmetic processing apparatus can be re-performed in another scientific electronic calculators.
According to one aspect of the invention, there is provided an arithmetic processing apparatus which comprises an arithmetic processing unit for carrying out an arithmetic process in response to operation of a user, a character string producing unit for producing a character string including plural instructions, wherein the plural instructions signify performance of a series of arithmetic processes carried out by the arithmetic processing unit, a character string storing unit for storing the character string produced by the character string producing unit, and a character string reading unit for reading the character string from the character string storing unit, and for, when the read character string includes an instruction signifying performance of a predetermine arithmetic process, making the arithmetic processing unit carry out the predetermined arithmetic process corresponding to the instruction.
Embodiments of the present invention will be described in detail with reference to the accompanying drawings. The scope of the claimed invention should not be limited to the examples illustrated in the drawings.
The control unit 11 activates a system program previously stored in a recording area 12 of a flash ROM in accordance with input data entered from an input unit 15, and controls operations of various circuits, using a work memory of RAM as a work area 14, or the control unit 11 reads a system control program previously stored in an external recording medium 13 such as a memory card and/or a personal computer connected thereto, and stores and activates the read program in the recording area 12, thereby controlling the operations of the various circuits of the graphing electronic calculator 10.
The control unit 11 is connected with the input unit 15, recording area 12, work area 14, and a display unit 16.
Various displaying areas are displayed on the display unit 16 according to need, wherein the various displaying areas include a character/formula displaying area 16a, program displaying area 16b, and graph displaying area 16c corresponding to various sorts of arithmetic processes respectively.
In the recording area 12 is previously stored the system program for controlling the whole operations of the electronic circuits in the graphing electronic calculator 10. Further, in the recording area 12 are stored an application list 12a, an arithmetic processing program 12b, an initial setting data table 12c, a program conversion program 12d, program data 12e, and a program reading program 12f. The application list 12a indicates programs which can be arithmetically processed in the present graphing electronic calculator 10, and the arithmetic processing program 12b performs various arithmetic processes corresponding to applications in a graphing mode and a program editing mode. The initial setting data table 12c is used as initial values of setting data for performing various arithmetic processes to be performed by the arithmetic processing program 12b. The program conversion program 12d converts into programs contents of the arithmetic processes performed by the arithmetic processing program 12b, the program data 12e records the programs converted by the program conversion program 12d and a program produced by a user, and the program reading program 12f reads the program data 12e to be performed by the arithmetic processing program 12b.
The external recording medium 13 is capable of exchanging data with the recording area 12 of the graphing electronic calculator 10. For instance, the external recording medium 13 reads the program data 12e from the recording area 12 and stores the data 12e therein as program data 13a, thereby allowing other graphing electronic calculators and computers to use or perform program data 12e produced in the present graphing electronic calculator 10. Further, the external recording medium 13 stores the program data 13a in the recording area 12 of the present graphing electronic calculator 10 as program data 12e, thereby allowing the graphing electronic calculator 10 to perform the program data produced by other graphing electronic calculators and computers.
The input unit 15 includes a menu key 15a, various sorts of function keys 15b, character/numeral keys 15c, a cursor key 15d, EXE key 15e, and EXIT key 15f.
The menu key 15a is used to read the application list 12a stored in the recording area 12 to display the read application list 12a on the display unit 16.
The function key 15b is used to read from the arithmetic processing program 12b stored in the recording area 12 an arithmetic process corresponding to an application while said application is being performed.
The character/numeral keys 15c include a group of keys for entering symbols, characters and numerals, and are used to enter the user's desired arithmetic expression, function expression and/or character string.
The cursor key 15d is used to move a cursor, to choose an item out of plural items and/or to move a graph displaying area, wherein the cursor, items and graph displaying area are displayed on a display screen of the display unit 16.
The EXE key 15e is used to decide data which is entered by the user's operation.
The EXIT key 15f is used to close a display screen in use to return to a prior display screen.
In the initial setting data table 12c are stored names of the applications in the application list 12a stored in the recording area 12 and the initial data which are associated with the applications respectively. For example, an application name “Graph Function” (the graphing mode) is associated with “CirGraph” and “ViewWindow −6.3,6.3,1, −3.1,3.1,1”.
When a graph is drew in the graphing mode, the former “ClrGraph” means to clear or delete the graph which is already drawn. Unless otherwise specified, the latter means to draw a graph under the initial condition where x-axis is marked with a scale every one step within the range of −6.3<X<6.3 and y-axis is marked with a scale every one step within the range of −3.1<Y<3.1.
In
Taking one operation as an example, the program converting process to be performed in the graphing electronic calculator 10 having the configuration set forth above will be described.
With the menu screen displayed on the display unit 16, an icon choosing display is changed to an icon with “GRAPH” indicated in response to operation of the cursor key 15d, and the graphing mode is activated in response to operation of EXE key 15e, and a function expression entering screen of the graphing mode is displayed on the display unit 16 together with the character/formula displaying area 16a. When an function expression of “(Y1=)X2+2” is entered in response to operation of the character/numeral keys 15c, a display screen is displayed on the display unit 16 as shown in
When a screen of “ViewWindow” is called up in response to operation of V-Window key 15b1 (not shown) in the function keys 15b, a drawing condition, that is, data of “ViewWindow −6.3,6.3,1, −3.1,3.1,1” is read from the initial setting data table 12c, and a screen range setting screen is displayed on the display unit 16 with said data entered as a graphing condition as shown in
It is judged whether or not the graphing condition has been changed in response to operation of the EXE key 15f (YES at step S4 to step S5). When it is determined that the graphing condition has not been changed, the original function expression entering screen is kept displayed on the display unit 16 as shown in
Only the setting of the drawing condition has been described above by example. For setting other data, similar processes will be performed by storing in the work area 14 data corresponding to the initial setting data stored in the initial setting data table 12c as the re-writing setting 14a.
In the case where a display screen is displayed on the display unit 16 as shown in
Since no drawing condition is stored in the re-writing setting 14a, a graph is drawn under the drawing condition in accordance with data corresponding to the drawing condition in the graphing mode and is displayed in the graph displaying area 16c on the display unit 16 as shown in
Then, various processes are performed in accordance with the arithmetic processing programs 12b in response to operations of the function keys 15b and cursor key 15d in the input unit 15 and the contents of the performed processes are displayed in the graph displaying area 16c on the display unit 16. For example, when the cursor key 15d is operated, the graph is moved in the direction corresponding the cursor operation to be displayed in the graph displaying area 16c as shown in
In response to operations of the function keys 15b and cursor key 15d in the input unit 15, a tangential line tangent to the previously drew graph at a point of x=1 is drawn as shown in
In response to an operation of Y-key (“YES” is chosen) in the character/numeral key 15c, it is determined that a series of processes in a graph mode are converted into programs and a screen for entering program names is displayed on the display unit 16 as shown in
When a character string of “TES1” is entered in response to operation of the character/numeral key 15c, the character string of “TEST1” is displayed in a program name input field on the display unit 16 as shown in
The displayed program includes the initial setting data. When the drawing condition is stored in the re-write setting 14a, the processes are converted into instructions corresponding to the drawing condition stored in the re-write setting 14a. When no drawing condition is stored in the re-write setting 14a, the processes are converted into instructions corresponding to data of the drawing condition in the graphing mode, wherein said drawing condition is included in the initial setting data stored in the initial setting data table 12c.
When N-key (“NO” is chosen) in the character/numeral key 15c is operated, the indication of “DispSTOP/YES/NO” disappears from the screen on the display unit 16 as shown in
In a similar manner, when N-key (“NO” is chosen) in the character/numeral key 15c is operated, the indication of “DispSTOP/YES/NO” disappears from the screen on the display unit 16 as shown in
When Y-key in the character/numeral key 15c is operated with the indication of
When the program is read by the program reading program 12 and is performed by the arithmetic processing program 12b, the stop instruction “Δ” written in said program serves to suspend performance of an immediate preceding instruction and to resume performance of the following instruction in response to operation of the EXE key 15e.
The processes at steps T5 to T8 are repeatedly performed, and the last instruction “Tangent Y1,1” in the program is highlighted, and the instruction “DispSTOP? YES/NO” is displayed on the display unit 16, as shown in
The writing process of the stop instruction “Δ” is not limited to the above process. For example, the stop instruction “Δ” may be entered by selecting a desired instruction in response to operation of the cursor key 15d.
In the above embodiment of the present invention, the graphing electronic calculator 10 is described, in which the application is activated in the graphing mode. The invention is not restricted to the graphing mode in the above embodiment, but may be applied to various programs of the graphing electronic calculator 10 to be performed in a mathematical table mode (Table Function) and/or basic calculating mode (Manual Calculation). In these cases, the initial setting data may be used in a similar manner to the graphing mode.
As described above, in the program converting processing of the graphing electronic calculator 10, an application is selected from the application list 12a stored in the graphing electronic calculator 10, and a series of arithmetic processes are performed by the arithmetic processing program 12b in the application and subjected to the program converting process, whereby the series of arithmetic processes and the initial setting data are converted into a program (character string) consisting of a group of reproducible instructions and stored as program data 12e.
The program data 12e produced in the above process is read by the program reading program 12f in a similar manner to an average program written by the user and performed in the arithmetic processing program 12b, whereby a series of processes in the above embodiment can be reproduced. Therefore, a series of processes performed by the student using the present graphing electronic calculator can be reproduced using a frequently used function, that is, a program function without using a special process.
If the stop instruction is included in a program while the program is produced, the stop instruction can suspend performance of the immediate preceding instruction and resume performance of the following instruction in response to operation of EXE key while the program is running.
The present invention provides the arithmetic processing apparatus which allows arithmetic calculators to perform a series of operations that were performed in other arithmetic calculator.
It is to be understood that the present invention is not limited to the specific embodiments described above and that the invention can be embodied with the components modified without departing from the sprit and scope of the invention. The invention can be embodied in various forms according to appropriate combinations of the components disclosed in the embodiments described above. For example, some components may be deleted from all components shown in the embodiments. Further, the components in different embodiments may be used appropriately in combination.
Number | Date | Country | Kind |
---|---|---|---|
2008-000868 | Jan 2008 | JP | national |