Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4337659B2 - Graphic drawing control apparatus and program - Google Patents
[go: Go Back, main page]

JP4337659B2 - Graphic drawing control apparatus and program - Google Patents

Graphic drawing control apparatus and program Download PDF

Info

Publication number
JP4337659B2
JP4337659B2 JP2004199385A JP2004199385A JP4337659B2 JP 4337659 B2 JP4337659 B2 JP 4337659B2 JP 2004199385 A JP2004199385 A JP 2004199385A JP 2004199385 A JP2004199385 A JP 2004199385A JP 4337659 B2 JP4337659 B2 JP 4337659B2
Authority
JP
Japan
Prior art keywords
grid
graph
area
drawing control
fine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2004199385A
Other languages
Japanese (ja)
Other versions
JP2006023828A (en
Inventor
文宣 中村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2004199385A priority Critical patent/JP4337659B2/en
Publication of JP2006023828A publication Critical patent/JP2006023828A/en
Application granted granted Critical
Publication of JP4337659B2 publication Critical patent/JP4337659B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Calculators And Similar Devices (AREA)
  • Image Generation (AREA)

Description

本発明は、図形描画制御装置及びプログラムに関し、例えば、陰関数のグラフ表示機能を有する関数電卓に適用して好適なものである。   The present invention relates to a graphic drawing control device and a program, and is suitable for application to a scientific calculator having an implicit function graph display function, for example.

従来より、方程式計算、行列演算、複素数演算等の演算機能や統計機能といった豊富な機能を備えた電子計算装置の1つとして、入力された関係式等を表したグラフを図示するグラフ表示機能を備えた関数電卓が知られている。かかる関数電卓(以下、グラフ電卓と呼ぶ。)は、例えば、演算機能を利用して得られた各種技術計算の演算結果をグラフ化して表示させることができ、教育現場や研究機関等において広く活用されている。   Conventionally, as one of the electronic computing devices having abundant functions such as calculation functions such as equation calculation, matrix calculation, complex number calculation and statistical functions, a graph display function for illustrating a graph representing an input relational expression or the like A scientific calculator is known. Such a scientific calculator (hereinafter referred to as a graph calculator) can display the calculation results of various technical calculations obtained using the calculation function in a graph, for example, and is widely used in educational sites and research institutions. Has been.

このグラフ電卓に係る技術として、通常の陽関数(y=f(x)の形式の関数)のグラフを描画するとき、各xの値に対する各yの値をy=f(x)の式から計算して求めて、x−y座標上にグラフをプロットしていき、グラフ描画する技術が知られている。また、グラフを構成するドットを表示する画素自体の大きさや、トレースする単位数値の粗さ(トレース間隔)等に起因して2つのグラフの交点が正しく表示されない問題へ対処すべく、グラフの交点近傍におけるトレース間隔を通常より精密に行い、また、そのように精密にトレースされた区間においてカーソル等の表示様態を変化させる技術がある(例えば、特許文献1)。
特開平9−179829号公報
As a technique related to this graphing calculator, when drawing a graph of a normal explicit function (a function in the form of y = f (x)), the value of each y with respect to the value of each x is calculated from the equation y = f (x). A technique for drawing a graph by calculating and plotting a graph on xy coordinates is known. In addition, in order to deal with the problem that the intersection of two graphs is not displayed correctly due to the size of the pixels that display the dots that make up the graph, the roughness of the unit values to be traced (trace interval), etc. There is a technique in which the tracing interval in the vicinity is performed more precisely than usual, and the display mode of the cursor or the like is changed in such a precisely traced section (for example, Patent Document 1).
Japanese Patent Laid-Open No. 9-179829

ところで、陽関数のグラフ描画では、各xの値に対する各yの値をy=f(x)の式から計算して求めて、x−y座標上にグラフをプロットしていくことで、容易にグラフ描画できた。しかし、陰関数表現による2変数x及びyの関係を関係式F(x,y)と定義すると、この陰関数表現の関係式F(x,y)では、各xの値に対する各yの値を直接求めることができず直接グラフ描画することができない。   By the way, in the graph drawing of the explicit function, it is easy to calculate each y value for each x value from the equation y = f (x) and plot the graph on the xy coordinates. I was able to draw a graph. However, if the relation between the two variables x and y in the implicit function expression is defined as a relational expression F (x, y), the relational expression F (x, y) in the implicit function expression indicates the value of each y with respect to the value of each x. Cannot be obtained directly and the graph cannot be drawn directly.

そこで、関係式F(x,y)をf(x,y)=0と変形し、描画しようとするx及びyに適当な値を代入してf(x,y)=0となる点を描画していくことでグラフを描くといった方法が考えられる。   Therefore, the relational expression F (x, y) is transformed to f (x, y) = 0, and an appropriate value is substituted for x and y to be drawn so that f (x, y) = 0. A method of drawing a graph by drawing is conceivable.

しかしながら、かかる方法を用いてグラフを描画しようとする場合、相当に多数の点について演算する必要があり、多くの描画時間を要する。   However, when trying to draw a graph using such a method, it is necessary to perform calculations for a considerably large number of points, which requires a lot of drawing time.

このように、従来のグラフ電卓においては、陰関数のグラフを描画しようとすると処理量が増え、描画時間が増大して実用性が悪化するという問題があった。
そのため、一定数の点を描画し、その各点を線分で結ぶことで陰関数のグラフ概形を表すといった方法も考えられるが、正確なグラフではないという重大な欠点がある。
As described above, in the conventional graphing calculator, there is a problem that when an implicit function graph is drawn, the processing amount increases, the drawing time increases, and the practicality deteriorates.
For this reason, a method of drawing a certain number of points and connecting the points with line segments to express the graph outline of the implicit function is conceivable, but there is a serious drawback that it is not an accurate graph.

本発明は以上の問題点に鑑みてなされたもので、容易に正確な陰関数のグラフ描画を行い得る図形描画制御装置を実現することを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to realize a graphic drawing control apparatus that can easily perform accurate implicit function graph drawing.

かかる課題を解決するため、請求項1に記載の図形描画制御装置おいては、
陰関数表現の関係式を記憶する陰関数記憶手段
表示領域格子に分割して各格子の4頂点及び中心点における前記陰関数表現の関係式の正負に応じたグラフ概形を各格子内描画させるように制御する描画制御手段
この描画制御手段により描画されたグラフ概形を含む前記表示領域中の部分領域を指定する領域指定手段
この領域指定手段により指定された部分領域を、前記各格子より小さな細密格子に分割して各細密格子の4頂点及び中心点における前記陰関数表現の関係式の正負に応じたグラフ概形を各細密格子内描画させるように制御する細密描画制御手段
を備えることを特徴とする。
To solve such a problem, Oite the drawing control device according to claim 1,
And implicit memory means for storing a relational expression of implicit representation,
And drawing control means for controlling so as to draw a graph outline corresponding to the positive and negative relationship of the implicit function representation in each grid in the four vertices and the center point of each grid by dividing the display region in a lattice,
A region designation means for designating a partial area in the display area including the drawn graph envelope by the drawing control means,
The designated partial area by the area specifying means, the graph approximate shape corresponding to the positive and negative relationship of the implicit representation of the four vertexes and the center point of the division to the fine grid to the fine grid a small than the lattice and fine drawing control means for controlling so as to draw in each fine grid,
It is characterized by providing.

また、請求項2に記載の図形描画制御装置(例えば、図1のグラフ電卓1)は、請求項1に記載の図形描画制御装置において、前記領域指定手段は、ユーザ操作に従って前記部分領域を指定する操作指定手段(例えば、図2のCPU2;図8のステップA15)を有することを特徴とする。   The graphic drawing control apparatus according to claim 2 (for example, the graphing calculator 1 in FIG. 1) is the graphic drawing control apparatus according to claim 1, wherein the area specifying means specifies the partial area according to a user operation. And an operation designation means (for example, CPU 2 in FIG. 2; step A15 in FIG. 8).

また、請求項3に記載の図形描画制御装置(例えば、図1のグラフ電卓1)は、請求項1又は2に記載の図形描画制御装置において、前記細密描画制御手段は、前記細密格子の大きさをユーザ操作に従って設定する格子サイズ設定手段(例えば、図2のCPU2;図20のステップB17,A19)を有することを特徴とする。   Further, the graphic drawing control apparatus according to claim 3 (for example, the graphing calculator 1 in FIG. 1) is the graphic drawing control apparatus according to claim 1 or 2, wherein the fine drawing control means has a size of the fine grid. It is characterized by having lattice size setting means (for example, CPU 2 in FIG. 2; steps B17 and A19 in FIG. 20) for setting the height in accordance with a user operation.

また、請求項4に記載の図形描画制御装置(例えば、図1のグラフ電卓1)は、請求項1に記載の図形描画制御装置において、
前記描画制御手段は、
4頂点における前記陰関数表現の関係式が全て正または全て負となる格子の格子内にはグラフ概形を描画せず、
前記領域指定手段は、
前記描画制御手段により分割された各格子についてグラフ概形の存否を判別する判別手段
この判別手段によりグラフ概形が存在すると判別された格子の部分を部分領域として指定する図形有格子部分指定手段
を有することを特徴とする。
A graphic drawing control device according to claim 4 (for example, the graphing calculator 1 in FIG. 1) is the graphic drawing control device according to claim 1,
The drawing control means includes
The graph outline is not drawn in the lattice of the lattice in which the relational expressions of the implicit function expressions at the four vertices are all positive or all negative.
The area specifying means includes:
Discriminating means for discriminating presence or absence of a graph envelope for each grid divided by the drawing control means,
And the figure chromatic grid portion specifying means for specifying a portion of the grid is determined with the graph outline is present as a partial region by the discriminating means,
It is characterized by having.

また、請求項5に記載の図形描画制御装置、請求項1に記載の図形描画制御装置において、
前記細密描画制御手段により描画されたグラフ概形を含む前記表示領域中の部分領域を指定する部分領域指定手段
この部分領域指定手段により指定された部分領域を、前記各細密格子より小さな微細格子に分割して各微細格子の4頂点及び中心点における前記陰関数表現の関係式の正負に応じたグラフ概形各微細格子内に描画させるように制御する微細描画制御手段
を更に備えることを特徴とする。
The graphic drawing control apparatus according to claim 5 is the graphic drawing control apparatus according to claim 1,
A partial region specifying means for specifying a partial area in the display area including the drawn graph envelope by the fine drawing control unit,
The designated partial area by the partial region specifying unit, the graph approximate said corresponding positive and negative relationship of the implicit representation of the four vertexes and the center points of the fine grid from small individual fine grid is divided into fine-mesh and fine drawing control means for controlling the shape so as to draw in each fine grid,
Is further provided.

また、請求項6に記載のプログラムは、
コンピュータ
陰関数表現の関係式を記憶する陰関数記憶機能
表示領域格子に分割して各格子の4頂点及び中心点における前記陰関数表現の関係式の正負に応じたグラフ概形を各格子内描画させるように制御する描画制御機能
この描画制御機能により描画されたグラフ概形を含む前記表示領域中の部分領域を指定する領域指定機能
この領域指定機能により指定された部分領域を、前記各格子より小さな細密格子に分割して各細密格子の4頂点及び中心点における前記陰関数表現の関係式の正負に応じたグラフ概形を各細密格子内描画させるように制御する細密描画制御機能
を実現させることを特徴とする。
The program according to claim 6 is:
On the computer,
And implicit memory function of storing a relational expression of implicit function representation,
A drawing control function of controlling the graph approximate shape corresponding to the positive and negative relationship of the implicit representation of the four vertexes and the center point of each grid by dividing the display area on the grid so as to draw in each grid,
A region designation function of designating a partial area in the display area including the drawn graph envelope by the drawing control function,
The subregion designated by the region designation function, the graph approximate shape corresponding to the positive and negative relationship of the implicit representation of the four vertexes and the center point of the division to the fine grid to the fine grid a small than the lattice and fine drawing control function of controlling so as to draw in each fine grid,
It is characterized by realizing.

請求項1に記載の図形描画制御装置及び請求項6に記載のプログラムによれば、まず表示領域格子に分割され、各格子の4頂点及び中心点における前記陰関数表現の関係式の正負に応じたグラフ概形が各格子内描画される。そして描画されたグラフ概形を含む前記表示領域中の部分領域が指定され、指定された部分領域が前記各格子より小さな細密格子に分割され、各細密格子の4頂点及び中心点における前記陰関数表現の関係式の正負に応じたグラフ概形が各細密格子内描画される。
従って、陰関数の図形が所定の細かさで表示領域に描画された後、指定された部分領域にのみ、より細かく陰関数の図形が描画されるから、描画の処理に費される総時間を徒に増大させることなく、必要とする部分領域についての高精度な描画が得られる。
According to the graphic drawing control apparatus according to claim 1 and the program according to claim 6, the display area is first divided into grids, and the relational expression of the implicit function expression at the four vertices and the center point of each grid is positive or negative. depending graph envelope are drawn in each grid. The partial region in the display area including the drawn graph envelope is designated, the designated partial region is divided into fine grid a small than the respective grid, the negative in the 4 vertices and central points of the fine grid A graph outline corresponding to the sign of the function expression is drawn in each fine grid.
Therefore, after the implicit function figure is drawn in the display area with a predetermined fineness, the implicit function figure is drawn more finely only in the specified partial area, so the total time spent for the drawing process is reduced. It is possible to obtain a highly accurate drawing of a necessary partial region without increasing the size.

また、請求項2に記載の図形描画制御装置によれば、ユーザ操作に従って部分領域が指定される。
従ってユーザは、表示領域に描画された図形の所望の箇所を、より細かく再描画させることができる。また、より細かく再描画させる部分領域の指定をユーザの主観的判断において行い得るから、例えば、詳しく見たい箇所をユーザ自らに探らせるような操作仕様を実現し、関数グラフの形状を探求的に観察するといった学習用途に適する。
According to the graphic drawing control apparatus of the second aspect, the partial area is designated according to the user operation.
Therefore, the user can redraw a desired portion of the figure drawn in the display area more finely. In addition, since the user can specify the partial area to be redrawn more finely in the subjective judgment of the user, for example, an operation specification that allows the user to search for the part that he wants to see in detail can be realized, and the shape of the function graph can be explored. Suitable for learning purposes such as observation.

また、請求項3に記載の図形描画制御装置によれば、より細かな格子に分割する際の格子の大きさがユーザ操作に従って設定される。
従ってユーザは、表示領域に描画された図形の指定された領域を、より細密な所望の細かさで再描画させることができるから、部分領域についてごく細密に再描画させたい場合にも、ユーザは再描画の操作を繰り返す必要がない。また、これにより描画の処理に費される総時間を徒に増大させない。
また、再描画させる際の細かさをユーザ自らに探らせるといった操作仕様を実現し、例えば、観測の精度の変化に応じた見栄えの変化の様子の観察といった学習用途に適する。
According to the graphic drawing control apparatus of the third aspect, the size of the lattice when dividing into finer lattices is set according to the user operation.
Therefore, the user can redraw the specified area of the graphic drawn in the display area with a finer desired fineness. Therefore, even when the user wants to redraw the partial area very finely, There is no need to repeat the redrawing operation. Further, this does not increase the total time spent for drawing processing.
In addition, an operation specification that allows the user to search for details when redrawing is realized, and it is suitable for a learning application such as observation of a change in appearance according to a change in observation accuracy.

また、請求項4に記載の図形描画制御装置によれば、表示領域各格子についてグラフ概形の存否が判別され、グラフ概形が存在すると判別された格子の部分が部分領域として指定される。
従って、ユーザは、より細かく再描画させる必要のある部分領域を自ら指定する必要がない。
According to the graphic drawing control apparatus of the fourth aspect, the presence or absence of the graph outline is determined for each grid in the display area , and the portion of the grid determined to have the graph outline is designated as the partial area. .
Therefore, the user does not need to specify a partial area that needs to be redrawn more finely.

また、請求項5に記載の図形描画制御装置によれば、部分領域に描画されたより小さグラフ概形を含む、表示領域中の部分領域が指定され、この指定された部分領域が前記各細密格子より小さな微細格子に分割され、各微細格子の4頂点及び中心点における前記陰関数表現の関係式の正負に応じたグラフ概形を各微細格子内描画される。
従って、図形がユーザの意に適う細かさで描画されるまで、ユーザ自らが再描画の操作を繰り返す必要がなく、容易に所望の正確さのグラフ概形を得ることができる。
Further, according to the drawing control device according to claim 5, including a small yet graph envelope than drawn in partial regions, it is specified partial area in the display area, the designated partial area each fine is divided into small fine grid from grid is drawn graphs outline corresponding to the positive and negative relationship of the implicit representation of the four vertexes and the center points of the fine grid within each fine grid.
Therefore, it is not necessary for the user himself to repeat the redrawing operation until the figure is drawn with fineness suitable for the user's intention, and a graph outline with desired accuracy can be easily obtained.

以下、図面を参照して本発明を実施するための形態について詳細に説明する。以下においては、本発明をグラフ表示機能を有する関数電卓に適用した場合について説明するが、本発明を適用可能な形態がこれに限定されるものではない。   DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments for carrying out the present invention will be described in detail with reference to the drawings. In the following, a case where the present invention is applied to a scientific calculator having a graph display function will be described, but the form to which the present invention can be applied is not limited to this.

1.共通的な構成について
図1及び図2は、各実施の形態におけるグラフ表示機能を有する関数電卓(以下、グラフ電卓と呼ぶ。)1の概観及び回路構成をそれぞれ示す図である。図2に示すようにグラフ電卓1は、CPU(Central Processing Unit )2と、当該CPU2にそれぞれ接続される入力部3、表示部4、RAM(Random Access Memory)5及びROM(Read Only Memory)6とを備えて構成されている。
1. Common Configuration FIGS. 1 and 2 are diagrams respectively showing an overview and a circuit configuration of a scientific calculator (hereinafter referred to as a graph calculator) 1 having a graph display function in each embodiment. As shown in FIG. 2, the graphing calculator 1 includes a CPU (Central Processing Unit) 2, an input unit 3, a display unit 4, a RAM (Random Access Memory) 5, and a ROM (Read Only Memory) 6 connected to the CPU 2. And is configured.

CPU2は、入力される指示に応じて所定のプログラムに基づいた所定の処理を実行し、各機能部への指示やデータの転送等を行い、グラフ電卓1を統括的に制御する。具体的には、入力部3を介した入力操作等に応じてROM6に格納された各処理プログラムを読み出し、当該処理プログラムに従って処理を実行し、処理結果をRAM5に保存するとともに表示部4に表示出力する。   The CPU 2 executes predetermined processing based on a predetermined program in accordance with an input instruction, performs an instruction to each functional unit, data transfer, and the like, and controls the graphing calculator 1 in an integrated manner. Specifically, each processing program stored in the ROM 6 is read in response to an input operation via the input unit 3, the processing is executed according to the processing program, and the processing result is stored in the RAM 5 and displayed on the display unit 4. Output.

入力部3は、図1に示すように、グラフ電卓1の機能に係る各プログラムの実行や各種情報等の入力に必要な各キーとして、方向キー部31、操作の確定指示等を行うための決定キー32、所定の入力受付状態における取消しの動作(即ち、キャンセル)を行うためのキャンセルキー33、文字数字キー部34、記号キー部35、関係式の登録を行うための関係式登録キー36及び描画開始キー37を備えて構成される。   As shown in FIG. 1, the input unit 3 is a direction key unit 31 that is used to execute each program related to the function of the graphing calculator 1 and input various information, etc., and an operation confirmation instruction. A determination key 32, a cancel key 33 for performing a cancel operation (ie, cancellation) in a predetermined input acceptance state, a character / numeric key portion 34, a symbol key portion 35, and a relational expression registration key 36 for registering a relational expression And a drawing start key 37.

方向キー部31は、表示部4上のカーソル等を上、下、左及び右方向へ移動させるための、それぞれ上キー31U、下キー31D、左キー31L及び右キー31Rを備えて構成される。
文字数字キー部34は、「x」や「y」といった変数文字、小数点及び各数字等を入力するための諸キーを備えて構成される。
The direction key unit 31 includes an up key 31U, a down key 31D, a left key 31L, and a right key 31R for moving the cursor on the display unit 4 in the up, down, left, and right directions, respectively. .
The alphanumeric key section 34 includes various keys for inputting variable characters such as “x” and “y”, a decimal point, and numbers.

記号キー部35は、関係式を入力する際に必要となる、例えば、括弧(「(」及び「)」)、等号(「=」)、累乗の記号(「^」)、加算の記号(「+」)、減算の記号(「−」)、正弦関数(「sin」)及び指数関数(「exp」)といった種々の演算記号や組込み関数等を入力するための諸キーを備えて構成される。   The symbol key part 35 is necessary when inputting a relational expression, for example, parentheses (“(” and “)”), an equal sign (“=”), a power symbol (“^”), and an addition symbol. (“+”), Symbols for subtraction (“−”), sine function (“sin”), exponential function (“exp”), and various keys for inputting various built-in functions, etc. Is done.

描画開始キー37はグラフ描画を開始するためのキーである。この描画開始キー37が押下されると、各実施の形態におけるグラフ描画処理が開始され、後に詳述する所定の各処理をCPU2が実行するようになされている。   The drawing start key 37 is a key for starting graph drawing. When the drawing start key 37 is pressed, the graph drawing process in each embodiment is started, and the CPU 2 executes predetermined processes described in detail later.

RAM5(図2)は、CPU2が実行する各種処理プログラムや、これらのプログラムの実行に係るデータ等を一時的に保持する格納領域を備えて構成される。なお、これらの格納領域の詳細については、後述する各実施の形態において説明する。   The RAM 5 (FIG. 2) includes a storage area that temporarily holds various processing programs executed by the CPU 2 and data related to the execution of these programs. The details of these storage areas will be described in each embodiment described later.

ROM6は、例えば不揮発性の記憶媒体を用いて構成される補助記憶装置であり、各種初期設定やハードウェアの検査、必要なプログラムのロード等を行う為の初期プログラムが格納される。また、ROM6には、それらの他にもグラフ電卓1の動作に係る各種処理プログラムや種々の機能を実現する為のデータ等が格納される。なお、これらのプログラムやデータ等の詳細については、後述する各実施の形態において説明する。   The ROM 6 is an auxiliary storage device configured using, for example, a non-volatile storage medium, and stores an initial program for performing various initial settings, hardware inspections, loading of necessary programs, and the like. In addition to these, the ROM 6 stores various processing programs related to the operation of the graphing calculator 1, data for realizing various functions, and the like. Details of these programs, data, and the like will be described in each embodiment described later.

表示部4は、行方向及び列方向に配列された表示画素でなるLCD(Liquid Crystal Display)等により構成され、CPU2から送信される制御信号に基づいて、画像メモリ(図示せず。)に記憶されているビットマップデータを表示する。なお、以下の説明においては、このビットマップデータが表示される領域の全体を表示領域と呼ぶこととし、画像メモリ及びビットマップデータに係る詳細な説明及び図示を省略することとする。   The display unit 4 is configured by an LCD (Liquid Crystal Display) or the like composed of display pixels arranged in a row direction and a column direction, and is stored in an image memory (not shown) based on a control signal transmitted from the CPU 2. Displays the bitmap data that has been saved. In the following description, the entire area where the bitmap data is displayed is referred to as a display area, and detailed description and illustration regarding the image memory and the bitmap data are omitted.

また、簡単のため以下の説明においては、例えば図3に示すように、表示領域の形状は長方形であり、表示領域の長辺である行方向60画素と短辺である列方向40画素とが互いに直交するように表示画素が配列されて構成されていることとする。   For simplicity, in the following description, for example, as shown in FIG. 3, the shape of the display area is rectangular, and the long side of the display area is 60 pixels in the row direction and the short side is 40 pixels in the column direction. It is assumed that display pixels are arranged so as to be orthogonal to each other.

そして、同図に示すように、この表示部4にxy座標平面を表示する場合、x及びy方向の1を表す大きさと10画素とがそれぞれ対応し、かつ、原点Oが表示領域の中央と一致するよう、即ち、常に領域{(x,y)|−3≦x<3かつ−2<y≦2}が表示されるよう、CPU2が制御することとする。   As shown in the figure, when the xy coordinate plane is displayed on the display unit 4, the size representing 1 in the x and y directions corresponds to 10 pixels, and the origin O is the center of the display area. It is assumed that the CPU 2 controls to match, that is, to always display the region {(x, y) | −3 ≦ x <3 and −2 <y ≦ 2}.

2.第1の実施の形態
本実施の形態のグラフ電卓1は、RAM5として、図4に示すRAM5aを用いて構成される。同図に示すようにRAM5aは、関数式51、格子サイズ値52、格子サイズ値変更率53、指定範囲54、第1の格子テーブル55及び第2の格子テーブル56を備えて構成される。
2. First Embodiment A graphing calculator 1 according to the present embodiment is configured using a RAM 5a shown in FIG. As shown in the figure, the RAM 5a includes a functional equation 51, a lattice size value 52, a lattice size value change rate 53, a specified range 54, a first lattice table 55, and a second lattice table 56.

関数式51は、2変数x及びyに係る関数式を格納する領域である。CPU2は、グラフ電卓1の関係式登録キー36が押下されると、所定の入力画面(図示せず。)において、陰関数表現による2変数x及びyの関係である関係式F(x,y)の入力を受け付け、この関係式F(x,y)をf(x,y)=0と変形した場合の関数式f(x,y)を関数式51に格納するようになされている。そして後述するように、グラフ電卓1の描画開始キー37が押下されると、この関数式51の内容に基づいて関係式Fのグラフ概形の描画を行うようになされている。   The function formula 51 is an area for storing function formulas related to the two variables x and y. When the relational expression registration key 36 of the graph calculator 1 is pressed, the CPU 2 displays a relational expression F (x, y) which is a relation between two variables x and y in an implicit function expression on a predetermined input screen (not shown). ) Is received, and the functional expression f (x, y) when the relational expression F (x, y) is transformed to f (x, y) = 0 is stored in the functional expression 51. As will be described later, when the drawing start key 37 of the graph calculator 1 is pressed, the graph outline of the relational expression F is drawn based on the contents of the function expression 51.

格子サイズ値52は、後述する領域内描画処理における処理の単位となる格子の大きさ(以下、格子サイズ値と呼ぶ。)についての情報を格納する領域であり、例えば図11に示す格子r11や格子r12といったxy座標平面上の一様な正方形の小領域の1辺の大きさを記憶する。   The grid size value 52 is an area for storing information about the size of a grid (hereinafter referred to as a grid size value) which is a unit of processing in the intra-area drawing process described later. For example, the grid size value 52 shown in FIG. The size of one side of a uniform small square area on the xy coordinate plane such as the lattice r12 is stored.

格子サイズ値変更率53は、所定の処理において格子サイズ値52を改める際に適用される、新値の旧値に対する比の値(以下、格子サイズ値変更率と呼ぶ。)を格納する領域であり、1より小さい所定の値が格納される。例えば、後述する第1の描画処理のステップA19においては、格子サイズ値52にこの格子サイズ値変更率53を乗じた値が新たに格子サイズ値52として格納され、格子サイズ値52の値がより小さな値へ更新されることとなる。   The lattice size value change rate 53 is an area for storing a value of a ratio of a new value to an old value (hereinafter referred to as a lattice size value change rate) that is applied when the lattice size value 52 is changed in a predetermined process. Yes, a predetermined value smaller than 1 is stored. For example, in step A19 of the first drawing process to be described later, a value obtained by multiplying the lattice size value 52 by the lattice size value change rate 53 is newly stored as the lattice size value 52, and the value of the lattice size value 52 is further increased. It will be updated to a smaller value.

ここに、本実施の形態の場合、この格子サイズ値52及び格子サイズ値変更率53には、所定の初期処理(図示せず。)においてそれぞれの規定値、例えば、「1」及び「0.5」が設定されることとする。   Here, in the case of the present embodiment, the lattice size value 52 and the lattice size value change rate 53 are set to predetermined values, for example, “1” and “0. “5” is set.

指定範囲54は、所定の操作を経て指定されたxy座標平面上の領域を表す情報を記憶する領域であり、例えば、指定された領域の最も左上に位置する点(以下、最左上点と呼ぶ。)及び最も右下に位置する点(以下、最右下点と呼ぶ。)の座標をそれぞれ記憶している。   The designated range 54 is an area for storing information indicating an area on the xy coordinate plane designated through a predetermined operation. For example, the designated area 54 is a point located at the upper left of the designated area (hereinafter referred to as an upper left point). .) And the coordinates of the point located at the lowermost right (hereinafter referred to as the lowermost right point).

第1の格子テーブル55及び第2の格子テーブル56は、それぞれ、後述する領域内描画処理においてxy座標平面上の各格子を識別するためのデータ(以下、格子データと呼ぶ。)の集合でなる一時的なテーブル変数(以下、格子テーブルと呼ぶ。)を格納する領域である。   Each of the first grid table 55 and the second grid table 56 is a set of data (hereinafter referred to as grid data) for identifying each grid on the xy coordinate plane in the in-region drawing process described later. This is an area for storing temporary table variables (hereinafter referred to as grid table).

格子テーブルは、例えば図10に示す構造を有している。即ち、各格子データはそれぞれ、所定の格子を識別するための「格子番号」、当該格子の最左上点の座標を表す「最左上点座標」及び当該格子内にグラフの図形が有るか否かを表す「図形有無」といった項目を有している。   The lattice table has a structure shown in FIG. 10, for example. That is, each grid data includes a “grid number” for identifying a predetermined grid, “left-most upper-point coordinates” representing the coordinates of the upper-leftmost point of the grid, and whether or not there is a graphic figure in the grid. It has an item such as “graphic presence / absence”.

この「最左上点座標」は、格子を一意に特定するための情報として、代表点の一例である最左上点の座標を、例えばxy座標平面及び画素位置それぞれについて表すようになされている。なお、格子を一意に特定するための情報であれば、この「最左上点座標」に替えて他の代表点の座標や、当該格子の別の種類の情報を適宜用いるようにしてもよい。   The “upper left point coordinates” are information for uniquely specifying the grid, and represent the coordinates of the upper left point, which is an example of the representative point, for example, for each of the xy coordinate plane and the pixel position. In addition, as long as the information is used for uniquely specifying the grid, the coordinates of other representative points and other types of information of the grid may be used as appropriate instead of the “upper left point coordinates”.

また、本実施の形態のグラフ電卓1は、ROM6として、図5に示すROM6aを用いて構成される。同図に示すようにROM6aは、第1の描画処理プログラム61a、領域内描画処理プログラム62及び概形対応表63を備えて構成される。   In addition, the graphing calculator 1 according to the present embodiment is configured using the ROM 6a shown in FIG. As shown in the figure, the ROM 6a includes a first drawing processing program 61a, an in-region drawing processing program 62, and an outline correspondence table 63.

概形対応表63は、例えば格子内の所定の複数の代表点における関数fの各値といった、格子内における関数fの振舞いに応じて、当該格子を分類し、その分類に基づく当該格子におけるグラフ概形及び図形有無を記憶している領域であり、CPU2は、関係式Fの所定の格子内におけるグラフ概形の特定及びグラフ図形の有無判別を行う際、この概形対応表63を用いて行う。   The outline correspondence table 63 classifies the grid according to the behavior of the function f in the grid, for example, each value of the function f at a plurality of predetermined representative points in the grid, and graphs in the grid based on the classification This is an area for storing the outline and the presence / absence of graphics, and the CPU 2 uses this outline correspondence table 63 when specifying the graph outline and determining the presence / absence of the graph figure within a predetermined lattice of the relational expression F. Do.

この概形対応表63には、例えば図6に示すように、格子内の後述する5点P1、P2、P3、P4及びP5における関数値f1、f2、f3、f4及びf5の符号とグラフ概形及び図形有無とを対応付けたデータ(以下、分類行と呼ぶ。)が記憶されている。なお、同図における、関数値f5の符号が空白である分類行は、符号の正負が分類に寄与しない、即ち符号が何れであっても構わない分類行を表している。   In this outline correspondence table 63, as shown in FIG. 6, for example, the sign of the function values f1, f2, f3, f4 and f5 at 5 points P1, P2, P3, P4 and P5 described later in the lattice and the graph outline are shown. Data in which the shape and the presence / absence of the figure are associated (hereinafter referred to as a classification line) is stored. In the figure, a classification row in which the sign of the function value f5 is blank represents a classification line in which the sign does not contribute to the classification, that is, the sign may be any.

ここに、上述した関数値f1、f2、f3、f4及びf5は、それぞれ、図7に示すような、格子の4頂点P1(x1,y1)、P2(x2,y2)、P3(x3,y3)、P4(x4,y4)及び中央の点P5(x5,y5)における関数値f(x1,y1)、f(x2,y2)、f(x3,y3)、f(x4,y4)及びf(x5,y5)であることとする。   Here, the function values f1, f2, f3, f4, and f5 described above are respectively the four vertices P1 (x1, y1), P2 (x2, y2), and P3 (x3, y3) of the lattice as shown in FIG. ), P4 (x4, y4) and function values f (x1, y1), f (x2, y2), f (x3, y3), f (x4, y4) and f at the central point P5 (x5, y5) It is assumed that (x5, y5).

そして、例えば5点P1、P2、P3、P4及びP5における関数値f1、f2、f3、f4及びf5の符号が、それぞれこの順に正、負、負、正及び負となるような格子の場合、点P1と3点P2、P5、P3との間、また、3点P2、P5、P3と点P4との間で関数fの符号が変化しているから、この格子内における関係式Fのグラフは概ね図6に示す概形a1であるとして対応付けたのが概形対応表63における分類行a2となっている。なお、他の各場合の格子についても、同様の要領で対応付けられた分類行が概形対応表63にそれぞれ記憶されている。   For example, in the case of a lattice in which the signs of the function values f1, f2, f3, f4, and f5 at five points P1, P2, P3, P4, and P5 are positive, negative, negative, positive, and negative, respectively, in this order, Since the sign of the function f changes between the point P1 and the three points P2, P5, P3, and between the three points P2, P5, P3 and the point P4, the graph of the relational expression F in this lattice Is a classification row a2 in the outline correspondence table 63, which is generally associated with the outline a1 shown in FIG. Note that the classification lines associated in the same manner are stored in the outline correspondence table 63 for the lattices in other cases.

第1の描画処理プログラム61aは、本実施の形態のグラフ描画処理である第1の描画処理を実現するための処理プログラムである。CPU2は、入力部3の描画開始キー37が押下されると、この第1の描画処理プログラム61aを実行することにより、関係式F(x,y)を表すグラフの概形を表示部4上のxy座標平面に表示する第1の描画処理を行うようになされている。   The first drawing processing program 61a is a processing program for realizing the first drawing processing that is the graph drawing processing of the present embodiment. When the drawing start key 37 of the input unit 3 is pressed, the CPU 2 executes the first drawing processing program 61a to display the outline of the graph representing the relational expression F (x, y) on the display unit 4. The first drawing process for displaying on the xy coordinate plane is performed.

また、CPU2は、この第1の描画処理の必要に応じて、xy座標平面上の所定の領域を指定して領域内描画処理プログラム62を実行することにより、当該領域に対する領域内描画処理を行うようになされている。   Further, the CPU 2 designates a predetermined area on the xy coordinate plane and executes the in-area drawing process program 62 as necessary for the first drawing process, thereby performing the in-area drawing process for the area. It is made like that.

次に、かかるグラフ電卓1において、CPU2がこれら各処理プログラムを実行することにより実現される動作について、図8及び図9に示すフローチャートを用いて詳細に説明する。   Next, the operation realized by the CPU 2 executing these processing programs in the graph calculator 1 will be described in detail with reference to the flowcharts shown in FIGS. 8 and 9.

ただし、以下の説明においては簡単のため、関係式F(x,y)として既に入力されている(4x2+y22=25(4x2−y2)をf(x,y)=0と変形し、関数f(x,y)とした(4x2+y22−25(4x2−y2)が関数式51として格納されていることとする。 However, for the sake of simplicity in the following description, (4x 2 + y 2 ) 2 = 25 (4x 2 −y 2 ) already input as the relational expression F (x, y) is changed to f (x, y) = 0. It is assumed that (4x 2 + y 2 ) 2 −25 (4x 2 −y 2 ) is stored as a function expression 51 as a function f (x, y).

図8は、本実施の形態のグラフ電卓1の第1の描画処理を表したフローチャートである。グラフ電卓1の描画開始キー37が押下されると、CPU2は、ROM6aの第1の描画処理プログラム61aを実行することによりこの第1の描画処理を行う。   FIG. 8 is a flowchart showing the first drawing process of the graphing calculator 1 according to the present embodiment. When the drawing start key 37 of the graphing calculator 1 is pressed, the CPU 2 executes the first drawing processing by executing the first drawing processing program 61a in the ROM 6a.

描画開始キー37が押下され、本処理を開始すると、CPU2はまず、格子サイズ値52に基づいて表示領域を格子に分割する(ステップA11)。なお、本実施の形態においては、簡単のため、表示領域を正方形の領域でなる格子に分割することとし、本ステップ時点の格子サイズ値52、即ち規定値である「1」を当該格子の一辺の長さとする。   When the drawing start key 37 is pressed to start this processing, the CPU 2 first divides the display area into grids based on the grid size value 52 (step A11). In the present embodiment, for the sake of simplicity, the display area is divided into square grids, and the grid size value 52 at the time of this step, that is, the specified value “1” is set to one side of the grid. Of length.

この場合CPU2は、具体的には、例えば図10に示す第1の格子テーブル55をRAM5aに作成することにより、必要に応じてCPU2が各格子を一意に特定し得るようにする。   In this case, specifically, the CPU 2 creates the first grid table 55 shown in FIG. 10 in the RAM 5a, for example, so that the CPU 2 can uniquely identify each grid as necessary.

例えば、図11に示すような、表示領域を一辺が1である格子に分割する本ステップの場合、CPU2は、格子r11、r12、・・・といった各格子に対応する格子データa3、a4、・・・を図10に示す第1の格子テーブル55に記憶する。そして、各格子データa3、a4、・・・は、格子r11、r12、・・・を一意に特定するための具体的情報として、例えば、各格子の最左上点v11、v12、・・・の座標を保有している。   For example, in the case of this step of dividing the display area into grids having one side as shown in FIG. 11, the CPU 2 uses grid data a3, a4,... Corresponding to each grid such as grids r11, r12,. .. Are stored in the first lattice table 55 shown in FIG. And each lattice data a3, a4, ... is specific information for uniquely identifying the lattices r11, r12,..., For example, the upper left points v11, v12,. Has coordinates.

次いでCPU2は、格子に分割されたこの表示領域に対して、後述する領域内描画処理を行う(ステップA13)。因みに、後に詳述するように、当該領域内描画処理において、CPU2は概形対応表63を用いて各格子へグラフ概形を次々描画していく。
かくして図12に示すように、格子z2が導入された表示領域の全体に亘って関係式Fのグラフ概形z1が表示されることとなる。
Next, the CPU 2 performs in-area drawing processing described later on the display area divided into the lattice (step A13). Incidentally, as will be described in detail later, in the in-area drawing process, the CPU 2 draws graph outlines one after another on each grid using the outline correspondence table 63.
Thus, as shown in FIG. 12, the graph outline z1 of the relational expression F is displayed over the entire display area in which the lattice z2 is introduced.

次いでCPU2は、入力部3の各キーやポインティングデバイス(図示せず。)を用いた所定の範囲指定操作を介してxy座標平面上の領域の指定を受け付け、指定された領域(以下、指定領域と呼ぶ。)を表す情報を指定範囲54へ格納する(ステップA15)。   Next, the CPU 2 accepts designation of an area on the xy coordinate plane through a predetermined range designation operation using each key of the input unit 3 or a pointing device (not shown), and designates the designated area (hereinafter, designated area). Is stored in the designated range 54 (step A15).

この場合CPU2は、例えば図13に示すように、まず、方向キー部31を用いた移動操作が可能な選択枠a5(図13(a))を表示し、選択枠a5への方向キー部31を用いた移動操作中に決定キー32の押下を2回受け付け、決定キー32の押下がなされた第1の箇所a6及び第2の箇所a7を向かい合う2隅とする長方形の領域a8(図13(b))を指定領域として特定する。そしてCPU2は、例えば、この指定領域a8の最左上点及び最右下点の座標を指定範囲54へそれぞれ記憶する。   In this case, as shown in FIG. 13, for example, the CPU 2 first displays a selection frame a5 (FIG. 13A) that can be moved using the direction key unit 31, and displays the direction key unit 31 for the selection frame a5. A rectangular region a8 having two corners facing the first location a6 and the second location a7 where the determination key 32 is pressed is received twice during the movement operation using the key. b)) is specified as the designated area. For example, the CPU 2 stores the coordinates of the upper left point and the lower right point of the designated area a8 in the designated range 54, respectively.

かかる範囲指定操作を経て、例えば、同図における{(x,y)|−0.7≦x<0.8かつ−1<y≦1}で表される領域a8が指定領域として特定されたこととする。   Through this range designation operation, for example, the area a8 represented by {(x, y) | −0.7 ≦ x <0.8 and −1 <y ≦ 1} in the figure is specified as the designated area. I will do it.

なお、かかる範囲指定操作として入力部3の各キーを用いた場合を示したが、これに限らず、例えばマウスやペンタブレットといったポインティングデバイスを用いたドラッグ操作によって範囲指定操作を行うようにしても良い。   In addition, although the case where each key of the input part 3 was used as this range designation | designated operation was shown, you may make it perform range designation | designated operation by drag operation using pointing devices, such as a mouse | mouth and a pen tablet, for example. good.

次いでCPU2は、RAM5aの格子サイズ値変更率53を格子サイズ値52に乗じて得られる、より小さい格子サイズ値によって格子サイズ値52の値を更新する(ステップA19)。従って、本実施の形態の場合、規定値の「1」であった格子サイズ値52に格子サイズ値変更率である「0.5」が乗算され、格子サイズ値52は新たな値「0.5」に更新される。   Next, the CPU 2 updates the value of the lattice size value 52 with a smaller lattice size value obtained by multiplying the lattice size value 52 by the lattice size value change rate 53 of the RAM 5a (step A19). Therefore, in the case of the present embodiment, the lattice size value 52 that was the prescribed value “1” is multiplied by the lattice size value change rate “0.5”, and the lattice size value 52 is set to a new value “0. 5 ”.

次いでCPU2は、この更新された格子サイズ値52に基づいて、指定領域を格子に分割する(ステップA21)。この場合も、具体的には、例えば図14に示す第2の格子テーブルをRAM5aに作成することにより指定領域の各格子を一意に特定し得るようにする。即ちCPU2は、図15に示すような、領域a8における一辺が0.5である各格子を一意に特定するための各格子データを、図14に示す第2の格子テーブルに記憶する。   Next, the CPU 2 divides the designated area into grids based on the updated grid size value 52 (step A21). Also in this case, specifically, for example, the second grid table shown in FIG. 14 is created in the RAM 5a so that each grid in the designated area can be uniquely specified. That is, the CPU 2 stores each piece of lattice data for uniquely identifying each lattice having a side of 0.5 in the region a8 as shown in FIG. 15 in the second lattice table shown in FIG.

次いでCPU2は、格子に分割されたこの指定領域に対して、後述する領域内描画処理を行う(ステップA23)。かくして表示部4の指定領域に関係式Fの、より詳密なグラフ概形が表示されることとなる。   Next, the CPU 2 performs in-area drawing processing described later on this designated area divided into grids (step A23). Thus, a more detailed graph outline of the relational expression F is displayed in the designated area of the display unit 4.

従って表示領域においては、例えば図16に示すように、指定領域以外の領域にはステップA13により描画されたグラフ概形z1が、指定領域には当該グラフ概形より詳密なグラフ概形z4が、それぞれ表示されることとなる。   Accordingly, in the display area, for example, as shown in FIG. 16, the graph outline z1 drawn in step A13 is provided in the area other than the designated area, and the graph outline z4 more detailed than the graph outline is provided in the designated area. , Respectively.

かくして本処理によれば、まず表示領域の全体に亘って関係式Fを表すグラフの概形が描画され、次いで、指定された指定領域におけるグラフ概形が、より詳密に描画される。   Thus, according to this process, first, the outline of the graph representing the relational expression F is drawn over the entire display area, and then the outline of the graph in the specified designated area is drawn in more detail.

次に、本実施の形態の領域内描画処理について、これをフローチャートで表した図9を用いて詳細に説明する。CPU2は、例えば、上述した第1の描画処理のステップA13においてROM6aの領域内描画処理プログラム62を実行することにより、同図に示す領域内描画処理を行う。   Next, the in-region drawing processing according to the present embodiment will be described in detail with reference to FIG. For example, the CPU 2 executes the in-area drawing process shown in FIG. 5 by executing the in-area drawing process program 62 of the ROM 6a in step A13 of the first drawing process described above.

なお、先述したように、本処理の実行にあたっては、格子に分割されたxy座標平面上の所定の領域が処理対象として指定される。以下の説明においては、当該指定された領域を処理対象領域と呼び、また、当該処理対象領域に対応する、例えば第1の格子テーブル55や第2の格子テーブル56といった格子テーブルを処理対象格子テーブルと呼ぶこととする。   As described above, when executing this process, a predetermined area on the xy coordinate plane divided into grids is designated as a process target. In the following description, the designated area is called a process target area, and a grid table such as the first grid table 55 or the second grid table 56 corresponding to the process target area is a process target grid table. I will call it.

本処理を開始すると、CPU2は、処理対象領域の中からまず1つの格子(以下、処理対象格子と呼ぶ。)を採り挙げ、当該格子の4頂点及び中心点における関数fの値を求める(ステップE11)。即ち、図7に示した点P1、P2、P3、P4及びP5における関数値f1、f2、f3、f4及びf5を求める。   When this process is started, the CPU 2 first picks up one grid (hereinafter referred to as a process target grid) from the process target area, and obtains the value of the function f at the four vertices and the center point of the grid (step E11). That is, the function values f1, f2, f3, f4 and f5 at the points P1, P2, P3, P4 and P5 shown in FIG. 7 are obtained.

次いでCPU2は、処理対象格子におけるグラフ線の図形の有無を判別し、また、概形状を特定する(ステップE13)。   Next, the CPU 2 determines the presence / absence of a graph line figure in the processing target grid and specifies the approximate shape (step E13).

この場合、具体的には、CPU2はまず、ROM6aの概形対応表63(図6)を参照して関数値f1、f2、f3、f4及びf5の符号に応じたグラフ概形及び図形有無を取得する。そして、処理対象格子テーブル上の、処理対象格子に対応する格子データの「図形有無」項目に、取得した図形有無を格納する。   In this case, specifically, the CPU 2 first refers to the outline correspondence table 63 (FIG. 6) of the ROM 6a to determine the graph outline and graphic presence / absence according to the signs of the function values f1, f2, f3, f4 and f5. get. Then, the acquired graphic presence / absence is stored in the “graphic presence / absence” item of the grid data corresponding to the processing target grid on the processing target grid table.

次いでCPU2は、ステップE13において取得されたグラフ概形を、表示部4の処理対象格子の位置に描画してステップE17へ移行する(ステップE15)。   Next, the CPU 2 draws the graph outline acquired in step E13 at the position of the processing target grid of the display unit 4 and proceeds to step E17 (step E15).

従って、例えば、図10に示した第1の格子テーブル55を処理対象格子テーブルとし、図11に示す格子r11を処理対象格子とする場合、関数値f1、f2、f3及びf4の符号がそれぞれこの順に正、正、正及び負となることにより、グラフ概形及び図形有無は図6に示した分類行a9により特定されることとなる。   Therefore, for example, when the first lattice table 55 shown in FIG. 10 is a processing target lattice table and the lattice r11 shown in FIG. 11 is a processing target lattice, the signs of the function values f1, f2, f3, and f4 are respectively By sequentially becoming positive, positive, positive, and negative, the outline of the graph and the presence / absence of the graphic are specified by the classification line a9 shown in FIG.

かくして、例えば図17に示すように、第1の格子テーブル55上の、格子r11に対応する格子データa3の図形有無a10に、グラフ図形が有る旨を表す文字「○」が格納され、また、例えば図18に示すように、表示部4の格子r11の位置には、図9に示した分類行a9のグラフ概形a12が描画されることとなる。   Thus, for example, as shown in FIG. 17, the character “◯” indicating that there is a graph graphic is stored in the graphic presence / absence a10 of the lattice data a3 corresponding to the lattice r11 on the first lattice table 55, and For example, as shown in FIG. 18, the graph outline a12 of the classification line a9 shown in FIG. 9 is drawn at the position of the lattice r11 of the display unit 4.

ステップE17へ移行すると、CPU2は、処理対象格子が処理対象領域における最後の格子であるか否かを判別し(ステップE17)、処理対象格子が最後の格子でない場合(ステップE17:No)、処理対象領域の中から次の格子を採り挙げてこれを処理対象格子としてステップE11へ戻る(ステップE19)。   In step E17, the CPU 2 determines whether or not the processing target grid is the last grid in the processing target area (step E17). If the processing target grid is not the last grid (step E17: No), the processing is performed. The next grid is picked up from the target area, and this is set as a processing target grid and the process returns to Step E11 (Step E19).

一方、ステップE17において処理対象格子が最後の格子である場合(ステップE17:Yes)、CPU2は本処理を終了する。
即ちCPU2は、処理対象領域の中の全ての格子について、1つの格子におけるグラフ概形を描画するステップE11〜E15の処理を繰り返すこととなる。
On the other hand, when the processing target grid is the last grid in step E17 (step E17: Yes), the CPU 2 ends this process.
That is, the CPU 2 repeats the processes of steps E11 to E15 for drawing the graph outline in one grid for all grids in the processing target area.

因みに、CPU2は、例えば処理対象格子テーブルを参照することにより、処理対象格子が最後の格子であるか否かの判別や、次の処理対象格子の特定を行うことができる。   Incidentally, the CPU 2 can determine whether or not the processing target grid is the last grid and specify the next processing target grid by referring to the processing target grid table, for example.

かくして本処理によれば、格子に分割された処理対象領域の格子毎にグラフ概形が描画され、関係式Fのグラフ概形が処理対象領域の全体に亘って描画されることとなる。   Thus, according to this processing, the graph outline is drawn for each grid of the processing target area divided into grids, and the graph outline of the relational expression F is drawn over the entire processing target area.

この場合、格子の大きさに関わらず、1つの格子につき高々5点における関数値の計算を行うことで、類型に当てはめるような処理のみによってグラフ概形を特定するから、例えば処理対象領域中の関数値を虱潰しに調べてグラフを描画する場合に比べ、ごく少ない計算量で処理対象領域の全体に亘るグラフ概形を描画することとなる。   In this case, regardless of the size of the grid, by calculating the function values at the maximum of 5 points per grid, the graph outline is specified only by the process that fits the type. For example, in the processing target area Compared to drawing the graph by examining the function values in a crushed manner, the graph outline over the entire processing target area is drawn with a very small amount of calculation.

かくして、本実施の形態のグラフ電卓1によれば、まず表示領域の全体に亘って関係式Fを表すグラフの概形が描画され、次いで、指定された指定領域におけるグラフ概形が、より詳密に描画されるから、描画の処理に費される総時間を徒に増大させることなく、必要な領域についての高精度な描画が得られる。   Thus, according to the graphing calculator 1 of the present embodiment, the graph outline representing the relational expression F is first drawn over the entire display area, and then the graph outline in the specified area specified is more detailed. Since dense drawing is performed, high-precision drawing can be obtained for a necessary region without increasing the total time spent for drawing processing.

また、詳密化を行う指定領域はユーザの主観的判断において指定し得るから、例えば、詳しく見たい箇所をユーザ自らに探らせるような操作仕様を実現し、関数グラフの形状を探求的に観察するといった学習用途に適するグラフ電卓を提供し得る。   In addition, since the specified area to be refined can be specified by the user's subjective judgment, for example, an operation specification that allows the user to search for a place to view in detail is realized, and the shape of the function graph is observed in an exploratory manner. It is possible to provide a graphing calculator suitable for learning applications such as.

3.第2の実施の形態
本実施の形態のグラフ電卓1は、第1の実施の形態におけるグラフ電卓1と同様に、例えば、描画開始キー37が押下されると、まず表示領域の全体に亘って関係式Fを表すグラフの概形が描画され、次いで、指定された領域に、より詳密なグラフ概形が描画されるようになされている。
3. Second Embodiment Similar to the graph calculator 1 in the first embodiment, for example, when the drawing start key 37 is pressed, the graph calculator 1 of the present embodiment first covers the entire display area. A graph outline representing the relational expression F is drawn, and then a more detailed graph outline is drawn in the designated area.

以下、本実施の形態におけるグラフ電卓1に特徴的な構成について詳述する。その際、上述した第1の実施の形態と同一の構成要素については同一の符号を付し、詳細な説明を省略する。   Hereinafter, a characteristic configuration of the graphing calculator 1 according to the present embodiment will be described in detail. In this case, the same components as those in the first embodiment described above are denoted by the same reference numerals, and detailed description thereof is omitted.

本実施の形態のグラフ電卓1は、ROM6として、図19に示すROM6bを用いて構成される。同図に示すようにROM6bは、第1の実施の形態におけるROM6aと同様の領域内描画処理プログラム62及び概形対応表63の他、本実施の形態のグラフ描画処理である第2の描画処理を実現するための第2の描画処理プログラム61bを備えて構成される。   The graphing calculator 1 according to the present embodiment is configured using a ROM 6b shown in FIG. As shown in the figure, the ROM 6b is a second drawing process which is a graph drawing process of the present embodiment, in addition to the in-area drawing process program 62 and the outline correspondence table 63 similar to the ROM 6a in the first embodiment. Is provided with a second drawing processing program 61b.

CPU2は、入力部3の描画開始キー37が押下されると、この第2の描画処理プログラム61bを実行することにより、第2の描画処理を行うようになされている。
この第2の描画処理は、関係式Fを表すグラフの概形を表示部4上に表示する第1の描画処理において、初回より後の領域内描画処理における処理対象領域の格子の大きさをユーザ操作により設定し得るようにしたものである。
以下、かかる第2の描画処理について、図20を用いて詳細に説明する。
When the drawing start key 37 of the input unit 3 is pressed, the CPU 2 executes the second drawing processing program 61b to perform the second drawing processing.
In the second drawing process, in the first drawing process in which the outline of the graph representing the relational expression F is displayed on the display unit 4, the grid size of the processing target area in the in-area drawing process after the first time is set. It can be set by a user operation.
Hereinafter, the second drawing process will be described in detail with reference to FIG.

描画開始キー37が押下され、本処理を開始すると、CPU2は、第1の描画処理と同様にステップA11〜A15を行い、ステップB17へ移行する。
従って、表示部4においては、例えば図13(b)に示すように、関係式Fのグラフ概形が表示された表示領域において指定領域が指定された表示状態となる。
When the drawing start key 37 is pressed and this process is started, the CPU 2 performs steps A11 to A15 as in the first drawing process, and proceeds to step B17.
Therefore, in the display unit 4, for example, as shown in FIG. 13B, a display state in which the designated area is designated in the display area in which the graph outline of the relational expression F is displayed is obtained.

次いでCPU2は、ステップB17へ移行すると、格子サイズ値変更率を指定する所定のユーザ操作を受け付け、指定された格子サイズ値変更率を格子サイズ値変更率53へ格納する。   Next, when proceeding to Step B <b> 17, the CPU 2 receives a predetermined user operation for designating the lattice size value change rate, and stores the designated lattice size value change rate in the lattice size value change rate 53.

この場合CPU2は、例えば図21に示すような、格子サイズ値変更率の指定入力を受け付けるための数値入力欄b2を有する変更率指定ウィンドウb1を表示部4に表示し、数値入力欄b2に入力された、例えば「0.15」といった数値を格子サイズ値変更率53へ格納する。   In this case, for example, as shown in FIG. 21, the CPU 2 displays a change rate designation window b1 having a numerical value input field b2 for accepting a designation input of the lattice size value change rate on the display unit 4, and inputs it to the numerical value input field b2. The numerical value “0.15”, for example, is stored in the lattice size value change rate 53.

そしてCPU2は、第1の描画処理と同様にステップA19〜A23を行う。即ち、格子サイズ値52に、ステップB17において指定された格子サイズ値変更率53を乗じた値が新たに格子サイズ値52へ格納され、この格子サイズ値52に基づいて指定領域が格子に分割され、分割されたこの指定領域に対して領域内描画処理が行われる。   And CPU2 performs step A19-A23 similarly to a 1st drawing process. That is, a value obtained by multiplying the lattice size value 52 by the lattice size value change rate 53 designated in step B17 is newly stored in the lattice size value 52, and the designated region is divided into lattices based on the lattice size value 52. The in-area drawing process is performed on the divided designated area.

かくして本処理によれば、例えば図22に示すように、格子z2が導入された表示領域の全体に亘って関係式Fを表すグラフの概形z1が描画された後、指定された指定領域b3に、格子サイズ値変更率を指定するユーザ操作に従った格子サイズ値に応じて、格子z6が導入され、より詳密なグラフ概形z5が描画されることとなる。   Thus, according to the present processing, as shown in FIG. 22, for example, after the outline z1 of the graph representing the relational expression F is drawn over the entire display area in which the lattice z2 is introduced, the designated area b3 designated. In addition, a grid z6 is introduced according to the grid size value according to the user operation for specifying the grid size value change rate, and a more detailed graph outline z5 is drawn.

かくして、本実施の形態のグラフ電卓1によれば、グラフ概形の描画単位である格子の目の大きさを変更する際の割合である格子サイズ値変更率を、ユーザの所望の値とすることができ、格子サイズ値をユーザの所望の値にすることができる。   Thus, according to the graphing calculator 1 of the present embodiment, the grid size value change rate, which is a ratio when changing the size of the grid mesh, which is a drawing unit of the graph outline, is set to a user's desired value. And the grid size value can be as desired by the user.

即ち、規定値よりもごく小さい格子サイズ値を設定することが可能であるから、指定領域をごく高い精度で再描画させたい場合にも、ユーザは再描画の操作を繰り返す必要がなく、従ってまた、結果的に描画の処理に費される総時間を徒に増大させない。   In other words, since it is possible to set a grid size value that is much smaller than the specified value, the user does not need to repeat the redrawing operation when the designated area is to be redrawn with very high accuracy. As a result, the total time spent on the drawing process is not increased.

また、これにより、表示されるグラフ概形の精度をユーザ自らに探らせるといった操作仕様が実現されるから、例えば、観測の精度の変化に応じた見栄えの変化の様子を観察するといった用途に供することも可能である。   This also realizes an operation specification that allows the user to find out the accuracy of the displayed graph outline. For example, it can be used for observing the appearance change according to the change in the observation accuracy. It is also possible.

なお、本実施の形態においては、ユーザ操作に応じて格子サイズ値変更率を設定するようにしたが、本発明はこれに限らず、ユーザ操作に応じて直接、格子サイズ値を設定するようにしてもよい。要は、格子サイズ値をユーザの操作に従って変更できればよい。   In this embodiment, the lattice size value change rate is set according to the user operation. However, the present invention is not limited to this, and the lattice size value is set directly according to the user operation. May be. In short, it is sufficient that the lattice size value can be changed according to the user's operation.

4.第3の実施の形態
本実施の形態のグラフ電卓1は、第1の実施の形態におけるグラフ電卓1と同様に、例えば、描画開始キー37が押下されると、まず表示領域の全体に亘って関係式Fを表すグラフの概形が描画され、次いで、所定の領域に、より詳密なグラフ概形が描画されるようになされている。
4). Third Embodiment Similar to the graph calculator 1 in the first embodiment, for example, when the drawing start key 37 is pressed, the graph calculator 1 of the present embodiment first extends over the entire display area. A graph outline representing the relational expression F is drawn, and then a more detailed graph outline is drawn in a predetermined area.

以下、本実施の形態におけるグラフ電卓1に特徴的な構成について詳述する。その際、上述した第1の実施の形態と同一の構成要素については同一の符号を付し、詳細な説明を省略する。   Hereinafter, a characteristic configuration of the graphing calculator 1 according to the present embodiment will be described in detail. In this case, the same components as those in the first embodiment described above are denoted by the same reference numerals, and detailed description thereof is omitted.

本実施の形態のグラフ電卓1は、RAM5として、図23に示すRAM5cを用いて構成される。同図に示すようにRAM5cは、第1の実施の形態におけるRAM5aと同様の関数式51、格子サイズ値52、格子サイズ値変更率53、第1の格子テーブル55及び第2の格子テーブル56を備えて構成される。   The graphing calculator 1 according to the present embodiment is configured using a RAM 5c shown in FIG. As shown in the figure, the RAM 5c has the same functional equation 51, lattice size value 52, lattice size value change rate 53, first lattice table 55, and second lattice table 56 as the RAM 5a in the first embodiment. It is prepared for.

また、本実施の形態のグラフ電卓1は、ROM6として、図24に示すROM6cを用いて構成される。同図に示すようにROM6cは、第1の実施の形態におけるROM6aと同様の領域内描画処理プログラム62及び概形対応表63の他、本実施の形態のグラフ描画処理である第3の描画処理を実現するための第3の描画処理プログラム61cを備えて構成される。   In addition, the graphing calculator 1 of the present embodiment is configured using a ROM 6c shown in FIG. As shown in the figure, the ROM 6c is a third drawing process which is a graph drawing process of the present embodiment, in addition to the in-area drawing process program 62 and the outline correspondence table 63 similar to the ROM 6a in the first embodiment. Is provided with a third drawing processing program 61c.

CPU2は、入力部3の描画開始キー37が押下されると、この第3の描画処理プログラム61cを実行することにより、第3の描画処理を行うようになされている。
この第3の描画処理は、関係式Fを表すグラフの概形を表示部4上に表示する第1の描画処理において、初回の領域内描画処理によりグラフ概形の描画がなされた各格子を次回以降の処理対象領域として領域内描画処理を行うようにしたものである。
以下、かかる第3の描画処理について、図25を用いて詳細に説明する。
When the drawing start key 37 of the input unit 3 is pressed, the CPU 2 executes the third drawing processing program 61c to perform the third drawing processing.
In the third drawing process, in each of the first drawing processes in which the graph outline representing the relational expression F is displayed on the display unit 4, each grid in which the graph outline is drawn by the first in-region drawing process is displayed. In-region drawing processing is performed as a processing target region from the next time onward.
Hereinafter, the third drawing process will be described in detail with reference to FIG.

描画開始キー37が押下され、本処理を開始すると、CPU2は、第1の描画処理と同様のステップA11及びA13を行うことにより、例えば図12に示すように、表示領域の全体に亘って関係式Fのグラフ概形を表示する。   When the drawing start key 37 is pressed and this process is started, the CPU 2 performs steps A11 and A13 similar to those in the first drawing process, for example, as shown in FIG. The graph outline of Formula F is displayed.

次いでCPU2は、RAM5cの格子サイズ値変更率53を格子サイズ値52に乗じることにより、格子サイズ値52の値をより小さな値に更新する(ステップC15)。   Next, the CPU 2 multiplies the lattice size value 52 by the lattice size value change rate 53 of the RAM 5c to update the lattice size value 52 to a smaller value (step C15).

次いでCPU2は、格子に分割された表示領域の中からまず1つの格子を着目して採り挙げ、当該格子(以下、着目格子と呼ぶ。)内にグラフ図形が有るか否かを判別する(ステップC17)。   Next, the CPU 2 pays attention to one grid from among the display areas divided into grids, and determines whether or not there is a graph figure in the grid (hereinafter referred to as the target grid) (step). C17).

この場合CPU2は、具体的には、例えば図17に示す第1の格子テーブル55を参照することにより、例えば格子データa3に対応する1つの格子を着目格子とし、また、当該格子データa3の図形有無a10により着目格子内にグラフ図形が有るか否かを判別する。   In this case, the CPU 2 specifically refers to, for example, the first grid table 55 shown in FIG. 17, for example, sets one grid corresponding to the grid data a3 as the grid of interest, and the figure of the grid data a3. Whether or not there is a graph figure in the grid of interest is determined based on the presence / absence a10.

ステップC17において、着目格子内にグラフ図形がある場合(ステップC17:Yes)、CPU2はまず、更新された格子サイズ値52に基づいて、着目格子を更なる格子(小格子)に分割する(ステップC19)。この場合CPU2は、具体的には、この着目格子に対応する格子テーブルである第2の格子テーブル56をRAM5cに作成する。   If there is a graph figure in the target grid in step C17 (step C17: Yes), the CPU 2 first divides the target grid into further grids (small grids) based on the updated grid size value 52 (step S17). C19). In this case, specifically, the CPU 2 creates a second grid table 56 that is a grid table corresponding to the grid of interest in the RAM 5c.

従って例えば、図26に示すような、格子データa3(図17)に対応し格子内にグラフ図形を有する格子r11が着目格子である場合、例えば図27に示す第2の格子テーブル56がRAM5cに作成される。   Therefore, for example, when the grid r11 corresponding to the grid data a3 (FIG. 17) and having a graph figure in the grid is the grid of interest as shown in FIG. 26, for example, the second grid table 56 shown in FIG. 27 is stored in the RAM 5c. Created.

即ちこの場合、同図の第2の格子テーブル56における各格子データは、図26の各小格子r41、r42、r43及びr44にそれぞれ対応し、各小格子の最左上点v41、v42、v43及びv44の座標を保有することにより、これら各小格子をCPU2が一意に特定し得るようになされている。   That is, in this case, each grid data in the second grid table 56 of FIG. 16 corresponds to each of the small grids r41, r42, r43 and r44 of FIG. 26, and the upper leftmost points v41, v42, v43 and By holding v44 coordinates, the CPU 2 can uniquely identify each of these small lattices.

次いでCPU2は、小格子に分割されたこの着目格子に対して領域内描画処理を行いステップC23へ移行する(ステップC21)。即ち、着目格子を処理対象領域として領域内描画処理を行う。   Next, the CPU 2 performs in-region drawing processing on the target lattice divided into small lattices, and proceeds to step C23 (step C21). That is, in-region drawing processing is performed using the target grid as a processing target region.

従って例えば、着目格子r11(図26)の各小格子r41、r42、r43及びr44に対し、概形対応表63に基づくグラフ概形がそれぞれ描画され、かくして図28に示すように、より詳密なグラフ概形が着目格子r11に描画されることとなる。   Therefore, for example, a graph outline based on the outline correspondence table 63 is drawn for each of the small grids r41, r42, r43, and r44 of the grid of interest r11 (FIG. 26), and thus more detailed as shown in FIG. A rough graph is drawn on the target grid r11.

一方、ステップC17において格子内にグラフ図形がない場合(ステップC17:No)、CPU2は、ステップC19及びC21を行うことなくステップC23へ移行する。即ち、より詳密なグラフ概形を描画しても着目格子にグラフ図形が描画されないと見込まれる場合、かかる描画の処理を行わず、これにより無駄な計算処理を排している。   On the other hand, when there is no graph figure in the grid in step C17 (step C17: No), the CPU 2 proceeds to step C23 without performing steps C19 and C21. That is, even if a more detailed graph outline is drawn, if it is expected that a graph figure will not be drawn on the grid of interest, such drawing processing is not performed, thereby eliminating unnecessary calculation processing.

ステップC23へ移行すると、CPU2は、第1の格子テーブル55に基づいて、着目格子が表示領域における最後の格子であるか否かを判別し(ステップC23)、着目格子が最後の格子でない場合(ステップC23:No)、表示領域中の次の格子を採り挙げ、これを着目格子としてステップC17へ戻る(ステップC25)。   When the process proceeds to step C23, the CPU 2 determines whether or not the target grid is the last grid in the display area based on the first grid table 55 (step C23), and when the target grid is not the last grid (step C23). Step C23: No), the next grid in the display area is picked up, and this is used as the grid of interest and the process returns to Step C17 (Step C25).

一方、ステップC23において着目格子が最後の格子である場合(ステップC23:Yes)、CPU2は本処理を終了する。
即ちCPU2は、グラフ図形がある着目格子に対してのみ、より詳密なグラフ概形を描画するステップC17〜C25の処理を繰り返すこととなる。
On the other hand, if the target grid is the last grid in step C23 (step C23: Yes), the CPU 2 ends the process.
That is, the CPU 2 repeats the processes of steps C17 to C25 for drawing a more detailed graph outline only for a grid of interest with a graph figure.

かくして本処理によれば、表示領域中の、第1の格子テーブル55に基づく全ての格子のうちグラフ図形がある格子ばかりに対してのみ、より詳密なグラフ概形が描画されることとなる。   Thus, according to the present process, a more detailed graph outline is drawn only for the grid having the graph figure among all the grids based on the first grid table 55 in the display area. .

従って、本実施の形態のグラフ電卓1によれば、より高い精度で再描画する必要のある箇所をユーザの手で指定する必要がない。また、必要と判別された箇所のみをより高い精度で再描画するから、描画の処理に費される総時間を徒に増大させることがない。   Therefore, according to the graphing calculator 1 of the present embodiment, it is not necessary to specify a portion that needs to be redrawn with higher accuracy by the user's hand. In addition, since only the part determined to be necessary is redrawn with higher accuracy, the total time spent for the drawing process is not increased easily.

5.第4の実施の形態
本実施の形態のグラフ電卓1は、第1の実施の形態におけるグラフ電卓1と同様に、例えば、描画開始キー37が押下されると、まず表示領域の全体に亘って関係式Fを表すグラフの概形が描画され、次いで、所定の領域に、より詳密なグラフ概形が描画されるようになされている。
5. Fourth Embodiment Similar to the graph calculator 1 in the first embodiment, for example, when the drawing start key 37 is pressed, the graph calculator 1 of the present embodiment first covers the entire display area. A graph outline representing the relational expression F is drawn, and then a more detailed graph outline is drawn in a predetermined area.

以下、本実施の形態におけるグラフ電卓1に特徴的な構成について詳述する。その際、上述した第1の実施の形態と同一の構成要素については同一の符号を付し、詳細な説明を省略する。   Hereinafter, a characteristic configuration of the graphing calculator 1 according to the present embodiment will be described in detail. In this case, the same components as those in the first embodiment described above are denoted by the same reference numerals, and detailed description thereof is omitted.

本実施の形態のグラフ電卓1は、RAM5として、図29に示すRAM5dを用いて構成される。同図に示すようにRAM5dは、第1の実施の形態におけるRAM5aと同様の関数式51、格子サイズ値52、格子サイズ値変更率53及び第1の格子テーブル55を備えて構成される。   The graphing calculator 1 of the present embodiment is configured using a RAM 5d shown in FIG. As shown in the figure, the RAM 5d includes a functional equation 51, a lattice size value 52, a lattice size value change rate 53, and a first lattice table 55 similar to those of the RAM 5a in the first embodiment.

また、本実施の形態のグラフ電卓1は、ROM6として、図30に示すROM6dを用いて構成される。同図に示すようにROM6dは、第1の実施の形態におけるROM6aと同様の領域内描画処理プログラム62及び概形対応表63の他、本実施の形態のグラフ描画処理である第4の描画処理を実現するための第4の描画処理プログラム61dを備えて構成される。   In addition, the graphing calculator 1 according to the present embodiment is configured by using a ROM 6d shown in FIG. As shown in the figure, the ROM 6d is a fourth drawing process which is a graph drawing process of the present embodiment, in addition to the in-area drawing process program 62 and the outline correspondence table 63 similar to the ROM 6a in the first embodiment. Is provided with a fourth drawing processing program 61d.

CPU2は、入力部3の描画開始キー37が押下されると、この第4の描画処理プログラム61dを実行することにより、第4の描画処理を行うようになされている。
この第4の描画処理は、関係式Fを表すグラフの概形を表示部4上に表示する第1の描画処理において、処理対象領域の格子の大きさを下げながら領域内描画処理を繰り返し行うようにしたものである。
以下、かかる第4の描画処理について、図31を用いて詳細に説明する。
When the drawing start key 37 of the input unit 3 is pressed, the CPU 2 executes the fourth drawing processing program 61d to perform the fourth drawing processing.
In the fourth drawing process, in the first drawing process in which the outline of the graph representing the relational expression F is displayed on the display unit 4, the in-area drawing process is repeatedly performed while reducing the size of the grid of the processing target area. It is what I did.
Hereinafter, the fourth drawing process will be described in detail with reference to FIG.

描画開始キー37が押下され、本処理を開始すると、第1の描画処理の場合と同様に、CPU2はまず、格子サイズ値52に基づいて表示領域を格子に分割する(ステップD11)。そしてCPU2は、格子に分割されたこの表示領域に対して領域内描画処理を行う(ステップD13)。
かくして、例えば図12に示すように、表示領域の全体に亘って関係式Fのグラフ概形が表示されることとなる。
When the drawing start key 37 is pressed and this process is started, the CPU 2 first divides the display area into grids based on the grid size value 52 as in the case of the first drawing process (step D11). Then, the CPU 2 performs in-region drawing processing on this display region divided into grids (step D13).
Thus, for example, as shown in FIG. 12, the graph outline of the relational expression F is displayed over the entire display area.

次いでCPU2は、グラフ概形の描画を確定する旨の、即ち、更なる詳密表示を必要としない旨の、所定のユーザ操作(以下、描画確定操作と呼ぶ。)がなされたか否かを判別する(ステップD15)。   Next, the CPU 2 determines whether or not a predetermined user operation (hereinafter referred to as a drawing confirmation operation) for confirming the drawing of the graph outline, that is, requiring no further detailed display, has been performed. (Step D15).

この場合例えば、CPU2はまず、所定のダイアログ(図示せず。)を表示部4に表示してグラフ概形の描画を確定するか否かをユーザに問い、かかる問いへの肯定的応答をもって描画確定操作がなされたと判別するようにすればよい。   In this case, for example, the CPU 2 first displays a predetermined dialog (not shown) on the display unit 4 to ask the user whether or not to confirm the drawing of the graph outline, and draws with a positive response to the question. What is necessary is just to discriminate | determine that confirmation operation was made.

又は、本処理の実行中になされた、例えばキャンセルキー33への押下といった所定のキー操作の検出に応じて所定の検出フラグ(図示せず。)を設定する所定の割込み操作(図示せず。)を行うようにし、本ステップD15において、その検出フラグが設定されていることをもって描画確定操作がなされたと判別するようにしてもよい。   Alternatively, a predetermined interrupt operation (not shown) that sets a predetermined detection flag (not shown) in response to detection of a predetermined key operation such as pressing of the cancel key 33 performed during the execution of this process. In step D15, it may be determined that the drawing confirmation operation has been performed when the detection flag is set.

描画確定操作がなされたと判別されなかった場合(ステップD15:No)、CPU2は、RAM5dの格子サイズ値変更率53を格子サイズ値52に乗じることにより格子サイズ値52の値をより小さな値に更新して、ステップD11へ戻る(ステップD17)。
一方、描画確定操作がなされたと判別される場合(ステップD15:Yes)、CPU2は本処理を終了する。
If it is not determined that the drawing confirmation operation has been performed (step D15: No), the CPU 2 multiplies the lattice size value 52 by the lattice size value change rate 53 of the RAM 5d to update the lattice size value 52 to a smaller value. Then, the process returns to step D11 (step D17).
On the other hand, when it is determined that a drawing confirmation operation has been performed (step D15: Yes), the CPU 2 ends the process.

従ってCPU2は、この更新された格子サイズ値52に基づいて表示領域を格子に分割し、表示領域に対して領域内描画処理を行い、格子サイズ値52の値をより小さな値に更新するステップD11以降を、描画確定操作がなされるまで繰り返し行うこととなる。   Accordingly, the CPU 2 divides the display area into grids based on the updated grid size value 52, performs intra-area drawing processing on the display area, and updates the grid size value 52 to a smaller value D11 The subsequent steps are repeated until a drawing confirmation operation is performed.

かくして本処理によれば、段階的に描画の精度を上げつつ表示領域に対して領域内描画処理を繰り返し行い、ユーザの意に適った時点で描画が終了することとなる。   Thus, according to the present process, the in-area drawing process is repeatedly performed on the display area while gradually improving the drawing accuracy, and the drawing ends at a point in time that suits the user's will.

従って、本実施の形態のグラフ電卓1によれば、ユーザは、意に適う精度でグラフ概形が描画されるまで、再描画の操作を自ら繰り返し行う必要がないから、容易に所望の正確さのグラフ概形を得ることができる。   Therefore, according to the graphing calculator 1 of the present embodiment, the user does not need to repeat the redrawing operation himself until the rough graph is drawn with an appropriate accuracy, so that the desired accuracy can be easily obtained. The graph outline can be obtained.

6.他の実施の形態
なお、上述した各実施の形態においては、簡単のため、表示領域や指定領域を正方形の領域でなる格子に分割することとしたが、本発明はこれに限らず、例えば正三角形の領域でなる格子によって表示領域や指定領域を一様に分割するようにしてもよい。
要は、格子内の所定の複数の代表点における関数値といった、格子内における関数fの振舞いに応じて、当該格子を分類し、類型に当てはめるような処理により格子内のグラフ概形を特定することができればよい。
6). Other Embodiments In each of the above-described embodiments, for the sake of simplicity, the display area and the designated area are divided into grids made up of square areas. However, the present invention is not limited to this. The display area and the designated area may be uniformly divided by a grid of triangular areas.
In short, according to the behavior of the function f in the lattice, such as function values at a plurality of predetermined representative points in the lattice, the lattice is classified, and the graph outline in the lattice is specified by processing that is applied to the type. I can do it.

本発明を適用した実施の形態のグラフ電卓の概観を示す略線図である。It is an approximate line figure showing an outline of a graphing calculator of an embodiment to which the present invention is applied. グラフ電卓の回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of a graph calculator. グラフ電卓の表示部を示す図である。It is a figure which shows the display part of a graphing calculator. 第1及び第2の実施の形態におけるRAMの構成を示す図である。It is a figure which shows the structure of RAM in 1st and 2nd embodiment. 第1の実施の形態におけるROMの構成を示す図である。It is a figure which shows the structure of ROM in 1st Embodiment. 概形対応表の構成を示す図である。It is a figure which shows the structure of a rough form correspondence table. 概形対応表の説明に供する図である。It is a figure with which it uses for description of a rough form correspondence table. 第1の描画処理の処理フローを示す図である。It is a figure which shows the processing flow of a 1st drawing process. 領域内描画処理の処理フローを示す図である。It is a figure which shows the processing flow of an area | region drawing process. 第1の格子テーブルを示す図である。It is a figure which shows a 1st grating | lattice table. 表示領域の分割の説明に供する図である。It is a figure where it uses for description of the division | segmentation of a display area. 表示領域への描画の説明に供する図である。It is a figure where it uses for description of drawing to a display area. 指定領域を指定する操作の説明に供する図である。It is a figure where it uses for description of operation which designates a designation | designated area | region. 指定領域に係る第2の格子テーブルを示す図である。It is a figure which shows the 2nd grid | lattice table which concerns on a designated area | region. 指定領域の分割の説明に供する図である。It is a figure where it uses for description of the division | segmentation of a designated area. 指定領域への描画の説明に供する図である。It is a figure where it uses for description of drawing to a designated area. 格子内の図形有無の説明に供する図である。It is a figure where it uses for description of the presence or absence of the figure in a lattice. 処理対象領域への描画の説明に供する図である。It is a figure where it uses for description of drawing to a process target area. 第2の実施の形態におけるROMの構成を示す図である。It is a figure which shows the structure of ROM in 2nd Embodiment. 第2の描画処理の処理フローを示す図である。It is a figure which shows the processing flow of a 2nd drawing process. 格子サイズ値変更率に係る変更率指定ウィンドウを示す図である。It is a figure which shows the change rate designation | designated window which concerns on a lattice size value change rate. 指定領域への描画の説明に供する図である。It is a figure where it uses for description of drawing to a designated area. 第3の実施の形態におけるRAMの構成を示す図である。It is a figure which shows the structure of RAM in 3rd Embodiment. 第3の実施の形態におけるROMの構成を示す図である。It is a figure which shows the structure of ROM in 3rd Embodiment. 第3の描画処理の処理フローを示す図である。It is a figure which shows the processing flow of a 3rd drawing process. 着目格子の分割の説明に供する図である。It is a figure where it uses for description of the division | segmentation of the attention grid | lattice. 着目格子に係る第2の格子テーブルを示す図である。It is a figure which shows the 2nd grating | lattice table which concerns on the attention grating | lattice. 着目格子への描画の説明に供する図である。It is a figure where it uses for description of drawing to the attention grid. 第4の実施の形態におけるRAMの構成を示す図である。It is a figure which shows the structure of RAM in 4th Embodiment. 第4の実施の形態におけるROMの構成を示す図である。It is a figure which shows the structure of ROM in 4th Embodiment. 第4の描画処理の処理フローを示す図である。It is a figure which shows the processing flow of a 4th drawing process.

符号の説明Explanation of symbols

1 グラフ電卓
2 CPU
4 表示部
51 関数式
52 格子サイズ値
a8,b3 指定領域
r11,r12 格子
r41,r42,r43,r44 小格子
1 Graphing calculator 2 CPU
4 display unit 51 function formula 52 grid size values a8, b3 designated areas r11, r12 grids r41, r42, r43, r44 small grids

Claims (6)

陰関数表現の関係式を記憶する陰関数記憶手段と、
表示領域格子に分割して各格子の4頂点及び中心点における前記陰関数表現の関係式の正負に応じたグラフ概形を各格子内描画させるように制御する描画制御手段と、
この描画制御手段により描画されたグラフ概形を含む前記表示領域中の部分領域を指定する領域指定手段と、
この領域指定手段により指定された部分領域を、前記各格子より小さな細密格子に分割して各細密格子の4頂点及び中心点における前記陰関数表現の関係式の正負に応じたグラフ概形を各細密格子内描画させるように制御する細密描画制御手段と、
を備えることを特徴とする図形描画制御装置。
Implicit function storage means for storing the relational expression of the implicit function expression ;
A drawing control means for controlling the graph so as to draw a graph outline corresponding to the positive / negative of the relational expression of the implicit function expression at the four vertices and the center point of each grid by dividing the display area into grids;
Area designating means for designating a partial area in the display area including the graph outline drawn by the drawing control means;
The designated partial area by the area specifying means, the graph approximate shape corresponding to the positive and negative relationship of the implicit representation of the four vertexes and the center point of the division to the fine grid to the fine grid a small than the lattice and fine drawing control means for controlling so as to draw in each fine grid,
A graphic drawing control device comprising:
前記領域指定手段は、ユーザ操作に従って前記部分領域を指定する操作指定手段を有することを特徴とする請求項1に記載の図形描画制御装置。   The graphic drawing control apparatus according to claim 1, wherein the area specifying unit includes an operation specifying unit that specifies the partial area in accordance with a user operation. 前記細密描画制御手段は、前記細密格子の大きさをユーザ操作に従って設定する格子サイズ設定手段を有することを特徴とする請求項1又は2に記載の図形描画制御装置。   The graphic drawing control apparatus according to claim 1, wherein the fine drawing control unit includes a grid size setting unit that sets a size of the fine grid according to a user operation. 前記描画制御手段は、
4頂点における前記陰関数表現の関係式が全て正または全て負となる格子の格子内にはグラフ概形を描画せず、
前記領域指定手段は、
前記描画制御手段により分割された各格子についてグラフ概形の存否を判別する判別手段と、
この判別手段によりグラフ概形が存在すると判別された格子の部分を部分領域として指定する図形有格子部分指定手段と、
を有することを特徴とする請求項1に記載の図形描画制御装置。
The drawing control means includes
The graph outline is not drawn in the lattice of the lattice in which the relational expressions of the implicit function expressions at the four vertices are all positive or all negative.
The area specifying means includes:
A discriminating unit for discriminating whether or not a graph outline exists for each grid divided by the drawing control unit;
A figured grid portion specifying means for specifying a portion of the grid determined to have a graph outline by the determining means as a partial region;
The graphic drawing control apparatus according to claim 1, comprising:
前記細密描画制御手段により描画されたグラフ概形を含む前記表示領域中の部分領域を指定する部分領域指定手段と、
この部分領域指定手段により指定された部分領域を、前記各細密格子より小さな微細格子に分割して各微細格子の4頂点及び中心点における前記陰関数表現の関係式の正負に応じたグラフ概形各微細格子内に描画させるように制御する微細描画制御手段と、
を更に備えることを特徴とする請求項1に記載の図形描画制御装置。
Partial area designating means for designating a partial area in the display area including the graph outline drawn by the fine drawing control means;
The designated partial area by the partial region specifying unit, the graph approximate said corresponding positive and negative relationship of the implicit representation of the four vertexes and the center points of the fine grid from small individual fine grid is divided into fine-mesh Fine drawing control means for controlling the shape to be drawn in each fine grid ;
The graphic drawing control apparatus according to claim 1, further comprising:
コンピュータに、
陰関数表現の関係式を記憶する陰関数記憶機能と、
表示領域格子に分割して各格子の4頂点及び中心点における前記陰関数表現の関係式の正負に応じたグラフ概形を各格子内描画させるように制御する描画制御機能と、
この描画制御機能により描画されたグラフ概形を含む前記表示領域中の部分領域を指定する領域指定機能と、
この領域指定機能により指定された部分領域を、前記各格子より小さな細密格子に分割して各細密格子の4頂点及び中心点における前記陰関数表現の関係式の正負に応じたグラフ概形を各細密格子内描画させるように制御する細密描画制御機能と、
を実現させるためのプログラム。
On the computer,
An implicit function storage function for storing relational expressions of implicit function expressions ;
A drawing control function for controlling the drawing so that a graph outline corresponding to the positive / negative of the relational expression of the implicit function expression at the four vertices and the center point of each grid is drawn in each grid by dividing the display area into grids;
An area designating function for designating a partial area in the display area including the graph outline drawn by the drawing control function;
The subregion designated by the region designation function, the graph approximate shape corresponding to the positive and negative relationship of the implicit representation of the four vertexes and the center point of the division to the fine grid to the fine grid a small than the lattice and fine drawing control function of controlling so as to draw in each fine grid,
A program to realize
JP2004199385A 2004-07-06 2004-07-06 Graphic drawing control apparatus and program Expired - Fee Related JP4337659B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004199385A JP4337659B2 (en) 2004-07-06 2004-07-06 Graphic drawing control apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004199385A JP4337659B2 (en) 2004-07-06 2004-07-06 Graphic drawing control apparatus and program

Publications (2)

Publication Number Publication Date
JP2006023828A JP2006023828A (en) 2006-01-26
JP4337659B2 true JP4337659B2 (en) 2009-09-30

Family

ID=35797082

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004199385A Expired - Fee Related JP4337659B2 (en) 2004-07-06 2004-07-06 Graphic drawing control apparatus and program

Country Status (1)

Country Link
JP (1) JP4337659B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8558358B2 (en) 2011-03-28 2013-10-15 Shinko Electric Industries Co., Ltd. Lead frame

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116302573B (en) * 2023-05-23 2023-08-18 北京云道智造科技有限公司 Core allocation method and device in parallel computing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8558358B2 (en) 2011-03-28 2013-10-15 Shinko Electric Industries Co., Ltd. Lead frame

Also Published As

Publication number Publication date
JP2006023828A (en) 2006-01-26

Similar Documents

Publication Publication Date Title
US7233333B2 (en) Collapsible (folding) graph
JP2959960B2 (en) Information processing device with multiple graph display function
JPH0814822B2 (en) Command input device
EP2237230B1 (en) Graph display control apparatus and graph display control method
JP5029721B2 (en) Graph display device and graph display control program
US20070038955A1 (en) Pen-based computer system having first and second windows together with second window locator within first window
EP4542495A1 (en) Electronic device, display control method, and program
JPS59149541A (en) Setting system of information on processing conditions
JP4337659B2 (en) Graphic drawing control apparatus and program
CN110399060A (en) Electronic device, information processing method, and storage medium
JPH07152917A (en) Graph display device
JP6992795B2 (en) Chart creation program and information processing device with chart creation function
USRE46215E1 (en) Computing machine with an inequality computation function
JPH09245188A (en) Graphic display method and graphic display device
JP5459015B2 (en) Graph display device and program
JP7609310B2 (en) Graphic display device, graphic display method, and program
JP2004206577A (en) Graph display control device and program
JP5392343B2 (en) Electronic device and program
US20010007094A1 (en) Graphic display processing apparatus and its processing method
JPWO2012001781A1 (en) Drawing apparatus and drawing program
JP2004206545A (en) Electronic devices and programs
JPH06243217A (en) Graphic creation device
JPH0660279A (en) Crt operation device
JPH06289995A (en) Full screen editor device
JPH0340184A (en) Graphic plotter

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070424

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090202

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090210

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090413

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090609

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090622

R150 Certificate of patent or registration of utility model

Ref document number: 4337659

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120710

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120710

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130710

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees