CN105893330A - Data processing method and device applied to calculator - Google Patents

Data processing method and device applied to calculator Download PDF

Info

Publication number
CN105893330A
CN105893330A CN201610200846.9A CN201610200846A CN105893330A CN 105893330 A CN105893330 A CN 105893330A CN 201610200846 A CN201610200846 A CN 201610200846A CN 105893330 A CN105893330 A CN 105893330A
Authority
CN
China
Prior art keywords
formula
data
self
definition
defining
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.)
Pending
Application number
CN201610200846.9A
Other languages
Chinese (zh)
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201610200846.9A priority Critical patent/CN105893330A/en
Publication of CN105893330A publication Critical patent/CN105893330A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/15Correlation function computation including computation of convolution operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/02Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators

Abstract

The invention discloses a data processing method and device applied to a calculator. The data processing method includes the steps that formula defining data input outside is received through a mobile terminal, wherein the formula defining data is used for defining a formula; the self-defined formula is obtained according to the formula defining data and is stored in the mobile terminal; independent variable data corresponding to the self-defined formula is received through the mobile terminal; the independent variable data is calculated according to the self-defined formula to obtain a calculation result. By means of the data processing method, diversified requirements of a user are met by the calculator of the mobile terminal.

Description

The data processing method of calculator application and device
Technical field
The present invention relates to calculator application field, in particular to a kind of calculator application data processing method and Device.
Background technology
At present, calculator application, such as, and the calculator application on the communicating terminal of numerous different brands, provided Computing function is uneven.Calculator application is all on the basis of ensureing to realize computing function, revises and optimizes man-machine Interactive interface (User Interface, referred to as UI).The communicating terminal of the preferable part brand that compares, can be to calculating Device application carries out concrete classification, such as, calculator application is divided into the types such as basic calculation device, scientific calculator, Thus the perfect functional operation of calculator application.
But, in calculator application during data are processed, except simple four arithmetic operation and basic function Outside computing, there is no the computing function of more reality, the computing function that data are processed by calculator application is single.So, Under some calculate scene, user can not call the operational formula being actually needed from calculator application, and user needs hands Dynamic input.It addition, some operational formula may not have only to once, user, in order to meet the calculating demand of reality, needs Constantly to re-enter required operational formula, the Practical Calculation demand of user, calculator application can not be met The availability processing data is low.
It is difficult to meet the problem of the diversified demand of user for the calculator application of mobile terminal in correlation technique, at present Effective solution is not yet proposed.
Summary of the invention
Present invention is primarily targeted at data processing method and the device that a kind of calculator application is provided, at least to solve The problem that in correlation technique, the calculator application of mobile terminal is difficult to meet the diversified demand of user.
To achieve these goals, according to an aspect of the invention, it is provided the data of a kind of calculator application process Method.The data processing method of this calculator application includes: received the formula definition number of outside input by mobile terminal According to, wherein, formula definition data are the data for defined formula;Self-defining formula is obtained according to formula definition data And self-defining formula is stored to mobile terminal;It is received from the argument data that defined formula is corresponding by mobile terminal; According to self-defining formula, argument data is performed calculating, obtain result of calculation.
Further, self-defining formula is being stored after mobile terminal, the data processing method of this calculator application Also include: being added to listing formulas by self-defining formula, wherein, listing formulas includes predefined multiple public affairs Formula;Being received from defined formula query statement, wherein, self-defining formula query statement is made by oneself for inquiring about from listing formulas The instruction of justice formula;From listing formulas, self-defining formula is inquired about according to self-defining formula query statement;Should at computer Display interface show the self-defining formula inquired.
Further, obtain self-defining formula according to formula definition data and self-defining formula is stored to mobile terminal bag Include: obtain the formula definition data of multiple formula;Define that data genaration is multiple to be made by oneself respectively according to the formula of multiple formula Justice formula;Listing formulas is generated according to multiple self-defining formulas;Listing formulas is stored to mobile terminal.
Further, receive the outside formula inputted definition data by mobile terminal to include: received by mobile terminal Starting definition instruction, wherein, starting definition instruction is the instruction triggering calculator application display formula definition interfaces;Logical Cross formula definition interfaces receive formula definition data and formula definition data are shown;Connect by formula definition interfaces Receiving and terminate definition instruction, wherein, terminating definition instruction is the instruction stopping receiving formula definition data;Preservation formula is fixed Justice data are to mobile terminal.
Further, receive formula definition data by formula definition interfaces and formula definition data are carried out display include: After received formula definition data by formula definition interfaces, it is judged that whether formula definition data are normalized form definition Data, wherein, normalized form definition data are the data of coincidence formula definition rule;If it is judged that formula definition number According to not defining data for normalized form, in formula definition interfaces output definition miscue information, wherein, define mistake Information is the information not meeting formula definition rule for representation formula definition data;If it is judged that formula definition Data are that normalized form defines data, in formula definition interfaces display formula definition data.
Further, according to self-defining formula, argument data is performed calculating, obtain result of calculation and include: judge certainly Whether variable data meets the Variable Conditions of self-defining formula;If it is judged that argument data does not meets self-defining formula Variable Conditions, export data invalid information, wherein, data invalid information is can not basis for expression Argument data obtains the information of correct result of calculation;If it is judged that argument data meets self-defining formula Variable Conditions, according to self-defining formula, argument data is performed calculating, obtains correct result of calculation.
To achieve these goals, according to a further aspect in the invention, additionally provide at the data of a kind of calculator application Reason device.First receives unit, for being received the formula definition data of outside input by mobile terminal, wherein, public Formula definition data are the data for defined formula;Memory element, for obtaining self-defined public affairs according to formula definition data Self-defining formula is also stored to mobile terminal by formula;Second receives unit, for being received from definition public affairs by mobile terminal The argument data that formula is corresponding;Computing unit, for argument data being performed calculating according to self-defining formula, obtains Result of calculation.
Further, the data processing equipment of calculator application also includes: adding device, for by self-defining formula Storing after mobile terminal, added to listing formulas by self-defining formula, wherein, listing formulas includes in advance Multiple formula of definition;3rd receives unit, is used for being received from defined formula query statement, wherein, self-defining formula Query statement is the instruction inquiring about self-defining formula from listing formulas;Query unit, for looking into according to self-defining formula Ask instruction from listing formulas, inquire about self-defining formula;Display unit, shows for the display interface in calculator application The self-defining formula inquired.
Further, this memory element includes: acquisition module, for obtaining the formula definition data of multiple formula;The One generation module, for respectively according to the formula definition multiple self-defining formula of data genaration of multiple formula;Second generates Module, for generating listing formulas according to multiple self-defining formulas;Memory module, for storing listing formulas to shifting Dynamic terminal.
Further, this first reception unit includes: the first receiver module, starts to determine for being received by mobile terminal Justice instruction, wherein, starting definition instruction is the instruction triggering calculator application display formula definition interfaces;Second receives Module, for receiving formula definition data by formula definition interfaces and showing formula definition data;3rd connects Receive module, terminate definition instruction for being received by formula definition interfaces, wherein, terminate definition instruction for stopping receiving The instruction of formula definition data;Preserve module, be used for preserving formula definition data to mobile terminal.
Further, this second receiver module includes: judge submodule, for receiving public affairs by formula definition interfaces After formula definition data, it is judged that whether formula definition data are that normalized form defines data, and wherein, normalized form defines Data are the data of coincidence formula definition rule;Output sub-module, for judging that formula definition data are not for standard Formula definition data, in formula definition interfaces output definition miscue information, wherein, definition miscue information is The information of formula definition rule is not met for representation formula definition data;Display sub-module, for judging formula Definition data are that normalized form defines data, in formula definition interfaces display formula definition data.
Further, computing unit includes: judge module, is used for judging whether argument data meets self-defining formula Variable Conditions;Output module, for judging that argument data does not meets the Variable Conditions of self-defining formula, defeated Going out data invalid information, wherein, data invalid information is for can not obtain according to argument data for expression The information of correct result of calculation;Computing module, for judging that argument data meets self-defining formula Variable Conditions, performs calculating according to self-defining formula to argument data, obtains correct result of calculation.
By the present invention, using the formula definition data being received outside input by mobile terminal, wherein, formula defines Data are the data for defined formula;Obtain self-defining formula according to formula definition data and self-defining formula is stored To mobile terminal;It is received from the argument data that defined formula is corresponding by mobile terminal;According to self-defining formula to certainly Variable data performs calculating, obtains result of calculation, solves the calculator application of mobile terminal in correlation technique and is difficult to full The problem of diversified demand of foot user, and then the calculator application having reached mobile terminal meets the diversified need of user The effect asked.
Accompanying drawing explanation
The accompanying drawing of the part constituting the application is used for providing a further understanding of the present invention, and the present invention's is schematic real Execute example and illustrate for explaining the present invention, being not intended that inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the method for the data processing equipment of calculator application according to a first embodiment of the present invention;
Fig. 2 is the flow chart of the method for the data processing equipment of calculator application according to a second embodiment of the present invention;
Fig. 3 is the signal of the formula definition data being received outside input by mobile terminal according to embodiments of the present invention Figure;
Fig. 4 is the schematic diagram of listing formulas according to embodiments of the present invention;
Fig. 5 be according to embodiments of the present invention be received from showing of argument data corresponding to defined formula by mobile terminal It is intended to;
Fig. 6 is the schematic diagram of output result of calculation according to embodiments of the present invention;And
Fig. 7 is the schematic diagram of the data processing equipment of calculator application according to embodiments of the present invention.
Detailed description of the invention
It should be noted that in the case of not conflicting, the embodiment in the application and the feature in embodiment can phases Combination mutually.Describe the present invention below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
In order to make those skilled in the art be more fully understood that the application scheme, below in conjunction with in the embodiment of the present application Accompanying drawing, is clearly and completely described the technical scheme in the embodiment of the present application, it is clear that described embodiment It is only the embodiment of the application part rather than whole embodiments.Based on the embodiment in the application, ability The every other embodiment that territory those of ordinary skill is obtained under not making creative work premise, all should belong to The scope of the application protection.
It should be noted that term " first " in the description and claims of this application and above-mentioned accompanying drawing, " Two " it is etc. for distinguishing similar object, without being used for describing specific order or precedence.Should be appreciated that this The data that sample uses can be exchanged in the appropriate case, in order to embodiments herein described herein.Additionally, term " include " and " having " and their any deformation, it is intended that cover non-exclusive comprising, such as, comprise The process of series of steps or unit, method, system, product or equipment are not necessarily limited to those steps clearly listed Rapid or unit, but can include that the most clearly list or intrinsic for these processes, method, product or equipment Other step or unit.
Embodiments provide the data processing method of a kind of calculator application.
Fig. 1 is the flow chart of the method for the data processing equipment of calculator application according to a first embodiment of the present invention.As Shown in Fig. 1, the method for the data processing equipment of this calculator application comprises the following steps:
Step S101, receives the formula definition data of outside input by mobile terminal.
Calculator application, for realizing the calculating of operational data, is installed on mobile terminals.This mobile terminal can be hands The terminal such as machine, panel computer.Formula definition data are the data for defined formula, including mathematical operation symbol sum Word, including data and the data of basic calculation device application of scientific calculator application.Alternatively, defined by this formula Data can uniquely determine formula, makes this formula be applied in concrete mathematical operation scene.
The formula definition data of outside input are received by mobile terminal.User terminal can pass through touch-control calculator application Function keyboard, with produce formula definition data input indicative signal, by formula definition data input instruction letter Calculator application number is made to receive formula definition data.If received the formula definition number of outside input by mobile terminal According to wrong, can again receive new formula definition data.Such as, by the deletion key in calculator application, cancel Wrong formula definition data are deleted by key, thus receive new formula definition data, make new formula definition number According to not affected by wrong formula definition data.
Step S102, obtains self-defining formula according to formula definition data and stores self-defining formula to mobile terminal.
After the formula definition data being received outside input by mobile terminal, data genaration can be defined according to formula Formula.When obtaining self-defining formula, this self-defining formula is stored to mobile terminal, to facilitate using public affairs next time Read the soonest during formula to call, it is to avoid repeatedly input the formula of tediously long difficult note, reduce error rate.User terminal Can be according to the different self-defined conventional formula of mathematical operation occasion, by variety classes, the self-defined public affairs of difference in functionality Formula stores to mobile terminal, thus expands the actual functional capability of calculator application, improves the practicality of calculator application.
Step S103, is received from, by mobile terminal, the argument data that defined formula is corresponding.
Obtaining self-defining formula according to formula definition data and self-defining formula stored after mobile terminal, permissible Self-defining formula is directly invoked.It is received from the argument data that defined formula is corresponding by mobile terminal.Independent variable number According to type and the number of argument data be corresponding with this self-defining formula, user terminal is according to self-defining formula Required argument data type and the number of the argument data function keyboard input independent variable number by calculator application According to, calculator application receives this argument data by mobile terminal.
Step S104, performs calculating according to self-defining formula to argument data, obtains result of calculation.
After being received from, by mobile terminal, the argument data that defined formula is corresponding, according to self-defining formula to from becoming Amount data perform calculating, obtain result of calculation, and this result of calculation meets concrete mathematical operation occasion, can meet use The computing demand of family terminal.Owing to argument data being performed calculating by self-defining formula, can be quickly and accurately Obtain result of calculation, thus enhance the computing capability of calculator application, it is ensured that the multiformity of calculator application and complete Whole property.
Alternatively, after obtaining result of calculation, new argument data can be received, need not input the most again and make by oneself Justice formula, and new argument data is re-started calculating, to obtain new result of calculation, so that this is self-defined Formula is applied under different mathematical operation occasions, and the calculator application having reached mobile terminal meets the variation of user The effect of demand.
The embodiment of the present invention receives the formula definition data of outside input, wherein, formula definition data by mobile terminal For the data for defined formula;Obtain self-defining formula according to formula definition data and self-defining formula is stored to shifting Dynamic terminal;It is received from the argument data that defined formula is corresponding by mobile terminal;According to self-defining formula to independent variable Data perform calculating, obtain result of calculation, and the calculator application having reached mobile terminal meets the diversified demand of user Effect.
As the optional embodiment of one, self-defining formula is being stored after mobile terminal, by self-defining formula Adding to listing formulas, wherein, listing formulas includes predefined multiple formula;It is received from defined formula to look into Asking instruction, wherein, self-defining formula query statement is the instruction inquiring about self-defining formula from listing formulas;According to certainly Defined formula query statement inquires about self-defining formula from listing formulas;Display interface in calculator application shows inquiry The self-defining formula arrived.
Alternatively, calculator application can define multiple self-defining formula.Self-defining formula is being stored to mobile terminal Afterwards, being added to listing formulas by self-defining formula, listing formulas includes predefined multiple formula, multiple The order that formula shows in listing formulas can show with the sequencing of storage time, it is also possible to according to formula Kind stores, it is also possible to be adjusted according to the needs of user terminal, adjusts in different computing occasions to facilitate With.After self-defining formula is added to listing formulas, this self-defining formula can be called.It is received from Defined formula query statement, self-defining formula query statement is the instruction inquiring about self-defining formula from listing formulas.? After being received from defined formula query statement, from listing formulas, inquire about self-defined public affairs according to self-defining formula query statement Formula, and then show, at the display interface of calculator application, the self-defining formula inquired.
As the optional embodiment of one, obtain self-defining formula according to formula definition data and self-defining formula is deposited Storage to mobile terminal includes: obtain the formula definition data of multiple formula;Number is defined respectively according to the formula of multiple formula According to generating multiple self-defining formulas;Listing formulas is generated according to multiple self-defining formulas;Listing formulas is stored to movement Terminal.
Alternatively, listing formulas includes that multiple predefined formula, the plurality of predefined formula are applicable to not Same computing occasion.Obtaining the formula definition data of multiple formula, multiple formula definition data are different.Respectively according to many The formula definition multiple self-defining formula of data genaration of individual formula, the plurality of self-defining formula, that is, multiple fixed in advance The formula of justice;Generating listing formulas according to multiple self-defining formulas, the formula in this listing formulas can be mutually combined same Time be applied in same computing occasion, it is also possible to be substituted for each other in same computing occasion.Listing formulas is stored to shifting Dynamic terminal, thus conveniently call in nonidentity operation occasion, thus reached to obtain certainly according to formula definition data Self-defining formula is also stored the purpose to mobile terminal by defined formula.
As the optional embodiment of one, the formula definition data being received outside input by mobile terminal are included: logical Crossing mobile terminal reception and start definition instruction, wherein, starting definition instruction is to trigger calculator application display formula definition The instruction at interface;Receive formula definition data by formula definition interfaces and formula definition data are shown;Pass through Formula definition interfaces receives and terminates definition instruction, and wherein, terminating definition instruction is the finger stopping receiving formula definition data Order;Preserve formula definition data to mobile terminal.
Alternatively, after calculator application starts, received by mobile terminal and start definition instruction, such as, user Terminal is passed through the function keyboard generation of touch-control calculator application and is started definition instruction, starts to determine so that mobile terminal receives Justice instruction, and then trigger calculator application display formula definition interfaces.Formula definition number is received by formula definition interfaces According to, formula definition interfaces can also show self-defining formula, such as, enters the real-time input process of formula definition data Row display so that user terminal the most current formula definition data input state;Connect by formula definition interfaces Receiving and terminate definition instruction, terminating definition instruction is the instruction stopping receiving formula definition data, such as, at input formula After definition input completes, user terminal passes through the confirmation button in the function keyboard of touch-control calculator application to trigger knot Shu Dingyi instructs, and now, no longer receives new formula definition data, even if user terminal is by touch-control calculator application Function keyboard input new formula definition data, calculator application also will not receive formula definition data that this is new.? Rear preservation formula definition data, to mobile terminal, can generate historical record to facilitate inquiry to obtain the mistake of self-defining formula Journey, it is achieved that received the formula definition data of outside input by mobile terminal.
As the optional embodiment of one, receive formula definition data by formula definition interfaces and formula is defined number Include according to carrying out display: after received formula definition data by formula definition interfaces, it is judged that formula definition data are No for normalized form define data, wherein, normalized form definition data be coincidence formula definition rule data;If Judge that formula definition data do not define data for normalized form, in formula definition interfaces output definition miscue information, Wherein, definition miscue information is the information not meeting formula definition rule for representation formula definition data;If Judge that formula definition data are that normalized form defines data, in formula definition interfaces display formula definition data.
Alternatively, after received formula definition data by formula definition interfaces, it is judged that whether formula definition data are Normalized form definition data, normalized form definition data are the data of coincidence formula definition rule, such as, meet basis Data operation rule in calculator application and the data operation rule in scientific calculator application.If it is judged that formula Definition data do not define data for normalized form, that is, self-defining formula cannot be obtained according to this formula definition data, Then in formula definition interfaces output definition miscue information, wherein, definition miscue information is for representation formula Definition data do not meet the information of formula definition rule, and this miscue information can be text prompt information, such as, " self-defining data input wrong ", or show this miscue information with icon, the form that meets;If it is judged that Formula definition data are that normalized form defines data, that is, can generate self-defined by this normalized form definition data Formula, in formula definition interfaces display formula definition data, so that the clear and definite calculator application of user terminal is by mobile whole The formula definition data that termination receives.Alternatively, although this formula definition data can generate self-defining formula, but User terminal views, by formula definition interfaces, the formula definition number that this formula definition data do not meet under computing occasion According to, this formula definition data can be deleted, it is achieved that receive formula definition data also by formula definition interfaces The purpose that formula definition data are shown.
As the optional embodiment of one, according to self-defining formula, argument data is performed calculating, obtain calculating knot Fruit includes: judge whether argument data meets the Variable Conditions of self-defining formula;If it is judged that argument data is not Meeting the Variable Conditions of self-defining formula, export data invalid information, wherein, data invalid information is for using In representing the information that can not obtain correct result of calculation according to argument data;If it is judged that argument data Meet the Variable Conditions of self-defining formula, according to self-defining formula, argument data is performed calculating, obtain correct meter Calculate result.
Alternatively, after being received from, by mobile terminal, the argument data that defined formula is corresponding, it is judged that independent variable number According to whether meeting the Variable Conditions of self-defining formula, Variable Conditions can be the variable data that this self-defining formula receives Scope, it is also possible to the functional relation met by variable;If it is judged that argument data does not meets self-defining formula Variable Conditions, that is, this argument data is not suitable for this self-defining formula, by this self-defining formula to this from The result that variable data performs to calculate is incorrect result of calculation, it is impossible to reach the calculating mesh under computing occasion , export data invalid information, wherein, data invalid information is can not be according to independent variable number for expression According to obtaining the information of correct result of calculation, this data invalid information can be text prompt information, such as, " argument data input is invalid, the most defeated ", it is also possible to the form for icon or symbol shows that this data invalid is pointed out Information.If it is judged that argument data meets the Variable Conditions of self-defining formula, determine that this argument data is effective Variable data, according to self-defining formula, argument data is performed calculating, obtains correct result of calculation, thus real Show, according to self-defining formula, argument data has been performed calculating, obtained the purpose of result of calculation, made self-defining formula answer It is used under different calculating demands, improves to effect the availability of calculator application, reached the computer of mobile terminal Application meets the effect of the diversified demand of user.
Below in conjunction with preferred embodiment, technical scheme is illustrated.
Fig. 2 is the flow chart of the method for the data processing equipment of calculator application according to a second embodiment of the present invention.As Shown in Fig. 2, the method for the data processing equipment of this calculator application comprises the following steps:
Step S201, pre-sets self-defining formula, and stores self-defining formula.
Before calculator application performs to calculate, self-defining formula can be pre-set, and store self-defining formula, should Self-defining formula, that is, the normalized form of calculator application.The formula being received outside input by mobile terminal is defined Data.User terminal can be referred to producing the input of formula definition data by the function keyboard of touch-control calculator application Show signal, such as, input operative symbol and data by the input indicative signal of function keyboard.Number is defined by formula According to input indicative signal make calculator application receive formula definition data, alternatively, this formula definition data for calculate The formula of device application input.Self-defining formula can also be the formula directly received.When obtaining self-defining formula, This self-defining formula is stored to mobile terminal.
Step S202, generates listing formulas according to self-defining formula.
After pre-setting self-defining formula, and storing self-defining formula, can be public according to formula definition data genaration Formula.Listing formulas includes predefined multiple formula, and the order that multiple formula show in listing formulas can be with The sequencing of storage time shows, it is also possible to store with the kind according to formula, it is also possible to according to user terminal Needs be adjusted, call in different computing occasions to facilitate, the perfect function of calculator application.
Step S203, inquires about self-defining formula from listing formulas.
After being added to listing formulas by self-defining formula, from listing formulas, inquire about self-defining formula, with to this Self-defining formula calls.Being received from defined formula query statement, self-defining formula query statement is from listing formulas The instruction of middle inquiry self-defining formula, such as, user terminal is produced from by the self-defining formula in touch-control listing formulas Defined formula query statement, or input the identification information of self-defining formula in the search box, determine according to self-defined public affairs The identification information of formula is produced self-defining formula query statement after scanning for self-defining formula.Make by oneself in reception After justice formula query statement, from listing formulas, inquire about self-defining formula according to self-defining formula query statement, and then Display interface in calculator application shows the self-defining formula inquired.
Step S204, the argument data corresponding with self-defining formula to the self-defining formula input inquired.
After inquiring self-defining formula, input the argument data corresponding with self-defining formula, that is, input Effective argument data of self-defining formula.
Step S205, the self-defining formula according to inquiring performs calculating to argument data, obtains result of calculation.
After the argument data corresponding with self-defining formula to the self-defining formula input inquired, can obtain The result of calculation that self-defining formula is correct.If this self-defining formula has multiple argument data, can again input new Argument data, self-defining formula directly performs to be calculated new result of calculation, nothing according to new argument data Need to repeatedly input self-defining formula, it is achieved that calculator application can quickly obtain computing knot when inputting argument data The function of fruit, it is to avoid repeatedly input the formula of tediously long difficult note, it is achieved that calculator application calculates energy efficiently, accurately Power.
This embodiment is by pre-setting self-defining formula, and stores self-defining formula, then raw according to self-defining formula Become listing formulas, from listing formulas, inquire about self-defining formula, then the self-defining formula inquired is inputted with self-defined The argument data that formula is corresponding, performs calculating finally according to the self-defining formula inquired to argument data, To result of calculation, reach the effect that the calculator application of mobile terminal meets the diversified demand of user.
Fig. 3 is the signal of the formula definition data being received outside input by mobile terminal according to embodiments of the present invention Figure.As it is shown on figure 3, calculator application is installed on mobile terminals, calculator application has function keyboard and formula is fixed Justice interface.This function keyboard can based on the function keyboard of calculator application, it is also possible to for scientific calculator application Function keyboard.Formula definition interfaces is positioned at the top of function keyboard, facilitates formula definition data in the input of function keyboard With the display in formula definition interfaces.Can be received by mobile terminal and start definition instruction, show formula definition interfaces, Receive formula definition data by formula definition interfaces and formula definition data are shown, by formula definition interfaces Receive and terminate definition instruction, to stop receiving formula definition data, preserve formula definition data to mobile terminal.Logical After crossing formula definition interfaces reception formula definition data, it is judged that whether formula definition data are that normalized form defines data, Normalized form definition data are the data of coincidence formula definition rule, if it is judged that formula definition data are not standard public affairs Formula definition data, in formula definition interfaces output definition miscue information, if it is judged that formula definition data are mark Quasi-formula definition data, in formula definition interfaces display formula definition data, thus reach to arrange the mesh of self-defining formula 's.
Fig. 4 is the schematic diagram of listing formulas according to embodiments of the present invention.As shown in Figure 4, listing formulas includes pre- The multiple formula first defined, the order that multiple formula show in listing formulas can show with the sequencing of storage time Show, it is also possible to store with the kind according to formula, it is also possible to be adjusted according to the needs of user terminal, with side Just call in different computing occasions, reached the calculator application of mobile terminal and met the diversified demand of user Effect.
Fig. 5 be according to embodiments of the present invention be received from showing of argument data corresponding to defined formula by mobile terminal It is intended to.As it is shown in figure 5, calculator application is installed on mobile terminals, calculator application has function keyboard and formula Definition interfaces.Judge whether argument data meets the Variable Conditions of self-defining formula;If it is judged that argument data Do not meet the Variable Conditions of self-defining formula, export data invalid information, with point out user terminal can not according to from Variable data obtains the information of correct result of calculation;If it is judged that argument data meets self-defining formula Variable Conditions, performs calculating according to self-defining formula, thus obtains correct result of calculation argument data.
Fig. 6 is the schematic diagram of output result of calculation according to embodiments of the present invention.As shown in Figure 6, by mobile whole After end receives the argument data that self-defining formula is corresponding, according to self-defining formula, argument data is performed calculating, Obtaining result of calculation, directly the display interface at computer exports result of calculation, meets the computing need of nonidentity operation occasion Ask.
This embodiment arranges the function of formula in the addition of the calculator application of mobile terminal by can customize, to realize hands The multiformity of machine calculator function and integrity, thus it is effectively improved the available character of the calculator application of mobile terminal Amount;Formula is set by the most self-defined, it is achieved thereby that input argument data can quickly obtain operation result Function, had both avoided the computing formula repeatedly inputting tediously long difficult note, achieved again efficiently, computing capability accurately, made The function of computer is more diversified, drastically increases the availability of mobile phone calculator module, has reached mobile terminal Calculator application meet the effect of diversified demand of user.
It should be noted that can be at such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing Computer system performs, and, although show logical order in flow charts, but in some cases, can With to be different from the step shown or described by order execution herein.
The embodiment of the present invention additionally provides the data processing equipment of a kind of calculator application.It should be noted that this enforcement The data processing equipment of the calculator application of example may be used for performing the data of the calculator application of the embodiment of the present invention and processes Method.
Fig. 7 is the schematic diagram of the data processing equipment of calculator application according to embodiments of the present invention.As it is shown in fig. 7, The data processing equipment of this calculator application includes: first receives unit 10, memory element 20, and second receives unit 30 and computing unit 40.
First receives unit 10, for being received the formula definition data of outside input, wherein, formula by mobile terminal Definition data are the data for defined formula.
Memory element 20, for obtaining self-defining formula according to formula definition data and store self-defining formula to movement Terminal.
Second receives unit 30, for being received from, by mobile terminal, the argument data that defined formula is corresponding.
Computing unit 40, for argument data being performed calculating according to self-defining formula, obtains result of calculation.
Alternatively, the data processing equipment of this calculator application also includes: adding device, for by self-defining formula Storing after mobile terminal, added to listing formulas by self-defining formula, wherein, listing formulas includes in advance Multiple formula of definition;3rd receives unit, is used for being received from defined formula query statement, wherein, self-defining formula Query statement is, inquires about the instruction of self-defining formula from listing formulas;Query unit, for according to self-defining formula Query statement inquires about self-defining formula from listing formulas;Display unit, shows for the display interface in calculator application Show the self-defining formula inquired.
Alternatively, memory element 20 includes acquisition module and memory module.Wherein, acquisition module, it is used for obtaining multiple The formula definition data of formula;First generation module is many for defining data genaration according to the formula of multiple formula respectively Individual self-defining formula;Second generation module, for generating listing formulas according to multiple self-defining formulas;Memory module, For listing formulas is stored to mobile terminal.
Alternatively, the first reception unit 10 includes the first receiver module, the second receiver module, the 3rd receiver module and guarantor Storing module.Wherein, the first receiver module, start definition instruction for being received by mobile terminal, wherein, it is fixed to start Justice instruction is the instruction triggering calculator application display formula definition interfaces;Second receiver module, for fixed by formula Justice interface receives formula definition data and shows formula definition data;3rd receiver module, is used for passing through formula Definition interfaces receives and terminates definition instruction, and wherein, terminating definition instruction is the instruction stopping receiving formula definition data; Preserve module, be used for preserving formula definition data to mobile terminal.
Alternatively, the second receiver module includes judging submodule, output sub-module and display sub-module.Wherein, it is judged that Submodule, for after receiving formula definition data by formula definition interfaces, it is judged that whether formula definition data are Normalized form definition data, wherein, normalized form definition data are the data of coincidence formula definition rule;Output submodule Block, for judging that formula definition data do not define data for normalized form, in formula definition interfaces output definition mistake Information by mistake, wherein, definition miscue information is not for meeting formula definition rule for representation formula definition data Information;Display sub-module, for judging that formula definition data are that normalized form defines data, defines at formula Interface display formula definition data.
Alternatively, computing unit 40 includes judge module, output module and computing module.Wherein, it is judged that module, use In judging whether argument data meets the Variable Conditions of self-defining formula;Output module, for judging independent variable Data do not meet the Variable Conditions of self-defining formula, export data invalid information, wherein, data invalid prompting letter Breath is for for representing the information that can not obtain correct result of calculation according to argument data;Computing module, is used for Judging that argument data meets the Variable Conditions of self-defining formula, according to self-defining formula, argument data is being performed Calculate, obtain correct result of calculation.
In this embodiment, first unit 10 is received for being received the formula definition number of outside input by mobile terminal According to, wherein, formula definition data are the data for defined formula, define data by memory element 20 according to formula Obtaining self-defining formula and store self-defining formula to mobile terminal, second receives unit 30 is used for passing through mobile terminal It is received from the argument data that defined formula is corresponding, according to self-defining formula, argument data is held by computing unit 40 Row calculates, and obtains result of calculation, has reached the effect that the calculator application of mobile terminal meets the diversified demand of user.
Obviously, those skilled in the art should be understood that each module of the above-mentioned present invention or each step can be with general Calculating device realize, they can concentrate on single calculating device, or is distributed in multiple calculating device institute On the network of composition, alternatively, they can realize with calculating the executable program code of device, it is thus possible to It is stored in storing in device and is performed by calculating device, or they are fabricated to respectively each integrated circuit die Block, or the multiple modules in them or step are fabricated to single integrated circuit module realize.So, the present invention It is not restricted to any specific hardware and software combine.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, made Any modification, equivalent substitution and improvement etc., should be included within the scope of the present invention.

Claims (12)

1. the data processing method of a calculator application, it is characterised in that including:
Received the formula definition data of outside input by mobile terminal, wherein, described formula definition data are for using Data in defined formula;
Obtain self-defining formula according to described formula definition data and described self-defining formula is stored to described movement Terminal;
The argument data that described self-defining formula is corresponding is received by described mobile terminal;And
According to described self-defining formula, described argument data is performed calculating, obtain result of calculation.
Method the most according to claim 1, it is characterised in that described self-defining formula is being stored to described movement After terminal, described method also includes:
Being added to listing formulas by described self-defining formula, wherein, described listing formulas includes pre-defining Multiple formula;
Being received from defined formula query statement, wherein, described self-defining formula query statement is for arrange from described formula Table is inquired about the instruction of described self-defining formula;
From described listing formulas, described self-defining formula is inquired about according to described self-defining formula query statement;And
Display interface in described calculator application shows the described self-defining formula inquired.
Method the most according to claim 1, it is characterised in that obtain self-defined public affairs according to described formula definition data Formula being stored by described self-defining formula to described mobile terminal includes:
Obtain the formula definition data of multiple formula;
The multiple self-defining formula of data genaration is defined respectively according to the formula of the plurality of formula;
Listing formulas is generated according to the plurality of self-defining formula;And
Described listing formulas is stored to described mobile terminal.
Method the most according to claim 1, it is characterised in that received the public affairs of outside input by described mobile terminal Formula definition data include:
Being received by described mobile terminal to start to define and instruct, wherein, described beginning defines instruction for described in triggering The instruction of calculator application display formula definition interfaces;
Receive described formula definition data by described formula definition interfaces and described formula definition data are shown Show;
Being received by described formula definition interfaces and terminate definition instruction, wherein, described end definition instruction is for stopping Receive the instruction of described formula definition data;And
Preserve described formula definition data to described mobile terminal.
Method the most according to claim 4, it is characterised in that receive described formula by described formula definition interfaces Definition data also carry out display include described formula definition data:
After received described formula definition data by described formula definition interfaces, it is judged that described formula definition number Whether according to being that normalized form defines data, wherein, described normalized form definition data are coincidence formula definition rule Data;
If it is judged that described formula definition data are not described normalized form defines data, define at described formula Interface output definition miscue information, wherein, described definition miscue information is for being used for representing described formula Definition data do not meet the information of described formula definition rule;And
If it is judged that described formula definition data are described normalized form defines data, define boundary at described formula Face shows that described formula defines data.
Method the most according to claim 1, it is characterised in that according to described self-defining formula to described independent variable number According to performing calculating, obtain described result of calculation and include:
Judge whether described argument data meets the Variable Conditions of described self-defining formula;
If it is judged that described argument data does not meets the Variable Conditions of described self-defining formula, output data without Effect information, wherein, described data invalid information is can not be according to described argument data for expression Obtain the information of correct result of calculation;And
If it is judged that described argument data meets the Variable Conditions of described self-defining formula, make by oneself according to described Justice formula performs calculating to described argument data, obtains correct result of calculation.
7. the data processing equipment of a calculator application, it is characterised in that including:
First receives unit, for being received the formula definition data of outside input, wherein, institute by mobile terminal Stating formula definition data is the data for defined formula;
Memory element, for obtaining self-defining formula and by described self-defining formula according to described formula definition data Store to described mobile terminal;
Second receives unit, for receiving, by described mobile terminal, the independent variable number that described self-defining formula is corresponding According to;And
Computing unit, for described argument data being performed calculating according to described self-defining formula, is calculated Result.
Device the most according to claim 7, it is characterised in that described device also includes:
Adding device, for being stored after described mobile terminal by described self-defining formula, makes by oneself described Justice formula adds to listing formulas, and wherein, described listing formulas includes predefined multiple formula;
3rd receives unit, is used for being received from defined formula query statement, and wherein, described self-defining formula is inquired about Instruction is the instruction inquiring about described self-defining formula from described listing formulas;
Query unit, for according to described self-defining formula query statement inquire about from described listing formulas described oneself Defined formula;And
Display unit, shows, for the display interface in described calculator application, the described self-defining formula inquired.
Device the most according to claim 7, it is characterised in that described memory element includes:
Acquisition module, for obtaining the formula definition data of multiple formula;
First generation module, multiple self-defined for defining data genaration according to the formula of the plurality of formula respectively Formula;
Second generation module, for generating listing formulas according to the plurality of self-defining formula;And
Memory module, for storing described listing formulas to described mobile terminal.
Device the most according to claim 7, it is characterised in that described first receives unit includes:
First receiver module, starts definition instruction, wherein, described beginning for being received by described mobile terminal Definition instruction is the instruction triggering described calculator application display formula definition interfaces;
Second receiver module, for receiving described formula definition data and to described by described formula definition interfaces Formula definition data show;
3rd receiver module, terminates definition instruction for being received by described formula definition interfaces, wherein, described Terminating definition instruction is the instruction stopping receiving described formula definition data;And
Preserve module, be used for preserving described formula definition data to described mobile terminal.
11. devices according to claim 10, it is characterised in that described second receiver module includes:
Judge submodule, for, after received described formula definition data by described formula definition interfaces, sentencing Whether disconnected described formula definition data are that normalized form defines data, and wherein, described normalized form definition data are The data of coincidence formula definition rule;
Output sub-module, for judging that described formula definition data do not define data for described normalized form, In described formula definition interfaces output definition miscue information, wherein, described definition miscue information is for using In representing that described formula definition data do not meet the information of described formula definition rule;And
Display sub-module, for judging that described formula definition data are that described normalized form defines data, Described formula definition interfaces shows that described formula defines data.
12. devices according to claim 7, it is characterised in that described computing unit includes:
Judge module, for judging whether described argument data meets the Variable Conditions of described self-defining formula;
Output module, for judging that described argument data does not meets the Variable Conditions of described self-defining formula, Output data invalid information, wherein, described data invalid information is can not be according to described for expression Argument data obtains the information of correct result of calculation;And
Computing module, for judging that described argument data meets the Variable Conditions of described self-defining formula, According to described self-defining formula, described argument data is performed calculating, obtain correct result of calculation.
CN201610200846.9A 2016-03-31 2016-03-31 Data processing method and device applied to calculator Pending CN105893330A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610200846.9A CN105893330A (en) 2016-03-31 2016-03-31 Data processing method and device applied to calculator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610200846.9A CN105893330A (en) 2016-03-31 2016-03-31 Data processing method and device applied to calculator

Publications (1)

Publication Number Publication Date
CN105893330A true CN105893330A (en) 2016-08-24

Family

ID=57012840

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610200846.9A Pending CN105893330A (en) 2016-03-31 2016-03-31 Data processing method and device applied to calculator

Country Status (1)

Country Link
CN (1) CN105893330A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817496A (en) * 2021-02-01 2021-05-18 网易(杭州)网络有限公司 Data operation method, device and equipment based on application program and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1735873A (en) * 2002-09-30 2006-02-15 卡西欧计算机株式会社 Graphic display control apparatus and program
CN101930420A (en) * 2010-08-17 2010-12-29 惠州Tcl移动通信有限公司 Mobile terminal and calculation method using same and device
CN102841884A (en) * 2011-06-23 2012-12-26 卡西欧计算机株式会社 Expression input apparatus, expression display apparatus, expression input method and expression display method
CN103810143A (en) * 2012-11-08 2014-05-21 镇江润欣科技信息有限公司 Method for realizing mathematical formula on web
CN104035910A (en) * 2014-06-20 2014-09-10 米勇龙 Calculator with formula entry function
CN104317477A (en) * 2014-09-26 2015-01-28 广州金山移动科技有限公司 Formula self-defining method and method employing self-defined formula
CN104933006A (en) * 2014-03-19 2015-09-23 卡西欧计算机株式会社 Electronic Device, Method For Controlling Display Of Variable, And Recording Medium Recording Variable Display Controlling Program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1735873A (en) * 2002-09-30 2006-02-15 卡西欧计算机株式会社 Graphic display control apparatus and program
CN101930420A (en) * 2010-08-17 2010-12-29 惠州Tcl移动通信有限公司 Mobile terminal and calculation method using same and device
CN102841884A (en) * 2011-06-23 2012-12-26 卡西欧计算机株式会社 Expression input apparatus, expression display apparatus, expression input method and expression display method
CN103810143A (en) * 2012-11-08 2014-05-21 镇江润欣科技信息有限公司 Method for realizing mathematical formula on web
CN104933006A (en) * 2014-03-19 2015-09-23 卡西欧计算机株式会社 Electronic Device, Method For Controlling Display Of Variable, And Recording Medium Recording Variable Display Controlling Program
CN104035910A (en) * 2014-06-20 2014-09-10 米勇龙 Calculator with formula entry function
CN104317477A (en) * 2014-09-26 2015-01-28 广州金山移动科技有限公司 Formula self-defining method and method employing self-defined formula

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
XIAMEN AURO INFORMATION TECHNOLOGY CO., LTD: "万能公式-自定义公式计算器", 《HTTPS://ITUNES.APPLE.COM/CN/APP/ID848267869?MT=8》 *
李桂芝主编: "《Visual Basic程序设计习题集与实验指导》", 30 September 2013, 清华大学出版社 *
陈华生等主编: "《Visual Basic程序设计教程》", 31 August 1999, 苏州大学出版社 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817496A (en) * 2021-02-01 2021-05-18 网易(杭州)网络有限公司 Data operation method, device and equipment based on application program and storage medium
CN112817496B (en) * 2021-02-01 2022-06-14 网易(杭州)网络有限公司 Data operation method, device and equipment based on application program and storage medium

Similar Documents

Publication Publication Date Title
CN105929980A (en) Method and device for inputting information
CN112099684A (en) Search display method and device and electronic equipment
CN108307068A (en) Pair screen shows interface switching method, mobile terminal and storage medium
CN107133038A (en) A kind of application program changes the method and its device of skin
CN112540740A (en) Split screen display method and device, electronic equipment and readable storage medium
CN104156232A (en) Equipment and method for nonlinear page skip under linear page structure
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN111949192A (en) Password input prompting method and device and electronic equipment
CN113596555B (en) Video playing method and device and electronic equipment
CN105893330A (en) Data processing method and device applied to calculator
CN111857997A (en) Application program body-separating identification display method, device, equipment and medium
CN104391898A (en) Data showing method and device
CN112764633A (en) Information processing method and device and electronic equipment
CN106293679A (en) A kind of element term conflict processing method and device
CN112596617A (en) Message content input method and device and electronic equipment
CN112929489B (en) Communication method and device
CN111143631B (en) Data processing method and device, storage medium and electronic equipment
CN114386038A (en) Data processing method, device, equipment and storage medium
CN113138702A (en) Information processing method, information processing device, electronic equipment and storage medium
CN117149889A (en) Graph data processing method and related device
CN105320982B (en) Select the method and device of user identity identification SIM card
CN106878761A (en) Living broadcast interactive method, device and server
CN114036551A (en) Data processing method and device for private data, computer equipment and medium
CN106250346A (en) A kind of realization method and system of intelligent computer
CN104020938B (en) A kind of information processing method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160824