Graph display apparatus

Abstract: A graph display apparatus according to this invention has the following arrangement. A dynamic graph key in a key input unit (11) is operated, and a functional formula subjected to graph calculation and a change range and a change pitch of a coefficient value present in the functional formula input using numeric · ysymbol keys (13) are stored in a formula register (23a) in a RAM (23). When an execution key (EXE) is operated in a state wherein a coefficient change speed is stored in an SP register (23c), the coefficient value of the functional formula is sequentially replaced within the change range at the change pitch. Graphic data of the functional formula and corresponding graph formulas with the changes in coefficients are sequentially stored in a plurality of video memory areas (24a, 24b,...) in a VRAM (24), and graphs and corresponding graph formulas for the changes in coefficients are sequentially read out in accordance with the coefficient change speed to be sequentially switched and displayed on a display unit (12). When the coefficient present in the formula is changed as a parameter, the graphs corresponding to the formulas are sequentially displayed, thus easily grasping the graph change state with the change in coefficient.

Description: The present invention relates to a graph display apparatus which can display the graphs of a functional formula depending on coefficients of the functional formula. Electronic calculators which have a functional calculation function and also have a graph display function for calculating and displaying the graph of an input functional formula have been commercially available. More specifically, a functional formula to be displayed is input in advance, and X-coordinate values in units of display dots on a dot-matrix display apparatus are also substituted in the input functional formula by inputting X- and Y-coordinate ranges (Xmin, Xmax) and (Ymin, Ymax) of the functional formula. With this operation, calculated Y-coordinate values are sequentially written on a VRAM (video memory), thus displaying the graph of the functional formula. Such a graph display technique is described in, e.g., US 4,794,553, US 4,794,554, and the like. Therefore, in the conventional graph display apparatus, both a functional formula to be displayed and X- and Y-coordinate ranges must be input with keys, resulting in very cumbersome operations. T. W. Beers et al., "HP 48SX Interfaces and Applications", Hewlett-Packard Journal, 42 (1991) June, No. 3, pages 13 to 21 discloses a scientific expandable calculator which provides support for multiple applications with customised user interfaces. The calculator has an equation-writer and interactive plotting built in. DE 37 35 167 A1 discloses an electronic calculator capable of graphically displaying functions. The display region may be shifted in order to reveal portions of the graph not currently visible to the user. It is the object of the invention to provide an improved graph display apparatus which allows a user to investigate the effect of changes in a coefficient value in the form of a graph. This object is solved by the invention as claimed in independent claim 1. Preferred embodiments are defined in the dependent claims. In order to achieve the above object, according to the present invention, a graph display apparatus comprises: formula storage means for storing formula data consisting of at least coefficient data and variable data; coefficient range storage means for storing change range data of the coefficient data; and graph display means for changing a coefficient for the formula data stored in the formula storage means within the change range data stored in the coefficient range storage means to display a graph. With this arrangement, according to the present invention, the coefficient for the formula stored in the formula storage means is sequentially changed within the change range stored in the coefficient range storage means, and the graphs of the formula obtained by sequentially changing the coefficient are calculated by the graphic arithmetic means, and the calculated graphs are switched and displayed on the display means in a change order. This invention can be more fully understood from the following detailed description when taken in conjunction with the accompanying drawings, in which: FIG. 1 is a plan view showing the outer appearance of a graph display apparatus according to an embodiment of the present invention; FIG. 2 is a block diagram showing the arrangement of an electronic circuit of the graph display apparatus; FIG. 3 is a flow chart showing graph display processing of the graph display apparatus; FIG. 4 is a flow chart showing graphic arithmetic processing with the graph display processing of the graph display apparatus; FIG. 5 is a flow chart showing graph switching display processing with the graph display processing of the graph display apparatus; FIG. 6 is a view showing an input display state of a functional formula, coefficient parameters, and a coefficient change speed with the graph display processing of the graph display apparatus; and FIG. 7 is a view showing a graph display state in accordance with a change in coefficient of the input formula with the graph display processing of the graph display apparatus. An embodiment of the present invention will be described below with reference to the accompanying drawings. FIG. 1 is a plan view showing the outer appearance of a graph display apparatus according to the present invention. An apparatus main body 10 of this graph display apparatus has a size which allows a user to hold the apparatus in his or her hand. A key input unit 11 and a graphic display unit 12 consisting of a dot-matrix liquid crystal screen are arranged on the front surface of the apparatus main body 10. The key input unit 11 comprises numeric · symbol keys 13 for inputting functional formulas and the like to be displayed as graphs, inputting coefficient values present in the functional formulas and change ranges of the coefficients as parameters, inputting change speeds of the coefficient parameters, and designating and inputting coordinate ranges (Xmin, Xmax) and (Ymin, Ymax) of the X- and Y-axes on the graphic display unit 12, a "D. G" (dynamic graph) key 14 for sequentially calculating and displaying the graphs with changes in coefficients, an "EXE" key 16 for executing graphic arithmetic processing, cursor keys 15 for selecting various data on the graphic display unit 12 and moving a pointer, and the like. The graphic display unit 12 has a 64 (vertical dots) × 128 (horizontal dots) liquid crystal display screen, and displays the graphs of functional formulas and the like input using the numeric · symbol keys 13 in correspondence with the coordinate ranges of the X- and Y-axes designated by a user. When a sequential graph display mode with the changes in coefficients is set by operating the "D. G" key 14, the graphs obtained by sequentially replacing coefficients are continuously switched and displayed on the graphic display unit 12. FIG. 2 is a block diagram showing the arrangement of an electronic circuit of the graph display apparatus. The electronic circuit of the graph display apparatus comprises a CPU (central processing unit) 20, and the CPU 20 executes operation control of the respective circuit units. The CPU 20 is connected to the key input unit 11 and to the graphic display unit 12 via a display controller 21, and is also connected to a ROM 22, a RAM 23, and a VRAM (Video Random Access Memory)24. The ROM 22 pre-stores a basic system program for operating the graphic display apparatus, and also pre-stores a graph display processing program for performing a graph display in correspondence with a key-input functional formula and the like, a graphic arithmetic processing program of the input formula with the graph display processing, a graph switching display processing program with the changes in coefficients, and the like. The control operation of the CPU 20 is executed in accordance with the programs stored in the ROM 22. The RAM 23 comprises a formula register 23a for storing and managing functional formulas and setting data of coefficient parameters input in accordance with operations of the numeric · symbol keys 13, a coefficient register 23b for storing coefficient values substituted in the functional formulas on the basis of the functional formulas and the setting data of the coefficient parameters stored in the formula register 23a, an SP register 23c for storing change speeds (time intervals) of the coefficient parameters input in accordance with the operations of the numeric · symbol keys 13, a range register 23d for storing X- and Y-coordinate ranges (Xmin, Xmax) and (Ymin, Ymax) set for the graphic display unit 12, a counter register 23e for storing time data of a timer incorporated in the CPU 20 updated in accordance with the change speeds of the coefficient parameters set in the SP register 23c, and the like, in addition to key input registers, various flag registers, and the like. The VRAM 24 has 10 video memory areas each having a capacity of 64 to 128 bits and a one-to-one correspondence with dots on a display region of the graphic display unit 12. When the coefficients for the input formulas are changed, graphic data corresponding to the formulas for changed coefficients are stored in respective video memory areas 24a to 24j. In this case, the graphs stored in the video memory areas 24a to 24j in the VRAM 24 are sequentially switched and displayed on the graphic display unit 12, thus continuously switching and displaying the graphs with the changes in coefficients of the input formulas. The operation of the graph display apparatus with the above-mentioned arrangement will be described below. FIG. 3 is a flow chart showing graph display processing of the graph display apparatus. More specifically, in order to sequentially calculating and displaying the graphs of the formulas with the changes in coefficients, when the "D. G" (dynamic graph) key 14 in the key input unit 11 is operated, the graph display processing is started in FIG. 3. The numeric· symbol keys 13 are operated in accordance with a guidance display displayed on the graphic display unit 12 to input a functional formula subjected to graph calculation in step S1. For example, when a quadratic function Y = Ax 2 + Bx + C is input as a functional formula, the input functional formula is stored in the formula register 23a in the RAM 23, and Y = Ax 2 + Bx + C is displayed as shown in FIG. 6. In step S2, coefficient values present in the input functional formula and change ranges and change pitches of the coefficient values are input. For example, when a coefficient A is changed within the range of 1 to 3 every 0.5, and coefficients B and C are respectively set 0, A = 1 to 3, 0.5, B = 0, and C = 0 are input. The input coefficient setting data are also stored in the formula register 23a in the RAM 23, and displayed as shown in FIG. 6. In step S3, if a change speed is, e.g., 1 sec, SP = 1 is input. Change speed data of the coefficient A is written in the SP register 23c in the RAM 23, and also displayed on the display unit 12 as shown in FIG. 6. In next step SA, graphic arithmetic processing described in detail with reference to FIG. 4 is executed. Referring to FIG. 4, the number of graph screens to be displayed with a change in coefficient i.e., the required number of areas of the video memory areas 24a to 24j in the VRAM 24 is calculated in accordance with the following equation (1) on the basis of the change range and change pitch of the coefficient value present in the functional formula stored in the formula register 23a in the RAM 24. Number of Video Memory Areas = {(Last Coefficient Value - Initial Coefficient Value)/Change Pitch} + 1 = {(3 - 1)/0.5} + 1 = 5 It is checked whether the number of video memory areas calculated in step A1 falls within the 10 video memory areas 24a to 24j included in the VRAM 24 or not (step A2). In this case, since the required number of video memory areas is five, it is determined "Yes" in step A2, and initial coefficient values "A = 1", "B = 0", and "C = 0" are set in the coefficient register 23b in the RAM 23 (step A3). The coefficient values "A = 1", "B = 0", and "C = 0" set in the coefficient register 23b are substituted in the functional formula " Y = Ax 2 + Bx + C " stored in the formula register 23a, and Y-coordinate values with respect to the X-coordinate values in units of display dots are calculated in accordance with X-and Y-coordinate ranges on the graphic display unit 12 preset in the range register 23d. Graphic data corresponding to " Y = 1 · x 2 " obtained by this operation and its graph formula " Y = x 2 " are written in the first video memory area 24a in the VRAM 24 (steps A4 and A5). It is checked whether the graphic data written in the VRAM 24 is the last graph, i.e., graphic data corresponding to the last coefficient values is calculated and written or not (step A6). In this case, since only the first graphic data corresponding to the initial coefficient values "A = 1", "B = 0", and "C = 0" is obtained, it is determined "NO" in step A6, and the flow returns to the processings in step A4 and the subsequent steps (step A6 → A4). The second coefficient values "A = 1.5", "B = 0", and "C = 0" changed in accordance with the coefficient change range "A = 1 to 3" and its change pitch "0.5" pre-stored in the formula register 23a are set in the coefficient register 23b in the RAM 23 and substituted in the functional formula " Y = Ax 2 + Bx + C ", and then Y-coordinate values with respect to the X-coordinate values in units of display dots are calculated. Graphic data corresponding to " Y = 1.5 · x 2 " obtained by this operation and its graph formula " Y = 1.5x 2 " are written in the second video memory area 24b in the VRAM 24 (steps A4 and A5). In this case, since the graphic data written in the VRAM 24 is the second graphic data corresponding to the second coefficient values "A = 1.5", "B = 0", and "C = 0", it is determined "NO" in step A6, and the flow returns to the processings in step A4 and the sequential steps (step A6 → A4). The third coefficient values "A = 2", "B = 0", and "C = 0" changed in accordance with the coefficient change range "A = 1 to 3" and its change pitch "0.5" pre-stored in the formula register 23a are set in the coefficient register 23b in the RAM 23 and substituted in the functional formula " Y = Ax 2 + Bx + C ", and then Y-coordinate values with respect to the X-coordinate values in units of display dots are calculated. Graphic data corresponding to " Y = 2 · x 2 " obtained by this operation and its graph formula " Y = 2x 2 " are written in the third video memory area 24c in the VRAM 24 (steps A4 and A5). In this case, since the graphic data written in the VRAM 24 is the third graphic data corresponding to the third coefficient values "A = 2", "B = 0", and "C = 0", it is determined "NO" in step A6, and the flow returns to the processings in step A4 and the subsequent steps (step A6 → A4). In the same manner as described above, the fourth coefficient values "A = 2.5", "B = 0", and "C = 0" changed in accordance with the coefficient change range "A = 1 to 3" and its change pitch "0.5" pre-stored in the formula register 23a are set in the coefficient register 23b in the RAM 23 and substituted in the functional formula " Y = Ax 2 + Bx + C ", and then Y-coordinate values with respect to the X-coordinate values in units of display dots are calculated. Graphic data corresponding to " Y = 2.5 · x 2 " obtained by this operation and its graph formula " Y = 2.5x 2 " are written in the fourth video memory area 24d in the VRAM 24 (steps A4 and A5). The last coefficient values "A = 3", "B = 0", and "C = 0" are set in the coefficient register 23b and substituted in the functional formula " Y = Ax 2 + Bx + C ". Graphic data corresponding to " Y = 3 · x 2 " obtained by this operation and its graph formula " Y = 3x 2 " are written in the fifth video memory area 24e in the VRAM 24 (steps A4 and A5). Since the graphic data written in the VRAM 24 is the fifth graphic data corresponding to the fifth coefficient values "A = 3", "B = 0", and "C = 0", it is determined "YES" in step A6, this graphic arithmetic processing is ended, and graph switching display processing is started in FIG. 5 (step SA → SB). On the other hand, if a coefficient change pitch stored in the formula register 23a is, e.g., "0.2" and the number of VRAM areas calculated in step A1 is 11, which is larger by one than the 10 video memory areas 24a to 24j stored in the VRAM 24, the coefficient change pitch is reset at, e.g., "0.3" to decrease the required number of areas of the video memory areas 24a to 24j to 10 or less (step A1, step A2 → A7). Note that the change pitch may be fixed at "0.2" and the last coefficient value may be changed to "2.8". The graphic arithmetic processing of the functional formula with the change in coefficient is executed in the same manner as described above (steps A3 to A6). In step SA of FIG. 3, when five graphic data and corresponding graph formulas obtained by changing the coefficient A of the functional formula " Y = Ax 2 + Bx + C " within the range of 1 to 3 every "0.5" are written in the corresponding video memory areas 24a to 24e in the VRAM 24, the graph switching display processing described in detail with reference to FIG. 5 is executed in next step SB. Referring to FIG. 5, first of all, the coefficient change speed (1 sec) set in the SP register 23c in the RAM 23 is set in the CPU 20 as time-up check data of time counter data in the counter register 23e (step B1). The first graphic data stored in the video memory area 24a of the VRAM 24 is read out, and the readout data is displayed on the graphic display unit 12. With this operation, a graph 25a and its graph formula " Y = x 2 " obtained by replacing the coefficient A of the functional formula " Y = Ax 2 + Bx + C " with the initial coefficient value "1" are displayed, as shown in FIG. 7 (step B2). It is checked whether the time counter data to be updated in the counter register 23e reaches the time-up check data (1 sec) set in the CPU 20 in correspondence with the coefficient change speed. That is, when it is determined that the graph 25a corresponding to the initial coefficient value "1" has been displayed for 1 sec, the second graphic data stored in the video memory area 24b in the VRAM 24 is read out, and the readout second graphic data is switched and displayed on the graphic display unit 12 (step B3 → B4 → B1, B2). In this case, as shown in FIG. 7, a graph 25b and its graph formula " Y = 1.5x 2 " obtained by replacing the coefficient A of the functional formula " Y = Ax 2 + Bx + C " with the second coefficient value "1.5" has been displayed for 1 sec. Thereafter, in the same manner as described above, the third to fifth graphic data stored in the corresponding video memory areas 24c to 24e in the VRAM 24 are sequentially read out for 1 sec. A graph 25c and its graph formula " Y = 2x 2 " obtained by replacing the coefficient A with the third coefficient value "2", a graph 25d and its graph formula " Y = 2.5x 2 " (not shown) obtained by replacing the coefficient A with the fourth coefficient value "2.5", and a graph 25e and its graph formula " Y = 3x 2 " (not shown) obtained by replacing the coefficient A with the last coefficient value "3" are respectively switched and displayed for 1 sec in an order named (steps B1 to B4). Thereafter, when the "EXE" key 16 is operated again, the graphic arithmetic processing (SA) in FIG. 4 and the graph switching display processing (SB) in FIG. 5 are repeated to display graphs corresponding to the changes in coefficients, in the same manner as described above. Therefore, according to the graph display apparatus with the above-mentioned arrangement, after the "D. G" (dynamic graph) key 14 in the key input unit 11 is operated, the functional formula subjected to graph calculation and the change ranges and change pitches of the coefficients present in the functional formula are stored in the formula register 23a in the RAM 23, and the coefficient change speed is stored in the SP register 23c. In this state, when the "EXE" key 16 is operated, the coefficient values of the functional formula are sequentially replaced in accordance with the change pitches within the change ranges, and graphic data and corresponding graph formulas of the functional formula with the changes in coefficients are sequentially stored in the plurality of video memory areas 24a, 24b,... in the VRAM 24. In addition, the graphs and corresponding graph formulas for changed coefficients stored in the VRAM 24 are read out in accordance with the coefficient change speed set in the SP register 23c in a change order, and the readout graphs and graph formulas are sequentially switched and displayed on the graphic display unit 12 through the display controller 21. With this operation, for example, when a certain coefficient is changed within an arbitrary range as a parameter, graphs corresponding to formulas can be sequentially displayed, and a graph change state with the change in coefficient can be easily grasped and learned. In this manner, according to the graph display apparatus of the present invention, coefficients used in a formula stored in the formula storage means are sequentially changed within change ranges stored in the coefficient range storage means, and the graphs of formulas obtained by changing the coefficients are calculated by the graphic arithmetic means in a change order, thus switching and displaying the graphs by the display means in this order. The graphs obtained by the graphic arithmetic means can be respectively stored in the corresponding individual areas by the graph storage means, and the graphs stored in the individual areas can be sequentially designated, thus switching and displaying the graphs. Furthermore, the switching time interval of the graph display can be preset by the setting means, thus sequentially switching and displaying the graphs obtained by changing the coefficients at the preset time interval. With the above-mentioned operations, when the coefficients present in the formula are changed as parameters, the graphs corresponding to the formulas can be sequentially displayed, and the graph change state with the change in coefficient can be easily grasped.

Claims: A graph display apparatus comprising: formula storage means (23a) for storing formula data including at least coefficient data and variable data; graph display means (20) for displaying graph data obtained from said formula data ; said apparatus characterized by further comprising : coefficient range storage means (23b) for storing data indicating a range within which the coefficient data changes; graph storage means (24a- 24j) for storing in a plurality of storage areas thereof graph data respectively obtained by changing, within the range stored in the coefficient range storage means, the coefficient data with respect to the formula data stored in the formula storage means; time interval data storage means (23c) for storing time interval data; and wherein the graph display means (20) are arranged to sequentially switch and display the graph data stored in the storage areas of the graph storage means during a time interval obtained from the time interval data stored in the time interval data storage means. The apparatus according to claim 1, wherein: the data including the range, stored in said coefficient range storage means, includes at least minimum value data and maximum value data; and said graph display means further comprises display control means for defining a sequence of coefficient data values between the minimum value and the maximum value to switch and display the graph data according to said sequence. The apparatus according to claim 1 or 2, wherein: the formula data includes quadratic functional formula data using Y and X as variables, and the data indicating the range, stored in said coefficient range storage means, is coefficient data of X 2 . The apparatus according to one of claims 1 to 3, wherein said graph display means comprises a dot-matrix display unit. The apparatus according to one of claims 1 to 4, further comprising setting means (13) for setting the time interval data stored in said time interval data storage means. The apparatus according to one of claims 1 to 5, wherein said graph display means comprises formula display means for displaying a formula of a displayed graph. The apparatus according to one of claims 1 to 6, further comprising: input means (13) for inputting formula data including at least coefficient data and variable data, and data indicating the range within which the coefficient data changes; and arithmetic means (20) for changing a coefficient of the formula data stored in the formula storage means within said range to obtain a plurality of graphic data. The graph apparatus according to one of claims 1 to 7 further comprising: change pitch storage means (23d) for storing change pitch data of the data indicating the range within which the coefficient data changes stored in the coefficient range storage means; and setting means (13) for respectively setting (i) the formula data to be stored in the formula storage means, (ii) the data indicating the range within which the coefficient data changes to be stored in the coefficient storage means, and (iii) the change pitch data to be stored in the change pitch storage means; wherein the graph display means (20) is arranged for changing a coefficient of the formula data stored in the formula storage means within data indicating the range stored in the coefficient range storage means for the change pitch data stored in the change pitch storage means, to display a graph. The apparatus according to one of the claims 1 to 8, being portable. The apparatus according to one of claims 1 to 9, further comprising change pitch storage means (23d) for storing data indicating a step width for calculating changed coefficient data within the change range data, wherein said graph display control means changes said coefficient in steps of said step width.

Inventors: ARIKAWA KAZUHIKO, HANDA AKIHIRO, NAKANO YUKIHIRO, NEGISHI OSAMU, ARIKAWA, KAZUHIKO, HANDA, AKIHIRO, NAKANO, YUKIHIRO, NEGISHI, OSAMU, ARIKAWA, KAZUHIKO, DEVELOPMENT DIVISION, HANDA, AKIHIRO, DEVELOPMENT DIVISION, NAKANO, YUKIHIRO, DEVELOPMENT DIVISION, NEGISHI, OSAMU, DEVELOPMENT DIVISION
Applicants: CASIO COMPUTER CO LTD, CASIO COMPUTER CO., LTD.
Application year: 1994
Main classification: G06F17
IPC codes: G06F15, G06F17, G06T11