[go: up one dir, main page]

CN109903357B - Curve equation drawing method and device, terminal equipment and readable storage medium - Google Patents

Curve equation drawing method and device, terminal equipment and readable storage medium Download PDF

Info

Publication number
CN109903357B
CN109903357B CN201910165629.4A CN201910165629A CN109903357B CN 109903357 B CN109903357 B CN 109903357B CN 201910165629 A CN201910165629 A CN 201910165629A CN 109903357 B CN109903357 B CN 109903357B
Authority
CN
China
Prior art keywords
surface equation
equation
preset
string
position information
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
CN201910165629.4A
Other languages
Chinese (zh)
Other versions
CN109903357A (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.)
Wuhan Polytechnic University
Original Assignee
Wuhan Polytechnic University
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 Wuhan Polytechnic University filed Critical Wuhan Polytechnic University
Priority to CN201910165629.4A priority Critical patent/CN109903357B/en
Publication of CN109903357A publication Critical patent/CN109903357A/en
Application granted granted Critical
Publication of CN109903357B publication Critical patent/CN109903357B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Generation (AREA)

Abstract

The invention discloses a curved surface equation drawing method, a curved surface equation drawing device, terminal equipment and a readable storage medium. Firstly, receiving a curved surface equation drawing instruction input by a user, extracting curved surface equation data from the drawing instruction, converting the curved surface equation data into character strings, acquiring position information of preset characters, acquiring position information of target numerical values by changing the position information of the preset characters, and finally, establishing a parameter equation according to the target numerical values, and drawing a curved surface according to the parameter equation. The invention designs a curved surface equation drawing device, which can draw a corresponding curved surface graph only by providing a curved surface equation for the device, improves the perception of a user on the curved surface graph, and improves the learning efficiency of the user on higher mathematics.

Description

曲面方程绘制方法、装置、终端设备及可读存储介质Surface equation drawing method, device, terminal equipment and readable storage medium

技术领域Technical Field

本发明涉及数学计算技术领域,尤其涉及一种曲面方程绘制方法、装置、终端设备及可读存储介质。The present invention relates to the field of mathematical computing technology, and in particular to a surface equation drawing method, device, terminal equipment and readable storage medium.

背景技术Background Art

随着数学算法的发展,数学算法在越来越多的领域有着举足轻重的地位。曲面绘图是学好多重积分算法的前提和基础,所以能够绘制一般的曲面图形非常重要,曲面绘图可以提高人们对曲面图形的感性认识。With the development of mathematical algorithms, mathematical algorithms play an important role in more and more fields. Surface drawing is the premise and foundation for learning multiple integral algorithms, so it is very important to be able to draw general surface graphics. Surface drawing can improve people's perceptual understanding of surface graphics.

目前还没有能够自动绘制曲面图形的装置,很多全面方程的曲面图形都无法直观看到,用户在学习多重积分算法时对曲面的感性认识不够深刻,对学习多重积分算法的进度也会大大降低。Currently, there is no device that can automatically draw surface graphics. The surface graphics of many comprehensive equations cannot be seen intuitively. When learning multiple integral algorithms, users do not have a deep enough intuitive understanding of the surface, and the progress of learning multiple integral algorithms will be greatly reduced.

上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art.

发明内容Summary of the invention

本发明的主要目的在于提供了一种曲面方程绘制方法、装置、终端设备及可读存储介质,旨在解决现有技术无法绘制曲面方程并检验绘制者的绘图效果的技术问题。The main purpose of the present invention is to provide a method, device, terminal device and readable storage medium for drawing surface equations, aiming to solve the technical problem that the prior art cannot draw surface equations and verify the drawing effect of the drawer.

为实现上述目的,本发明提供了一种曲面方程绘制方法,所述方法包括以下步骤:To achieve the above object, the present invention provides a method for drawing a surface equation, the method comprising the following steps:

在接收到用户输入的曲面方程绘制指令时,从所述绘制指令中提取曲面方程数据;When receiving a surface equation drawing instruction input by a user, extracting surface equation data from the drawing instruction;

将所述曲面方程数据转化为字符串,并从所述字符串中提取目标数值;Convert the surface equation data into a character string, and extract a target value from the character string;

根据所述目标数值建立参数方程,并根据所述参数方程绘制曲面。A parametric equation is established according to the target value, and a surface is drawn according to the parametric equation.

优选地,所述将所述曲面方程数据转化为字符串,并从所述字符串中提取目标数值之前,所述曲面方程绘制方法还包括:Preferably, before converting the surface equation data into a character string and extracting the target value from the character string, the surface equation drawing method further includes:

将预设关系对应表存入预设存储区域,所述预设关系对应表包括曲面方程数据与字符串之间的对应关系;Storing a preset relationship correspondence table in a preset storage area, wherein the preset relationship correspondence table includes a correspondence between surface equation data and character strings;

所述将所述曲面方程数据转化为字符串,并从所述字符串中提取目标数值,具体包括:The converting the surface equation data into a character string and extracting a target value from the character string specifically includes:

根据所述预设关系对应表将所述曲面方程数据转化为字符串,并从所述字符串中提取目标数值。The surface equation data is converted into a character string according to the preset relationship correspondence table, and a target value is extracted from the character string.

优选地,所述根据所述预设关系对应表将所述曲面方程数据转化为字符串,并从所述字符串中提取目标数值,具体包括:Preferably, converting the surface equation data into a character string according to the preset relationship correspondence table, and extracting the target value from the character string specifically includes:

根据所述字符串获取所述预设字符在所述字符串中的位置信息;Acquire the position information of the preset character in the character string according to the character string;

通过所述位置信息提取所述预设字符对应的数值字符串;Extracting the numerical string corresponding to the preset character through the position information;

通过所述预设程序获取新位置信息,并提取所述新位置信息的数值字符串;Acquire new location information through the preset program, and extract the numerical string of the new location information;

从所述新位置信息对应的数值字符串中提取所述目标数值。The target value is extracted from the value character string corresponding to the new position information.

优选地,所述通过所述预设程序获取新位置信息,并提取所述新位置信息的数值字符串之前,所述曲面方程绘制方法包括:Preferably, before obtaining the new position information through the preset program and extracting the numerical string of the new position information, the surface equation drawing method includes:

将预设程序存入预设存储区域中,所述预设程序通过改变所述位置信息获取新位置信息;storing a preset program in a preset storage area, wherein the preset program obtains new position information by changing the position information;

所述通过所述预设程序获取新位置信息,并提取所述新位置信息的数值字符串,具体包括:The obtaining of new location information through the preset program and extracting a numerical string of the new location information specifically includes:

通过所述预设程序改变所述位置信息获取新位置信息,并提取所述新位置信息的数值字符串。The position information is changed through the preset program to obtain new position information, and a numerical string of the new position information is extracted.

优选地,所述预设关系对应表还包括:字符串与数值之间的对应关系;Preferably, the preset relationship correspondence table further includes: a correspondence between character strings and numerical values;

所述从所述新位置信息对应的数值字符串中提取所述目标数值,具体包括:The step of extracting the target value from the numerical character string corresponding to the new position information specifically includes:

根据所述预设对应关系表,从所述新位置信息对应的数值字符串中提取目标字符串,并将所述目标字符串转化为所述目标数值。According to the preset corresponding relationship table, a target character string is extracted from the numerical character string corresponding to the new position information, and the target character string is converted into the target numerical value.

优选地,所述在接收到用户输入的曲面方程绘制指令时,从所述绘制指令中提取曲面方程数据之前,曲面方程绘制方法包括:Preferably, when receiving a surface equation drawing instruction input by a user, before extracting the surface equation data from the drawing instruction, the surface equation drawing method includes:

将预设转化程序存入预设存储区域,所述预设转化程序可以将所述曲面方程转化为曲面方程数据;storing a preset conversion program in a preset storage area, wherein the preset conversion program can convert the surface equation into surface equation data;

所述在接收到用户输入的曲面方程绘制指令时,从所述绘制指令中提取曲面方程数据,具体包括:When receiving the surface equation drawing instruction input by the user, extracting the surface equation data from the drawing instruction specifically includes:

提取接收到的用户输入的所述曲面方程指令中的曲面方程;Extracting the surface equation in the surface equation instruction received from the user;

根据所述预设转化程序将所述曲面方程转化为曲面方程数据。The surface equation is converted into surface equation data according to the preset conversion procedure.

优选地,所述根据所述目标数值建立参数方程,并根据所述参数方程绘制曲面,具体包括:Preferably, establishing a parametric equation according to the target value and drawing a surface according to the parametric equation specifically includes:

根据所述目标数值建立关于坐标系的参数方程;Establishing a parametric equation about a coordinate system according to the target value;

将所述参数方程转化成曲面绘制指令,根据所述曲面绘制指令绘制曲面。The parameter equation is converted into a surface drawing instruction, and the surface is drawn according to the surface drawing instruction.

此外,为实现上述目的,本发明还提出一种曲面方程绘制装置,所述装置包括:In addition, to achieve the above object, the present invention also provides a surface equation drawing device, the device comprising:

获取模块,用于在接收到用户输入的曲面方程绘制指令时,从所述绘制指令中提取曲面方程数据;An acquisition module, configured to extract surface equation data from a drawing instruction input by a user when receiving the surface equation drawing instruction;

计算模块,用于将所述曲面方程数据转化为字符串,并从所述字符串中提取目标数值;A calculation module, used for converting the surface equation data into a character string and extracting a target value from the character string;

绘制模块,用于根据所述目标数值建立参数方程,并根据所述参数方程绘制曲面。A drawing module is used to establish a parametric equation according to the target value and draw a surface according to the parametric equation.

此外,为实现上述目的,本发明还提出一种终端设备,所述终端设备包括:存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的曲面方程绘制程序,所述曲面方程绘制程序配置为实现如上文所述的曲面方程绘制方法的步骤。In addition, to achieve the above-mentioned purpose, the present invention also proposes a terminal device, which includes: a memory, a processor, and a surface equation drawing program stored in the memory and runnable on the processor, and the surface equation drawing program is configured to implement the steps of the surface equation drawing method described above.

此外,为实现上述目的,本发明还提出一种可读存储介质,所述可读存储介质为计算机可读存储介质,所述计算机可读存储介质上存储有曲面方程绘制程序,所述曲面方程绘制程序被处理器执行时实现所述曲面方程绘制方法的步骤。In addition, to achieve the above-mentioned purpose, the present invention also proposes a readable storage medium, which is a computer-readable storage medium, and a surface equation drawing program is stored on the computer-readable storage medium. When the surface equation drawing program is executed by the processor, the steps of the surface equation drawing method are implemented.

本发明公开了一种曲面方程绘制方法、装置、终端设备及可读存储介质。本发明首先接收用户输入的曲面方程绘制指令,从所述绘制指令中提取曲面方程数据,然后将所述曲面方程数据转化为字符串,获取预设字符的位置信息,并通过改变所述预设字符的位置信息获取目标数值的位置信息,最后根据所述目标数值建立参数方程,根据所述参数方程绘制曲面。本发明设计了一种曲面方程绘图装置,只要给该装置提供一个曲面方程,它就可以绘制出对应的曲面图形,提高了用户对曲面图形的感性认识,同时也提高了用户对高等数学的学习效率。The present invention discloses a surface equation drawing method, device, terminal device and readable storage medium. The present invention first receives a surface equation drawing instruction input by a user, extracts surface equation data from the drawing instruction, then converts the surface equation data into a character string, obtains the position information of a preset character, and obtains the position information of a target value by changing the position information of the preset character, and finally establishes a parametric equation according to the target value, and draws a surface according to the parametric equation. The present invention designs a surface equation drawing device, which can draw the corresponding surface graphics as long as a surface equation is provided to the device, thereby improving the user's perceptual understanding of the surface graphics, and also improving the user's learning efficiency of advanced mathematics.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本发明实施例方案涉及的硬件运行环境的终端设备的结构示意图;1 is a schematic diagram of the structure of a terminal device in a hardware operating environment according to an embodiment of the present invention;

图2为本发明曲面方程绘制方法第一实施例的流程示意图;FIG2 is a schematic flow chart of a first embodiment of a method for drawing a surface equation according to the present invention;

图3为本发明曲面方程绘制方法第二实施例的流程示意图;FIG3 is a schematic flow chart of a second embodiment of a method for drawing a surface equation according to the present invention;

图4为本发明曲面方程绘制方法第一实施例的功能模块示意图。FIG. 4 is a schematic diagram of functional modules of the first embodiment of the surface equation drawing method of the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings.

具体实施方式DETAILED DESCRIPTION

应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

参照图1,图1为本发明实施例方案涉及的硬件运行环境的终端设备的结构示意图。Refer to FIG. 1 , which is a schematic diagram of the structure of a terminal device in a hardware operating environment according to an embodiment of the present invention.

如图1所示,该终端设备可以包括:处理器1001,例如中央处理器(CentralProcessing Unit,CPU),通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如无线保真(WIreless-FIdelity,WI-FI)接口)。存储器1005可以是高速的随机存取存储器(RandomAccess Memory,RAM)存储器,也可以是稳定的非易失性存储器(Non-Volatile Memory,NVM),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG1 , the terminal device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

本领域技术人员可以理解,图1中示出的结构并不构成对终端设备的限定,在实际应用中终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art will appreciate that the structure shown in FIG. 1 does not constitute a limitation on the terminal device, and in actual applications the terminal device may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

如图1所示,作为一种存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及曲面方程的绘制程序。As shown in FIG. 1 , the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a drawing program for a surface equation.

在图1所示的终端设备中,网络接口1004主要用于建立终端设备与存储曲面方程绘制方法系统中所需的所有数据的服务器的通信连接;用户接口1003主要用于与用户进行数据交互;所述终端设备通过处理器1001调用存储器1005中存储的曲面方程的绘制程序,并执行以下操作:In the terminal device shown in FIG1 , the network interface 1004 is mainly used to establish a communication connection between the terminal device and a server storing all data required in the surface equation drawing method system; the user interface 1003 is mainly used to interact with the user for data; the terminal device calls the surface equation drawing program stored in the memory 1005 through the processor 1001, and performs the following operations:

在接收到用户输入的曲面方程绘制指令时,从所述绘制指令中提取曲面方程数据;When receiving a surface equation drawing instruction input by a user, extracting surface equation data from the drawing instruction;

将所述曲面方程数据转化为字符串,并从所述字符串中提取目标数值;Convert the surface equation data into a character string, and extract a target value from the character string;

根据所述目标数值建立参数方程,并根据所述参数方程绘制曲面。A parametric equation is established according to the target value, and a surface is drawn according to the parametric equation.

进一步地,处理器1001可以调用存储器1005中存储的曲面方程的绘制程序,并执行以下操作:Further, the processor 1001 may call a drawing program of a surface equation stored in the memory 1005, and perform the following operations:

将预设关系对应表存入预设存储区域,所述预设关系对应表包括曲面方程数据与字符串之间的对应关系;Storing a preset relationship correspondence table in a preset storage area, wherein the preset relationship correspondence table includes a correspondence between surface equation data and character strings;

所述将所述曲面方程数据转化为字符串,并从所述字符串中提取目标数值,具体包括:The converting the surface equation data into a character string and extracting a target value from the character string specifically includes:

根据所述预设关系对应表将所述曲面方程数据转化为字符串,并从所述字符串中提取目标数值。The surface equation data is converted into a character string according to the preset relationship correspondence table, and a target value is extracted from the character string.

进一步地,处理器1001可以调用存储器1005中存储的曲面方程的绘制程序,并执行以下操作:Further, the processor 1001 may call a drawing program of a surface equation stored in the memory 1005, and perform the following operations:

根据所述字符串获取所述预设字符在所述字符串中的位置信息;Acquire the position information of the preset character in the character string according to the character string;

通过所述位置信息提取所述预设字符对应的数值字符串;Extracting the numerical string corresponding to the preset character through the position information;

通过所述预设程序获取新位置信息,并提取所述新位置信息的数值字符串;Acquire new location information through the preset program, and extract the numerical string of the new location information;

从所述新位置信息对应的数值字符串中提取所述目标数值。The target value is extracted from the value character string corresponding to the new position information.

进一步地,处理器1001可以调用存储器1005中存储的曲面方程的绘制程序,并执行以下操作:Further, the processor 1001 may call a drawing program of a surface equation stored in the memory 1005, and perform the following operations:

将预设程序存入预设存储区域中,所述预设程序通过改变所述位置信息获取新位置信息;storing a preset program in a preset storage area, wherein the preset program obtains new position information by changing the position information;

所述通过所述预设程序获取新位置信息,并提取所述新位置信息的数值字符串,具体包括:The obtaining of new location information through the preset program and extracting a numerical string of the new location information specifically includes:

通过所述预设程序改变所述位置信息获取新位置信息,并提取所述新位置信息的数值字符串。The position information is changed through the preset program to obtain new position information, and a numerical string of the new position information is extracted.

进一步地,处理器1001可以调用存储器1005中存储的曲面方程的绘制程序,并执行以下操作:Further, the processor 1001 may call a drawing program of a surface equation stored in the memory 1005, and perform the following operations:

根据所述预设对应关系表,从所述新位置信息对应的数值字符串中提取目标字符串,并将所述目标字符串转化为所述目标数值。According to the preset corresponding relationship table, a target character string is extracted from the numerical character string corresponding to the new position information, and the target character string is converted into the target numerical value.

进一步地,处理器1001可以调用存储器1005中存储的曲面方程的绘制程序,并执行以下操作:Further, the processor 1001 may call a drawing program of a surface equation stored in the memory 1005, and perform the following operations:

将预设转化程序存入预设存储区域,所述预设转化程序可以将所述曲面方程转化为曲面方程数据;storing a preset conversion program in a preset storage area, wherein the preset conversion program can convert the surface equation into surface equation data;

所述在接收到用户输入的曲面方程绘制指令时,从所述绘制指令中提取曲面方程数据,具体包括:When receiving the surface equation drawing instruction input by the user, extracting the surface equation data from the drawing instruction specifically includes:

提取接收到的用户输入的所述曲面方程指令中的曲面方程;Extracting the surface equation in the surface equation instruction received from the user;

根据所述预设转化程序将所述曲面方程转化为曲面方程数据。The surface equation is converted into surface equation data according to the preset conversion procedure.

进一步地,处理器1001可以调用存储器1005中存储的曲面方程的绘制程序,并执行以下操作:Further, the processor 1001 may call a drawing program of a surface equation stored in the memory 1005, and perform the following operations:

根据所述目标数值建立关于坐标系的参数方程;Establishing a parametric equation about a coordinate system according to the target value;

将所述参数方程转化成曲面绘制指令,根据所述曲面绘制指令绘制曲面。The parameter equation is converted into a surface drawing instruction, and the surface is drawn according to the surface drawing instruction.

本实施例通过上述方案,首先接收用户输入的曲面方程绘制指令,从所述绘制指令中提取曲面方程数据,然后将所述曲面方程数据转化为字符串,获取预设字符的位置信息,并通过改变所述预设字符的位置信息获取目标数值的位置信息,最后根据所述目标数值建立参数方程,根据所述参数方程绘制曲面。本实施例设计一种曲面方程绘图装置,只要给该装置提供一个曲面方程,它就可以绘制出对应的曲面图形,提高了用户对曲面图形的感性认识,同时也提高了用户对高等数学的学习效率。Through the above scheme, this embodiment first receives the surface equation drawing instruction input by the user, extracts the surface equation data from the drawing instruction, then converts the surface equation data into a character string, obtains the position information of the preset character, and obtains the position information of the target value by changing the position information of the preset character, and finally establishes a parametric equation according to the target value, and draws the surface according to the parametric equation. This embodiment designs a surface equation drawing device, which can draw the corresponding surface graphics as long as a surface equation is provided to the device, thereby improving the user's perceptual understanding of the surface graphics, and also improving the user's learning efficiency of advanced mathematics.

本发明实施基于上述硬件结构,提出本发明曲面方程的绘制方法实施例。The present invention is implemented based on the above hardware structure and proposes an embodiment of the method for drawing a surface equation of the present invention.

参照图2,图2为本发明曲面方程绘制方法第一实施例的流程示意图。2 , which is a flow chart of a first embodiment of a method for drawing a surface equation according to the present invention.

本实施例中,所述曲面方程绘制方法包括以下步骤:In this embodiment, the surface equation drawing method includes the following steps:

S10:在接收到用户输入的曲面方程绘制指令时,从所述绘制指令中提取曲面方程数据。S10: When receiving a surface equation drawing instruction input by a user, extracting surface equation data from the drawing instruction.

可理解的是,所述曲面方程数据可以来自于用户手动输入或者是系统内部输出的等待进一步处理的数据。本实施例中,曲面方程数据来自于用户输入,所述曲面方程数据为需要绘制的曲面方程。It is understandable that the surface equation data may be input manually by a user or data outputted from the system and waiting for further processing. In this embodiment, the surface equation data is input by a user, and the surface equation data is the surface equation to be drawn.

S20:将所述曲面方程数据转化为字符串,并从所述字符串中提取目标数值。S20: Convert the surface equation data into a character string, and extract a target value from the character string.

相应地,在进行此步骤之前,需要将预设关系对应表和预设程序存入预设存储区域中,所述预设关系对表包括曲面方程数据与字符串指之间的对应关系,字符串与数值之间的对应关系,所述预设程序通过改变预设字符的位置信息来获取新的位置信息。Accordingly, before performing this step, the preset relationship correspondence table and the preset program need to be stored in the preset storage area. The preset relationship correspondence table includes the correspondence between the surface equation data and the character string, and the correspondence between the character string and the numerical value. The preset program obtains new position information by changing the position information of the preset characters.

此外,在具体实施例中,本实施例是通过遍历预设存储区域,然后根据所述预设关系对应表将所述曲面方程数据转化为字符串,再从所述字符串中提取预设字符的位置信息,利用所述预设程序从所述位置信息中获取新位置信息,并提取所述新位置信息的字符串为数值字符串,将所述数值字符串转化为数值。In addition, in a specific embodiment, this embodiment traverses a preset storage area, and then converts the surface equation data into a character string according to the preset relationship correspondence table, and then extracts the position information of the preset characters from the character string, uses the preset program to obtain new position information from the position information, and extracts the character string of the new position information as a numerical character string, and converts the numerical character string into a numerical value.

即,所述曲面方程数据转化为字符串,并从所述字符串中提取目标数值,具体包括:That is, the surface equation data is converted into a character string, and the target value is extracted from the character string, specifically including:

根据所述字符串获取所述预设字符在所述字符串中的位置信息,通过所述位置信息提取所述预设字符对应的数值字符串,通过所述预设规则获取新位置信息,并提取所述新位置信息的数值字符串,从所述新位置信息对应的数值字符串中提取所述目标数值。The position information of the preset character in the character string is obtained according to the character string, the numerical string corresponding to the preset character is extracted through the position information, new position information is obtained through the preset rule, and the numerical string of the new position information is extracted, and the target numerical value is extracted from the numerical string corresponding to the new position information.

S30:根据所述目标数值建立参数方程,并根据所述参数方程绘制曲面。S30: Establishing a parametric equation according to the target value, and drawing a surface according to the parametric equation.

应当理解的是,在步骤S10中,已经获取到了参与曲面方程绘制的曲面方程,此时只需要从所述曲面方程中提取需要的数据;在步骤S20中,通过预设对应关系表和预设程序获取到了建立曲面参数方程所需要的目标数值;因此,步骤S30直接根据所述目标数值建立曲面参数方程,并根据所述参数方程绘制出对应的曲面。It should be understood that in step S10, the surface equation involved in drawing the surface equation has been obtained, and now it is only necessary to extract the required data from the surface equation; in step S20, the target value required for establishing the surface parametric equation is obtained through the preset correspondence table and the preset program; therefore, step S30 directly establishes the surface parametric equation according to the target value, and draws the corresponding surface according to the parametric equation.

此外,在具体实施例中,在绘制曲面图形之前,还需要确定所述曲面参数方程的参数的取值范围,并将所述曲面参数方程转化为绘图命令,最后通过所述绘图命令进行绘制。In addition, in a specific embodiment, before drawing the surface graphics, it is also necessary to determine the value range of the parameters of the surface parameter equation, and convert the surface parameter equation into a drawing command, and finally draw through the drawing command.

为了更好的理解本发明提供的曲面方程绘制方法,以下进行具体说明:In order to better understand the surface equation drawing method provided by the present invention, the following is a specific description:

1、绘制椭圆锥面方程对应的图形。1. Draw the graph corresponding to the equation of the elliptical cone.

假设要绘制椭圆锥面方程

Figure BDA0001985834590000081
对应的椭圆锥面,则需要输入的曲面方程为字符s='x^2/a^2+y^2/b^2=z^2/c^2'。Suppose you want to draw the equation of an elliptical cone
Figure BDA0001985834590000081
For the corresponding elliptical cone, the surface equation that needs to be input is the characters s='x^2/a^2+y^2/b^2=z^2/c^2'.

从输入字符串中分离出a,b,c具体方法如下:The specific method to separate a, b, and c from the input string is as follows:

(1)求出字符串中三个斜杠‘/’在字符串中的位置s1,s2和s3(1) Find the positions s 1 , s 2 and s 3 of the three slashes '/' in the string;

(2)从字符串中取出位置s1+1到位置s2-5所对应的数值字符串;(2) Extract the numerical string corresponding to position s 1 +1 to position s 2 -5 from the string;

(3)将第(2)步取出的数值字符串转化为数值sa;(3) Convert the numerical string obtained in step (2) into the numerical value sa;

(4)求出

Figure BDA0001985834590000082
(4) Find
Figure BDA0001985834590000082

(5)从字符串中取出位置s2+1到位置s3-5所对应的数值字符串;(5) Extract the numerical string corresponding to position s 2 +1 to position s 3 -5 from the string;

(6)将第(5)步取出的数值字符串转化为数值sb;(6) Convert the numerical string obtained in step (5) into the numerical value sb;

(7)求出

Figure BDA0001985834590000083
(7) Find
Figure BDA0001985834590000083

(8)从字符串中取出位置s3+1到位置n所对应的数值字符串,其中n是曲面方程字符串的长度;(8) Extract the numerical string corresponding to position s 3 +1 to position n from the string, where n is the length of the surface equation string;

(9)将第(8)步取出的数值字符串转化为数值sc;(9) Convert the numerical string obtained in step (8) into the numerical value sc;

(10)求出

Figure BDA0001985834590000084
(10) Find
Figure BDA0001985834590000084

建立椭圆锥面的参数方程如下:The parametric equations for establishing the elliptical cone are as follows:

Figure BDA0001985834590000085
其中u∈[-max{a,b,c},max{a,b,c}]和v∈[0,2π];
Figure BDA0001985834590000085
where u∈[-max{a,b,c},max{a,b,c}] and v∈[0,2π];

通过绘图命令draw(a*u*cos(v),b*u*sin(v),c*u,[-tmp,tmp,0,2*pi])绘制该曲面方程对应的曲面。这里tmp=max{a,b,c}。The surface corresponding to the surface equation is drawn by the drawing command draw(a*u*cos(v), b*u*sin(v), c*u, [-tmp, tmp, 0, 2*pi]). Here tmp = max{a, b, c}.

用类似的方法可以绘制椭圆锥面

Figure BDA0001985834590000086
Figure BDA0001985834590000087
的图形。In a similar way, we can draw an ellipse
Figure BDA0001985834590000086
and
Figure BDA0001985834590000087
Graphics.

2、绘制椭球面方程对应的图形。2. Draw the graph corresponding to the equation of the ellipsoid.

假设要绘制椭球面方程

Figure BDA0001985834590000091
对应的椭球面,则需要输入的曲面方程为字符串s='x^2/a^2+y^2/b^2+z^2/c^2=d^2'。Suppose you want to draw the equation of the ellipsoid
Figure BDA0001985834590000091
For the corresponding ellipsoid, the surface equation that needs to be input is the string s = 'x^2/a^2+y^2/b^2+z^2/c^2=d^2'.

从输入字符串中分离出a,b,c具体方法如下:The specific method to separate a, b, and c from the input string is as follows:

(1)求出字符串中三个斜杠‘/’在字符串中的位置s1,s2和s3(1) Find the positions s 1 , s 2 and s 3 of the three slashes '/' in the string;

(2)从字符串中取出位置s1+1到位置s2-5所对应的数值字符串;(2) Extract the numerical string corresponding to position s 1 +1 to position s 2 -5 from the string;

(3)将第(2)步取出的数值字符串转化为数值sa;(3) Convert the numerical string obtained in step (2) into the numerical value sa;

(4)求出

Figure BDA0001985834590000092
(4) Find
Figure BDA0001985834590000092

(5)从字符串中取出位置s2+1到位置s3-5所对应的数值字符串;(5) Extract the numerical string corresponding to position s 2 +1 to position s 3 -5 from the string;

(6)将第(5)步取出的数值字符串转化为数值sb;(6) Convert the numerical string obtained in step (5) into the numerical value sb;

(7)求出

Figure BDA0001985834590000093
(7) Find
Figure BDA0001985834590000093

(8)求出字符串中三个斜杠‘=’在字符串中的位置loc;(8) Find the position loc of the three slashes ‘=’ in the string;

(9)从字符串中取出位置s3+1到位置loc-1所对应的数值字符串;(9) Take out the numerical string corresponding to the position s 3 +1 to the position loc-1 from the string;

(10)将第(9)步取出的数值字符串转化为数值sc;(10) Convert the numerical string obtained in step (9) into the numerical value sc;

(11)求出

Figure BDA0001985834590000094
(11) Find
Figure BDA0001985834590000094

(12)从字符串中取出位置loc+1到位置n所对应的数值字符串,其中n是曲面方程字符串的长度;(12) Extract the numerical string corresponding to the position loc+1 to the position n from the string, where n is the length of the surface equation string;

(13)将第(12)步取出的数值字符串转化为数值sd;(13) Convert the numerical string obtained in step (12) into a numerical value sd;

(14)求出

Figure BDA0001985834590000095
(14) Find
Figure BDA0001985834590000095

建立椭球面的参数方程如下:The parametric equations for establishing the ellipsoid are as follows:

Figure BDA0001985834590000096
其中u∈[0,π]和v∈[0,2π];
Figure BDA0001985834590000096
where u∈[0,π] and v∈[0,2π];

通过绘图命令draw(a*d*sin(u)*sin(v),b*d*sin(u)*cos(v),c*d*cos(u),[0,pi,0,2*pi])绘制该曲面方程对应的曲面。The surface corresponding to the surface equation is drawn using the drawing command draw(a*d*sin(u)*sin(v), b*d*sin(u)*cos(v), c*d*cos(u), [0, pi, 0, 2*pi]).

3、绘制单叶双曲面方程对应的图形。3. Draw the graph corresponding to the equation of a single-leaf hyperboloid.

假设要绘制单叶双曲面方程

Figure BDA0001985834590000097
对应的单叶双曲面,则需要输入的曲面方程为字符串s='x^2/a^2+y^2/b^2-z^2/c^2=d^2'。Suppose you want to plot the equation of a single leaf hyperboloid
Figure BDA0001985834590000097
For the corresponding single-leaf hyperboloid, the surface equation that needs to be input is the string s='x^2/a^2+y^2/b^2-z^2/c^2=d^2'.

从输入字符串中分离出a,b,c具体方法如下:The specific method to separate a, b, and c from the input string is as follows:

(1)求出字符串中三个斜杠‘/’在字符串中的位置s1,s2和s3(1) Find the positions s 1 , s 2 and s 3 of the three slashes '/' in the string;

(2)从字符串中取出位置s1+1到位置s2-5所对应的数值字符串;(2) Extract the numerical string corresponding to position s 1 +1 to position s 2 -5 from the string;

(3)将第(2)步取出的数值字符串转化为数值sa;(3) Convert the numerical string obtained in step (2) into the numerical value sa;

(4)求出

Figure BDA0001985834590000098
(4) Find
Figure BDA0001985834590000098

(5)从字符串中取出位置s2+1到位置s3-5所对应的数值字符串;(5) Extract the numerical string corresponding to position s 2 +1 to position s 3 -5 from the string;

(6)将第(5)步取出的数值字符串转化为数值sb;(6) Convert the numerical string obtained in step (5) into the numerical value sb;

(7)求出

Figure BDA0001985834590000099
(7) Find
Figure BDA0001985834590000099

(8)求出字符串中三个斜杠‘=’在字符串中的位置loc;(8) Find the position loc of the three slashes ‘=’ in the string;

(9)从字符串中取出位置s3+1到位置loc-1所对应的数值字符串;(9) Take out the numerical string corresponding to the position s 3 +1 to the position loc-1 from the string;

(10)将第(9)步取出的数值字符串转化为数值sc;(10) Convert the numerical string obtained in step (9) into the numerical value sc;

(11)求出

Figure BDA0001985834590000101
(11) Find
Figure BDA0001985834590000101

(12)从字符串中取出位置loc+1到位置n所对应的数值字符串,其中n是曲面方程字符串的长度;(12) Extract the numerical string corresponding to the position loc+1 to the position n from the string, where n is the length of the surface equation string;

(13)将第(12)步取出的数值字符串转化为数值sd;(13) Convert the numerical string obtained in step (12) into a numerical value sd;

(14)求出

Figure BDA0001985834590000102
(14) Find
Figure BDA0001985834590000102

建立单叶双曲面的参数方程如下:The parametric equations for establishing a single-leaf hyperboloid are as follows:

Figure BDA0001985834590000103
其中
Figure BDA0001985834590000104
和v∈[0,2π];
Figure BDA0001985834590000103
in
Figure BDA0001985834590000104
and v∈[0,2π];

通过绘图命令draw(a*d*sec(u)*sin(v),b*d*sec(u)*cos(v),c*d*tan(u),[-pi/3,pi/3,0,2*pi])绘制该曲面方程对应的曲面。The surface corresponding to the surface equation is drawn using the drawing command draw(a*d*sec(u)*sin(v), b*d*sec(u)*cos(v), c*d*tan(u), [-pi/3, pi/3, 0, 2*pi]).

用类似的方法可以绘制单叶双曲面面

Figure BDA0001985834590000105
Figure BDA0001985834590000106
的图形。A similar method can be used to draw a single leaf hyperbolic surface
Figure BDA0001985834590000105
and
Figure BDA0001985834590000106
Graphics.

4、绘制双叶双曲面方程对应的图形。4. Draw the graph corresponding to the equation of the double-leaf hyperboloid.

假设要绘制双叶双曲面方程

Figure BDA0001985834590000107
对应的单叶双曲面,则需要输入的曲面方程为字符串s='x^2/a^2-y^2/b^2-z^2/c^2=d^2'。Suppose you want to plot the equation of a two-leaf hyperboloid
Figure BDA0001985834590000107
For the corresponding single-leaf hyperboloid, the surface equation that needs to be input is the string s='x^2/a^2-y^2/b^2-z^2/c^2=d^2'.

从输入字符串中分离出a,b,c具体方法如下:The specific method to separate a, b, and c from the input string is as follows:

(1)求出字符串中三个斜杠‘/’在字符串中的位置s1,s2和s3(1) Find the positions s 1 , s 2 and s 3 of the three slashes '/' in the string;

(2)从字符串中取出位置s1+1到位置s2-5所对应的数值字符串;(2) Extract the numerical string corresponding to position s 1 +1 to position s 2 -5 from the string;

(3)将第(2)步取出的数值字符串转化为数值sa;(3) Convert the numerical string obtained in step (2) into the numerical value sa;

(4)求出

Figure BDA0001985834590000108
(4) Find
Figure BDA0001985834590000108

(5)从字符串中取出位置s2+1到位置s3-5所对应的数值字符串;(5) Extract the numerical string corresponding to position s 2 +1 to position s 3 -5 from the string;

(6)将第(5)步取出的数值字符串转化为数值sb;(6) Convert the numerical string obtained in step (5) into the numerical value sb;

(7)求出

Figure BDA0001985834590000109
(7) Find
Figure BDA0001985834590000109

(8)求出字符串中三个斜杠‘=’在字符串中的位置loc;(8) Find the position loc of the three slashes ‘=’ in the string;

(9)从字符串中取出位置s3+1到位置loc-1所对应的数值字符串;(9) Take out the numerical string corresponding to the position s 3 +1 to the position loc-1 from the string;

(10)将第(9)步取出的数值字符串转化为数值sc;(10) Convert the numerical string obtained in step (9) into the numerical value sc;

(11)求出

Figure BDA00019858345900001010
(11) Find
Figure BDA00019858345900001010

(12)从字符串中取出位置loc+1到位置n所对应的数值字符串,其中n是曲面方程字符串的长度;(12) Extract the numerical string corresponding to the position loc+1 to the position n from the string, where n is the length of the surface equation string;

(13)将第(12)步取出的数值字符串转化为数值sd;(13) Convert the numerical string obtained in step (12) into a numerical value sd;

(14)求出

Figure BDA00019858345900001011
(14) Find
Figure BDA00019858345900001011

建立双叶双曲面的参数方程如下:The parametric equations for establishing the double-leaf hyperboloid are as follows:

Figure BDA0001985834590000111
其中
Figure BDA0001985834590000112
和v∈[0,2π];
Figure BDA0001985834590000111
in
Figure BDA0001985834590000112
and v∈[0,2π];

通过绘图命令draw(a*d*tan(u)*cos(v),b*d*tan(u)*sin(v),c*d*sec(u),[-pi/2,3*pi/2,0,2*pi])绘制该曲面方程对应的曲面。The surface corresponding to the surface equation is drawn using the drawing command draw(a*d*tan(u)*cos(v), b*d*tan(u)*sin(v), c*d*sec(u), [-pi/2, 3*pi/2, 0, 2*pi]).

用类似的方法可以绘制双叶双曲面面

Figure BDA0001985834590000113
Figure BDA0001985834590000114
的图形。A similar method can be used to draw a double-leaf hyperbolic surface
Figure BDA0001985834590000113
and
Figure BDA0001985834590000114
Graphics.

5、绘制椭圆抛物面方程对应的图形。5. Draw the graph corresponding to the equation of the elliptic parabola.

假设要绘制椭圆抛物面方程

Figure BDA0001985834590000115
对应的椭圆抛物面,则需要输入的曲面方程为字符串s='x^2/a^2+y^2/b^2=z/c'。Suppose you want to plot the equation of an elliptical parabola
Figure BDA0001985834590000115
For the corresponding elliptical paraboloid, the surface equation that needs to be input is the string s='x^2/a^2+y^2/b^2=z/c'.

从输入字符串中分离出a,b,c具体方法如下:The specific method to separate a, b, and c from the input string is as follows:

(1)求出字符串中三个斜杠‘/’在字符串中的位置s1,s2和s3(1) Find the positions s 1 , s 2 and s 3 of the three slashes '/' in the string;

(2)从字符串中取出位置s1+1到位置s2-5所对应的数值字符串;(2) Extract the numerical string corresponding to position s 1 +1 to position s 2 -5 from the string;

(3)将第(2)步取出的数值字符串转化为数值sa;(3) Convert the numerical string obtained in step (2) into the numerical value sa;

(4)求出

Figure BDA0001985834590000116
(4) Find
Figure BDA0001985834590000116

(5)从字符串中取出位置s2+1到位置s3-5所对应的数值字符串;(5) Extract the numerical string corresponding to position s 2 +1 to position s 3 -5 from the string;

(6)将第(5)步取出的数值字符串转化为数值sb;(6) Convert the numerical string obtained in step (5) into the numerical value sb;

(7)求出

Figure BDA0001985834590000117
(7) Find
Figure BDA0001985834590000117

(8)从字符串中取出位置s3+1到位置n所对应的数值字符串,其中n是曲面方程字符串的长度;(8) Extract the numerical string corresponding to position s 3 +1 to position n from the string, where n is the length of the surface equation string;

(9)将第(8)步取出的数值字符串转化为数值c;(9) Convert the numeric string obtained in step (8) into the numeric value c;

建立椭圆抛物面的参数方程如下:The parametric equations for the elliptical parabola are as follows:

Figure BDA0001985834590000118
其中u∈[0,max{a,b,c}]和v∈[0,2π];
Figure BDA0001985834590000118
where u∈[0,max{a,b,c}] and v∈[0,2π];

通过绘图命令draw(a*sqrt(u)*cos(v),b*sqrt(u)*sin(v),c*u,[0,tmp,0,2*pi])绘制该曲面方程对应的曲面。这里tmp=max{a,b,c}。The surface corresponding to the surface equation is drawn by the drawing command draw(a*sqrt(u)*cos(v), b*sqrt(u)*sin(v), c*u, [0, tmp, 0, 2*pi]). Here tmp = max{a, b, c}.

用类似的方法可以绘制双叶双曲面面

Figure BDA0001985834590000119
Figure BDA00019858345900001110
的图形。A similar method can be used to draw a double-leaf hyperbolic surface
Figure BDA0001985834590000119
and
Figure BDA00019858345900001110
Graphics.

6、绘制双曲抛物面方程对应的图形。6. Draw the graph corresponding to the equation of the hyperbolic parabola.

假设要绘制双曲抛物面方程

Figure BDA00019858345900001111
对应的双曲抛物面,则需要输入的曲面方程为字符串s='x^2/a^2-y^2/b^2=z/c'。Suppose you want to plot the equation of a hyperbolic parabola
Figure BDA00019858345900001111
For the corresponding hyperbolic paraboloid, the surface equation that needs to be input is the string s='x^2/a^2-y^2/b^2=z/c'.

从输入字符串中分离出a,b,c具体方法如下:The specific method to separate a, b, and c from the input string is as follows:

(1)求出字符串中三个斜杠‘/’在字符串中的位置s1,s2和s3(1) Find the positions s 1 , s 2 and s 3 of the three slashes '/' in the string;

(2)从字符串中取出位置s1+1到位置s2-5所对应的数值字符串;(2) Extract the numerical string corresponding to position s 1 +1 to position s 2 -5 from the string;

(3)将第(2)步取出的数值字符串转化为数值sa;(3) Convert the numerical string obtained in step (2) into the numerical value sa;

(4)求出

Figure BDA0001985834590000121
(4) Find
Figure BDA0001985834590000121

(5)从字符串中取出位置s2+1到位置s3-5所对应的数值字符串;(5) Extract the numerical string corresponding to position s 2 +1 to position s 3 -5 from the string;

(6)将第(5)步取出的数值字符串转化为数值sb;(6) Convert the numerical string obtained in step (5) into the numerical value sb;

(7)求出

Figure BDA0001985834590000122
(7) Find
Figure BDA0001985834590000122

(8)从字符串中取出位置s3+1到位置n所对应的数值字符串,其中n是曲面方程字符串的长度;(8) Extract the numerical string corresponding to position s 3 +1 to position n from the string, where n is the length of the surface equation string;

(9)将第(8)步取出的数值字符串转化为数值c;(9) Convert the numeric string obtained in step (8) into the numeric value c;

建立双曲抛物面的参数方程如下:The parametric equations for the hyperbolic paraboloid are as follows:

Figure BDA0001985834590000123
其中u∈[-1,1]和v∈[-1,1];
Figure BDA0001985834590000123
where u∈[-1,1] and v∈[-1,1];

通过绘图命令draw(a*(u+v),b*(u-v),c*4*u*v,[-1,1,-1,1])绘制该曲面方程对应的曲面。The surface corresponding to the surface equation is drawn using the drawing command draw(a*(u+v), b*(u-v), c*4*u*v, [-1, 1, -1, 1]).

用类似的方法可以绘制双曲抛物面

Figure BDA0001985834590000124
Figure BDA0001985834590000125
Figure BDA0001985834590000126
的图形。A similar method can be used to draw a hyperbolic parabola
Figure BDA0001985834590000124
Figure BDA0001985834590000125
and
Figure BDA0001985834590000126
Graphics.

7、绘制椭圆柱面方程对应的图形。7. Draw the graph corresponding to the equation of the elliptical cylinder.

假设要绘制椭圆柱面方程

Figure BDA0001985834590000127
对应的椭圆柱面,则需要输入的曲面方程为字符串s='x^2/a^2+y^2/b^2=c^2'。Suppose you want to draw the equation of an elliptical cylinder
Figure BDA0001985834590000127
For the corresponding elliptical cylinder, the surface equation that needs to be input is the string s='x^2/a^2+y^2/b^2=c^2'.

从输入字符串中分离出a,b,c具体方法如下:The specific method to separate a, b, and c from the input string is as follows:

(1)求出字符串中三个斜杠‘/’在字符串中的位置s1,s2(1) Find the positions s 1 , s 2 of the three slashes '/' in the string;

(2)从字符串中取出位置s1+1到位置s2-5所对应的数值字符串;(2) Extract the numerical string corresponding to position s 1 +1 to position s 2 -5 from the string;

(3)将第(2)步取出的数值字符串转化为数值sa;(3) Convert the numerical string obtained in step (2) into the numerical value sa;

(4)求出

Figure BDA0001985834590000128
(4) Find
Figure BDA0001985834590000128

(5)求出字符串中三个斜杠‘=’在字符串中的位置loc;(5) Find the position loc of the three slashes ‘=’ in the string;

(6)从字符串中取出位置s2+1到位置loc-1所对应的数值字符串,其中n是曲面方程字符串的长度;(6) Take out the numerical string corresponding to the position s 2 +1 to the position loc-1 from the string, where n is the length of the surface equation string;

(7)将第(6)步取出的数值字符串转化为数值sb;(7) Convert the numeric string obtained in step (6) into a numeric value sb;

(8)求出

Figure BDA0001985834590000129
(8) Find
Figure BDA0001985834590000129

(9)从字符串中取出位置loc+1到位置n所对应的数值字符串,其中n是曲面方程字符串的长度;(9) Extract the numerical string corresponding to the position loc+1 to the position n from the string, where n is the length of the surface equation string;

(10)将第(9)步取出的数值字符串转化为数值sc;(10) Convert the numerical string obtained in step (9) into the numerical value sc;

(11)求出

Figure BDA0001985834590000131
(11) Find
Figure BDA0001985834590000131

建立椭圆柱面的参数方程如下:The parametric equations for establishing the elliptical cylinder are as follows:

Figure BDA0001985834590000132
其中v∈[-max{a,b,c},max{a,b,c}]和u∈[0,2π];
Figure BDA0001985834590000132
where v∈[-max{a,b,c},max{a,b,c}] and u∈[0,2π];

通过绘图命令draw(a*cos(u),b*sin(u),c+v,[0,2*pi,-tmp,tmp])绘制该曲面方程对应的曲面。这里tmp=max{a,b,c}。The surface corresponding to the surface equation is drawn by the drawing command draw(a*cos(u), b*sin(u), c+v, [0, 2*pi, -tmp, tmp]). Here tmp = max{a, b, c}.

用类似的方法可以绘制椭圆柱面

Figure BDA0001985834590000133
Figure BDA0001985834590000134
的图形。In a similar way, we can draw an elliptical cylinder
Figure BDA0001985834590000133
and
Figure BDA0001985834590000134
Graphics.

8、绘制双曲柱面方程对应的图形。8. Draw the graph corresponding to the equation of the hyperbolic cylinder.

假设要绘制双曲柱面方程

Figure BDA0001985834590000135
对应的双曲柱面,则需要输入的曲面方程为字符串s='x^2/a^2-y^2/b^2=c^2'。Suppose you want to plot the equation of a hyperbolic cylinder
Figure BDA0001985834590000135
For the corresponding hyperbolic cylinder, the surface equation that needs to be input is the string s = 'x^2/a^2-y^2/b^2=c^2'.

从输入字符串中分离出a,b,c具体方法如下:The specific method to separate a, b, and c from the input string is as follows:

(1)求出字符串中三个斜杠‘/’在字符串中的位置s1,s2(1) Find the positions s 1 , s 2 of the three slashes '/' in the string;

(2)从字符串中取出位置s1+1到位置s2-5所对应的数值字符串;(2) Extract the numerical string corresponding to position s 1 +1 to position s 2 -5 from the string;

(3)将第(2)步取出的数值字符串转化为数值sa;(3) Convert the numerical string obtained in step (2) into the numerical value sa;

(4)求出

Figure BDA0001985834590000136
(4) Find
Figure BDA0001985834590000136

(5)求出字符串中三个斜杠‘=’在字符串中的位置loc;(5) Find the position loc of the three slashes ‘=’ in the string;

(6)从字符串中取出位置s2+1到位置loc-1所对应的数值字符串,其中n是曲面方程字符串的长度;(6) Take out the numerical string corresponding to the position s 2 +1 to the position loc-1 from the string, where n is the length of the surface equation string;

(7)将第(6)步取出的数值字符串转化为数值sb;(7) Convert the numerical string obtained in step (6) into the numerical value sb;

(8)求出

Figure BDA0001985834590000137
(8) Find
Figure BDA0001985834590000137

(9)从字符串中取出位置loc+1到位置n所对应的数值字符串,其中n是曲面方程字符串的长度;(9) Extract the numerical string corresponding to the position loc+1 to the position n from the string, where n is the length of the surface equation string;

(10)将第(9)步取出的数值字符串转化为数值sc;(10) Convert the numerical string obtained in step (9) into the numerical value sc;

(11)求出

Figure BDA0001985834590000138
(11) Find
Figure BDA0001985834590000138

建立双曲柱面的参数方程如下:The parametric equations for the hyperbolic cylinder are as follows:

Figure BDA0001985834590000139
其中v∈[-3max{a,b,c},3max{a,b,c}]和u∈[0,2π];
Figure BDA0001985834590000139
where v∈[-3max{a,b,c},3max{a,b,c}] and u∈[0,2π];

通过绘图命令draw(a*sec(u),b*tan(u),c+v,[0,2*pi,-3*tmp,3*tmp])绘制该曲面方程对应的曲面。这里tmp=max{a,b,c}。The surface corresponding to the surface equation is drawn by the drawing command draw(a*sec(u), b*tan(u), c+v, [0, 2*pi, -3*tmp, 3*tmp]). Here tmp = max{a, b, c}.

用类似的方法可以绘制双曲柱面

Figure BDA00019858345900001310
Figure BDA00019858345900001311
Figure BDA00019858345900001312
的图形。A similar method can be used to draw a hyperbolic cylinder
Figure BDA00019858345900001310
Figure BDA00019858345900001311
and
Figure BDA00019858345900001312
Graphics.

9、绘制抛物柱面方程对应的图形。9. Draw the graph corresponding to the equation of the parabolic cylinder.

假设要绘制抛物柱面方程

Figure BDA0001985834590000141
对应的抛物柱面,则需要输入的曲面方程为字符串s='x^2/a^2=y/b'。Suppose you want to plot the equation of a parabolic cylinder
Figure BDA0001985834590000141
For the corresponding parabolic cylinder, the surface equation that needs to be input is the string s='x^2/a^2=y/b'.

从输入字符串中分离出a,b,c具体方法如下:The specific method to separate a, b, and c from the input string is as follows:

(1)求出字符串中三个斜杠‘/’在字符串中的位置s1,s2(1) Find the positions s 1 , s 2 of the three slashes '/' in the string;

(2)从字符串中取出位置s1+1到位置s2-3所对应的数值字符串;(2) Extract the numerical string corresponding to position s 1 +1 to position s 2 -3 from the string;

(3)将第(2)步取出的数值字符串转化为数值sa;(3) Convert the numerical string obtained in step (2) into the numerical value sa;

(4)求出

Figure BDA0001985834590000142
(4) Find
Figure BDA0001985834590000142

(5)从字符串中取出位置s2+1到位置n所对应的数值字符串,其中n是曲面方程字符串的长度;(5) Take out the numerical string corresponding to position s 2 +1 to position n from the string, where n is the length of the surface equation string;

(6)将第(5)步取出的数值字符串转化为数值b;(6) Convert the numeric string obtained in step (5) into the numeric value b;

建立抛物柱面的参数方程如下The parametric equations for the parabolic cylinder are as follows:

Figure BDA0001985834590000143
其中u∈[-max{a,b,c},max{a,b,c}]和v∈[-max{a,b,c},max{a,b,c}];
Figure BDA0001985834590000143
where u∈[-max{a,b,c},max{a,b,c}] and v∈[-max{a,b,c},max{a,b,c}];

通过绘图命令draw(u,b/a^2*u^2,v,[-tmp,tmp,-tmp,tmp])绘制该曲面方程对应的曲面。这里tmp=max{a,b,c}。The surface corresponding to the surface equation is drawn by the drawing command draw(u,b/a^2*u^2,v,[-tmp,tmp,-tmp,tmp]). Here tmp=max{a,b,c}.

用类似的方法可以绘制抛物柱面

Figure BDA0001985834590000144
Figure BDA0001985834590000145
的图形。A similar method can be used to draw a parabola
Figure BDA0001985834590000144
and
Figure BDA0001985834590000145
Graphics.

需要说明的是,以上仅为举例说明,并不对本申请的技术方案构成任何限定。It should be noted that the above is only an example and does not constitute any limitation to the technical solution of the present application.

通过上述描述不难发现,本实施例中提供的曲面方程的绘制方法,首先接收用户输入的曲面方程绘制指令,从所述绘制指令中提取曲面方程数据,然后将所述曲面方程数据转化为字符串,获取预设字符的位置信息,并通过改变所述预设字符的位置信息获取目标数值的位置信息,最后根据所述目标数值建立参数方程,根据所述参数方程绘制曲面。本发明设计了一种曲面方程绘图装置,只要给该装置提供一个曲面方程,它就可以绘制出对应的曲面图形,提高了用户对曲面图形的感性认识,同时也提高了用户对高等数学的学习效率。It is not difficult to find from the above description that the surface equation drawing method provided in this embodiment first receives the surface equation drawing instruction input by the user, extracts the surface equation data from the drawing instruction, and then converts the surface equation data into a character string, obtains the position information of the preset character, and obtains the position information of the target value by changing the position information of the preset character, and finally establishes a parametric equation according to the target value, and draws the surface according to the parametric equation. The present invention designs a surface equation drawing device, which can draw the corresponding surface graphics as long as a surface equation is provided to the device, thereby improving the user's perceptual understanding of the surface graphics, and also improving the user's learning efficiency of higher mathematics.

进一步地,如图3所示,基于第一实施例提出本发明曲面方程的绘制方法的第二实施例,在本实施例中,在根据所述目标数值建立参数方程,并根据所述参数方程绘制曲面之前,还需要将所述曲面方程数据转化为字符串,并从所述字符串中提取位置信息、根据所述位置信息获取新位置信息,通过所述新位置信息提取对应的数值字符串,并将所述数值字符串转化为目标数值,详见图3中的步骤S20、S20'。Furthermore, as shown in FIG3 , a second embodiment of the method for drawing a surface equation of the present invention is proposed based on the first embodiment. In this embodiment, before establishing a parametric equation according to the target value and drawing the surface according to the parametric equation, it is also necessary to convert the surface equation data into a character string, extract position information from the character string, obtain new position information based on the position information, extract the corresponding numerical character string through the new position information, and convert the numerical character string into the target value, see steps S20 and S20' in FIG3 for details.

为了便于理解,以下结合图3进行具体说明:For ease of understanding, the following is a specific description in conjunction with FIG3:

在步骤S20中:将所述曲面方程数据转化为字符串,并从所述字符串中提取位置信息。In step S20: the surface equation data is converted into a character string, and the position information is extracted from the character string.

将提取到的所述曲面方程转化为字符串,根据存储区域中的曲面方程与字符串之间的对应表在所述字符串中找到预设字符,根据所述预设字符提取所述预设字符对应的位置信息。The extracted surface equation is converted into a character string, a preset character is found in the character string according to a correspondence table between the surface equation and the character string in a storage area, and position information corresponding to the preset character is extracted according to the preset character.

可以理解的是,对于所述曲面方程转化的所述字符串,一般是从所述字符串中分离出所述曲面方程的固定参数如a,b,c,并且字符串中需要用‘/’代表曲面方程中的除法运算,所以,所述预设字符一般为字符串中的‘/’字符,同时也需要获取所述‘/’字符的位置信息。It can be understood that for the character string converted from the surface equation, the fixed parameters of the surface equation such as a, b, c are generally separated from the character string, and ‘/’ is needed in the character string to represent the division operation in the surface equation. Therefore, the preset character is generally the ‘/’ character in the character string, and the position information of the ‘/’ character also needs to be obtained.

相应地,在步骤S20'中:根据所述位置信息获取新位置信息,通过所述新位置信息提取对应的数值字符串,并将所述数值字符串转化为目标数值。Correspondingly, in step S20': new position information is acquired according to the position information, a corresponding numerical string is extracted through the new position information, and the numerical string is converted into a target numerical value.

通过存储区域中的预设程序改变所述字符串中的预设字符位置信息,从而获取新位置信息,根据所述新位置信息提出所述新位置信息对应的数值字符串,并将所述数值字符串转化为字符,所述预设程序可以通过改变字符的位置信息来获取新的位置信息。The preset character position information in the character string is changed by a preset program in the storage area to obtain new position information, a numerical string corresponding to the new position information is proposed based on the new position information, and the numerical string is converted into characters. The preset program can obtain new position information by changing the position information of the characters.

可以理解的是,在实际操作中,需要获取的就是曲面方程的固定参数的数值,通过所述固定参数的数值可以获取所述曲面方程的参数方程,最后可以通过绘图指令将所述参数方程绘制出对应的曲面图形,所以,通过所述位置信息获取新位置信息即通过所述预设程序改动所述位置信息获取所述曲面方程的固定参数的位置信息并作为新位置信息,然后根据所述新位置信息提取所述新位置信息对应的数值字符串,并根据预设存储区域中的字符串与数值之间的对应关系将所述数值字符串转化为目标数值。It can be understood that, in actual operation, what needs to be obtained is the numerical value of the fixed parameter of the surface equation. The parametric equation of the surface equation can be obtained through the numerical value of the fixed parameter, and finally the corresponding surface graphics can be drawn by the parametric equation through drawing instructions. Therefore, the new position information is obtained through the position information, that is, the position information of the fixed parameters of the surface equation is obtained by changing the position information through the preset program and serving as the new position information, and then the numerical string corresponding to the new position information is extracted according to the new position information, and the numerical string is converted into the target numerical value according to the correspondence between the string and the numerical value in the preset storage area.

此外,本发明实施例还提出一种曲面方程的绘制装置。如图4所示,该曲面方程的绘制装置包括:获取模块10、计算模块20、绘制模块30。In addition, the embodiment of the present invention further provides a device for drawing a surface equation. As shown in FIG4 , the device for drawing a surface equation includes: an acquisition module 10 , a calculation module 20 , and a drawing module 30 .

其中,获取模块10,用于在接收到用户输入的曲面方程绘制指令时,从所述绘制指令中提取曲面方程数据;计算模块20,用于将所述曲面方程数据转化为字符串,并从所述字符串中提取目标数值;绘制模块30,用于根据所述目标数值建立参数方程,并根据所述参数方程绘制曲面。Among them, the acquisition module 10 is used to extract surface equation data from the drawing instruction when receiving the surface equation drawing instruction input by the user; the calculation module 20 is used to convert the surface equation data into a character string and extract the target value from the character string; the drawing module 30 is used to establish a parametric equation according to the target value and draw the surface according to the parametric equation.

需要说明的是,本实施例中所说的预设存储区域,其中存储的主要是曲面方程数据与字符串之间的对应关系,字符串与数值之间的对应关系、预设程序。It should be noted that the preset storage area mentioned in this embodiment mainly stores the correspondence between surface equation data and character strings, the correspondence between character strings and numerical values, and preset programs.

通过上述描述不难发现,本实施例中提供的曲面方程的绘制方法,首先接收用户输入的曲面方程绘制指令,从所述绘制指令中提取曲面方程数据,然后将所述曲面方程数据转化为字符串,获取预设字符的位置信息,并通过改变所述预设字符的位置信息获取目标数值的位置信息,最后根据所述目标数值建立参数方程,根据所述参数方程绘制曲面。本发明设计了一种曲面方程绘图装置,只要给该装置提供一个曲面方程,它就可以绘制出对应的曲面图形,提高了用户对曲面图形的感性认识,同时也提高了用户对高等数学的学习效率。It is not difficult to find from the above description that the surface equation drawing method provided in this embodiment first receives the surface equation drawing instruction input by the user, extracts the surface equation data from the drawing instruction, and then converts the surface equation data into a character string, obtains the position information of the preset character, and obtains the position information of the target value by changing the position information of the preset character, and finally establishes a parametric equation according to the target value, and draws the surface according to the parametric equation. The present invention designs a surface equation drawing device, which can draw the corresponding surface graphics as long as a surface equation is provided to the device, thereby improving the user's perceptual understanding of the surface graphics, and also improving the user's learning efficiency of higher mathematics.

此外,需要说明的是,以上所描述的装置实施例仅仅是示意性的,并不对本发明的保护范围构成限定,在实际应用中,本领域的技术人员可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的,此处不做限制。In addition, it should be noted that the device embodiments described above are merely illustrative and do not limit the scope of protection of the present invention. In practical applications, technicians in this field can select some or all of the modules according to actual needs to achieve the purpose of the present embodiment, and no restrictions are made here.

另外,未在本实施例中详尽描述的技术细节,可参见本发明任意实施例所提供的曲面方程的绘制方法,此处不再赘述。In addition, for technical details not fully described in this embodiment, reference can be made to the method for drawing the surface equation provided in any embodiment of the present invention, and will not be repeated here.

此外,本发明实施例还提出一种可读存储介质,所述可读存储介质为计算机可读存储介质,所述计算机可读存储介质上存储有曲面方程的绘制程序,所述曲面方程的绘制程序被处理器执行时实现如下操作:In addition, an embodiment of the present invention further provides a readable storage medium, which is a computer-readable storage medium, and on which a drawing program for a surface equation is stored. When the drawing program for the surface equation is executed by a processor, the following operations are implemented:

在接收到用户输入的曲面方程绘制指令时,从所述绘制指令中提取曲面方程数据;When receiving a surface equation drawing instruction input by a user, extracting surface equation data from the drawing instruction;

将所述曲面方程数据转化为字符串,并从所述字符串中提取目标数值;Convert the surface equation data into a character string, and extract a target value from the character string;

根据所述目标数值建立参数方程,并根据所述参数方程绘制曲面。A parametric equation is established according to the target value, and a surface is drawn according to the parametric equation.

进一步地,所述曲面方程的绘制程序被处理器执行时还实现如下操作:Furthermore, when the surface equation drawing program is executed by the processor, the following operations are also implemented:

将预设关系对应表存入预设存储区域,所述预设关系对应表包括曲面方程数据与字符串之间的对应关系,字符串与数值之间的对应关系;Storing a preset relationship correspondence table in a preset storage area, wherein the preset relationship correspondence table includes a correspondence between surface equation data and character strings, and a correspondence between character strings and numerical values;

所述将所述曲面方程数据转化为字符串,并从所述字符串中提取目标数值,具体包括:The converting the surface equation data into a character string and extracting a target value from the character string specifically includes:

根据所述预设关系对应表将所述曲面方程数据转化为字符串,并从所述字符串中提取目标数值。The surface equation data is converted into a character string according to the preset relationship correspondence table, and a target value is extracted from the character string.

进一步地,所述曲面方程的绘制程序被处理器执行时还实现如下操作:Furthermore, when the surface equation drawing program is executed by the processor, the following operations are also implemented:

根据所述字符串获取所述预设字符在所述字符串中的位置信息;Acquire the position information of the preset character in the character string according to the character string;

通过所述位置信息提取所述预设字符对应的数值字符串;Extracting the numerical string corresponding to the preset character through the position information;

通过所述预设程序获取新位置信息,并提取所述新位置信息的数值字符串;Acquire new location information through the preset program, and extract the numerical string of the new location information;

从所述新位置信息对应的数值字符串中提取所述目标数值。The target value is extracted from the value character string corresponding to the new position information.

进一步地,所述曲面方程的绘制程序被处理器执行时还实现如下操作:Furthermore, when the surface equation drawing program is executed by the processor, the following operations are also implemented:

将预设程序存入预设存储区域中,所述预设程序通过改变所述位置信息获取新位置信息;storing a preset program in a preset storage area, wherein the preset program obtains new position information by changing the position information;

所述通过所述预设程序获取新位置信息,并提取所述新位置信息的数值字符串,具体包括:The obtaining of new location information through the preset program and extracting a numerical string of the new location information specifically includes:

通过所述预设程序改变所述位置信息获取新位置信息,并提取所述新位置信息的数值字符串。The position information is changed through the preset program to obtain new position information, and a numerical string of the new position information is extracted.

进一步地,所述曲面方程的绘制程序被处理器执行时还实现如下操作:Furthermore, when the surface equation drawing program is executed by the processor, the following operations are also implemented:

根据所述预设对应关系表,从所述新位置信息对应的数值字符串中提取目标字符串,并将所述目标字符串转化为所述目标数值。According to the preset corresponding relationship table, a target character string is extracted from the numerical character string corresponding to the new position information, and the target character string is converted into the target numerical value.

进一步地,所述曲面方程的绘制程序被处理器执行时还实现如下操作:Furthermore, when the surface equation drawing program is executed by the processor, the following operations are also implemented:

将预设转化程序存入预设存储区域,所述预设转化程序可以将所述曲面方程转化为曲面方程数据;storing a preset conversion program in a preset storage area, wherein the preset conversion program can convert the surface equation into surface equation data;

提取接收到的用户输入的所述曲面方程指令中的曲面方程;Extracting the surface equation in the surface equation instruction received from the user;

根据所述预设转化程序将所述曲面方程转化为曲面方程数据。The surface equation is converted into surface equation data according to the preset conversion procedure.

进一步地,所述曲面方程的绘制程序被处理器执行时还实现如下操作:Furthermore, when the surface equation drawing program is executed by the processor, the following operations are also implemented:

根据所述目标数值建立关于坐标系的参数方程;Establishing a parametric equation about a coordinate system according to the target value;

将所述参数方程转化成曲面绘制指令,根据所述曲面绘制指令绘制曲面。The parameter equation is converted into a surface drawing instruction, and the surface is drawn according to the surface drawing instruction.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如只读存储器/随机存取存储器、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory/random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims (8)

1.一种曲面方程绘制方法,其特征在于,所述曲面方程绘制方法包括以下步骤:1. A method for drawing a surface equation, characterized in that the method for drawing a surface equation comprises the following steps: 在接收到用户输入的曲面方程绘制指令时,从所述绘制指令中提取曲面方程数据;When receiving a surface equation drawing instruction input by a user, extracting surface equation data from the drawing instruction; 将所述曲面方程数据转化为字符串,并从所述字符串中提取目标数值;Convert the surface equation data into a character string, and extract a target value from the character string; 根据所述目标数值建立参数方程,并根据所述参数方程绘制曲面;Establishing a parametric equation according to the target value, and drawing a surface according to the parametric equation; 其中,所述将所述曲面方程数据转化为字符串,并从所述字符串中提取目标数值之前,所述曲面方程绘制方法还包括:Wherein, before converting the surface equation data into a character string and extracting the target value from the character string, the surface equation drawing method further includes: 将预设关系对应表存入预设存储区域,所述预设关系对应表包括曲面方程数据与字符串之间的对应关系;Storing a preset relationship correspondence table in a preset storage area, wherein the preset relationship correspondence table includes a correspondence between surface equation data and character strings; 所述将所述曲面方程数据转化为字符串,并从所述字符串中提取目标数值,具体包括:The converting the surface equation data into a character string and extracting a target value from the character string specifically includes: 根据所述字符串获取预设字符在所述字符串中的位置信息;Acquire position information of a preset character in the character string according to the character string; 通过所述位置信息提取所述预设字符对应的数值字符串;Extracting the numerical string corresponding to the preset character through the position information; 通过预设程序获取新位置信息,并提取所述新位置信息的数值字符串;Acquire new location information through a preset program, and extract a numerical string of the new location information; 从所述新位置信息对应的数值字符串中提取所述目标数值。The target value is extracted from the value character string corresponding to the new position information. 2.如权利要求1所述的曲面方程绘制方法,其特征在于,所述通过预设程序获取新位置信息,并提取所述新位置信息的数值字符串之前,所述曲面方程绘制方法包括:2. The surface equation drawing method according to claim 1, characterized in that before obtaining the new position information through a preset program and extracting the numerical string of the new position information, the surface equation drawing method comprises: 将预设程序存入预设存储区域中,所述预设程序通过改变所述位置信息获取新位置信息;storing a preset program in a preset storage area, wherein the preset program obtains new position information by changing the position information; 所述通过预设程序获取新位置信息,并提取所述新位置信息的数值字符串,具体包括:The obtaining of new location information through a preset program and extracting a numerical string of the new location information specifically includes: 通过所述预设程序改变所述位置信息获取新位置信息,并提取所述新位置信息的数值字符串。The position information is changed through the preset program to obtain new position information, and a numerical string of the new position information is extracted. 3.如权利要求1所述的曲面方程绘制方法,其特征在于,所述预设关系对应表还包括:字符串与数值之间的对应关系;3. The surface equation drawing method according to claim 1, wherein the preset relationship correspondence table further includes: a correspondence between character strings and numerical values; 所述从所述新位置信息对应的数值字符串中提取所述目标数值,具体包括:The step of extracting the target value from the numerical character string corresponding to the new position information specifically includes: 根据所述预设关系对应表,从所述新位置信息对应的数值字符串中提取目标字符串,并将所述目标字符串转化为所述目标数值。According to the preset relationship correspondence table, a target character string is extracted from the numerical character string corresponding to the new position information, and the target character string is converted into the target numerical value. 4.如权利要求1所述的曲面方程绘制方法,其特征在于,所述在接收到用户输入的曲面方程绘制指令时,从所述绘制指令中提取曲面方程数据之前,曲面方程绘制方法包括:4. The surface equation drawing method according to claim 1, characterized in that when receiving the surface equation drawing instruction input by the user, before extracting the surface equation data from the drawing instruction, the surface equation drawing method comprises: 将预设转化程序存入所述预设存储区域,所述预设转化程序可以将所述曲面方程转化为曲面方程数据;storing a preset conversion program in the preset storage area, wherein the preset conversion program can convert the surface equation into surface equation data; 所述在接收到用户输入的曲面方程绘制指令时,从所述绘制指令中提取曲面方程数据,具体包括:When receiving the surface equation drawing instruction input by the user, extracting the surface equation data from the drawing instruction specifically includes: 提取接收到的用户输入的所述曲面方程指令中的曲面方程;Extracting the surface equation in the surface equation instruction received from the user; 根据所述预设转化程序将所述曲面方程转化为曲面方程数据。The surface equation is converted into surface equation data according to the preset conversion procedure. 5.如权利要求1~4中任一项所述的曲面方程绘制方法,其特征在于,所述根据所述目标数值建立参数方程,并根据所述参数方程绘制曲面,具体包括:5. The method for drawing a surface equation according to any one of claims 1 to 4, wherein establishing a parametric equation according to the target value and drawing a surface according to the parametric equation specifically comprises: 根据所述目标数值建立关于坐标系的参数方程;Establishing a parametric equation about a coordinate system according to the target value; 将所述参数方程转化成曲面绘制指令,根据所述曲面绘制指令绘制曲面。The parameter equation is converted into a surface drawing instruction, and the surface is drawn according to the surface drawing instruction. 6.一种曲面方程绘制装置,其特征在于,所述装置包括:6. A surface equation drawing device, characterized in that the device comprises: 获取模块,用于在接收到用户输入的曲面方程绘制指令时,从所述绘制指令中提取曲面方程数据;An acquisition module, configured to extract surface equation data from a drawing instruction input by a user when receiving the surface equation drawing instruction; 计算模块,用于将所述曲面方程数据转化为字符串,并从所述字符串中提取目标数值;A calculation module, used for converting the surface equation data into a character string and extracting a target value from the character string; 绘制模块,用于根据所述目标数值建立参数方程,并根据所述参数方程绘制曲面;A drawing module, used for establishing a parametric equation according to the target value, and drawing a surface according to the parametric equation; 所述获取模块,还用于将预设关系对应表存入预设存储区域,所述预设关系对应表包括曲面方程数据与字符串之间的对应关系;The acquisition module is further used to store a preset relationship correspondence table into a preset storage area, wherein the preset relationship correspondence table includes a correspondence between surface equation data and character strings; 所述计算模块,还用于根据所述字符串获取预设字符在所述字符串中的位置信息;通过所述位置信息提取所述预设字符对应的数值字符串;通过预设程序获取新位置信息,并提取所述新位置信息的数值字符串;从所述新位置信息对应的数值字符串中提取所述目标数值。The calculation module is also used to obtain the position information of the preset character in the character string according to the character string; extract the numerical string corresponding to the preset character through the position information; obtain new position information through a preset program and extract the numerical string of the new position information; extract the target value from the numerical string corresponding to the new position information. 7.一种终端设备,其特征在于,所述终端设备包括:存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的曲面方程绘制程序,所述曲面方程绘制程序配置为实现如权利要求1至5任一项所述的曲面方程绘制方法的步骤。7. A terminal device, characterized in that the terminal device comprises: a memory, a processor, and a surface equation drawing program stored in the memory and executable on the processor, wherein the surface equation drawing program is configured to implement the steps of the surface equation drawing method as described in any one of claims 1 to 5. 8.一种可读存储介质,其特征在于,所述可读存储介质为计算机可读存储介质,所述计算机可读存储介质上存储有曲面方程绘制程序,所述曲面方程绘制程序被处理器执行时实现如权利要求1至5任一项所述的曲面方程绘制方法的步骤。8. A readable storage medium, characterized in that the readable storage medium is a computer-readable storage medium, and a surface equation drawing program is stored on the computer-readable storage medium, and when the surface equation drawing program is executed by a processor, the steps of the surface equation drawing method according to any one of claims 1 to 5 are implemented.
CN201910165629.4A 2019-03-05 2019-03-05 Curve equation drawing method and device, terminal equipment and readable storage medium Expired - Fee Related CN109903357B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910165629.4A CN109903357B (en) 2019-03-05 2019-03-05 Curve equation drawing method and device, terminal equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910165629.4A CN109903357B (en) 2019-03-05 2019-03-05 Curve equation drawing method and device, terminal equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN109903357A CN109903357A (en) 2019-06-18
CN109903357B true CN109903357B (en) 2023-04-25

Family

ID=66946207

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910165629.4A Expired - Fee Related CN109903357B (en) 2019-03-05 2019-03-05 Curve equation drawing method and device, terminal equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN109903357B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2099720A1 (en) * 1992-07-02 1994-01-03 Kirk O. Olynyk System and method for rendering bezier splines
JP2000149034A (en) * 1998-11-16 2000-05-30 Suuken Shuppan Kk Device and method for drawing tilted ellipse simultaneously touching two straight lines on display screen and recording medium with program drawing the ellipse recorded therein
EP1011075A2 (en) * 1998-12-18 2000-06-21 International Business Machines Corporation Method and apparatus for updating node position
CN101625765A (en) * 2009-08-18 2010-01-13 上海可鲁系统软件有限公司 Method for drawing rotating elliptical arc
GB201103772D0 (en) * 2010-03-04 2011-04-20 Pixar Scale separation in hair dynamics

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4418390B2 (en) * 2005-03-22 2010-02-17 三菱重工業株式会社 Three-dimensional shape processing apparatus, curved surface generation program and method
CN102831278A (en) * 2012-09-06 2012-12-19 深圳市常兴技术股份有限公司 Interactive automatic mapping system based on CAD (computer-aided design), mapping method and construction method of system
CN107221016B (en) * 2016-03-22 2021-05-18 阿里巴巴集团控股有限公司 Processing method and device for Path graph in SVG format
CN106055825A (en) * 2016-06-12 2016-10-26 文小发 Modeling realization method and system based on CAD
CN107945246A (en) * 2017-11-07 2018-04-20 中船黄埔文冲船舶有限公司 Method, apparatus, terminal device and the storage medium of Parametric Drawing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2099720A1 (en) * 1992-07-02 1994-01-03 Kirk O. Olynyk System and method for rendering bezier splines
JP2000149034A (en) * 1998-11-16 2000-05-30 Suuken Shuppan Kk Device and method for drawing tilted ellipse simultaneously touching two straight lines on display screen and recording medium with program drawing the ellipse recorded therein
EP1011075A2 (en) * 1998-12-18 2000-06-21 International Business Machines Corporation Method and apparatus for updating node position
CN101625765A (en) * 2009-08-18 2010-01-13 上海可鲁系统软件有限公司 Method for drawing rotating elliptical arc
GB201103772D0 (en) * 2010-03-04 2011-04-20 Pixar Scale separation in hair dynamics

Also Published As

Publication number Publication date
CN109903357A (en) 2019-06-18

Similar Documents

Publication Publication Date Title
WO2022142014A1 (en) Multi-modal information fusion-based text classification method, and related device thereof
CN108009087A (en) Data library test method, device and computer-readable recording medium
CN110727417B (en) A data processing method and device
CN107436926A (en) Search for exchange method, device and computer-readable recording medium
CN113742005A (en) Platform docking method and device
CN113923474B (en) Video frame processing method, device, electronic equipment and storage medium
WO2022237633A1 (en) Image processing method, apparatus, and device, and storage medium
CN113467777A (en) Path identification method, device and system
CN108958871A (en) Page configuration of opening an account method, apparatus, system and computer readable storage medium
CN109903357B (en) Curve equation drawing method and device, terminal equipment and readable storage medium
CN117251164A (en) Model code conversion method, device, equipment and storage medium
CN107818152B (en) Plant retrieval method and system
CN113110874B (en) Method and apparatus for generating code structure diagram
US20220335227A1 (en) Machine translation guided by reference documents
CN113327691B (en) Query method and device based on language model, computer equipment and storage medium
US11837227B2 (en) System for user initiated generic conversation with an artificially intelligent machine
CN116524475A (en) Method and device for generating recommended dressing, vehicle, electronic equipment and storage medium
CN112735390B (en) Intelligent voice terminal equipment with voice recognition function
CN107832046A (en) Data creation method and device
CN116150415A (en) User portrait construction method, device and electronic equipment
CN113495651B (en) Window control method and device
CN115309563A (en) 5G message generation method, device, storage medium and product
CN107145759A (en) Hospital guide's implementation method, device and the computer-readable recording medium of family doctor
US20220391602A1 (en) Method of federated learning, electronic device, and storage medium
CN106155473A (en) A kind of terminal applies processing method and device thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20230425

CF01 Termination of patent right due to non-payment of annual fee