Results 1 to 6 of 6

Math Help - Sum problem!

  1. #1
    Newbie
    Joined
    May 2005
    Posts
    6

    Sum problem!

    Hi all

    I have the following problem, i have attached the following equation into a file.

    lets suppused i have the following vector :

    A={10,20,50,60,70,49,21,23}

    how i solve the equation (my main problem is how to threat the double sum function with diffrent indexies i.e. i,j) ?

    Best Regreats
    Attached Files Attached Files
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Newbie
    Joined
    May 2005
    Posts
    6

    any one ?

    Can any one help me please (it's very urget)?
    Follow Math Help Forum on Facebook and Google+

  3. #3
    hpe
    hpe is offline
    Member hpe's Avatar
    Joined
    Apr 2005
    Posts
    158
    Quote Originally Posted by cobra
    Can any one help me please (it's very urget)?
    This is the same as ((sum of all Ai) squared) minus (sum of (Ai squared)) (note the parentheses!).
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Newbie
    Joined
    May 2005
    Posts
    6
    OKI thank you, but what if i have minus i.e.:

    sum(sum(Ai-Aj)

    The first sum is from 0:N (N-vector length)

    The secound sum is from 0:N (without when i=j)


    Best Regretes,


    Dvir
    Follow Math Help Forum on Facebook and Google+

  5. #5
    hpe
    hpe is offline
    Member hpe's Avatar
    Joined
    Apr 2005
    Posts
    158
    Quote Originally Posted by cobra
    sum(sum(Ai-Aj)

    The first sum is from 0:N (N-vector length)

    The second sum is from 0:N (without when i=j)
    I assume the outer sum is over i and the inner over j (not =i).
    Write sum'_j to indicate that the sum is over j, but skips the term j=i.
    There are n+1 terms in sum_i and n terms in sum'_j.

    Let A = sum_i Ai = sum_j Aj. Thus sum'_j Aj = A - Ai. Then

    sum_i(sum'_j(Ai-Aj))
    = sum_i(nAi - sum'_j Aj)
    = sum_i(nAi - (A-Ai))
    = sum_i((n+1)Ai - A)
    = (n+1)sum_i (Ai) - (n+1)A
    = 0.
    Follow Math Help Forum on Facebook and Google+

  6. #6
    Newbie
    Joined
    May 2005
    Posts
    6
    Thanks u All.

    So the answer is in this case is always zero.

    Again thanks u for your fast and helpful assistent.
    Follow Math Help Forum on Facebook and Google+

Search Tags


/mathhelpforum @mathhelpforum