+ Reply to Thread
Results 1 to 6 of 6

sigma notation (without lists or tables)

  1. #1
    Registered User
    Join Date
    09-22-2010
    Location
    blacksburg, va
    MS-Off Ver
    Excel 2007
    Posts
    1

    sigma notation (without lists or tables)

    Theta is the angle which is an input that changes depending on the problem. N is the number of magnets and is an input that changes depending on the problem.

    I want to add up sin(theta)+sin(2*theta)+...sin((n-1)*theta)+sin(n*theta).

    Now, I know how to do this by making a list that goes from 1 to n but I want this program to look professional (and I don't want you to have to change the length of the list or the formula if you have a different n value).

    Is there a way to do this without making any tables or lists?

    Thank you,

    -Tony

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: sigma notation (without lists or tables)

    How about:

    =SUM(SIN(A2*ROW(INDIRECT("1:"&A1))))
    Entered with Ctrl+shift+Enter, which should give curly brackets:
    {=SUM(SIN(A2*ROW(INDIRECT("1:"&A1))))}

    Where A1 = n and A2 = theta

    Oh wait, this is much better:
    =SUM(SIN(A2*ROW(OFFSET(1:1,0,0,A1))))
    (also C+S+E)

    Oh wait, this is the best:
    =SUM(SIN(A2*ROW(INDEX(1:1,0):INDEX(1:65536,A1,0))))
    (also C+S+E, and finally non-volatile - thank you decision models)
    Last edited by Cheeky Charlie; 09-22-2010 at 12:33 PM. Reason: another improvement
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

  3. #3
    Registered User
    Join Date
    07-24-2015
    Location
    Baltimore, MD
    MS-Off Ver
    Mac Excel 2011
    Posts
    1

    Re: sigma notation (without lists or tables)

    I'm trying to do a similar thing but am having some trouble.

    I want to add up: 3*(0.5)^1 + 3*(0.5)^2 + 3*(0.5)^3 + ... + 3*(0.5)^n

    Can you help me with this?

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,387

    Re: sigma notation (without lists or tables)

    mravi1: This forum tends to be very strict about starting your own thread rather than posting your question in an old thread. Please start your own thread.

    I might also suggest you put "sum of a^x" or something like that into your favorite internet search engine. The answer to your question involves a relatively simple formula.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: sigma notation (without lists or tables)

    Quote Originally Posted by mravi1 View Post
    I want to add up: 3*(0.5)^1 + 3*(0.5)^2 + 3*(0.5)^3 + ... + 3*(0.5)^n
    There's a simple closed-form expression for this that doesn't require adding successive terms. Start your own thread and I'll be happy to post.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: sigma notation (without lists or tables)

    mravi1 welcome to the forum

    As pointed out, unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1