How to find the defference between elements in an array

hi guys,
this is probs an easy one for you but how can you find the diffence between all elements in an array?
e.g array = 1 2 3 4 5 6
so difference between 1 and two is 1, difference between 1 and 3 is 2. all the way to trough to the differece between 6 and x is x etc.
i have been trying to use shift registers but cant quite get it.
Thanks
Message Edited by adamkse on 09-02-2009 01:18 AM
Solved!
Go to Solution.

or maybe this:
Harold Timmis
[email protected]
Orlando,Fl
*Kudos always welcome
Attachments:
buildarraysubtract.JPG ‏58 KB

Similar Messages

  • How to find the difference between Project costs & Cost center costs?

    Hi all,
    Can you please explain me ? What is project Cost & Cost center cost and which are the tables having those fields of project cost & cost center Costs? And how to find the difference between their costs ? And please give me the functional Idea about it?
    Thanking you all in Advance...
    Regards,
    Chandru

    Hi,
    goto table COSP:
    1) object-no. beginning with 'KS' refer to cost-centre
       example: 'KSKOKA4711'
       with KS, KOKA = controlling area and 4711 = cost centre
    2) OBJNR beginning with 'PR' refer to projects / WBS-element
       example PR00001234
    Message was edited by: Andreas Mann

  • How to find the relation between PAY_ELEMENT_TYPES_F and GL_CODE_COMBINATIO

    Hi, could someone tell me how to find the relation between PAY_ELEMENT_TYPES_F and GL_CODE_COMBINATION tables
    that is because as you could know PAY_ELEMENT_TYPES_F holds the definitions of elements in Oracle HRMS and i need to find the accounting code of each element.
    Thanks

    Hi;
    Please check e-trm site for table relation,integration,explanation etc..
    etrm.oracle.com/
    Regard
    Helios

  • How to find the link between strcture and query technical name

    Hi Guru's
    How to find the link between Strcture in the query and query technical name. In other way where used list of the structure  used in queries?
    I know we have table called RSZELTDIR which have the values of strcuture name. from here i do not find any link to query technical name.
    Please can anyone help me?
    Regards,
    Sirisha

    Hi ,
    For structure and query relationship, the structure has to be a reusable structure( a global one). Then you can right click in on the structure name (in BEX query designer) and select the where used list. You will find all the query names where it is being used.
    U can also check out tables RSRREPDIR and RSZCOMPDIR for other query properties.
    Thanks,
    Amit

  • How to find the difference between 2 time values in Java

    hi all,
    i have 2 time values
    String time1="6:20";
    String time2="21:30"
    How to find the difference between 2 times in Java?
    pls help
    thanx in advance....

    Calculating Java dates: Take the time to learn how to create and use dates
    Working in Java time: Learn the basics of calculating elapsed time in Java
    Formatting a Date Using a Custom Format
    Parsing a Date Using a Custom Format

  • How to find the relation between tables

    Hi
    I am working in Oracle R12
    How to find the relationship between these tables INV_MIN_MAX_TEMP,po_requisition_lines_all and Per_all_people_f
    These two table i have joined with po_requisition_lines_all and Per_all_people_f To_person_id from PO and Person from hr table but i cant able to join this table with other tables INV_MIN_MAX_TEMP
    regards
    Srikkanth

    Hi;
    Please check e-trm site for table relation,integration,explanation etc..
    etrm.oracle.com/
    Regard
    Helios

  • BCT - how to find the difference between installed BCT and the newest BCT?

    Hi,
    How do I find the difference between installed BCT and the newest BCT?
    or find a description of the newest BCT?
    Thank you.
    - Gunnar

    Hi,
    Thank you for your answer.
    I am aware of the possibilities you mention.
    I am looking for a way to find the parts of the business content that has been modified since I installed our current version WITHOUT installing anything.
    That is for example:
    If F&R business content has been moved from 3.x technology to 7.0
    If there is changes to the F&R content at all
    -> if our current version of business content already contains the newest version of Business Content for F&R, then it is not a prerequirement to an F&R project that we update business content.
    The possibility to see that the only changes might be in the area of SAP HCM ...
    Thank you.
    - Gunnar

  • How to find the mapping between External Object Name and Business Obj.

    Hello Gurus
      Anyone who can help me? I would like to know is there any way to know Business Object is behind object associated to Context Node, it seems that for some cases is easy but for instance for object BuilHeader is not the case, at least for me.  View BP_ADDR/StandardAddress, which belongs to UI Component BP_ADDR, has context node HEADER which is associated to BuilHeader. In case to enhance that object (to add new attributes), using EEWB, I need to know what is the business object behind that external name. Somehow I cannot find the mapping between external name BuilHeader and Business Object. 
      Kind regards
    Aleksandar

    Hi Aleks,
    If you want to enhance Business Partner, the object you are looking at should be "BUPA" in EEWB. To my knowledge, there is no place where this kind of mapping is maintained.
    Note 484597 describes where to find the Cookbook  which describes the enhanceable objects and the enhancement process.
    In case your requirement is to add table attributes, you can also  take a look at the wiki link:
    http://wiki.sdn.sap.com/wiki/display/CRM/EEWB-AddingTableattribute
    Regards,
    Nisha

  • How to find the relation between that tables

    Hi,
      I have to get the data from different tables but I dont have any table relation ship. So If any body can help me to get that relation ship that will be very helpful for me.
    my tables are
    LFA1     
    LFB1
    LFC1
    RFSDO
    BSIK     
    Thanks
    Imran

    >
    SURINDER SINGH OBEROI wrote:
    > Hi,
    >
    > LFA1-LIFNR = LFB1-LIFNR = LFC1-LIFNR = BSIK- LIFNR
    > LFB1-BUKRS = LFC1-BUKRS = BSIK-BUKRS
    > LFC1-GJAHR = BSIK-GJAHR
    > LFC1-ERDAT = BSIK-AUGDT
    >
    > Cheers,
    > Surinder
    You think, you can fetch accurate data with the above mentioned linkages?
    Oh btw, the question i believe the question was How to find the relation....
    pk

  • How to find the nearlest value in 1-D array ?

    Hi.. everybody..
    I need to seperate the raw data(1-D) into 2 group of array by the center value and then make the average value in each array. But I also still have the problem about if the center value is not the same of some value in the 1-D array. I cannot use the split function.
    "How to find the nearlest value to the center point that I calculated, in the 1-D array ?"
    Thanks a lot for anybody help

    In a general sense, since I'm not sure what your data values are or how far away your calculated center is from the true value, I would do it one of two ways:
    1) Use a threshold value and scan the array until the threshold is reached (assumes constantly increasing values in the array).
    2) Use either a) round to nearest integer b) round to + Infinity (round up) or c) round to - infinity (round down). If you don't have decimal values, you'll have to devide the values by a power of 10.
    2006 Ultimate LabVIEW G-eek.

  • How to find the link between tables  CRMD_ORDERADM_H and  BBP_PDORG ?

    HI,All
        By TCODE  BBP_PD,  I cann't find the link by GUID between tables CRMD_ORDERADM_H (Header) and  BBP_PDORG (Purchase Organization) ,  why?  how to find this link?
       thanks
      Jesse.

    Hello Jianxin,
    It depends on document category type.
    For Shopping Cart, no link exist between CRMD_ORDERADM_H and BBP_PDORG tables as purchasing organization is defined at item level.
    For Purchase Order, using BBP_PDORG-SET_GUID, you get PO header GUID (GUID_HI) in table CRMD_LINK where CRMD-LINK-GUID_SET = BBP_PDORG-SET_GUID.
    Regards.
    Laurent.

  • How can find the difference  between iphone 5 Real Genuine adapter and fake adapter

    Can anyone please tell me, How Can Find Difference between iphone 5 Real Genuine adapter and fake adapter....

    That's about the only way. Many of the fakes are indistinguishable from genuine without taking them apart. See: https://www.youtube.com/watch?v=wi-b9k-0KfE Note that BOTH of the adapters in this video are fake. Yet the one on the left looks identical to the "real thing".

  • How to Find the Index of Element in the XMLListCollection

    Hi,
    I have a burning question here, and I wonder if anyone has tried to do this.
    I have an XML file that is read into the xml collection, and for each of the names that appear in the file (pre-declared somewhere else) , I tried to remove the element.
      However, it either gives me -1, if I do trace(slc.getItemIndex(xml.@name).toString()); when they exist, or tell me #3594 as shown in the error below:
    Here is the code:
    private function checkBox_change(event:Event):void{    
               xlc = new XMLListCollection(searchResult..book);  
                   len = searchResult..publisher.length();              
                   for (idx=0;idx<len; idx++) {
                       if (checkBox[idx].selected == false) {                          
                               for each (name in input_name2) {  
                               for each (xml in xlc){
                               if ((xml.@name == checkBox[idx].label) && (xml.@pub == name)){    
        trace(xml.getItemIndex(xml.@name).toString());
        //I get an error that says 3594: getItemIndex is not a recognized method of the dynamic class XML.                            
    Could anyone please give me some pointers on how to remove the desired element? I do know how to use splice.
    Thanks for your help.
    Alice

    Alice you could do something like this
    delete myXML.(@ISBN=="4689997865")
    Sincerely,
    Michael
    El 04/05/2009, a las 11:54, alice_data <[email protected]> escribió:
    >
    Hi,
    >
    I have a burning question here, and I wonder if anyone has tried to 
    do this.
    I have an XML file that is read into the xml collection, and for 
    each of the names that appear in the file (pre-declared somewhere 
    else) , I tried to remove the element.
    >
      However, it either gives me -1, if I do 
    trace(slc.getItemIndex(xml.@name).toString()); when they exist, or 
    tell me #3594 as shown in the error below:
    >
    Here is the code:
    >
    private function checkBox_change(event:Event):void{
               xlc = new XMLListCollection(searchResult..book);
                   len = searchResult..publisher.length();
                   for (idx=0;idx<len; idx++) {
                       if (checkBox[idx].selected == false) {
                               for each (name in input_name2) {
                               for each (xml in xlc){
                               if ((xml.@name == checkBox[idx].label) && 
    (xml.@pub == name)){
        trace(xml.getItemIndex(xml.@name).toString());
        //I get an error that says 3594: getItemIndex is not a 
    recognized method of the dynamic class XML.
    >
    >
    Could anyone please give me some pointers on how to remove the 
    desired element? I do know how to use splice.
    Thanks for your help.
    >
    Alice
    >

  • How to find the differences between 4.6C and 4.7EE

    Hi,
      The client I am working for planning to upgrade from 4.6C to 4.7. As a ABAP consultant I want to know what are the changes that are made in 4.7 in ABAP. Where can I get the information i.e changes in ABAP from 4.6C to 4.7. Please advise.Please help as this is urgent for me.
    Thanks & Regards,
    Sam.

    Hi,
    to know the differences in each release
    Here is the link for the same
    http://help.sap.com/saphelp_nw2004s/helpdata/en/5b/8c3842bb58f83ae10000000a1550b0/frameset.htm
    http://service.sap.com/releasenotes
    Check this link ... this link will definitely explin u clearly the difference between the two versions...
    http://www.stonewayinc.com/clients/sap/bestoftour/presentations/SAP_BOT_2_Furlan_IBM.ppt
    See this weblog:
    /people/thomas.jung3/blog/2005/05/15/abap-46c-to-640-delta-training
    Re: R/3 Enterprise v mySAP ERP 2003 v ECC 5.0 v mySAP ERP 2004
    http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000497320&_SCENARIO=01100035870000000112&_OBJECT=011000358700000810532004E
    Regards,
    Anver

  • How to find the difference between Mannual clearing and Automatic clearin

    Hi
    Can any one suggest how to diffrentiate the documents which are cleared manually and which cleared Automatically.
    Thanks and Regards
    Anand

    Hi
    Normally documents posted manually and automatically will have different document types and document number ranges.  For manual clearign we use KZ and in case of auto clearing we use ZP
    Thanks!
    Rajesh

Maybe you are looking for