Results 1 to 5 of 5

Thread: Sigma notation help

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2007
    Posts
    3

    Sigma notation help

    I have a formula:

    (H - R)(L - H - C)

    What the formula means is not relevant.

    I need to find the total when H and L are constant and

    R = 1 and C = 1
    R = 1 and C = 2
    R = 1 and C = 3
    R = 2 and C = 1
    R = 2 and C = 2
    R = 2 and C = 3
    R = 3 and C = 1
    R = 3 and C = 2
    R = 3 and C = 3

    Obviously there is an easy way of showing this apart from writing it out that many times. I know I probably need to use the Sigma notation.

    If anyone could help I would be very greatful

    I hope this makes sense!!

    Dan

  2. #2
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: Sigma notation help

    You could split it into three different summations.
    The first R=1 to R=3 where c remains constant at 1
    The second R=1 to R=3 where c remains constant at 2
    The third R=1 to R=3 where c remains constant at 3


    Not sure about any other way.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2007
    Posts
    3

    Re: Sigma notation help

    Thanks for the reply.

    Sorry, I forgot to say that it has to work so that R and C can go up to anything. It has to be practical even if R and C = 100.

    I did think of what you sugested but it wouldn't be very practical to have 100 formuli

    I know there is a way it can be shortened into 1 or 2 formuli but I can't think how to do it.

    Dan

  4. #4
    Frenzied Member
    Join Date
    Jun 2006
    Posts
    1,098

    Re: Sigma notation help

    I believe what you want is a sum of sums:

    Programmatically, this would be written as:
    VB Code:
    1. Sum = 0
    2. For R = 1 to n
    3.   For C = 1 to n
    4.     Sum = Sum + (H - R) * (L - H - C)
    5.   Next C
    6. Next R
    The total is n2(H - (n+1)/2)(L - H - (n+1)/2)

  5. #5
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: Sigma notation help

    Quote Originally Posted by Logophobic
    I believe what you want is a sum of sums:

    Programmatically, this would be written as:
    VB Code:
    1. Sum = 0
    2. For R = 1 to n
    3.   For C = 1 to n
    4.     Sum = Sum + (H - R) * (L - H - C)
    5.   Next C
    6. Next R
    The total is n2(H - (n+1)/2)(L - H - (n+1)/2)
    Nice, double sums Didn't think of it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width