944,051 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 448
  • C++ RSS
Oct 11th, 2009
0

[help] C++ algorithm

Expand Post »
Can someone help me to solve this algorithm, I tried our school book but can't understand it. I'm not good at math!

Should be simple, but i just can't understand it!

http://i38.tinypic.com/5wdau.jpg
Similar Threads
Reputation Points: 7
Solved Threads: 14
Junior Poster
smartness is offline Offline
103 posts
since Aug 2007
Oct 11th, 2009
0
Re: [help] C++ algorithm
If you tellme what exactly your math books says... or at least what the equation represents I can help you from there but just a picture isnt gunna cut it as I cant find that formula anywhere on google... Though just looking at it im pretty sure its one of Euler Maclaurin's summation formulas for polynomials..

I never would have guess but seems like you are doing intergrals of polynomials which means you want to do the anti-derivative... refer to calculus... so assuming that you are at that level and you know that a derivative is the "equation of the slope" of an equation at any given point... you want to go backwards... so that means you are given the "equation of the slope" and find the actual equation of the initial polynomial... This method is know as integrals... which is the same as finding the area under a graph such as a parabola so in this case physics and calculus can help you a lot... hope you took it in highschool...
Last edited by triumphost; Oct 11th, 2009 at 4:01 pm.
Reputation Points: 55
Solved Threads: 20
Posting Whiz in Training
triumphost is offline Offline
261 posts
since Oct 2009
Oct 11th, 2009
0
Re: [help] C++ algorithm
Mmm. well I can't tell you what the book says (it's albanian), i maybe could paint some formulas with paint, but I don't know which would help you?

p.s. I'm learning these in C++, not math (i know algorithms are math). We are learning loops (i think)...
Reputation Points: 7
Solved Threads: 14
Junior Poster
smartness is offline Offline
103 posts
since Aug 2007
Oct 11th, 2009
0
Re: [help] C++ algorithm
lol wow what an intense book... in albanian and plus your actually gunna learn loops starting off with integrals oh man good luck in that class... when learning loops the first thing you learn it with is integers then variables not INTEGRALS that is something totally different and unless you know calculus, good luck lol, I guess i cant help cuz I cant read albanian but dam...
Reputation Points: 55
Solved Threads: 20
Posting Whiz in Training
triumphost is offline Offline
261 posts
since Oct 2009
Oct 11th, 2009
0
Re: [help] C++ algorithm
A few( maybe 2) for loops could solve this problem.

Have a for loop, for variable " i" and "a". The equation is pretty forward,
unless you don't know what the sigma notation does.

What is the "X" variable represents? Is it the user's input ?
Reputation Points: 840
Solved Threads: 594
Senior Poster
firstPerson is offline Offline
3,864 posts
since Dec 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Help with printing Binary tree iteratively
Next Thread in C++ Forum Timeline: Help with removing an element of a string :(





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC