CN109933748A - Method of model identification, device, terminal device and the readable storage medium storing program for executing of ellipsoid equation - Google Patents
Method of model identification, device, terminal device and the readable storage medium storing program for executing of ellipsoid equation Download PDFInfo
- Publication number
- CN109933748A CN109933748A CN201910226577.7A CN201910226577A CN109933748A CN 109933748 A CN109933748 A CN 109933748A CN 201910226577 A CN201910226577 A CN 201910226577A CN 109933748 A CN109933748 A CN 109933748A
- Authority
- CN
- China
- Prior art keywords
- character string
- parameter
- ellipsoid
- equation
- ellipsoid equation
- 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.)
- Granted
Links
Abstract
The invention discloses method of model identification, device, terminal device and the readable storage medium storing program for executing of a kind of ellipsoid equation.Present invention firstly receives the models of the ellipsoid equation of user's input to identify instruction, ellipsoid equation data is extracted from model identification instruction, then target component is extracted from the ellipsoid equation data, it is identified further according to model of the target component to the ellipsoid equation, determines the model and graphing of the ellipsoid equation.The model of a variety of ellipsoid equations is stored in default storage region by the present invention, it is ensured that has model corresponding with the ellipsoid equation for each ellipsoid equation, and being capable of automatic graphing.
Description
Technical field
The present invention relates to ellipsoid equation identification technology field more particularly to a kind of model identification sides of ellipsoid equation
Method, device, terminal device and readable storage medium storing program for executing.
Background technique
In order to realize the Automatic Drawing of ellipsoid equation, it is necessary to which the identification for solving ellipsoid equation diversified forms is being protected
Parameter is there can be no on the basis of score in card equation, and there are many various forms of inputs in total for ellipsoid equation, it is clear that if
One ellipsoid of every drafting requires to go to write program and graphing again to be for a user one very difficult
Thing.
The algorithm of ellipsoid can be drawn out there is presently no the model that can recognize that all ellipsoid equations and automatically,
User encounters very big difficulty when drawing ellipsoid equation, and ellipsoid equation of every drafting requires to rewrite primary
Algorithm affects the experience of user.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill
Art.
Summary of the invention
The main purpose of the present invention is to provide method of model identification, device, the terminal devices of a kind of ellipsoid equation
And readable storage medium storing program for executing, it is intended to solve the skill that the prior art can not identify the model of ellipsoid equation and draw out ellipsoid automatically
Art problem.
To achieve the above object, the present invention provides a kind of method of model identification of ellipsoid equation, the method includes
Following steps:
In the model identification instruction for receiving the ellipsoid equation of user's input, ellipsoid is extracted from identification instruction
Face equation data;
Character string is converted by the ellipsoid equation data, extracts target component from the character string;
Ellipsoid parameter corresponding with the target component is searched in parameter preset table according to the target component, according to
The target component determines the equation model of the ellipsoid equation.
Preferably, described to convert character string for the ellipsoid equation data, target ginseng is extracted from the character string
Before number, the method for model identification of the ellipsoid equation further include:
Preset relation is corresponded into table and is stored in default storage region, it includes ellipsoid equation data that the preset relation, which corresponds to table,
Corresponding relationship between character string;
The ellipsoid equation data is converted into character string, extracts target component from the character string, specifically includes:
Table is corresponded to according to the preset relation and converts character string for the ellipsoid equation data, from the character string
Extract the target component.
Preferably, described table is corresponded to according to the preset relation to convert character string for the ellipsoid equation data, from
Before extracting the target component in the character string, the method for model identification of the ellipsoid equation includes:
Preset characters are stored in storage region, the preset characters are for obtaining targeted parameter value;
It is described table is corresponded to according to the preset relation to convert character string for the ellipsoid equation data, from the character
The target component is extracted in string, is specifically included:
Table, which is corresponded to, according to the preset relation converts character string for the ellipsoid equation data;
The targeted parameter value is extracted from the character string according to the preset characters, the targeted parameter value includes mesh
Mark variable parameter and target value parameter.
Preferably, the preset characters include: default bracket character and default slash character;
It is described that the targeted parameter value, the targeted parameter value packet are extracted from the character string according to the preset characters
Target variable parameter and target value parameter are included, the method for model identification of the ellipsoid equation includes:
The target variable parameter is extracted from the character string according to the default bracket character;
The target value parameter is extracted from the character string according to the default slash character.
Preferably, described that the target variable parameter is extracted from the character string according to the default bracket character, tool
Body includes:
The location information that bracket character is preset described in the character string is obtained, according to the positional information from the character
The target variable parameter is extracted in string.
Preferably, described that the target value parameter is extracted from the character string according to the default slash character, tool
Body includes:
The location information that slash character is preset described in the character string is obtained, according to the positional information from the character
The target value parameter is extracted in string.
Preferably, described to search ellipsoid corresponding with the target component in parameter preset table according to the target component
Face parameter, before the equation model that the ellipsoid equation is determined according to the target component, the model of the ellipsoid equation
Recognition methods further include:
Parameter preset table is stored in storage region, the parameter preset table includes a variety of different form ellipsoid equations and each
Corresponding relationship between item parameter preset;
It is described to search parameter preset corresponding with the target component, root in parameter preset table according to the target component
The equation model that the ellipsoid equation is determined according to the parameter preset, specifically includes:
It is according to parameter preset corresponding with the target component is searched in parameter preset table according to the target component
The target component is matched with the parameters in the parameter preset table, according to the parameter preset and a variety of differences
Corresponding relationship between form ellipsoid equation determines the equation model of the ellipsoid equation.
In addition, to achieve the above object, the present invention also proposes a kind of model identification device of ellipsoid equation, described device
Include:
Module is obtained, when for instructing in the model identification for receiving the ellipsoid equation of user's input, from the identification
Ellipsoid equation data is extracted in instruction;
Computing module extracts target from the character string for converting character string for the ellipsoid equation data
Parameter;
Identification module, it is corresponding with the target component ellipse for being searched in parameter preset table according to the target component
Sphere parameters determine the equation model of the ellipsoid equation according to the target component.
In addition, to achieve the above object, the present invention also proposes a kind of terminal device, the terminal device include: memory,
Processor and the model recognizer for being stored in the ellipsoid equation that can be run on the memory and on the processor,
The model recognizer of the ellipsoid equation is arranged for carrying out the method for model identification of ellipsoid equation as described above
Step.
In addition, to achieve the above object, the present invention also proposes that a kind of readable storage medium storing program for executing, the readable storage medium storing program for executing are meter
Calculation machine readable storage medium storing program for executing is stored with the model recognizer of ellipsoid equation on the computer readable storage medium, described
The model recognizer of ellipsoid equation realizes the step of method of model identification of the ellipsoid equation when being executed by processor.
The invention discloses method of model identification, device, terminal device and the readable storage medium storing program for executing of a kind of ellipsoid equation.
Present invention firstly receives the models of the ellipsoid equation of user's input to identify instruction, extracts ellipsoid from model identification instruction
Then face equation data extracts target component from the ellipsoid equation data, further according to the target component to described ellipse
The model of spherical equation is identified, determines the model and graphing of the ellipsoid equation.The present invention is by a variety of ellipsoids
The model of equation is stored in default storage region, it is ensured that is had and the ellipsoid equation pair for each ellipsoid equation
The model answered, and being capable of automatic graphing.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the terminal device for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of the method for model identification first embodiment of ellipsoid equation of the present invention;
Fig. 3 is the flow diagram of the method for model identification second embodiment of ellipsoid equation of the present invention;
Fig. 4 is the functional block diagram of the method for model identification first embodiment of ellipsoid equation of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that described herein, specific examples are only used to explain the present invention, is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is the structural representation of the terminal device for the hardware running environment that the embodiment of the present invention is related to
Figure.
As shown in Figure 1, the terminal device may include: processor 1001, such as central processing unit (Central
Processing Unit, CPU), communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein,
Communication bus 1002 is for realizing the connection communication between these components.User interface 1003 may include display screen
(Display), input unit such as keyboard (Keyboard), optional user interface 1003 can also include that the wired of standard connects
Mouth, wireless interface.Network interface 1004 optionally may include standard wireline interface and wireless interface (such as Wireless Fidelity
(WIreless-FIdelity, WI-FI) interface).Memory 1005 can be the random access memory (Random of high speed
Access Memory, RAM) memory, be also possible to stable nonvolatile memory (Non-Volatile Memory,
), such as magnetic disk storage NVM.Memory 1005 optionally can also be the storage device independently of aforementioned processor 1001.
It will be understood by those skilled in the art that structure shown in Fig. 1 does not constitute the restriction to terminal device, in reality
Terminal device may include perhaps combining certain components or different components than illustrating more or fewer components in
Arrangement.
As shown in Figure 1, as may include operating system, network communication mould in a kind of memory 1005 of storage medium
The recognizer of block, Subscriber Interface Module SIM and ellipsoid equation.
In terminal device shown in Fig. 1, network interface 1004 is mainly used for establishing terminal device and storage ellipsoid side
The communication connection of the server of all data needed for the method for model identification system of journey;User interface 1003 be mainly used for
User carries out data interaction;The terminal device calls the ellipsoid equation stored in memory 1005 by processor 1001
Recognizer, and execute following operation:
In the model identification instruction for receiving the ellipsoid equation of user's input, ellipsoid is extracted from identification instruction
Face equation data;
Character string is converted by the ellipsoid equation data, extracts target component from the character string;
Ellipsoid parameter corresponding with the target component is searched in parameter preset table according to the target component, according to
The target component determines the equation model of the ellipsoid equation.
Further, processor 1001 can call the recognizer of the ellipsoid equation stored in memory 1005, also
Execute following operation:
Preset relation is corresponded into table and is stored in default storage region, it includes ellipsoid equation data that the preset relation, which corresponds to table,
Corresponding relationship between character string;
The ellipsoid equation data is converted into character string, extracts target component from the character string, specifically includes:
Table is corresponded to according to the preset relation and converts character string for the ellipsoid equation data, from the character string
Extract the target component.
Further, processor 1001 can call the recognizer of the ellipsoid equation stored in memory 1005, also
Execute following operation:
Preset characters are stored in storage region, the preset characters are for obtaining targeted parameter value;
It is described table is corresponded to according to the preset relation to convert character string for the ellipsoid equation data, from the character
The target component is extracted in string, is specifically included:
Table, which is corresponded to, according to the preset relation converts character string for the ellipsoid equation data;
The targeted parameter value is extracted from the character string according to the preset characters, the targeted parameter value includes mesh
Mark variable parameter and target value parameter.
Further, processor 1001 can call the recognizer of the ellipsoid equation stored in memory 1005, also
Execute following operation:
It is described that the targeted parameter value, the targeted parameter value packet are extracted from the character string according to the preset characters
Target variable parameter and target value parameter are included, the method for model identification of the ellipsoid equation includes:
The target variable parameter is extracted from the character string according to the default bracket character;
The target value parameter is extracted from the character string according to the default slash character.
Further, processor 1001 can call the recognizer of the ellipsoid equation stored in memory 1005, also
Execute following operation:
The location information that bracket character is preset described in the character string is obtained, according to the positional information from the character
The target variable parameter is extracted in string.
Further, processor 1001 can call the recognizer of the ellipsoid equation stored in memory 1005, also
Execute following operation:
The location information that slash character is preset described in the character string is obtained, according to the positional information from the character
The target value parameter is extracted in string.
Further, processor 1001 can call the recognizer of the ellipsoid equation stored in memory 1005, also
Execute following operation:
Parameter preset table is stored in storage region, the parameter preset table includes a variety of different form ellipsoid equations and each
Corresponding relationship between item parameter preset;
It is described to search parameter preset corresponding with the target component, root in parameter preset table according to the target component
The equation model that the ellipsoid equation is determined according to the parameter preset, specifically includes:
It is according to parameter preset corresponding with the target component is searched in parameter preset table according to the target component
The target component is matched with the parameters in the parameter preset table, according to the parameter preset and a variety of differences
Corresponding relationship between form ellipsoid equation determines the equation model of the ellipsoid equation.
Through the above scheme, the model of the ellipsoid equation of reception user input first identifies instruction to the present embodiment, from institute
It states in model identification instruction and extracts ellipsoid equation data, then extract target component from the ellipsoid equation data, then
It is identified according to model of the target component to the ellipsoid equation, determines the model of the ellipsoid equation and drafting
Figure.The model of a variety of ellipsoid equations is stored in default storage region by the present embodiment, it is ensured that for each ellipsoid
Equation has model corresponding with the ellipsoid equation, and being capable of automatic graphing.
The present invention implements to be based on above-mentioned hardware configuration, proposes the recognition methods embodiment of ellipsoid equation of the present invention.
It is the flow diagram of the method for model identification first embodiment of ellipsoid equation of the present invention referring to Fig. 2, Fig. 2.
In the present embodiment, the method for model identification of the ellipsoid equation the following steps are included:
S10: it in the model identification instruction for receiving the ellipsoid equation of user's input, is extracted from identification instruction
Ellipsoid equation data.
It will be appreciated that the model identification instruction of the ellipsoid equation may come from user's input either system
Portion's output waits the data being further processed.In the present embodiment, ellipsoid equation data is inputted from user, the ellipsoid
Equation data is the ellipsoid equation for needing to identify.
S20: character string is converted by the ellipsoid equation data, extracts target component from the character string.
Correspondingly, it before implementing this step, needs to correspond to preset relation table and preset characters is stored in default memory block
Domain, it includes the corresponding relationship between ellipsoid equation data and character string that the preset relation, which corresponds to table, and the preset characters are used
In obtaining targeted parameter value, the targeted parameter value includes target variable parameter and target value parameter.
In addition, in a particular embodiment, the present embodiment is by traversing default storage region, then according to the default pass
It is to correspond to table to convert character string for the ellipsoid equation data, the position of preset characters is then extracted from the character string
Information extracts the targeted parameter value further according to the location information from the character string, that is, extracts the target variable ginseng
The several and described target value parameter.
S30: searching ellipsoid parameter corresponding with the target component according to the target component in parameter preset table,
The equation model of the ellipsoid equation is determined according to the target component.
It should be understood that in step slo, having got the described ellipse of the model identification for participating in ellipsoid equation
Spherical equation only needs to extract at this time the data of needs from the ellipsoid equation;In step S20, by described default
Mapping table and the preset characters have got the target variable parameter and the mesh that identification ellipsoid equation needs
Mark numerical parameter;Therefore, step S30 is searched and the target variable parameter and the target value according to the parameter preset table
The corresponding ellipsoid parameter of parameter, then determines the ellipsoid according to the target variable parameter and the target value parameter
The equation model of equation.
In addition, in a particular embodiment, before identifying ellipsoid figure, it is also necessary to determine the target variable parameter and
The sequence of the target value parameter a, because of ellipsoid, even if the ellipsoid equation is unique, but the ellipsoid
Face equation might have a variety of different forms of expression, the very described target variable parameter of this variety of different form of expression and described
Sequence of the target value parameter in character string is related.
The method of model identification of the ellipsoid equation provided in order to better understand the present invention, is specifically described below:
Step 1 receives the character string fexp of the expression ellipsoid equation sended over from input terminal;
Step 2 siIndicate character string fexp in i-th there is left bracket " (" position, then the value of i is up to 3;
Step 3 tiIndicate character string fexp in i-th there is right parenthesis ") " position, then the value of i is up to 3;
Step 4 indicates position of the variable x in character string with lx, indicates position of the variable y in character string with ly, uses lz
Indicate position of the variable z in character string;
Step 5 indicates occur in character string with flag " number of ^2 ".If flag be not equal to 3, then it represents that input it is ellipse
Spherical equation is wrong;
If any one position is not present in step 6 lx, ly and lz, then it represents that the input of the ellipsoid equation of mistake;
If step 7 lx < ly < lz, the process that 7 parameters are isolated from character string fexp is as follows:
(1) searched in character string fexp "+(y " and "+y " and position, if the two positions are all not present, then it represents that
The input of the ellipsoid equation of mistake;
(2) searched in character string fexp "+(z " and "+z " and position, if the two positions are all not present, then it represents that
The input of the ellipsoid equation of mistake;
(3) if there is no left bracket in character string fexp " (", x0=y0=z0=0;
(4) if only one left bracket in character string fexp " (", have following three may:
1. if s1< lx, then have y0=z0=0, therefore only need to be from the position lx+1 and t of character string fexp1Taken out between-1-
x0If the character string taken out is not numeric character string, report an error;Otherwise, it is translated into numerical value;
2. if lx < s1< ly, then have x0=z0=0, therefore only need to be from the position ly+1 and t of character string fexp1It is taken between -1
- y out0If the character string taken out is not numeric character string, report an error;Otherwise, it is translated into numerical value;
3. if ly < s1< lz, then have x0=y0=0, therefore only need to be from the position lz+1 and t of character string fexp1It is taken between -1
- z out0If the character string taken out is not numeric character string, report an error;Otherwise, it is translated into numerical value;
(5) if only there are two left brackets in character string fexp " (", have following three possible:
1. if t2< lz, then have z0=0, therefore from the position lx+1 and t of character string fexp1Taking-up-x between -10, from character
The position ly+1 and t of string fexp2Taking-up-y between -10;
2. if s1> lx, then have x0=0, therefore from the position ly+1 and t of character string fexp1Taking-up-y between -10, from character
The position lz+1 and t of string fexp2Taking-up-z between -10;
3. if s1< lx and s2> ly, then have y0=0, therefore from the position lx+1 and t of character string fexp1Taking-up-x between -10,
From the position lz+1 and t of character string fexp2Taking-up-z between -10;
(6) if there are three left brackets in character string fexp " (", need the position lx+1 and t from character string fexp1-1
Between taking-up-x0, from the position ly+1 and t of character string fexp2Taking-up-y between -10, and from the position lz+1 of character string fexp
And t3Taking-up-z between -10;
(7) s is usediIndicate left slash "/" position present in character string fexp, then i is up to 3;
(8) t is used1Indicate in character string fexp "+(y " or "+y " there are position, if it does not exist, then indicating to be inputted
The error of ellipsoid equation;
(9) t is used2Indicate in character string fexp "+(z " and "+z " there are position, if it does not exist, then indicating to be inputted
The error of ellipsoid equation;
(10) t is used3Indicate character string fexp in "=" there are positions, use t4Indicate the length of character string fexp;
(11) if there is no left slash in character string fexp "/", there is a=b=c=1;
(12) if the left slash of only one in character string fexp "/", need point three kinds of situations to discuss:
1. if s1< ly, then have a b=c=1, and from the position s in character string fexp1+ 1 and t1Parameter a is taken out between -1;
2. if ly < s1< lz, then have an a=c=1, and from the position s in character string fexp1+ 1 and t2Ginseng is taken out between -1
Number b;
3. if s1> lz, then have an a=b=1, and from the position s in character string fexp1+ 1 and t3Parameter c is taken out between -1;
(13) if there are two left slash in character string fexp "/", it also needs point three kinds of situations and discusses:
1. if s1> ly, then have an a=1, and from the position s in character string fexp1+ 1 and t2Parameter b is taken out between -1, and
From the position s in character string fexp2+ 1 and t3Parameter c is taken out between -1;
2. if s2< lz, then have a c=1, and from the position s in character string fexp1+ 1 and t1Parameter a is taken out between -1, and
From the position s in character string fexp2+ 1 and t2Parameter b is taken out between -1;
3. if s1< ly and s2> lz, then have a b=1, and from the position s in character string fexp1+ 1 and t1Ginseng is taken out between -1
Number a, and from the position s in character string fexp2+ 1 and t3Parameter c is taken out between -1;
(14) if there are three left slash in character string fexp "/", from the position s in character string fexp1+ 1 and t1- 1 it
Between take out parameter a, from the position s in character string fexp2+ 1 and t2Parameter b is taken out between -1, from the position s in character string fexp3
+ 1 and t3Parameter c is taken out between -1;
(15) from the position t in character string fexp3+ 1 and t4Between take out parameter d;
If step 8 ly < lx < lz, the process that 7 parameters are isolated from character string fexp is as follows:
(1) searched in character string fexp "+(x " and "+x " and position, if the two positions are all not present, then it represents that
The input of the ellipsoid equation of mistake;
(2) searched in character string fexp "+(z " and "+z " and position, if the two positions are all not present, then it represents that
The input of the ellipsoid equation of mistake;
(3) if there is no left bracket in character string fexp " (", x0=y0=z0=0;
(4) if only one left bracket in character string fexp " (", have following three may:
1. if s1< ly, then have x0=z0=0, therefore only need to be from the position ly+1 and t of character string fexp1Taken out between-1-
y0If the character string taken out is not numeric character string, report an error;Otherwise, it is translated into numerical value;
2. if ly < s1< lx, then have y0=z0=0, therefore only need to be from the position lx+1 and t of character string fexp1It is taken between -1
- x out0If the character string taken out is not numeric character string, report an error;Otherwise, it is translated into numerical value;
3. if lx < s1< lz, then have x0=y0=0, therefore only need to be from the position lz+1 and t of character string fexp1It is taken between -1
- z out0If the character string taken out is not numeric character string, report an error;Otherwise, it is translated into numerical value;
(5) if only there are two left brackets in character string fexp " (", have following three possible:
1. if t2< lz, then have z0=0, therefore from the position lx+1 and t of character string fexp1Taking-up-x between -10, from character
The position ly+1 and t of string fexp2Taking-up-y between -10;
2. if s1> ly, then have y0=0, therefore from the position lx+1 and t of character string fexp1Taking-up-x between -10, from character
The position lz+1 and t of string fexp2Taking-up-z between -10;
3. if s1< ly and s2> lx, then have x0=0, therefore from the position ly+1 and t of character string fexp1Taking-up-y between -10,
From the position lz+1 and t of character string fexp2Taking-up-z between -10;
(6) if there are three left brackets in character string fexp " (", need the position ly+1 and t from character string fexp1-1
Between taking-up-y0, from the position lx+1 and t of character string fexp2Taking-up-x between -10, and from the position lz+1 of character string fexp
And t3Taking-up-z between -10;
(7) s is usediIndicate left slash "/" position present in character string fexp, then i is up to 3;
(8) t is used1Indicate in character string fexp "+(x " or "+x " there are position, if it does not exist, then indicating to be inputted
The error of ellipsoid equation;
(9) t is used2Indicate in character string fexp "+(z " and "+z " there are position, if it does not exist, then indicating to be inputted
The error of ellipsoid equation;
(10) t is used3Indicate character string fexp in "=" there are position and t4Indicate the length of character string fexp;
(11) if there is no left slash in character string fexp "/", there is a=b=c=1;
(12) if the left slash of only one in character string fexp "/", need point three kinds of situations to discuss:
1. if s1< lx, then have an a=c=1, and from the position s in character string fexp1+ 1 and t1Parameter b is taken out between -1;
2. if lx < s1< lz, then have a b=c=1, and from the position s in character string fexp1+ 1 and t2Ginseng is taken out between -1
Number a;
3. if s1> lz, then have an a=b=1, and from the position s in character string fexp1+ 1 and t3Parameter c is taken out between -1;
(13) if there are two left slash in character string fexp "/", it also needs point three kinds of situations and discusses:
1. if s1> lx, then have a b=1, and from the position s in character string fexp1+ 1 and t2Parameter a is taken out between -1, and
From the position s in character string fexp2+ 1 and t3Parameter c is taken out between -1;
2. if s2< lz, then have a c=1, and from the position s in character string fexp1+ 1 and t1Parameter b is taken out between -1, and
From the position s in character string fexp2+ 1 and t2Parameter a is taken out between -1;
3. if s1< lx and s2> lz, then have an a=1, and from the position s in character string fexp1+ 1 and t1Ginseng is taken out between -1
Number b, and from the position s in character string fexp2+ 1 and t3Parameter c is taken out between -1;
(14) if there are three left slash in character string fexp "/", from the position s in character string fexp1+ 1 and t1- 1 it
Between take out parameter b, from the position s in character string func2+ 1 and t2Parameter a is taken out between -1, from the position s in character string fexp3
+ 1 and t3Parameter c is taken out between -1;
(15) from the position t in character string fexp3+ 1 and t4Between take out parameter d;
If step 9 lx < lz < ly, the process that 7 parameters are isolated from character string fexp is as follows:
(1) searched in character string fexp "+(z " and "+z " and position, if the two positions are all not present, then it represents that
The input of the ellipsoid equation of mistake;
(2) searched in character string fexp "+(y " and "+y " and position, if the two positions are all not present, then it represents that
The input of the ellipsoid equation of mistake;
(3) if there is no left bracket in character string fexp " (", x0=y0=z0=0;
(4) if only one left bracket in character string fexp " (", have following three may:
1. if s1< lx, then have y0=z0=0, therefore only need to be from the position lx+1 and t of character string fexp1Taken out between-1-
x0If the character string taken out is not numeric character string, report an error;Otherwise, it is translated into numerical value;
2. if lx < s1< lz, then have x0=y0=0, therefore only need to be from the position lz+1 and t of character string fexp1It is taken between -1
- z out0If the character string taken out is not numeric character string, report an error;Otherwise, it is translated into numerical value;
3. if lz < s1< ly, then have x0=z0=0, therefore only need to be from the position ly+1 and t of character string fexp1It is taken between -1
- y out0If the character string taken out is not numeric character string, report an error;Otherwise, it is translated into numerical value;
(5) if only there are two left brackets in character string fexp " (", have following three possible:
1. if t2< ly, then have y0=0, therefore from the position lx+1 and t of character string fexp1Taking-up-x between -10, from character
The position lz+1 and t of string fexp2Taking-up-z between -10;
2. if s1> lx, then have x0=0, therefore from the position lz+1 and t of character string fexp1Taking-up-z between -10, from character
The position ly+1 and t of string fexp2Taking-up-y between -10;
3. if s1< lx and s2> lz, then have z0=0, therefore from the position lx+1 and t of character string fexp1Taking-up-x between -10,
From the position ly+1 and t of character string fexp2Taking-up-y between -10;
(6) if there are three left brackets in character string fexp " (", need the position lx+1 and t from character string fexp1-1
Between taking-up-x0, from the position lz+1 and t of character string fexp2Taking-up-z between -10, and from the position ly+1 of character string fexp
And t3Taking-up-y between -10;
(7) s is usediIndicate left slash "/" position present in character string fexp, then i is up to 3;
(8) t is used1Indicate in character string fexp "+(z " or "+z " there are position, if it does not exist, then indicating to be inputted
The error of ellipsoid equation;
(9) t is used2Indicate in character string fexp "+(y " or "+y " there are position, if it does not exist, then indicating to be inputted
The error of ellipsoid equation;
(10) t is used3Indicate character string fexp in "=" there are position and t4Indicate the length of character string fexp;
(11) if there is no left slash in character string fexp "/", there is a=b=c=1;
(12) if the left slash of only one in character string fexp "/", need point three kinds of situations to discuss:
1. if s1< lz, then have a b=c=1, and from the position s in character string fexp1+ 1 and t1Parameter a is taken out between -1;
2. if lz < s1< ly, then have an a=b=1, and from the position s in character string fexp1+ 1 and t2Ginseng is taken out between -1
Number c;
3. if s1> ly, then have an a=c=1, and from the position s in character string fexp1+ 1 and t3Between take out parameter a;
(13) if there are two left slash in character string fexp "/", it also needs point three kinds of situations and discusses:
1. if s1> lz, then have an a=1, and from the position s in character string fexp1+ 1 and t2Parameter c is taken out between -1, and
From the position s in character string fexp2+ 1 and t3Parameter b is taken out between -1;
2. if s2< ly, then have a b=1, and from the position s in character string fexp1+ 1 and t1Parameter a is taken out between -1, and
From the position s in character string fexp2+ 1 and t2Parameter c is taken out between -1;
3. if s1< lz and s2> ly, then have a c=1, and from the position s in character string fexp1+ 1 and t1Ginseng is taken out between -1
Number a, and from the position s in character string fexp2+ 1 and t3Parameter b is taken out between -1;
(14) if there are three left slash in character string fexp "/", from the position s in character string fexp1+ 1 and t1- 1 it
Between take out parameter a, from the position s in character string fexp2+ 1 and t2Parameter c is taken out between -1, from the position s in character string fexp3
+ 1 and t3Between take out parameter b;
(15) from the position t in character string fexp3+ 1 and t4Between take out parameter d;
If step 10 lz < lx < ly, the process that 7 parameters are isolated from character string fexp is as follows:
(1) searched in character string fexp "+(x " and "+x " and position, if the two positions are all not present, then it represents that
The input of the ellipsoid equation of mistake;
(2) searched in character string fexp "+(y " and "-y " and position, if the two positions are all not present, then it represents that
The input of the ellipsoid equation of mistake;
(3) if there is no left bracket in character string fexp " (", x0=y0=z0=0;
(4) if only one left bracket in character string fexp " (", have following three may:
1. if s1< lz, then have y0=x0=0, therefore only need to be from the position lz+1 and t of character string fexp1Taken out between-1-
z0If the character string taken out is not numeric character string, report an error;Otherwise, it is translated into numerical value;
2. if lz < s1< lx, then have y0=z0=0, therefore only need to be from the position lx+1 and t of character string fexp1It is taken between -1
- x out0If the character string taken out is not numeric character string, report an error;Otherwise, it is translated into numerical value;
3. if lx < s1< ly, then have x0=z0=0, therefore only need to be from the position ly+1 and t of character string fexp1It is taken between -1
- y out0If the character string taken out is not numeric character string, report an error;Otherwise, it is translated into numerical value;
(5) if only there are two left brackets in character string fexp " (", have following three possible:
1. if t2< ly, then have y0=0, therefore from the position lz+1 and t of character string fexp1Taking-up-z between -10, from character
The position lx+1 and t of string fexp2Taking-up-x between -10;
2. if s1> lz, then have z0=0, therefore from the position lx+1 and t of character string fexp1Taking-up-x between -10, from character
The position ly+1 and t of string fexp2Taking-up-y between -10;
3. if s1< lz and s2> ly, then have x0=0, therefore from the position lz+1 and t of character string fexp1Taking-up-z between -10,
From the position ly+1 and t of character string fexp2Taking-up-y between -10;
(6) if there are three left brackets in character string fexp " (", need the position lz+1 and t from character string fexp1-1
Between taking-up-z0, from the position lx+1 and t of character string fexp2Taking-up-x between -10, and from the position ly+1 of character string fexp
And t3Taking-up-y between -10;
(7) s is usediIndicate left slash "/" position present in character string fexp, then i is up to 3;
(8) t is used1Indicate in character string fexp "+(x " or "+x " there are position, if it does not exist, then indicating to be inputted
The error of ellipsoid equation;
(9) t is used2Indicate in character string fexp "+(y " and "+y " there are position, if it does not exist, then indicating the ellipse of mistake
The input of spherical equation;
(10) t is used3Indicate character string fexp in "=" there are position and t4Indicate the length of character string fexp;
(11) if there is no left slash in character string fexp "/", there is a=b=c=1;
(12) if the left slash of only one in character string fexp "/", need point three kinds of situations to discuss:
1. if s1< lx, then have a b=a=1, and from the position s in character string fexp1+ 1 and t1Parameter c is taken out between -1;
2. if lx < s1< ly, then have a b=c=1, and from the position s in character string fexp1+ 1 and t2Ginseng is taken out between -1
Number a;
3. if s1> ly, then have an a=c=1, and from the position s in character string fexp1+ 1 and t3Parameter b is taken out between -1;
(13) if there are two left slash in character string fexp "/", it also needs point three kinds of situations and discusses:
1. if s1> lx, then have a c=1, and from the position s in character string fexp1+ 1 and t2Parameter a is taken out between -1, and
From the position s in character string fexp2+ 1 and t3Parameter b is taken out between -1;
2. if s2< ly, then have a b=1, and from the position s in character string fexp1+ 1 and t1Parameter c is taken out between -1, and
From the position s in character string fexp2+ 1 and t2Parameter a is taken out between -1;
3. if s1< lx and s2> ly, then have an a=1, and from the position s in character string fexp1+ 1 and t1Ginseng is taken out between -1
Number c, and from the position s in character string fexp2+ 1 and t3Parameter b is taken out between -1;
(14) if there are three left slash in character string fexp "/", from the position s in character string fexp1+ 1 and t1- 1 it
Between take out parameter c, from the position s in character string fexp2+ 1 and t2Parameter a is taken out between -1, from the position s in character string fexp3
+ 1 and t3Parameter b is taken out between -1;
(15) from the position t in character string fexp3+ 1 and t4Between take out parameter d;
If step 11 ly < lz < lx, the process that 7 parameters are isolated from character string fexp is as follows:
(1) searched in character string fexp "+(z " and "+z " and position, if the two positions are all not present, then it represents that
The input of the ellipsoid equation of mistake;
(2) searched in character string fexp "+(x " and "+x " and position, if the two positions are all not present, then it represents that
The input of the ellipsoid equation of mistake;
(3) if there is no left bracket in character string fexp " (", x0=y0=z0=0;
(4) if only one left bracket in character string fexp " (", have following three may:
1. if s1< ly, then have z0=x0=0, therefore only need to be from the position ly+1 and t of character string fexp1Taken out between-1-
y0If the character string taken out is not numeric character string, report an error;Otherwise, it is translated into numerical value;
2. if ly < s1< lz, then have y0=x0=0, therefore only need to be from the position lz+1 and t of character string fexp1It is taken between -1
- z out0If the character string taken out is not numeric character string, report an error;Otherwise, it is translated into numerical value;
3. if lz < s1< lx, then have y0=z0=0, therefore only need to be from the position lx+1 and t of character string fexp1It is taken between -1
- x out0If the character string taken out is not numeric character string, report an error;Otherwise, it is translated into numerical value;
(5) if only there are two left brackets in character string fexp " (", have following three possible:
1. if t2< lx, then have x0=0, therefore from the position ly+1 and t of character string fexp1Taking-up-y between -10, from character
The position lz+1 and t of string fexp2Taking-up-z between -10;
2. if s1> ly, then have y0=0, therefore from the position lz+1 and t of character string fexp1Taking-up-z between -10, from character
The position lx+1 and t of string fexp2Taking-up-x between -10;
3. if s1< ly and s2> lx, then have z0=0, therefore from the position ly+1 and t of character string fexp1Taking-up-y between -10,
From the position lx+1 and t of character string fexp2Taking-up-x between -10;
(6) if there are three left brackets in character string fexp " (", need the position ly+1 and t from character string fexp1-1
Between taking-up-y0, from the position lz+1 and t of character string fexp2Taking-up-z between -10, and from the position lx+1 of character string fexp
And t3Taking-up-x between -10;
(7) s is usediIndicate left slash "/" position present in character string fexp, then i is up to 3;
(8) t is used1Indicate in character string fexp "+(z " or "+z " there are position, if it does not exist, then indicating to be inputted
The error of ellipsoid equation;
(9) t is used2Indicate in character string fexp "+(x " or "+x " there are position, if it does not exist, then indicating to be inputted
The error of ellipsoid equation;
(10) t is used3Indicate character string fexp in "=" there are position and t4Indicate the length of character string fexp;
(11) if there is no left slash in character string fexp "/", there is a=b=c=1;
(12) if the left slash of only one in character string fexp "/", need point three kinds of situations to discuss:
1. if s1< lz, then have a c=a=1, and from the position s in character string fexp1+ 1 and t1Parameter b is taken out between -1;
2. if lz < s1< lx, then have a b=a=1, and from the position s in character string fexp1+ 1 and t2Ginseng is taken out between -1
Number c;
3. if s1> lx, then have a b=c=1, and from the position s in character string fexp1+ 1 and t3Parameter a is taken out between -1;
(13) if there are two left slash in character string fexp "/", it also needs point three kinds of situations and discusses:
1. if s1> lz, then have a b=1, and from the position s in character string fexp1+ 1 and t2Parameter c is taken out between -1, and
From the position s in character string fexp2+ 1 and t3Parameter a is taken out between -1;
2. if s2< lx, then have an a=1, and from the position s in character string fexp1+ 1 and t1Parameter b is taken out between -1, and
From the position s in character string fexp2+ 1 and t2Parameter c is taken out between -1;
3. if s1< lz and s2> lx, then have a c=1, and from the position s in character string fexp1+ 1 and t1Ginseng is taken out between -1
Number b, and from the position s in character string fexp2+ 1 and t3Parameter a is taken out between -1;
(14) if there are three left slash in character string fexp "/", from the position s in character string fexp1+ 1 and t1- 1 it
Between take out parameter b, from the position s in character string fexp2+ 1 and t2Parameter c is taken out between -1, from the position s in character string fexp3
+ 1 and t3Parameter a is taken out between -1;
(15) from the position t in character string fexp3+ 1 and t4Between take out parameter;
If step 12 lz < ly < lx, the process that 7 parameters are isolated from character string fexp is as follows:
(1) searched in character string fexp "+(y " and "+y " and position, if the two positions are all not present, then it represents that
The input of the ellipsoid equation of mistake;
(2) searched in character string fexp "+(x " and "+x " and position, if the two positions are all not present, then it represents that
The input of the ellipsoid equation of mistake;
(3) if there is no left bracket in character string fexp " (", x0=y0=z0=0;
(4) if only one left bracket in character string fexp " (", have following three may:
1. if s1< lz, then have y0=x0=0, therefore only need to be from the position lz+1 and t of character string fexp1Taken out between-1-
z0If the character string taken out is not numeric character string, report an error;Otherwise, it is translated into numerical value;
2. if lz < s1< ly, then have x0=z0=0, therefore only need to be from the position ly+1 and t of character string fexp1It is taken between -1
- y out0If the character string taken out is not numeric character string, report an error;Otherwise, it is translated into numerical value;
3. if ly < s1< lx, then have y0=z0=0, therefore only need to be from the position lx+1 and t of character string fexp1It is taken between -1
- x out0If the character string taken out is not numeric character string, report an error;Otherwise, it is translated into numerical value;
(5) if only there are two left brackets in character string fexp " (", have following three possible:
1. if t2< lx, then have x0=0, therefore from the position lz+1 and t of character string fexp1Taking-up-z between -10, from character
The position ly+1 and t of string fexp2Taking-up-y between -10;
2. if s1> lz, then have z0=0, therefore from the position ly+1 and t of character string fexp1Taking-up-y between -10, from character
The position lx+1 and t of string fexp2Taking-up-x between -10;
3. if s1< lz and s2> lx, then have y0=0, therefore from the position lz+1 and t of character string fexp1Taking-up-z between -10,
From the position lx+1 and t of character string fexp2Taking-up-x between -10;
(6) if there are three left brackets in character string fexp " (", need the position lz+1 and t from character string fexp1-1
Between taking-up-z0, from the position ly+1 and t of character string fexp2Taking-up-y between -10, and from the position lx+1 of character string fexp
And t3Taking-up-x between -10;
(7) s is usediIndicate left slash "/" position present in character string fexp, then i is up to 3;
(8) t is used1Indicate in character string fexp "+(y " or "+y " there are position, if it does not exist, then indicating to be inputted
The error of ellipsoid equation;
(9) t is used2Indicate in character string fexp "+(x " or "+x " there are position, if it does not exist, then indicating to be inputted
The error of ellipsoid equation;
(10) t is used3Indicate character string fexp in "=" there are position and t4Indicate the length of character string fexp;
(11) if there is no left slash in character string fexp "/", there is a=b=c=1;
(12) if the left slash of only one in character string fexp "/", need point three kinds of situations to discuss:
1. if s1< ly, then have a b=a=1, and from the position s in character string fexp1+ 1 and t1Parameter c is taken out between -1;
2. if ly < s1< lx, then have an a=c=1, and from the position s in character string fexp1+ 1 and t2Ginseng is taken out between -1
Number b;
3. if s1> lx, then have a b=c=1, and from the position s in character string fexp1+ 1 and t3Parameter a is taken out between -1;
(13) if there are two left slash in character string fexp "/", it also needs point three kinds of situations and discusses:
1. if s1> lz, then have a c=1, and from the position s in character string fexp1+ 1 and t2Parameter b is taken out between -1, and
From the position s in character string fexp2+ 1 and t3Between take out parameter a;
2. if s2< lx, then have an a=1, and from the position s in character string fexp1+ 1 and t1Parameter c is taken out between -1, and
From the position s in character string fexp2+ 1 and t2Parameter b is taken out between -1;
3. if s1< ly and s2> lx, then have a b=1, and from the position s in character string fexp1+ 1 and t1Ginseng is taken out between -1
Number c, and from the position s in character string fexp2+ 1 and t3Parameter a is taken out between -1;
(14) if there are three left slash in character string fexp "/", from the position s in character string fexp1+ 1 and t1- 1 it
Between take out parameter c, from the position s in character string fexp2+ 1 and t2Parameter b is taken out between -1, from the position s in character string fexp3
+ 1 and t3Parameter a is taken out between -1;
(15) from the position t in character string fexp3+ 1 and t4Between take out parameter d;
It should be noted that the above is only for example, not constituting any restriction to the technical solution of the application.
By foregoing description it is not difficult to find that the recognition methods of the ellipsoid equation provided in the present embodiment, receives use first
The model of the ellipsoid equation of family input identifies instruction, ellipsoid equation data is extracted from identification instruction, then by institute
It states ellipsoid equation data and is converted into character string, obtain the location information of preset characters, and by changing the preset characters
Location information obtains the location information of target value, finally parametric equation is established according to the target value, according to the parameter
Equation identifies ellipsoid.The present invention devises a kind of ellipsoid equation plotting unit, as long as providing an ellipsoid to the device
Equation, it can identify corresponding ellipsoid figure, improve perceptual knowledge of the user to ellipsoid figure, while also mentioning
High learning efficiency of the user to higher mathematics.
Further, as shown in figure 3, proposing the second of the recognition methods of ellipsoid equation of the present invention based on first embodiment
Embodiment is establishing parametric equation according to the target value, and identify ellipsoid according to the parametric equation in the present embodiment
Before face, it is also necessary to convert character string for the ellipsoid equation data, and extract location information, root from the character string
New location information is obtained according to the location information, corresponding numeric character string is extracted by the new location information, and will be described
Numeric character string is converted into target value, step S20, S20' being detailed in Fig. 3.
In order to make it easy to understand, being specifically described below in conjunction with Fig. 3:
In step S20: converting character string for the ellipsoid equation data, target ginseng is extracted from the character string
Number.
Table is corresponded to according to the preset relation and converts character string for the ellipsoid equation data, from the character string
Extract the target component.
It is understood that the character string equations turned for the ellipsoid, usually from the character string
The location information for finding ' (' character and '/' character, determines the location information of the target component according to the positional information,
And before the location information of lookup ' (' character and '/' character, it is also necessary to by searching for '+(x ' and '+x ', '+(y ' and '+y '
And '+(location information of z ' and '+z ' determine the correctness of ellipsoid equation, if can find '+(x ' and '+
X ', '+(y ' and '+y ' and '+(location information of z ' and '+z ' then show that the ellipsoid equation is correctly to input.
Correspondingly, in step S20': corresponding to table according to the preset relation and convert the ellipsoid equation data to
Character string, extracts the target component from the character string, and the target component includes target variable parameter and number of targets
Value parameter.
Table is corresponded to according to the preset relation and converts character string for the ellipsoid equation data, from the character string
Extract the target variable parameter and the target value parameter.
It is understood that in actual operation, corresponding to table for the ellipsoid equation data according to the preset relation
After being converted into character string, need to extract target component from the character string according to above-mentioned ' (' character and '/' character, ' (' word
The difference of symbol quantity corresponds to the difference for the target variable parameter extracted from the character string, and '/' character quantity is not
With the difference for corresponding to the target value parameter extracted from the character string, the different target variable parameters and institute
The model of a variety of ellipsoid equations can be formed by stating target value parameter.
In addition, the embodiment of the present invention also proposes a kind of identification device of ellipsoid equation.As shown in figure 4, the ellipsoid side
The identification device of journey includes: to obtain module 10, computing module 20, identification module 30.
Wherein, module 10 is obtained, when for instructing in the model identification for receiving the ellipsoid equation of user's input, from institute
It states in identification instruction and extracts ellipsoid equation data;
Computing module 20 extracts mesh from the character string for converting character string for the ellipsoid equation data
Mark parameter;
Identification module 30, it is corresponding with the target component for being searched in parameter preset table according to the target component
Ellipsoid parameter determines the equation model of the ellipsoid equation according to the target component.
It should be noted that default storage region described in the present embodiment, wherein the mainly ellipsoid equation stored
Corresponding relationship between data and character string, preset characters and a variety of different form ellipsoid equations and every parameter preset
Between corresponding relationship.
By foregoing description it is not difficult to find that the recognition methods of the ellipsoid equation provided in the present embodiment, the present embodiment are first
The model for first receiving the ellipsoid equation of user's input identifies instruction, extracts ellipsoid equation number from model identification instruction
According to then target component being extracted from the ellipsoid equation data, further according to the target component to the ellipsoid equation
Model identified, determine the ellipsoid equation model and graphing.The present embodiment is by a variety of ellipsoid equations
Model is stored in default storage region, it is ensured that has mould corresponding with the ellipsoid equation for each ellipsoid equation
Type, and being capable of automatic graphing.The present embodiment devises a kind of model identification device of ellipsoid equation, as long as giving the device
An ellipsoid equation is provided, it can identify the model of corresponding ellipsoid equation, and realize Automatic Drawing, improve
Perceptual knowledge of the user to ellipsoid figure, while also improving the efficiency that user draws ellipsoid equation figure.
In addition, it should be noted that, the apparatus embodiments described above are merely exemplary, not to of the invention
Protection scope, which is constituted, to be limited, and in practical applications, those skilled in the art can select portion therein according to the actual needs
Point or whole module achieve the purpose of the solution of this embodiment, herein with no restrictions.
In addition, the not technical detail of detailed description in the present embodiment, reference can be made to provided by any embodiment of the invention
The recognition methods of ellipsoid equation, details are not described herein again.
In addition, the embodiment of the present invention also proposes that a kind of readable storage medium storing program for executing, the readable storage medium storing program for executing are computer-readable
Storage medium is stored with the recognizer of ellipsoid equation on the computer readable storage medium, the ellipsoid equation
Following operation is realized when recognizer is executed by processor:
In the model identification instruction for receiving the ellipsoid equation of user's input, ellipsoid is extracted from identification instruction
Face equation data;
Character string is converted by the ellipsoid equation data, extracts target component from the character string;
Ellipsoid parameter corresponding with the target component is searched in parameter preset table according to the target component, according to
The target component determines the equation model of the ellipsoid equation.
Further, following operation is also realized when the recognizer of the ellipsoid equation is executed by processor:
Preset relation is corresponded into table and is stored in default storage region, it includes ellipsoid equation data that the preset relation, which corresponds to table,
Corresponding relationship between character string;
The ellipsoid equation data is converted into character string, extracts target component from the character string, specifically includes:
Table is corresponded to according to the preset relation and converts character string for the ellipsoid equation data, from the character string
Extract the target component.
Further, following operation is also realized when the recognizer of the ellipsoid equation is executed by processor:
Preset characters are stored in storage region, the preset characters are for obtaining targeted parameter value;
It is described table is corresponded to according to the preset relation to convert character string for the ellipsoid equation data, from the character
The target component is extracted in string, is specifically included:
Table, which is corresponded to, according to the preset relation converts character string for the ellipsoid equation data;
The targeted parameter value is extracted from the character string according to the preset characters, the targeted parameter value includes mesh
Mark variable parameter and target value parameter.
Further, following operation is also realized when the recognizer of the ellipsoid equation is executed by processor:
It is described that the targeted parameter value, the targeted parameter value packet are extracted from the character string according to the preset characters
Target variable parameter and target value parameter are included, the method for model identification of the ellipsoid equation includes:
The target variable parameter is extracted from the character string according to the default bracket character;
The target value parameter is extracted from the character string according to the default slash character.
Further, following operation is also realized when the recognizer of the ellipsoid equation is executed by processor:
The location information that bracket character is preset described in the character string is obtained, according to the positional information from the character
The target variable parameter is extracted in string.
Further, following operation is also realized when the recognizer of the ellipsoid equation is executed by processor:
The location information that slash character is preset described in the character string is obtained, according to the positional information from the character
The target value parameter is extracted in string.
Further, following operation is also realized when the recognizer of the ellipsoid equation is executed by processor:
Parameter preset table is stored in storage region, the parameter preset table includes a variety of different form ellipsoid equations and each
Corresponding relationship between item parameter preset;
It is described to search parameter preset corresponding with the target component, root in parameter preset table according to the target component
The equation model that the ellipsoid equation is determined according to the parameter preset, specifically includes:
It is according to parameter preset corresponding with the target component is searched in parameter preset table according to the target component
The target component is matched with the parameters in the parameter preset table, according to the parameter preset and a variety of differences
Corresponding relationship between form ellipsoid equation determines the equation model of the ellipsoid equation.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as read-only memory/random access memory, magnetic disk, CD), including some instructions are used so that a terminal device (can
To be mobile phone, computer, server, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of method of model identification of ellipsoid equation, which is characterized in that the method for model identification packet of the ellipsoid equation
Include following steps:
In the model identification instruction for receiving the ellipsoid equation of user's input, ellipsoid side is extracted from identification instruction
Number of passes evidence;
Character string is converted by the ellipsoid equation data, extracts target component from the character string;
Ellipsoid parameter corresponding with the target component is searched in parameter preset table according to the target component, according to described
Target component determines the equation model of the ellipsoid equation.
2. the method for model identification of ellipsoid equation as described in claim 1, which is characterized in that described by the ellipsoid side
Number of passes evidence is converted into character string, before extracting target component in the character string, the model identification side of the ellipsoid equation
Method further include:
Preset relation is corresponded into table and is stored in default storage region, it includes ellipsoid equation data and word that the preset relation, which corresponds to table,
Corresponding relationship between symbol string;
The ellipsoid equation data is converted into character string, extracts target component from the character string, specifically includes:
Table is corresponded to according to the preset relation and converts character string for the ellipsoid equation data, is extracted from the character string
The target component.
3. the method for model identification of ellipsoid equation as claimed in claim 2, which is characterized in that described according to the default pass
It is to correspond to table to convert character string for the ellipsoid equation data, before extracting the target component in the character string,
The method of model identification of the ellipsoid equation includes:
Preset characters are stored in storage region, the preset characters are for obtaining targeted parameter value;
It is described table is corresponded to according to the preset relation to convert character string for the ellipsoid equation data, from the character string
The target component is extracted, is specifically included:
Table, which is corresponded to, according to the preset relation converts character string for the ellipsoid equation data;
The targeted parameter value is extracted from the character string according to the preset characters, the targeted parameter value includes that target becomes
Measure parameter and target value parameter.
4. the method for model identification of ellipsoid equation as claimed in claim 3, which is characterized in that the preset characters include:
Default bracket character and default slash character;
Described that the targeted parameter value is extracted from the character string according to the preset characters, the targeted parameter value includes mesh
Mark variable parameter and target value parameter, the method for model identification of the ellipsoid equation include:
The target variable parameter is extracted from the character string according to the default bracket character;
The target value parameter is extracted from the character string according to the default slash character.
5. the method for model identification of ellipsoid equation as claimed in claim 3, which is characterized in that described to be included according to described preset
Sign character extracts the target variable parameter from the character string, specifically includes:
The location information that bracket character is preset described in the character string is obtained, according to the positional information from the character string
Extract the target variable parameter.
6. the method for model identification of ellipsoid equation as claimed in claim 3, which is characterized in that described according to described default oblique
Thick stick character extracts the target value parameter from the character string, specifically includes:
The location information that slash character is preset described in the character string is obtained, according to the positional information from the character string
Extract the target value parameter.
7. such as the method for model identification of ellipsoid equation according to any one of claims 1 to 6, which is characterized in that described
Ellipsoid parameter corresponding with the target component is searched in parameter preset table according to the target component, is joined according to the target
Before number determines the equation model of the ellipsoid equation, the method for model identification of the ellipsoid equation further include:
Parameter preset table is stored in storage region, the parameter preset table includes that a variety of different form ellipsoid equations and items are pre-
Corresponding relationship between setting parameter;
It is described to search parameter preset corresponding with the target component in parameter preset table according to the target component, according to institute
The equation model that parameter preset determines the ellipsoid equation is stated, is specifically included:
It is by institute according to parameter preset corresponding with the target component is searched in parameter preset table according to the target component
It states target component to be matched with the parameters in the parameter preset table, according to the parameter preset and a variety of different forms
Corresponding relationship between ellipsoid equation determines the equation model of the ellipsoid equation.
8. a kind of model identification device of ellipsoid equation, which is characterized in that described device includes:
Module is obtained, for being instructed from the identification in the model identification instruction for receiving the ellipsoid equation of user's input
Middle extraction ellipsoid equation data;
Computing module extracts target component from the character string for converting character string for the ellipsoid equation data;
Identification module, for searching ellipsoid corresponding with the target component in parameter preset table according to the target component
Parameter determines the equation model of the ellipsoid equation according to the target component.
9. a kind of terminal device, which is characterized in that the terminal device includes: memory, processor and is stored in described deposit
On reservoir and the model recognizer of ellipsoid equation that can run on the processor, the model of the ellipsoid equation are known
Other program is arranged for carrying out the step of method of model identification of ellipsoid equation as described in any one of claim 1 to 7.
10. a kind of readable storage medium storing program for executing, which is characterized in that the readable storage medium storing program for executing is computer readable storage medium, described
The model recognizer of ellipsoid equation is stored on computer readable storage medium, the model of the ellipsoid equation identifies journey
The step of method of model identification of ellipsoid equation as described in any one of claim 1 to 7 is realized when sequence is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910226577.7A CN109933748B (en) | 2019-03-21 | 2019-03-21 | Model identification method and device of ellipsoidal equation, terminal equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910226577.7A CN109933748B (en) | 2019-03-21 | 2019-03-21 | Model identification method and device of ellipsoidal equation, terminal equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109933748A true CN109933748A (en) | 2019-06-25 |
CN109933748B CN109933748B (en) | 2023-05-12 |
Family
ID=66988246
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910226577.7A Active CN109933748B (en) | 2019-03-21 | 2019-03-21 | Model identification method and device of ellipsoidal equation, terminal equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109933748B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020166112A1 (en) * | 2001-03-05 | 2002-11-07 | Martin Grant Edmund | Method and apparatus for a statistically based estimate of embedded software execution time |
US20030148302A1 (en) * | 2002-02-07 | 2003-08-07 | David Woo | Automatic threshold setting and baseline determination for real-time PCR |
CN104503957A (en) * | 2015-01-12 | 2015-04-08 | 深圳市心讯网络科技有限公司 | Formula graph automatic generation method and device |
CN107239784A (en) * | 2017-07-03 | 2017-10-10 | 福建中金在线信息科技有限公司 | A kind of image identification method, device, electronic equipment and readable storage medium storing program for executing |
CN107633141A (en) * | 2017-09-22 | 2018-01-26 | 中国水利水电科学研究院 | A kind of discrimination method of one-dimension mathematical model pumping station performance curve coefficients |
-
2019
- 2019-03-21 CN CN201910226577.7A patent/CN109933748B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020166112A1 (en) * | 2001-03-05 | 2002-11-07 | Martin Grant Edmund | Method and apparatus for a statistically based estimate of embedded software execution time |
US20030148302A1 (en) * | 2002-02-07 | 2003-08-07 | David Woo | Automatic threshold setting and baseline determination for real-time PCR |
CN104503957A (en) * | 2015-01-12 | 2015-04-08 | 深圳市心讯网络科技有限公司 | Formula graph automatic generation method and device |
CN107239784A (en) * | 2017-07-03 | 2017-10-10 | 福建中金在线信息科技有限公司 | A kind of image identification method, device, electronic equipment and readable storage medium storing program for executing |
CN107633141A (en) * | 2017-09-22 | 2018-01-26 | 中国水利水电科学研究院 | A kind of discrimination method of one-dimension mathematical model pumping station performance curve coefficients |
Non-Patent Citations (1)
Title |
---|
刘衍民,曾庆雨: "MATLAB仿真应用 高等数学", 《西安电子科技大学出版社》 * |
Also Published As
Publication number | Publication date |
---|---|
CN109933748B (en) | 2023-05-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110287479B (en) | Named entity recognition method, electronic device and storage medium | |
CN111680562A (en) | Human body posture identification method and device based on skeleton key points, storage medium and terminal | |
CN110222330B (en) | Semantic recognition method and device, storage medium and computer equipment | |
EP2642468A1 (en) | Learning support device, learning support method and storage medium in which learning support program is stored | |
EP2940551A1 (en) | Method and device for implementing voice input | |
CN109194689A (en) | Abnormal behaviour recognition methods, device, server and storage medium | |
CN107330009A (en) | Descriptor disaggregated model creation method, creating device and storage medium | |
CN110399547A (en) | For updating the method, apparatus, equipment and storage medium of model parameter | |
CN114639096A (en) | Text recognition method and device, electronic equipment and storage medium | |
CN106648367B (en) | A kind of reading method and point-of-reading device | |
CN110287460B (en) | Electronic book display method, computing equipment and computer storage medium | |
CN108229469A (en) | Recognition methods, device, storage medium, program product and the electronic equipment of word | |
CN112712121A (en) | Image recognition model training method and device based on deep neural network and storage medium | |
CN110297932B (en) | Method and device for determining maximum inscribed circle of closed graph in vector diagram and electronic equipment | |
CN109766089B (en) | Code generation method and device based on dynamic diagram, electronic equipment and storage medium | |
CN111046674A (en) | Semantic understanding method and device, electronic equipment and storage medium | |
CN111401465A (en) | Training sample optimization method, device, equipment and storage medium | |
CN109933748A (en) | Method of model identification, device, terminal device and the readable storage medium storing program for executing of ellipsoid equation | |
CN114490969B (en) | Question and answer method and device based on table and electronic equipment | |
CN113535916B (en) | Question and answer method and device based on table and computer equipment | |
CN109324973A (en) | A kind of method for testing software, device, equipment and computer readable storage medium | |
CN109033078A (en) | The recognition methods of sentence classification and device, storage medium, processor | |
CN108170683A (en) | For obtaining the method and apparatus of information | |
CN115700519A (en) | Text-to-image generation method and device, storage medium and terminal | |
CN110163975B (en) | Method, device and equipment for drawing space straight line and storage medium |
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 |