| | |
[help] C++ algorithm
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
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
Should be simple, but i just can't understand it!
http://i38.tinypic.com/5wdau.jpg
•
•
Join Date: Oct 2009
Posts: 27
Reputation:
Solved Threads: 2
0
#2 Oct 11th, 2009
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...
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.
•
•
Join Date: Oct 2009
Posts: 27
Reputation:
Solved Threads: 2
0
#4 Oct 11th, 2009
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...
0
#5 Oct 11th, 2009
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 ?
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 ?
I give up!
1) What word becomes shorter if you add a letter to it? [ Solved by : niek_e ]
2) What does this sequence equal to : (.5u - .5a)(.5u-.5b)(.5u-.5c) ...
3) What is the 123456789 prime numer?![]() |
Similar Threads
- Time complexity of algorithm (Computer Science)
Other Threads in the C++ Forum
- Previous Thread: Help with printing Binary tree iteratively
- Next Thread: Help with removing an element of a string :(
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count database delete deploy developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int java lib linkedlist linker list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings temperature template test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






