1. Field of the Invention
The present invention relates to a graph display control device, a graph display control method, and a storage medium storing a graph display control program.
2. Description of the Related Art
Conventionally, a graph display device such as a graph scientific calculator includes a tracing function of a graph, and it is possible to move a cursor on a graph to display coordinates of the cursor (for example, see Japanese Patent Application Laid-Open Publication No. H8-179750). The graph display device described in the patent document is able to display a plurality of graphs simultaneously, and it is possible to switch to the graph to be traced.
In a graph showing functions, there is a point (hereinafter referred to as feature point) where coordinates may be represented as true values using “√”, “π”, and a fraction. It is very important when studying functions to understand such feature points.
However, in a conventional graph display device, when the xy coordinates of the cursor position is displayed on the graph, the value of the y-coordinate is calculated from the x-coordinate of the cursor position, and the x-coordinate and the approximation of the y-coordinate (for example, value of 10 significant figures) are displayed. Therefore, even if it is possible to show the coordinates of the feature point as a true value using “√”, “π”, and a fraction, the feature point is not shown as a true value. Consequently, there is a problem that learning efficiency decreases.
The present invention has been made in consideration of the above situation, and one of the main objects is to provide a graph display control device, a graph display control method, and a storage medium storing a graph display control program which are able to display coordinates of a point on a graph with a true value.
In order to achieve any one of the above advantages, according to an aspect of the present invention, there is provided a graph display control device including:
a display unit;
a function graph display control unit which sets a coordinate system with a plurality of variables to control display of a function graph of the plurality of variables on the display unit;
a point specifying unit which specifies an arbitrary point on the function graph as a specified point based on user operation;
a true value judging unit which judges whether it is possible to display at least one of the variables of a coordinate value of the specified point in a true value state;
a true value coordinate display control unit which controls display on the display unit to display at least one of the variables of the coordinate value in the true value state when the true value judging unit judges that at least one of the variables of the coordinate value can be displayed in the true value state; and
a coordinate value display control unit which controls display on the display unit to display at least one of the variables of the coordinate value as a value within predetermined digits when the true value judging unit judges that at least one of the variables of the coordinate value cannot be displayed in the true value state.
According to the present invention, it is possible to display coordinates of a point on a graph with a true value.
The present invention and the above-described objects, features and advantages thereof will become more fully understood from the following detailed description with the accompanying drawings and wherein;
An example of an embodiment of the present invention is described in detail with reference to the attached drawings. The scope of the invention is not limited to the illustrated examples.
As shown in the drawings, the graph display device 1 of the present embodiment includes a display section 21, an input section 22, a storage section 24, a CPU 25, and the like.
The display section 21 includes a display 210, and various pieces of information are displayed on the display 210 based on display signals input from the CPU 25. The display 210 of the present embodiment is formed as one with a touch panel 221 and is able to receive touching operation by the user.
The input section 22 includes key group 220 and the above described touch panel 221. The input section 22 outputs to the CPU 25 signals corresponding to the type of touched key or the position pressed on the touch panel 221.
The storage section 24 is a memory which stores programs and data to execute various functions of the graph display device 1 and which functions as a work region of the CPU 25. According to the present embodiment, the storage section 24 stores a graph display control program 240, a function formula group 241, a true value coordinate data table 243, and the like, regarding the present invention.
A graph display control program 240 is a program to allow the CPU 25 to perform a later described graph display control processing (see
The function formula data group 241 includes a plurality of pieces of function formula data.
In the later described graph display control processing (see
The CPU 25 centrally controls each section of the graph display device 1. Specifically, the CPU 25 expands programs specified from a system program stored in the storage section 24 and various application programs, and executes various processing in coordination with the expanded programs.
Next, the graph display control processing executed by the graph display device 1 is described with reference to
In the graph display control processing, as shown in the diagram, first, the CPU 25 inputs variables x, y for a function formula based on user operation (step S1). Then, the CPU 25 sets the coordinate system of the variables x, y in the display screen of the display 210 according to user operation to draw a graph of the function formula on the display 210 (step S2). The user in step S1 may select and input the function formula from the function formula data group 241 stored in the storage section 24.
Next, the CPU 25 displays the tracing pointer T (see
Next, the CPU 25 judges whether the coefficient of each parameter in the function formula is an integer or a fraction of an integer (step S4), and when it is judged that the coefficient is neither (step S4; No), in other words, when the coefficient is more complicated, the processing advances to normal tracing processing.
In step S4, when it is judged that the coefficient of each parameter in the function formula is an integer or a fraction of an integer (step S4; Yes), the CPU 25 sets the x-coordinate of the tracing pointer T to an initial value (for example, x=0) (step S5).
Next, the CPU 25 judges whether it is possible to display the x-coordinate in a true value state by using a radical root, a fraction, “π”, etc. (step S10).
In step S10, when it is judged that it is possible to display the x-coordinate in a true value state (step S10; Yes), the CPU 25 specifies the point where the tracing pointer T is positioned as a specified point, assigns the x-coordinate of the tracing pointer T to the function formula to calculate the y-coordinate of the tracing pointer T, and judges whether it is possible to display the calculated result of the y-coordinate in the true value state by using a radical root, a fraction, “π”, etc. (step S11). When it is judged that the above display is possible (step S11; Yes), the processing advances to the later described step S16.
When it is judged that it is not possible to display the x-coordinate in the true value state in step S10 (step S10; No), and it is judged that it is not possible to display the calculated result of the y-coordinate in the true value state in step S11 (step S11; No), the CPU 25 judges whether there is a point with an x-coordinate which can be displayed in the true value state using a radical root, a fraction, “π”, etc. between the x-coordinate of the position of the tracing pointer T before moving, and the x-coordinate of the position of the tracing pointer T after moving (step S12).
In step S12, when it is judged that there is no point with an x-coordinate which can be displayed in the true value state (step S12; No), the CPU 25 specifies the point where the tracing pointer T is positioned at the present time as the specified point, assigns the x-coordinate in the function formula to calculate the y-coordinate of the tracing pointer T, and displays the coordinate of the tracing pointer T on the display 210 (step S14). Then, the processing advances to the later described step S21. In step S14, among the coordinates (x-coordinate, y-coordinate) of the tracing pointer T, the CPU 25 displays the coordinates which cannot be displayed in the true value state in each coordinate axis direction with a value of a rounded number within predetermined digits, in other words, as an approximate number.
In step S12, when it is judged that there is a point with an x-coordinate which can be displayed in the true value state (step S12; Yes), the CPU 25 specifies the point as the specified point, assigns the x-coordinate to the function formula to calculate the y-coordinate of the tracing point T, and judges whether it is possible to display the calculated result of the y-coordinate in a true value state by using a radical root, a fraction, “π”, etc. (step S13).
In step S13, when it is judged that it is not possible to display the calculated result of the y-coordinate in the true value state (step S13; No), the CPU 25 advances the processing to the above described step S14.
In step S13, when it is judged that it is possible to display the calculated result of the y-coordinate in the true value state (step S13; Yes), the CPU 25 displays on the display 210 the coordinates (x-coordinate, y-coordinate) of the tracing pointer T at the present time by using a radical root, a fraction, “π”, etc. and displays a yellow plot P (see
Next, the CPU 25 stores the coordinates of the tracing pointer T at the present time as the coordinates of the true value in the true value coordinate data table 243 (step S17).
Next, the CPU 25 judges whether the operation to move the tracing pointer T is performed (step S21). When it is judged that the operation is performed (step S21; Yes), the x-coordinate of the tracing pointer T is increased or reduced a predetermined amount and reset to move the tracing pointer T on the graph (step S22), and the processing advances to the above described step S10.
In step S21, when it is judged that the operation to move the tracing pointer T is not performed (step S21; No), the CPU 25 judges whether other operation is performed (step S23).
In step S23, when it is judged that other operation is not performed (step S23; No), the CPU 25 advances the processing to the above described step S21, and when it is judged that other processing is performed (step S23; Yes), the processing advances to other processing according to the operation.
Next, the operation of the above described graph display device 1 is described in detail with reference to the drawings.
First, in a state where a display mode (degree mode or radian mode) of an angle in trigonometric function is set to degree mode, as shown in
Next, the coefficients of each parameter “y” and “x” in the function formula “Y1=3 sin x” (y=3 sin x) are judged to be integer “1” (step S4; Yes), and the x-coordinate of the tracing pointer T is set to an initial value of “0” (step S5).
Next, it is judged that it is possible to display the x-coordinate in the true value state (step S10; Yes), the x-coordinate “0” of the tracing pointer T is assigned to the function formula “Y1=3 sin x” (y=3 sin x) to calculate the y-coordinate of the tracing pointer T, it is judged that it is possible to display the calculated result of the y-coordinate “0” in the true value state (step S11; Yes), and the coordinates of the tracing pointer T at the present time are displayed discriminated with an underline on the display 210 in the true value state (0, 0) and a yellow plot P in a cross shape is displayed in a position of the tracing pointer T at the present time (step S16). The display state of the plot P and the coordinates of the plot P (0, 0) is maintained after moving the tracing pointer T. The coordinates (0, 0) are stored in the true value coordinate data table 243 as the true value coordinates (step S17).
Next, when the user performs operation to move the tracing pointer T in the right direction (step S21; Yes), as shown in
Next, it is judged that it is possible to display the x-coordinate “5” after movement in the true value state (step S10; Yes), the x-coordinate “5” of the tracing pointer T is assigned to the function formula “Y1=3 sin x” (y=3 sin x) to calculate the y-coordinate of the tracing pointer T, and it is judged that it is not possible to display the calculated result of the y-coordinate “0.26 . . . ” in a true value state (step S11; No). Next, it is judged whether there is a point with an x-coordinate which can be displayed in the true value state between the x-coordinate of the position of the tracing pointer T before movement and the x-coordinate of the position after movement (step S12). According to the present operation example, after it is judged that there are no such points (step S12; No), the coordinates (5, 0.26 . . . ) of the tracing pointer T at the present time are displayed on the display 210 (step S14).
Next, similar to the above, when the user performs operation to move the tracing pointer T in the right direction (step S21; Yes), as shown in
Next, it is judged that it is possible to display the x-coordinate “25” after movement in the true value state (step S10; Yes), the x-coordinate “25” of the tracing pointer T is assigned to the function formula “Y1=3 sin x” (y=3 sin x) to calculate the y-coordinate of the tracing pointer T, and it is judged that it is not possible to display the calculated result of the y-coordinate “1.26 . . . ” in the true value state (step S11; No). Next, it is judged whether there is a point with an x-coordinate which can be displayed in the true value state between the x-coordinate of the position of the tracing pointer T before movement and the x-coordinate of the position after movement (step S12). According to the present operation example, after it is judged that there is no such point (step S12; No), the coordinates (5, 1.26 . . . ) of the tracing pointer T at the present time are displayed on the display 210 (step S14).
Next, similar to the above, when the user performs operation to move the tracing pointer T in the right direction (step S21; Yes), as shown in
Next, it is judged that it is possible to display the x-coordinate “30” after movement in the true value state (step S10; Yes), the x-coordinate “30” of the tracing pointer T is assigned to the function formula “Y1=3 sin x” (y=3 sin x) to calculate the y-coordinate of the tracing pointer T, and it is judged that it is possible to display the calculated result of the y-coordinate “1.5” in the true value state of “3/2” (step S11; Yes). The coordinates of the tracing pointer T at the present time are displayed discriminated with an underline in a true value state (30, 3/2) on the display 210, and the yellow plot P in a cross shape is displayed in the position of the tracing pointer at the present time (step S16). The display state of the plot P and the coordinates of the plot P (30, 3/2) are maintained after moving the tracing pointer T. The coordinates (30, 3/2) are stored in the true value coordinate data table 243 as the true value coordinates (step S17).
Hereinafter, when the user performs the operation of moving the tracing pointer T in the right direction similar to the above (step S21; Yes), as shown in
First, in a state where a display mode of an angle in trigonometric function is set to degree mode, as shown in
Next, the coefficients of each parameter “y” and “x” in the function formula “Y1=3 sin x” (y=3 sin x) are judged to be integer “1” (step S4; Yes), and the x-coordinate of the tracing pointer T is set to an initial value of “0” (step S5).
Next, it is judged that it is possible to display the x-coordinate in the true value state (step S10; Yes), the x-coordinate “0” of the tracing pointer T is assigned to the function formula “Y1=3 sin x” (y=3 sin x) to calculate the y-coordinate of the tracing pointer T, it is judged that it is possible to display the calculated result of the y-coordinate “0” in the true value state (step S11; Yes), the coordinates of the tracing pointer T at the present time are displayed discriminated with an underline on the display 210 in the true value state (0, 0) and a yellow plot P in a cross shape is displayed in a position of the tracing pointer T at the present time (step S16). The display state of the plot P and the coordinates of the plot P (0, 0) is maintained after moving the tracing pointer T. The coordinates (0, 0) are stored in the true value coordinate data table 243 as the true value coordinates (step S17).
Next, when the user performs operation to move the tracing pointer T in the right direction (step S21; Yes), as shown in
Next, it is judged that it is not possible to display the x-coordinate “0.087 . . . ” after movement in the true value state (step S10; No). Then, it is judged there are no points with an x-coordinate which can be displayed in the true value state between the x-coordinate of the position of the tracing pointer T before movement and the x-coordinate of the position after movement (step S12; No). The x-coordinate “0.087 . . . ” of the tracing pointer T at the present time is assigned to the function formula “Y1=3 sin x” (y=3 sin x) to calculate the y-coordinate “0.26 . . . ” of the tracing pointer T, and then the coordinates (0.087 . . . , 0.26 . . . ) of the tracing pointer T are displayed on the display 210 (step S14).
Next, similar to the above, when the user performs operation to move the tracing pointer T in the right direction (step S21; Yes), as shown in
Next, it is judged that it is not possible to display the x-coordinate “0.43 . . . ” after movement in the true value state (step S10; No). Then, it is judged that there are no points with an x-coordinate which can be displayed in the true value state between the x-coordinate of the position of the tracing pointer T before movement and the x-coordinate of the position after movement (step S12; No). The x-coordinate “0.43 . . . ” of the tracing pointer T at the present time is assigned to the function formula “Y1=3 sin x” (y=3 sin x) to calculate the y-coordinate “1.26 . . . ” of the tracing pointer T. Then, the coordinates (0.43 . . . , 1.26 . . . ) of the tracing pointer T at the present time are displayed on the display 210 (step S14).
Next, similar to the above, when the user performs operation to move the tracing pointer T in the right direction (step S21; Yes), as shown in
T in the right direction on the graph (step S22).
Next, it is judged that it is possible to display the x-coordinate “π/6” after movement in the true value state (step S10; Yes), the x-coordinate “π/6” of the tracing pointer T is assigned to the function formula “Y1=3 sin x” (y=3 sin x) to calculate the y-coordinate of the tracing pointer T, and it is judged that it is possible to display the calculated result of the y-coordinate “1.5” in the true value state of “3/2” (step S11; Yes). The coordinates of the tracing pointer T at the present time are displayed discriminated with an underline in a true value state (π/6, 3/2) on the display 210, and the yellow plot P in a cross shape is displayed in the position of the tracing pointer T at the present time (step S16). The display state of the plot P and the coordinates of the plot P (π/6, 3/2) are maintained after moving the tracing pointer T. The coordinates (π/6, 3/2) are stored in the true value coordinate data table 243 as the true value coordinates (step S17).
Hereinafter, when the user performs the operation of moving the tracing pointer T in the right direction similar to the above (step S21; Yes), as shown in
According to the above described embodiment, as shown in steps S10, S11, and S16 of
As shown in steps S10, S21 of
As shown in step S14 of
As shown in step S16 of
The detailed configuration and the detailed operation of each element of the graph display device 1 of the present embodiment can be changed without leaving the scope of the present invention.
For example, the graph display control device regarding the present invention is described as the graph display device 1, however the present invention is not limited to the products as described above. The present invention can be applied to various electronic devices such as a scientific calculator, an electronic dictionary, a cellular telephone, a personal computer, a PDA (Personal Digital Assistant), a game machine and the like. The graph display control program 240 of the present invention can be stored in a memory card, CD, etc. which can be attached to and detached from the graph display device 1.
The vertical axis of the coordinate system is described as the Y-axis and the horizontal axis of the coordinate system is described as the X-axis, however, other coordinate axis names can be used. The coordinate system is described as the orthogonal coordinate system, however other types of coordinate systems can be employed, for example, an oblique coordinate system, a polar coordinate system, and the like. Further, the number of coordinate axes in the coordinate system is described to be 2, however, the number can be 3 or more.
Although various exemplary embodiments have been shown and described, the invention is not limited to the embodiments shown. Therefore, the scope of the invention is intended to be limited solely by the scope of the claims that follow and its equivalents.
The entire disclosure of Japanese Patent Application No. 2012-203818 filed on Sep. 18, 2012 including specification, claims, drawings and abstract are incorporated herein by reference in its entirety.
| Number | Date | Country | Kind |
|---|---|---|---|
| 2012-203818 | Sep 2012 | JP | national |