CN105120055A - Data processing method and terminal - Google Patents

Data processing method and terminal Download PDF

Info

Publication number
CN105120055A
CN105120055A CN201510359914.1A CN201510359914A CN105120055A CN 105120055 A CN105120055 A CN 105120055A CN 201510359914 A CN201510359914 A CN 201510359914A CN 105120055 A CN105120055 A CN 105120055A
Authority
CN
China
Prior art keywords
date
data
computation schema
computation
calculator
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
Application number
CN201510359914.1A
Other languages
Chinese (zh)
Other versions
CN105120055B (en
Inventor
李乾杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510359914.1A priority Critical patent/CN105120055B/en
Publication of CN105120055A publication Critical patent/CN105120055A/en
Application granted granted Critical
Publication of CN105120055B publication Critical patent/CN105120055B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a data processing method and terminal. The method comprises steps: a calculator is switched to a first calculation mode; in the first calculation mode, a first group of input data is obtained, according to a calculation rule corresponding to the first calculation mode, the first group of input data is processed, and result data is obtained; the result data is outputted.

Description

Data processing method and terminal
Technical field
The present invention relates to data processing technique, particularly relate to a kind of data processing method and terminal.
Background technology
Calculator is a function indispensable in terminal, but the function of calculator is limited, and user infrequently uses this function.Along with the raising that user requires calculator, the function of calculator is enriched gradually, and scientific calculator adds the calculating of a lot of trigonometric function and power exponent.Under some scenes, user wants to carry out numerical calculation, how many days total such as user think between calculation date 2015.5.25 to date 5015.8.13, or calculation date 2015.5.25 to add 17 days be which date, again such as, when user wants the mean value calculating several groups of numbers, all needing adds up one group of number at every turn just can obtain data divided by number, troublesome poeration, Consumer's Experience is low.
Summary of the invention
For solving the problems of the technologies described above, embodiments provide a kind of data processing method and terminal.
The data processing method that the embodiment of the present invention provides is applied to the terminal with calculator, and described method comprises:
Described calculator is switched to the first computation schema;
Under described first computation schema, obtain first group of input data, according to first group of input data described in the computation rule process that the first computation schema is corresponding, obtain result data;
Export described result data.
In the embodiment of the present invention, described first computation schema is date computation schema;
Correspondingly, described under described first computation schema, obtain first group of input data, according to first group of input data described in the computation rule process that the first computation schema is corresponding, obtain result data, comprising:
Under date computation schema, obtain the first date and the second date;
Calculate the number of days of being separated by between described first date and described second date, data as a result.
In the embodiment of the present invention, described under described first computation schema, obtain first group of input data, according to first group of input data described in the computation rule process that the first computation schema is corresponding, obtain result data, comprising:
Under date computation schema, obtained for the first date and be added number of days or subtract each other number of days;
With described first date for from date, calculate the date data as a result after being added number of days, or calculate the date data as a result after subtracting each other number of days.
In the embodiment of the present invention, described method also comprises:
When calculator switches under date computation schema, give tacit consent to and current date is shown as described first date.
In the embodiment of the present invention, described first computation schema is for presetting computation schema; Described method also comprises: pre-set computation rule.
The terminal that the embodiment of the present invention provides has calculator; Described terminal comprises:
Switch unit, for switching to the first computation schema by described calculator;
Input unit, under described first computation schema, obtains first group of input data;
Processing unit, for first group of input data according to computation rule process corresponding to the first computation schema, obtains result data;
Output unit, for exporting described result data.
In the embodiment of the present invention, described first computation schema is date computation schema;
Described input unit, also under date computation schema, obtains the first date and the second date;
Described processing unit, also for calculating the number of days of being separated by between described first date and described second date, data as a result.
In the embodiment of the present invention, described input unit, also under date computation schema, obtained for the first date and is added number of days or subtracts each other number of days;
Described processing unit, also for described first date for from date, calculate and be added the date data as a result after number of days, or calculate the date data as a result after subtracting each other number of days.
In the embodiment of the present invention, described output unit, also for when calculator switches under date computation schema, gives tacit consent to and current date is shown as described first date.
In the embodiment of the present invention, described terminal also comprises: described first computation schema is for presetting computation schema;
Setting unit, for pre-setting computation rule.
In the technical scheme of the embodiment of the present invention, terminal has calculator, and this calculator not only can carry out traditional numerical computations, can also process some nonumeric class and calculate, as the date calculates.Particularly, computer has multiple computation schema, when carrying out nonumeric class and calculating, calculator is switched to the first computation schema.Then, under the first computation schema, utilize input unit to obtain first group of input data of user's input, then according to computation rule process first group input data, obtain result data and export.Here, computation rule is corresponding with the first computation schema, and when the first computation schema is date computation schema, computation rule then processes the plus-minus mutually between date with number of days.Certainly, the first computation schema also can be pre-defined by user, such as, define and the data of input be averaging, then computation rule is automatically average to multiple data of input.Again such as, calculate gesticulating of Chinese character, then computation rule is automatically calculate it to the Chinese character of input to gesticulate number.The calculator function of the embodiment of the present invention enriches, and conveniently meets the multiple application in actual conditions, and, the computation rule needed for user can also oneself define, better for experiencing.
Accompanying drawing explanation
Fig. 1 is the hardware configuration schematic diagram of the mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the schematic flow sheet of the data processing method of the embodiment of the present invention one;
Fig. 4 is the schematic flow sheet of the data processing method of the embodiment of the present invention two;
Fig. 5 is the schematic flow sheet of the data processing method of the embodiment of the present invention three;
Fig. 6 is the structure composition schematic diagram of the terminal of the embodiment of the present invention one;
Fig. 7 calculates schematic diagram on the date of the embodiment of the present invention;
Fig. 8 is that the average of the embodiment of the present invention calculates schematic diagram.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use the suffix of such as " module ", " parts " or " unit " for representing element only in order to be conducive to the explanation of the embodiment of the present invention, itself is specific meaning not.Therefore, " module " and " parts " can mixedly use.
Terminal can be implemented in a variety of manners.Such as, the terminal described in the embodiment of the present invention can comprise such as mobile phone, smart phone, notebook computer, digit broadcasting receiver, personal digital assistant (PDA, PersonalDigitalAssistant), the terminal of panel computer (PAD), portable media player (PMP, PortableMediaPlayer), guider etc. and the fixed terminal of such as digital TV, desktop computer etc.Below, suppose that terminal is mobile terminal.But it will be appreciated by those skilled in the art that except the element except being used in particular for mobile object, structure according to the embodiment of the present invention also can be applied to the terminal of fixed type.
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention.
Mobile terminal 100 can comprise wireless communication unit 110, audio/video (A/V) input unit 120, user input unit 130, sensing cell 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 etc.Fig. 1 shows the mobile terminal with various assembly, it should be understood that, does not require to implement all assemblies illustrated.Can alternatively implement more or less assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows the radio communication between mobile terminal 100 and wireless communication system or network.Such as, wireless communication unit can comprise at least one in broadcast reception module 111, mobile communication module 112, wireless Internet module 113, short range communication module 114 and positional information module 115.
Broadcast reception module 111 via broadcast channel from external broadcasting management server receiving broadcast signal and/or broadcast related information.Broadcast channel can comprise satellite channel and/or terrestrial channel.Broadcast management server can be generate and send the server of broadcast singal and/or broadcast related information or the broadcast singal generated before receiving and/or broadcast related information and send it to the server of terminal.Broadcast singal can comprise TV broadcast singal, radio signals, data broadcasting signal etc.And broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast related information also can provide via mobile communications network, and in this case, broadcast related information can be received by mobile communication module 112.Broadcast singal can exist in a variety of manners, such as, it can with DMB (DMB, DigitalMultimediaBroadcasting) electronic program guides (EPG, ElectronicProgramGuide), digital video broadcast-handheld (DVB-H, the form of electronic service guidebooks (ESG, ElectronicServiceGuide) DigitalVideoBroadcasting-Handheld) etc. and existing.Broadcast reception module 111 can by using the broadcast of various types of broadcast system Received signal strength.Especially, broadcast reception module 111 can by using such as multimedia broadcasting-ground (DMB-T, DigitalMultimediaBroadcasting-Terrestrial), DMB-satellite (DMB-S, DigitalMultimediaBroadcasting-Satellite), digital video broadcast-handheld (DVB-H), forward link media (MediaFLO, MediaForwardLinkOnly) Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T, etc. IntegratedServicesDigitalBroadcasting-Terrestrial) digit broadcasting system receiving digital broadcast.Broadcast reception module 111 can be constructed to be applicable to providing the various broadcast system of broadcast singal and above-mentioned digit broadcasting system.The broadcast singal received via broadcast reception module 111 and/or broadcast related information can be stored in memory 160 (or storage medium of other type).
Radio signal is sent at least one in base station (such as, access point, Node B etc.), exterior terminal and server and/or receives radio signals from it by mobile communication module 112.Various types of data that such radio signal can comprise voice call signal, video calling signal or send according to text and/or Multimedia Message and/or receive.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be inner or be externally couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can comprise WLAN (WLAN, WirelessLocalAreaNetworks) (Wi-Fi), WiMAX (Wibro), worldwide interoperability for microwave access (Wimax), high-speed downlink packet access (HSDPA, HighSpeedDownlinkPacketAccess) etc.
Short range communication module 114 is the modules for supporting junction service.Some examples of short-range communication technology comprise bluetooth, radio-frequency (RF) identification (RFID, RadioFrequencyIdentification), Infrared Data Association (IrDA, InfraredDataAssociation), ultra broadband (UWB, UltraWideband), purple honeybee etc.
Positional information module 115 is the modules of positional information for checking or obtain mobile terminal.The typical case of positional information module is global positioning system (GPS, GlobalPositioningSystem).According to current technology, GPS module 115 calculates from the range information of three or more satellite and correct time information and for the Information application triangulation calculated, thus calculates three-dimensional current location information according to longitude, latitude and pin-point accuracy.Current, the method for calculating location and temporal information uses three satellites and by the error of the position that uses an other satellite correction calculation to go out and temporal information.In addition, GPS module 115 can carry out computational speed information by Continuous plus current location information in real time.
A/V input unit 120 is for audio reception or vision signal.A/V input unit 120 can comprise camera 121 and microphone 1220, and the view data of camera 121 to the static images obtained by image capture apparatus in Video Capture pattern or image capture mode or video processes.Picture frame after process may be displayed on display unit 151.Picture frame after camera 121 processes can be stored in memory 160 (or other storage medium) or via wireless communication unit 110 and send, and can provide two or more cameras 1210 according to the structure of mobile terminal.Such acoustic processing can via microphones sound (voice data) in telephone calling model, logging mode, speech recognition mode etc. operational mode, and can be voice data by microphone 122.Audio frequency (voice) data after process can be converted to the formatted output that can be sent to mobile communication base station via mobile communication module 112 when telephone calling model.Microphone 122 can be implemented various types of noise and eliminate (or suppress) algorithm and receiving and sending to eliminate (or suppression) noise or interference that produce in the process of audio signal.
User input unit 130 can generate key input data to control the various operations of mobile terminal according to the order of user's input.User input unit 130 allows user to input various types of information, and keyboard, the young sheet of pot, touch pad (such as, detecting the touch-sensitive assembly of the change of the resistance, pressure, electric capacity etc. that cause owing to being touched), roller, rocking bar etc. can be comprised.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch-screen can be formed.
Sensing cell 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close state), the position of mobile terminal 100, user for mobile terminal 100 contact (namely, touch input) presence or absence, the orientation of mobile terminal 100, the acceleration or deceleration of mobile terminal 100 move and direction etc., and generate order or the signal of the operation for controlling mobile terminal 100.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing cell 140 can sense this sliding-type phone and open or close.In addition, whether whether sensing cell 140 can detect power subsystem 190 provides electric power or interface unit 170 to couple with external device (ED).Sensing cell 140 can comprise proximity transducer 1410 and will be described this in conjunction with touch-screen below.
Interface unit 170 is used as at least one external device (ED) and is connected the interface that can pass through with mobile terminal 100.Such as, external device (ED) can comprise wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connecting the port, audio frequency I/O (I/O) port, video i/o port, ear port etc. of the device with identification module.Identification module can be that storage uses the various information of mobile terminal 100 for authentication of users and can comprise subscriber identification module (UIM, UserIdentifyModule), client identification module (SIM, SubscriberIdentityModule), Universal Subscriber identification module (USIM, UniversalSubscriberIdentityModule) etc.In addition, the device (hereinafter referred to " recognition device ") with identification module can take the form of smart card, and therefore, recognition device can be connected with mobile terminal 100 via port or other jockey.Interface unit 170 may be used for receive from external device (ED) input (such as, data message, electric power etc.) and the input received be transferred to the one or more element in mobile terminal 100 or may be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connected with external base, interface unit 170 can be used as to allow by it electric power to be provided to the path of mobile terminal 100 from base or can be used as the path that allows to be transferred to mobile terminal by it from the various command signals of base input.The various command signal inputted from base or electric power can be used as and identify whether mobile terminal is arranged on the signal base exactly.Output unit 150 is constructed to provide output signal (such as, audio signal, vision signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner.Output unit 150 can comprise display unit 151, dio Output Modules 152, alarm unit 153 etc.
Display unit 151 may be displayed on the information of process in mobile terminal 100.Such as, when mobile terminal 100 is in telephone calling model, display unit 151 can show with call or other communicate (such as, text messaging, multimedia file are downloaded etc.) relevant user interface (UI, or graphic user interface (GUI, GraphicalUserInterface) UserInterface).When mobile terminal 100 is in video calling pattern or image capture mode, display unit 151 can the image of display capture and/or the image of reception, UI or GUI that video or image and correlation function are shown etc.
Meanwhile, when display unit 151 and touch pad as a layer superposed on one another to form touch-screen time, display unit 151 can be used as input unit and output device.Display unit 151 can comprise liquid crystal display (LCD, LiquidCrystalDisplay), thin-film transistor LCD (TFT-LCD, ThinFilmTransistor-LCD) at least one, in Organic Light Emitting Diode (OLED, OrganicLight-EmittingDiode) display, flexible display, three-dimensional (3D) display etc.Some in these displays can be constructed to transparence and watch from outside to allow user, and this can be called transparent display, and typical transparent display can be such as transparent organic light emitting diode (TOLED) display etc.According to the specific execution mode wanted, mobile terminal 100 can comprise two or more display units (or other display unit), such as, mobile terminal can comprise outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detecting touch input pressure and touch input position and touch and inputs area.
When dio Output Modules 152 can be under the isotypes such as call signal receiving mode, call mode, logging mode, speech recognition mode, broadcast reception mode at mobile terminal, voice data convert audio signals that is that wireless communication unit 110 is received or that store in memory 160 and exporting as sound.And dio Output Modules 152 can provide the audio frequency relevant to the specific function that mobile terminal 100 performs to export (such as, call signal receives sound, message sink sound etc.).Dio Output Modules 152 can comprise loud speaker, buzzer etc.
Alarm unit 153 can provide and export that event informed to mobile terminal 100.Typical event can comprise calling reception, message sink, key signals input, touch input etc.Except audio or video exports, alarm unit 153 can provide in a different manner and export with the generation of notification event.Such as, alarm unit 153 can provide output with the form of vibration, when receive calling, message or some other enter communication (incomingcommunication) time, alarm unit 153 can provide sense of touch to export (that is, vibrating) to notify to user.By providing such sense of touch to export, even if when the mobile phone of user is in the pocket of user, user also can identify the generation of various event.Alarm unit 153 also can provide the output of the generation of notification event via display unit 151 or dio Output Modules 152.
Memory 160 software program that can store process and the control operation performed by controller 180 etc., or temporarily can store oneself through exporting the data (such as, telephone directory, message, still image, video etc.) that maybe will export.And, memory 160 can store about when touch be applied to touch-screen time the vibration of various modes that exports and the data of audio signal.
Memory 160 can comprise the storage medium of at least one type, described storage medium comprises flash memory, hard disk, multimedia card, card-type memory (such as, SD or DX memory etc.), random access storage device (RAM, RandomAccessMemory), static random-access memory (SRAM, StaticRandomAccessMemory), read-only memory (ROM, ReadOnlyMemory), Electrically Erasable Read Only Memory (EEPROM, ElectricallyErasableProgrammableReadOnlyMemory), programmable read only memory (PROM, ProgrammableReadOnlyMemory), magnetic storage, disk, CD etc.And mobile terminal 100 can be connected the memory function of execute store 160 network storage device with by network cooperates.
Controller 180 controls the overall operation of mobile terminal usually.Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process.In addition, controller 180 can comprise the multi-media module 1810 for reproducing (or playback) multi-medium data, and multi-media module 1810 can be configured in controller 180, or can be configured to be separated with controller 180.Controller 180 can pattern recognition process, is identified as character or image so that input is drawn in the handwriting input performed on the touchscreen or picture.
Power subsystem 190 receives external power or internal power and provides each element of operation and the suitable electric power needed for assembly under the control of controller 180.
Various execution mode described herein can to use such as computer software, the computer-readable medium of hardware or its any combination implements.For hardware implementation, execution mode described herein can by using application-specific IC (ASIC, ApplicationSpecificIntegratedCircuit), digital signal processor (DSP, DigitalSignalProcessing), digital signal processing device (DSPD, DigitalSignalProcessingDevice), programmable logic device (PLD, ProgrammableLogicDevice), field programmable gate array (FPGA, FieldProgrammableGateArray), processor, controller, microcontroller, microprocessor, be designed at least one performed in the electronic unit of function described herein implement, in some cases, such execution mode can be implemented in controller 180.For implement software, the execution mode of such as process or function can be implemented with allowing the independent software module performing at least one function or operation.Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can be stored in memory 160 and to be performed by controller 180.
So far, oneself is through the mobile terminal according to its functional description.Below, for the sake of brevity, by the slide type mobile terminal that describes in various types of mobile terminals of such as folded form, board-type, oscillating-type, slide type mobile terminal etc. exemplarily.Therefore, the present invention can be applied to the mobile terminal of any type, and is not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 can be constructed to utilize and send the such as wired and wireless communication system of data via frame or grouping and satellite-based communication system operates.
Describe wherein according to the communication system that the mobile terminal of the embodiment of the present invention can operate referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.Such as, the air interface used by communication system comprises such as frequency division multiple access (FDMA, FrequencyDivisionMultipleAccess), time division multiple access (TDMA, TimeDivisionMultipleAccess), code division multiple access (CDMA, and universal mobile telecommunications system (UMTS CodeDivisionMultipleAccess), UniversalMobileTelecommunicationsSystem) (especially, Long Term Evolution (LTE, LongTermEvolution)), global system for mobile communications (GSM) etc.As non-limiting example, description below relates to cdma communication system, but such instruction is equally applicable to the system of other type.
With reference to figure 2, cdma wireless communication system can comprise multiple mobile terminal 100, multiple base station (BS, BaseStation) 270, base station controller (BSC, BaseStationController) 275 and mobile switching centre (MSC, MobileSwitchingCenter) 280.MSC280 is constructed to form interface with Public Switched Telephony Network (PSTN, PublicSwitchedTelephoneNetwork) 290.MSC280 is also constructed to form interface with the BSC275 that can be couple to base station 270 via back haul link.Back haul link can construct according to any one in some interfaces that oneself knows, described interface comprises such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.Will be appreciated that system as shown in Figure 2 can comprise multiple BSC2750.
Each BS270 can serve one or more subregion (or region), by multidirectional antenna or point to specific direction each subregion of antenna cover radially away from BS270.Or each subregion can by two or more antenna covers for diversity reception.Each BS270 can be constructed to support multiple parallel compensate, and each parallel compensate has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Subregion can be called as CDMA Channel with intersecting of parallel compensate.BS270 also can be called as base station transceiver subsystem (BTS, BaseTransceiverStation) or other equivalent terms.Under these circumstances, term " base station " may be used for broadly representing single BSC275 and at least one BS270.Base station also can be called as " cellular station ".Or each subregion of particular B S270 can be called as multiple cellular station.
As shown in Figure 2, broadcast singal is sent to the mobile terminal 100 at operate within systems by broadcsting transmitter (BT, BroadcastTransmitter) 295.Broadcast reception module 111 as shown in Figure 1 is arranged on mobile terminal 100 and sentences the broadcast singal receiving and sent by BT295.In fig. 2, several global positioning system (GPS) satellite 300 is shown.Satellite 300 helps at least one in the multiple mobile terminal 100 in location.
In fig. 2, depict multiple satellite 300, but understand, the satellite of any number can be utilized to obtain useful locating information.GPS module 115 as shown in Figure 1 is constructed to coordinate to obtain the locating information wanted with satellite 300 usually.Substitute GPS tracking technique or outside GPS tracking technique, can use can other technology of position of tracking mobile terminal.In addition, at least one gps satellite 300 optionally or extraly can process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link signal from various mobile terminal 100.Mobile terminal 100 participates in call usually, information receiving and transmitting communicates with other type.Each reverse link signal that certain base station 270 receives is processed by particular B S270.The data obtained are forwarded to relevant BSC275.BSC provides call Resourse Distribute and comprises the mobile management function of coordination of the soft switching process between BS270.The data received also are routed to MSC280 by BSC275, and it is provided for the extra route service forming interface with PSTN290.Similarly, PSTN290 and MSC280 forms interface, and MSC and BSC275 forms interface, and BSC275 correspondingly control BS270 so that forward link signals is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
Fig. 3 is the schematic flow sheet of the data processing method of the embodiment of the present invention one, and the data processing method in this example is applied to terminal, and described terminal has calculator, and as shown in Figure 3, described data processing method comprises the following steps:
Step 301: described calculator is switched to the first computation schema.
In the embodiment of the present invention, described terminal can be the electronic equipments such as mobile phone, panel computer, notebook.Described electronic equipment has calculator, and the display interface of calculator can refer to Fig. 7 or Fig. 8.
Calculator in the embodiment of the present invention not only can carry out traditional numerical computations, can also process some nonumeric class and calculate, as the date calculates.
For traditional numerical computations, calculator can process addition subtraction multiplication and division computing, power operation, exponent arithmetic etc.
Calculate for nonumeric class, corresponding first computation schema of calculator, user can pass through handover operation, switches the computation schema of calculator, under making calculator be in the first computation schema.
Particularly, when under calculator process first computation schema, calculator is automatically matched to the computation rule of the first computation schema, to process accordingly input data.
In the embodiment of the present invention, the first computation schema can be that calculator has date computation schema, gesticulates computation schema, maximum value calculation pattern, minimum value computation schema etc.First computation schema can also be pre-defined by user, and such as, user defines computation rule corresponding to the first computation schema for being averaging input data or suing for peace or ask variance.
Step 302: under described first computation schema, obtains first group of input data.
In the embodiment of the present invention, calculator has inputting interface, inputting interface has multiple input key, and this input key can be physical button, also can be the virtual key shown by the touching display screen of terminal.When user inputs multiple data, calculator obtains first group of input data.
In one embodiment, the first computation schema is date computation schema, under date computation schema, obtains the first date and the second date.With reference to Fig. 7, when the first computation schema is date computation schema, user can be confirmed that the button exported the is shown as pattern on " date=", facilitates user to the confirmation of current computation schema.Based on date computation schema, user can input two dates, be respectively the first date and the second date, such as 2015.05.25 and 2015.07.13, here, when the first group of input data inputted are two dates, do not distinguish the sequencing on two dates, all can calculate the number of days of being separated by between two dates.Get final product 2015.05.25-2015.07.13=2015.07.13-2015.05.25=48.
In the embodiment of the present invention, the form that date of input need meet the demands, such as require that the form on date is the form of date, separate with ". " between the date, year represents with 4-digit number, and the moon and day represent with two digits respectively.
In another embodiment, under date computation schema, obtained for the first date and be added number of days or subtract each other number of days.With reference to Fig. 7, the first date was 2015.07.13, and subtracting each other number of days is 48, then 2015.07.13-48=2015.05.25.Namely date 2015.07.13 deducts 48 days, is date 2015.05.25.Certainly, also sum operation can be carried out, such as 2015.07.13+10=2015.07.23 by putting in marks to the date.
In the embodiment of the present invention, the first computation schema also can be pre-defined by user, such as, define and the data of input be averaging, then computation rule is automatically average to multiple data of input.With reference to Fig. 8, the first computation schema is predefined when asking the mean value pattern of three numbers, user can be confirmed that the button exported is shown as the pattern of " ÷ 3=", facilitate user to the confirmation of current computation schema.Based on the mean value pattern asking three numbers, user inputs three data, as first group of Data Data, and such as 45,53,124.The mode of input directly can input three data, without the need to oeprator between three data, only need separate with space.Three data can also be inputted, with adding up between three data.The result then calculated is (45+53+124) ÷ 3=74.
Step 303: according to first group of input data described in the computation rule process that the first computation schema is corresponding, obtain result data.
In one embodiment, the first computation schema is date computation schema, calculates the number of days of being separated by between described first date and described second date, data as a result.Such as, 2015.05.25-2015.07.13=2015.07.13-2015.05.25=48.
In another embodiment, with described first date for from date, calculate the date data as a result after being added number of days, or calculate the date data as a result after subtracting each other number of days.Such as 2015.07.13+10=2015.07.23.
Under predefined computation schema, such as, when asking the mean value pattern of three numbers, input data are 45+53+124, then the result calculated is (45+53+124) ÷ 3=74.
Step 304: export described result data.
After user presses and confirms output key, calculator exports described result data.
The calculator of this law inventive embodiments not only can carry out traditional numerical computations, can also process some nonumeric class and calculate, as the date calculates.Particularly, computer has multiple computation schema, when carrying out nonumeric class and calculating, calculator is switched to the first computation schema.Then, under the first computation schema, utilize input unit to obtain first group of input data of user's input, then according to computation rule process first group input data, obtain result data and export.Here, computation rule is corresponding with the first computation schema, and when the first computation schema is date computation schema, computation rule then processes the plus-minus mutually between date with number of days.Certainly, the first computation schema also can be pre-defined by user, such as, define and the data of input be averaging, then computation rule is automatically average to multiple data of input.Again such as, calculate gesticulating of Chinese character, then computation rule is automatically calculate it to the Chinese character of input to gesticulate number.The calculator function of the embodiment of the present invention enriches, and conveniently meets the multiple application in actual conditions, and, the computation rule needed for user can also oneself define, better for experiencing.
Fig. 4 is the schematic flow sheet of the data processing method of the embodiment of the present invention two, and the data processing method in this example is applied to terminal, and described terminal has calculator, and as shown in Figure 4, described data processing method comprises the following steps:
Step 401: described calculator is switched to date computation schema.
In the embodiment of the present invention, described terminal can be the electronic equipments such as mobile phone, panel computer, notebook.Described electronic equipment has calculator, and the display interface of calculator can refer to Fig. 7.
Calculator in the embodiment of the present invention not only can carry out traditional numerical computations, can also process some nonumeric class and calculate, as the date calculates.
For traditional numerical computations, calculator can process addition subtraction multiplication and division computing, power operation, exponent arithmetic etc.
Calculate for nonumeric class, the corresponding date computation schema of calculator, user can pass through handover operation, switches the computation schema of calculator, under making calculator be in date computation schema.
Particularly, when under calculator process date computation schema, calculator is automatically matched to the computation rule of date computation schema, to process accordingly input data.
Step 402: under date computation schema, obtains first group of input data.
In the embodiment of the present invention, calculator has inputting interface, inputting interface has multiple input key, and this input key can be physical button, also can be the virtual key shown by the touching display screen of terminal.When user inputs multiple data, calculator obtains the first date and the second date.
In one embodiment, under date computation schema, obtain the first date and the second date.With reference to Fig. 7, user can be confirmed that the button exported the is shown as pattern on " date=", facilitates user to the confirmation of current computation schema.Based on date computation schema, user can input two dates, be respectively the first date and the second date, such as 2015.05.25 and 2015.07.13, here, when the first group of input data inputted are two dates, do not distinguish the sequencing on two dates, all can calculate the number of days of being separated by between two dates.Get final product 2015.05.25-2015.07.13=2015.07.13-2015.05.25=48.
In the embodiment of the present invention, the form that date of input need meet the demands, such as require that the form on date is the form of date, separate with ". " between the date, year represents with 4-digit number, and the moon and day represent with two digits respectively.
In another embodiment, under date computation schema, obtained for the first date and be added number of days or subtract each other number of days.With reference to Fig. 7, the first date was 2015.07.13, and subtracting each other number of days is 48, then 2015.07.13-48=2015.05.25.Namely date 2015.07.13 deducts 48 days, is date 2015.05.25.Certainly, also sum operation can be carried out, such as 2015.07.13+10=2015.07.23 by putting in marks to the date.
Step 403: according to first group of input data described in the computation rule process that date computation schema is corresponding, obtain result data.
In one embodiment, date computation schema is date computation schema, calculates the number of days of being separated by between described first date and described second date, data as a result.Such as, 2015.05.25-2015.07.13=2015.07.13-2015.05.25=48.
In another embodiment, with described first date for from date, calculate the date data as a result after being added number of days, or calculate the date data as a result after subtracting each other number of days.Such as 2015.07.13+10=2015.07.23.
Under predefined computation schema, such as, when asking the mean value pattern of three numbers, input data are 45+53+124, then the result calculated is (45+53+124) ÷ 3=74.
Step 404: export described result data.
After user presses and confirms output key, calculator exports described result data.
The calculator of this law inventive embodiments not only can carry out traditional numerical computations, can also process some nonumeric class and calculate, as the date calculates.Particularly, computer has multiple computation schema, when carrying out nonumeric class and calculating, calculator is switched to date computation schema.Then, under date computation schema, utilize input unit to obtain first group of input data of user's input, then according to computation rule process first group input data, obtain result data and export.Here, computation rule is corresponding with date computation schema, and when date computation schema is date computation schema, computation rule then processes the plus-minus mutually between date with number of days.The calculator function of the embodiment of the present invention enriches, and conveniently meets the multiple application in actual conditions, and, the computation rule needed for user can also oneself define, better for experiencing.
Fig. 5 is the schematic flow sheet of the data processing method of the embodiment of the present invention three, and the data processing method in this example is applied to terminal, and described terminal has calculator, and as shown in Figure 5, described data processing method comprises the following steps:
Step 501: pre-set computation rule.
Step 502: described calculator is switched to default computation schema.
In the embodiment of the present invention, described terminal can be the electronic equipments such as mobile phone, panel computer, notebook.Described electronic equipment has calculator, and the display interface of calculator can refer to Fig. 8.
Calculator in the embodiment of the present invention not only can carry out traditional numerical computations, can also processing some nonumeric class and calculate, calculating as averaged.
For traditional numerical computations, calculator can process addition subtraction multiplication and division computing, power operation, exponent arithmetic etc.
Calculate for nonumeric class, calculator correspondence presets computation schema, and user can pass through handover operation, switches the computation schema of calculator, under making calculator be in default computation schema.
Particularly, when calculator process is preset under computation schema, calculator is automatically matched to the computation rule of default computation schema, to process accordingly input data.
In the embodiment of the present invention, default computation schema can be pre-defined by user, and such as, user defines computation rule corresponding to default computation schema for being averaging input data.Can certainly sue for peace or ask variance.
Step 503: under described default computation schema, obtains first group of input data.
In the embodiment of the present invention, calculator has inputting interface, inputting interface has multiple input key, and this input key can be physical button, also can be the virtual key shown by the touching display screen of terminal.When user inputs multiple data, calculator obtains first group of input data.
In the embodiment of the present invention, default computation schema can be pre-defined by user, such as, define and the data of input be averaging, then computation rule is automatically average to multiple data of input.With reference to Fig. 8, the first computation schema is predefined when asking the mean value pattern of three numbers, user can be confirmed that the button exported is shown as the pattern of " ÷ 3=", facilitate user to the confirmation of current computation schema.Based on the mean value pattern asking three numbers, user inputs three data, as first group of Data Data, and such as 45,53,124.The mode of input directly can input three data, without the need to oeprator between three data, only need separate with space.Three data can also be inputted, with adding up between three data.The result then calculated is (45+53+124) ÷ 3=74.
Step 504: according to first group of input data described in the computation rule process that default computation schema is corresponding, obtain result data.
Under predefined computation schema, such as, when asking the mean value pattern of three numbers, input data are 45+53+124, then the result calculated is (45+53+124) ÷ 3=74.
Step 505: export described result data.
After user presses and confirms output key, calculator exports described result data.
The calculator of this law inventive embodiments not only can carry out traditional numerical computations, can also process some nonumeric class and calculate.Particularly, computer has multiple computation schema, when carrying out nonumeric class and calculating, calculator is switched to default computation schema.Then, under default computation schema, utilize input unit to obtain first group of input data of user's input, then according to computation rule process first group input data, obtain result data and export.Here, computation rule is corresponding with default computation schema, such as, define and the data of input be averaging, then computation rule is automatically average to multiple data of input.The calculator function of the embodiment of the present invention enriches, and conveniently meets the multiple application in actual conditions, and, the computation rule needed for user can also oneself define, better for experiencing.
Fig. 6 is the structure composition schematic diagram of the terminal of the embodiment of the present invention, and as shown in Figure 6, described terminal has calculator; Described terminal comprises:
Switch unit 61, for switching to the first computation schema by described calculator;
Input unit 62, under described first computation schema, obtains first group of input data;
Processing unit 63, for first group of input data according to computation rule process corresponding to the first computation schema, obtains result data;
Output unit 64, for exporting described result data.
In the embodiment of the present invention, described first computation schema is date computation schema;
Described input unit 62, also under date computation schema, obtains the first date and the second date;
Described processing unit 63, also for calculating the number of days of being separated by between described first date and described second date, data as a result.
In the embodiment of the present invention, described input unit 62, also under date computation schema, obtained for the first date and is added number of days or subtracts each other number of days;
Described processing unit 63, also for described first date for from date, calculate and be added the date data as a result after number of days, or calculate the date data as a result after subtracting each other number of days.
In the embodiment of the present invention, described output unit 64, also for when calculator switches under date computation schema, gives tacit consent to and current date is shown as described first date.
In the embodiment of the present invention, described terminal also comprises: described first computation schema is for presetting computation schema;
Setting unit 65, for pre-setting computation rule.。
It will be appreciated by those skilled in the art that the associated description that function that each unit in above-mentioned terminal realizes can refer to aforementioned data processing method is understood.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising this key element and also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computer, server, air conditioner, or the network equipment etc.) perform method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a data processing method, is applied to the terminal with calculator, it is characterized in that, described method comprises:
Described calculator is switched to the first computation schema;
Under described first computation schema, obtain first group of input data, according to first group of input data described in the computation rule process that the first computation schema is corresponding, obtain result data;
Export described result data.
2. data processing method according to claim 1, it is characterized in that, described first computation schema is date computation schema;
Correspondingly, described under described first computation schema, obtain first group of input data, according to first group of input data described in the computation rule process that the first computation schema is corresponding, obtain result data, comprising:
Under date computation schema, obtain the first date and the second date;
Calculate the number of days of being separated by between described first date and described second date, data as a result.
3. data processing method according to claim 2, is characterized in that, described under described first computation schema, obtains first group of input data, according to first group of input data described in the computation rule process that the first computation schema is corresponding, obtains result data, comprising:
Under date computation schema, obtained for the first date and be added number of days or subtract each other number of days;
With described first date for from date, calculate the date data as a result after being added number of days, or calculate the date data as a result after subtracting each other number of days.
4. data processing method according to Claims 2 or 3, is characterized in that, described method also comprises:
When calculator switches under date computation schema, give tacit consent to and current date is shown as described first date.
5. data processing method according to claim 1, is characterized in that, described first computation schema is for presetting computation schema; Described method also comprises: pre-set computation rule.
6. a terminal, is characterized in that, described terminal has calculator; Described terminal comprises:
Switch unit, for switching to the first computation schema by described calculator;
Input unit, under described first computation schema, obtains first group of input data;
Processing unit, for first group of input data according to computation rule process corresponding to the first computation schema, obtains result data;
Output unit, for exporting described result data.
7. terminal according to claim 6, is characterized in that, described first computation schema is date computation schema;
Described input unit, also under date computation schema, obtains the first date and the second date;
Described processing unit, also for calculating the number of days of being separated by between described first date and described second date, data as a result.
8. terminal according to claim 7, is characterized in that, described input unit, also under date computation schema, obtains for the first date and is added number of days or subtracts each other number of days;
Described processing unit, also for described first date for from date, calculate and be added the date data as a result after number of days, or calculate the date data as a result after subtracting each other number of days.
9. the terminal according to claim 7 or 8, is characterized in that, described output unit, also for when calculator switches under date computation schema, gives tacit consent to and current date is shown as described first date.
10. terminal according to claim 6, is characterized in that, described terminal also comprises: described first computation schema is for presetting computation schema;
Setting unit, for pre-setting computation rule.
CN201510359914.1A 2015-06-25 2015-06-25 Data processing method and terminal Active CN105120055B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510359914.1A CN105120055B (en) 2015-06-25 2015-06-25 Data processing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510359914.1A CN105120055B (en) 2015-06-25 2015-06-25 Data processing method and terminal

Publications (2)

Publication Number Publication Date
CN105120055A true CN105120055A (en) 2015-12-02
CN105120055B CN105120055B (en) 2019-04-19

Family

ID=54667936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510359914.1A Active CN105120055B (en) 2015-06-25 2015-06-25 Data processing method and terminal

Country Status (1)

Country Link
CN (1) CN105120055B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271083A (en) * 2018-08-22 2019-01-25 阿里巴巴集团控股有限公司 Data processing method and device calculate equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4386412A (en) * 1979-12-17 1983-05-31 Casio Computer Company, Ltd. Calculator with equation display device
CN1353348A (en) * 2000-11-02 2002-06-12 英新达(上海)电子有限公司 Calculator with automatic date memory and calculation functions
CN1410865A (en) * 2002-11-14 2003-04-16 无敌科技(西安)有限公司 System and method using hand writing mode to execute computing
CN103577157A (en) * 2013-11-13 2014-02-12 Tcl通讯(宁波)有限公司 Calculation method and device of mobile terminal calculator

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4386412A (en) * 1979-12-17 1983-05-31 Casio Computer Company, Ltd. Calculator with equation display device
CN1353348A (en) * 2000-11-02 2002-06-12 英新达(上海)电子有限公司 Calculator with automatic date memory and calculation functions
CN1410865A (en) * 2002-11-14 2003-04-16 无敌科技(西安)有限公司 System and method using hand writing mode to execute computing
CN103577157A (en) * 2013-11-13 2014-02-12 Tcl通讯(宁波)有限公司 Calculation method and device of mobile terminal calculator

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271083A (en) * 2018-08-22 2019-01-25 阿里巴巴集团控股有限公司 Data processing method and device calculate equipment and storage medium

Also Published As

Publication number Publication date
CN105120055B (en) 2019-04-19

Similar Documents

Publication Publication Date Title
CN104850259A (en) Combination operation method, combination operation apparatus, touch screen operating method and electronic device
CN104735255A (en) Split screen display method and system
CN104935747A (en) Processing method and device for application icon, and terminal
CN105138260A (en) Application switching method and terminal
CN104898961A (en) Application rapid starting method and apparatus
CN104915140A (en) Processing method based on virtual key touch operation data and processing device based on virtual key touch operation data
CN104731512A (en) Method, device and terminal for sharing pictures
CN105119825A (en) Data transmission device and data transmission method
CN104657482A (en) Method for displaying application interface and terminal
CN104915169A (en) Method and device for screen-split display of terminal application
CN105159700A (en) Application self-start control apparatus and method
CN104820555A (en) Transverse and vertical screen modes switching method and device, and terminal
CN105100416A (en) Event reminding method and wearable device
CN104850325A (en) Mobile terminal application processing method and device
CN104951236A (en) Wallpaper configuration method for terminal device, and terminal device
CN104881346A (en) Mobile terminal and detection method and device of power consumption of applications
CN104917891A (en) Mobile terminal and page-turning control method thereof
CN104915127A (en) Touch key setting method and device, and mobile terminal
CN105357367A (en) Keystroke identification device and method based on pressure sensor
CN104898940A (en) Picture processing method and device
CN104951229A (en) Screen capturing method and device
CN105045482A (en) Method and apparatus for mobile terminal to quickly call background application
CN104731455A (en) Application identification display method and device
CN105389007A (en) Application processing apparatus and method, and mobile terminal
CN104935731A (en) Method and apparatus of protecting cells

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant