943,700 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 23177
  • C++ RSS
Apr 16th, 2006
0

integration in c++

Expand Post »
does anyone know where I can find some help on integration functions in c++?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
axiss is offline Offline
15 posts
since Aug 2004
Apr 16th, 2006
0

Re: integration in c++

Quote originally posted by axiss ...
does anyone know where I can find some help on integration functions in c++?
By integration functions do you mean stuff like this:

[IMG]http://img20.imageshack.us/img20/1562/int4kv.png[/IMG]

where the the upper and lower bounds are defined?

[IMG]http://img476.imageshack.us/img476/5171/cut20ln.png[/IMG]
Piworld
[Tis simple as Pie]
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Apr 17th, 2006
0

Re: integration in c++

I don't think there is any built in standard function to do it in C++. You need to use numerical techniques to solve this. Try implementing trapezoidal, simpson etc.. in C++.
SpS
Reputation Points: 70
Solved Threads: 32
Posting Pro
SpS is offline Offline
598 posts
since Aug 2005
Apr 18th, 2006
0

Re: integration in c++

The best way is to create your own classes in such situations. It is not difficult to find sample code on the net. Even if you find it, it won't be handy, because your own code can't take the place of someone else's.

I think it is a waste of time to try understanding sample codes written by other people. In stead, you should write your own code. Yeah, it may take more time but, it will be educatinal for you.
Reputation Points: 13
Solved Threads: 1
Junior Poster in Training
AhmedHan is offline Offline
71 posts
since Apr 2005
Apr 28th, 2006
0

Re: integration in c++

thanks for for help. I've programmed a simple runge-kutta function, it's not a good approximation but according to my lecturer it's good enough for this project
Reputation Points: 10
Solved Threads: 0
Newbie Poster
axiss is offline Offline
15 posts
since Aug 2004
Apr 28th, 2006
0

Re: integration in c++

Quote originally posted by iamthwee ...
By integration functions do you mean stuff like this:

[IMG]http://img20.imageshack.us/img20/1562/int4kv.png[/IMG]

where the the upper and lower bounds are defined?
iamthwee, DaniWeb actually has built-in Tex functionality by using the tex bbcode. There is no need to hotlink tex from an image upload service

iamthwee=x^2
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Apr 28th, 2006
0

Re: integration in c++

Quote originally posted by cscgal ...
iamthwee, DaniWeb actually has built-in Tex functionality by using the tex bbcode. There is no need to hotlink tex from an image upload service

iamthwee=x^2
Does it work for you? It doesn't appear to work for me.
y=x^2
Quote ...
[Unparseable or potentially dangerous latex formula.
Error 4 ]
Team Colleague
Reputation Points: 2780
Solved Threads: 312
long time no c
Dave Sinkula is offline Offline
4,790 posts
since Apr 2004
Apr 28th, 2006
0

Re: integration in c++

Exactly, come on now dani... sort this and the code formatting problem like
I 've told you to. Use a javascript hack!
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Apr 29th, 2006
0

Re: integration in c++

Embarassed Dani says she forgot to install LaTeX on our new webserver.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Dec 2nd, 2011
0

GSL, ROOT

Use Gnu Scientific library, GSL.
Also there exist many free software numerical packages, e.g. ROOT (http://root.cern.ch)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ynikitenko is offline Offline
1 posts
since Dec 2011
Message:
Previous Thread in C++ Forum Timeline: bank withdraw help
Next Thread in C++ Forum Timeline: text file to c++ array - skip comments then read matrix





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


Follow us on Twitter


© 2011 DaniWeb® LLC