This application claims priority based on Japanese Patent Application No. 2023-180742 filed in Japan on Oct. 20, 2023, the entire contents of which are incorporated herein.
The present disclosure relates to a graph display device, a display control method, and a recording medium.
Some calculation devices called scientific calculators are capable of displaying a graph of a function formula (a calculation formula including a variable). For example, in JP 2003-150562 A, a coordinate setting screen in a coordinate system for drawing a graph and a graph display screen are simultaneously displayed, and when a coordinate setting is determined, a graph is displayed on a full screen based on the determined coordinate setting.
A graph display device according to an aspect including a controller: when specific function formula information is selected in a first display state in which a plurality of pieces of function formula information is displayed on a display unit and when an operation of an instruction to display a graph corresponding to the selected function formula information is detected, switches a display state of the display unit from the first display state to a second display state in which a graph of a function formula included in the selected function formula information is displayed; when a first predetermined operation is detected in the second display state, determines whether or not the function formula included in the selected function formula information includes definition information in which a value input to a variable included in the function formula is associated with the predetermined variable; and when it is determined that the definition information is included, switches to a third display state in which a screen including the graph and an area for designating the value in the definition information is displayed, without switching the display state of the display unit to the first display state.
Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings. In the present specification, drawing a graph is intended to express a relationship between a variable (e.g., an x value) and a solution (e.g., a y value) in a function formula on a predetermined plane or space, and displaying the drawn graph is intended to visualize and display on a display unit 12 only a designated range of the predetermined plane or space in which the relationship between the variable and the solution in the function formula is expressed. Therefore, “displaying the drawn graph” and similar expressions in the present specification include a case where some or all of the drawn graph is not displayed on the display unit 12. Note that the function formula in the present specification includes a function formula of a constant function (zero-order function) such as y=1 (y=0·x+1).
In a scientific calculator 10 exemplified in
The key input unit 11 includes a numerical value/operation symbol key group 111 for inputting a numerical value or a mathematical expression or instructing execution of calculation, a function key group 112 for inputting various functions, and a cursor key group 113 for performing an operation of moving a cursor displayed on the display unit 12, an operation of selecting a data item, or the like.
The numerical value/operation symbol key group 111 includes [0] to [9] (numeric value) keys, [+], [−], [×], and [÷] (four arithmetic operators) keys, an [EXE] (execution) key 111E, an [AC] (clear) key, and the like. The function key group 112 includes a [×] (variable) key, a [□/□] (fraction) key, a [√□] (root) key, a [sin] (sine) key, a [cos] (cosine) key, a [tan] (tangent) key, and the like.
The cursor key group 113 includes a [↑] (up) key 113U (first key), a [↓] (down) key 113D (second key), a [←] (left) key 113L (third key), a [→] (right) key 113R (fourth key), and a [↑↓] (scroll) key 113S. The cursor key group 113 may include a confirmation key 113C and a back key 113B exemplified in
In addition, between the function key group 112 and the cursor key group 113 in the key input unit 11, a function formula input screen activation key 114 for displaying a screen for inputting a function formula, a tools (TOOLS) key 115 for displaying a tool screen for selecting a process executable with respect to a displayed graph, and the like are arranged. The function formula input screen activation key 114 and the tools key 115 may be regarded as keys included in the function key group 112. The display unit 12 may be a dot-matrix type liquid crystal display unit or the like. Note that the external configuration of the scientific calculator 10, e.g., the number and arrangement of keys of the key input unit 11, is not limited to the configuration exemplified in
As exemplified in
The control unit 13 controls an operation of each unit of the circuit according to a calculator control program stored in the storage unit 14, and executes various types of arithmetic processing according to key input signals from the key input unit 11 and reception signals received from the outside via the communication unit 16. The control unit 13 includes at least one processor such as a central processing unit (CPU). The communication unit 16 includes a wireless communication device that performs wireless communication with an external device, for example, in accordance with Bluetooth (registered trademark), Bluetooth Low Energy (registered trademark), or another short-range wireless communication standard. The communication unit 16 may have a terminal for connecting a dedicated or general-purpose transmission cable that can be used for communication with an external device.
The calculator control program may be stored in advance in the storage unit 14, or may be read from a portable recording medium M such as a memory card via the medium reading unit 15 and stored in the storage unit 14. The calculator control program may be downloaded from a web server on a communication network via the communication unit 16 and stored in the storage unit 14. The storage unit 14 includes a read only memory (ROM) and a random access memory (RAM), and can store a function formula or the like input by the user in addition to the calculator control program.
In the scientific calculator 10, components shown as multiple blocks in
In the scientific calculator 10 as an electronic device configured as described above, the control unit 13 controls an operation of each unit of the circuit according to an instruction described in the calculator control program, and the software and the hardware operate in cooperation, thereby realizing various functions. For example, the scientific calculator 10 can draw a graph of a function formula input using the key input unit 11 or the like, and display the graph on the display unit 12. At the time of drawing a graph of a function formula and displaying the graph of the function formula on the display unit 12, the scientific calculator 10 according to the present embodiment performs a graph display process according to a flowchart exemplified in
First, the control unit 13 causes the display unit 12 to display a function formula registration screen (step S100). Thereafter, the control unit 13 receives registration of a plurality of pieces of function formula information (a set of a relational expression and definition information (see the description below)) by a user operation on the function formula registration screen using the key input unit 11 and selection of any function formula information from the registered plurality of pieces of function formula information (step S101), and waits for a graph display operation to be detected for the selected function formula information (step S102). In step S101, when the received operation is an operation of editing the selected function formula information, the control unit 13 edits the function formula information according to the corresponding operation (e.g., an operation of inputting a function formula or definition information, or an operation of changing or erasing an input function formula or definition information) and changes the display of the display unit 12. When it is determined that a graph display operation is not detected (step S102; NO), the control unit 13 waits for a next user operation. On the other hand, when it is determined that a graph display operation has been detected (step S102; YES), the control unit 13 draws a graph of a function formula included in the function formula information selected from the function formula registration screen, and displays the graph on the display unit 12 (step S103). In step S103, the control unit 13 draws the graph of the function formula, for example, on an xy plane indicating a relationship between a variable (e.g., an x value) of the function formula included in the function formula information and a solution (e.g., a y value), and causes the display unit 12 to display a display area specified based on an x value display range and a y value display range on the xy plane. Hereinafter, the display state of the display unit 12 when the function formula registration screen is displayed will be referred to as a “first display state”, and the display state of the display unit 12 when the graph of the function formula included in the function formula information selected on the function formula registration screen is displayed will be referred to as a “second display state”. That is, when the graph display operation is detected while the display unit 12 is in the first display state, the control unit 13 of the scientific calculator 10 according to the present embodiment switches the display state of the display unit 12 from the first display state to the second display state.
After step S103, the control unit 13 determines whether or not an operation on the tools key 115 has been detected (step S104), and then determines whether or not an operation for displaying the function formula registration screen has been detected (step S105). Before an operation on the tools key 115 is detected (step S104; NO), when it is determined that an operation for displaying the function formula registration screen has been detected (step S105; YES), the control unit 13 returns to the processing of step S100. In other words, when it is determined that an operation for displaying the function formula registration screen has been detected (step S105; YES), the control unit 13 returns the display state of the display unit 12 from the second display state to the first display state.
Before an operation for displaying the function formula registration screen is detected, when it is determined that an operation on the tools key 115 has been detected (step S104; YES), the control unit 13 displays a tool menu in a superimposed manner on the front side of (in front of) the graph displayed on the display unit 12 (step S106). The tool menu will be described in detail later with reference to
In the tool menu, a plurality of items including an item “MODIFY” for specifying a value in the definition information of the function formula are arranged, and any one of the plurality of items can be selected. When receiving an operation of selecting one of the plurality of items of the displayed tool menu (step S107), the control unit 13 determines whether or not the selected item is “MODIFY” (step S108). When it is determined that the selected item is not MODIFY (step S108; Otherwise), the control unit 13 executes processing corresponding to the selected item (step S114), and ends the graph display process. Furthermore, although not illustrated in
On the other hand, when it is determined that the selected item is MODIFY (step S108; MODIFY), the control unit 13 determines whether or not a variable is included as definition information in combination with the function formula corresponding to the graph displayed on the back side of (behind) the tool menu (step S109). The variable is a variable such as a coefficient A (proportional constant) or a coefficient B (intercept), for example, in a function formula y=Ax+B. When it is determined that a variable is not included (step S109; NO), the control unit 13 causes, for example, the display unit 12 to display an error notification screen (step S113). Thereafter, the control unit 13 returns to the processing of step S100. That is, the display state of the display unit 12 is returned to the first display state.
On the other hand, when it is determined that a variable is included (step S109; YES), the control unit 13 causes the display unit 12 to display, for example, a MODIFY screen on which the value corresponding to the variable and the number of steps, which are the definition information of the selected function formula, can be edited (step S110). Hereinafter, the display state of the display unit 12 when the MODIFY screen on which the definition information of the function formula can be edited is displayed will be referred to as a “third display state”. That is, when an operation on the tools key 115 is detected while the display unit 12 is in the second display state, and a variable is included as definition information in the function formula of the displayed graph, the control unit 13 of the scientific calculator 10 according to the present embodiment switches the display unit 12 from the second display state to the third display state.
The MODIFY screen includes a graph displayed on the back side of (behind) the tool menu when MODIFY is selected from the tool menu, and an edit area for editing definition information (that is the above-described variable and corresponds to the coefficients A and B of the function formula y=Ax+B) in the function formula corresponding to the graph. The control unit 13 receives a user operation on the MODIFY screen using the key input unit 11 (step S111), and waits until a MODIFY end operation is detected (step S112). In step S111, when the control unit 13 determines that the received operation is an operation of changing the value of the variable in the definition information of the function formula, for example, the value corresponding to the variable is changed according to the corresponding operation, and a graph reflecting the changed value is distinguishably displayed together with the graph before the change. When it is determined that a MODIFY end operation has not been detected (step S112; NO), the control unit 13 waits for a next user operation. On the other hand, when it is determined that a MODIFY end operation is detected (step S112; YES), the control unit 13 hides the MODIFY screen, draws a graph of the selected function formula, and displays the graph on the display unit 12 (step S103). That is, the control unit 13 returns the display state of the display unit 12 from the third display state to the second display state. The MODIFY end operation may be, for example, an operation of pressing the back key 113B (see
In this manner, in the scientific calculator 10 according to the present embodiment, when a predetermined key (e.g., the tools key 115) is pressed in the second display state in which the graph of the function formula is displayed on the display unit 12, a switch to the MODIFY screen for changing the content of the definition information of the function formula can be selected from the tool menu arranged in a superimposed manner in front of the displayed graph.
On the function formula registration screen P110, for example, function formula information regarding five solutions y1 to y5 can be registered (input). The user can select one of the five solutions y1 to y5 (function formula information) by operating the [↑] (up) key 113U (first key) or the [↓] (down) key 113D (second key) of the cursor key group 113. The selected solution (function formula information) is shown in a different display format from the other solutions (function formula information). In
When the confirmation key 113C (see
When the second tab P113 is selected in a state where the function formula information registered on the function formula registration screen P110 in
The graph display screen P120 of
In the scientific calculator 10 according to the present embodiment, when the tools key 115 is pressed while the graph display screen P120 is displayed on the display unit 12, a screen in which a tool menu P131 is arranged in a superimposed manner in front of the graph display screen P120, like a tool selection screen P130 in
When “View Window” is selected from the tool menu P131 exemplified in
When the item “Modify” P132 is selected in the tool menu P131 exemplified in
The MODIFY screen P140 of
In this manner, in the scientific calculator 10 according to the present embodiment, it is possible to shift from the second display state, in which the graph P122 of the function formula is displayed, to the third display state, in which the MODIFY screen P140 is displayed, without going through the first display state, in which the function formula registration screen P110 is displayed, and display the graph P144 in which the value included in the definition information of the selected function formula information is designated (edited or changed). In addition, for example, by an operation of pressing the back key 113B, it is possible to easily switch (return) from the state in which the tool selection screen P130 or the MODIFY screen P140 is displayed to the second display state in which the graph P122 of the function formula is displayed.
As described above, the scientific calculator 10 according to the present embodiment enables the user to easily perform an operation of switching from the second display state, in which the graph of the function formula is drawn and displayed, to the third display state, in which the MODIFY screen P140 on which the definition information of the function formula can be designated (edited or changed) is displayed. In addition, the scientific calculator 10 according to the present embodiment is capable of displaying an error screen when the displayed graph is a function formula not including a variable (a function formula not including an editable element), so that the user can easily know that it is not possible to switch to the third display state, and furthermore, capable of reliably supporting the user in executing a technical task (using a graph drawing function in the scientific calculator) by an interaction process between the user and the scientific calculator 10.
Note that the graph display process executed by the scientific calculator 10 according to the present embodiment is not limited to the process according to the flowchart exemplified in
An electronic device 20 exemplified in
The computer 30 includes a processor 31, a main storage device 32, an auxiliary storage device 33, an input device 34, a display device 35, a communication device 36, a media reading device 37, and an input/output interface 38, and these hardware elements are connected to each other by a bus 39.
The processor 31 causes the computer 30 to operate as the scientific calculator 10 according to the first embodiment, for example, by executing a calculator control program including a program portion corresponding to the graph display process described above with reference to
The communication device 36 may be a wireless communication device usable as the communication unit 16 of the scientific calculator 10 according to the first embodiment, or a communication device having a terminal to which a communication cable can be connected. The medium reading device 37 corresponds to the medium reading unit 15 of the scientific calculator 10 according to the first embodiment, and may be a device capable of reading information stored in a portable recording medium M and writing information to the portable recording medium M.
The electronic device 20 which may be the computer 30 can display a calculator window 201 including a scientific calculator image 202 on the touch panel display 21 as illustrated in
In a case where the electronic device 20 is used as a scientific calculator, for example, when a button corresponding to the tools key 115 (see
A learning system 40 exemplified in
The web system 50 is a system that provides a function of a scientific calculator using a communication network 60, and includes a control unit 51, a storage unit 52, and a communication unit 53. The web system 50 may be configured by, for example, a single server or a plurality of servers. For example, the web system 50 may be configured by a web server, an application server, and a database server. The term “server” in the present specification may be replaced with “computer”.
The control unit 51 of the web system 50 controls an operation of the web system 50. For example, the control unit 51 performs processing according to an HTTP request from the electronic device 20, generates a web page according to a result of the processing, and transmits the web page to the electronic device 20 as an HTTP response. The processing according to the HTTP request may be, for example, processing of generating a web page including the scientific calculator image 202 (see
The storage unit 52 stores scientific calculator content 54 to be provided to the electronic device 20 via the communication network 60, user data 55, other data (not illustrated), programs, and the like. The scientific calculator content 54 may be a web application that enables the electronic device 20 to be used as a scientific calculator, and includes a calculator control program. The user data 55 includes various types of information individually set and registered for each user who uses the scientific calculator content 54. User data 551 for user A includes, for example, information such as identification information of the user A, settings of the scientific calculator, and function formulas created by the user A. User data 552 for user B includes, for example, information such as identification information of the user B, settings of the scientific calculator, and function formulas created by the user B. The settings of the scientific calculator include, for example, settings of x and y value display ranges of the graph display area P121 of the graph display screen P120.
The communication unit 53 performs wireless or wired communication with a communication device connected to the communication network 60, and connects the web system 50 to the communication network 60. In the learning system 40 exemplified in
Note that the present invention is not limited to the above-described embodiments, and various changes, substitutions, and modifications may be made without departing from the spirit of the technical idea. In addition, if the technical idea can be realized by another way due to technological advances or other derived technologies, the present invention may be implemented by using that method. Therefore, the claims cover all aspects of implementation that may fall within the scope of the technical idea.
According to the above embodiment, it is possible to easily change a variable of a function formula of a displayed graph.
| Number | Date | Country | Kind |
|---|---|---|---|
| 2023-180742 | Oct 2023 | JP | national |