954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

integration in c++

does anyone know where I can find some help on integration functions in c++?

axiss
Newbie Poster
15 posts since Aug 2004
Reputation Points: 10
Solved Threads: 0
 
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]

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

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
Posting Pro
599 posts since Aug 2005
Reputation Points: 70
Solved Threads: 32
 

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.

AhmedHan
Junior Poster in Training
71 posts since Apr 2005
Reputation Points: 13
Solved Threads: 1
 

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

axiss
Newbie Poster
15 posts since Aug 2004
Reputation Points: 10
Solved Threads: 0
 
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

[tex]iamthwee=x^2[/tex]

cscgal
The Queen of DaniWeb
Administrator
19,424 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
 
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 [tex]iamthwee=x^2[/tex]

Does it work for you? It doesn't appear to work for me.
[tex]y=x^2[/tex][Unparseable or potentially dangerous latex formula.
Error 4 ]

Dave Sinkula
long time no c
Team Colleague
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
 

Exactly, come on now dani... sort this and the code formatting problem like
I 've told you to. Use a javascript hack!

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

Embarassed Dani says she forgot to install LaTeX on our new webserver. :)

cscgal
The Queen of DaniWeb
Administrator
19,424 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
 

Use Gnu Scientific library, GSL.
Also there exist many free software numerical packages, e.g. ROOT (http://root.cern.ch)

ynikitenko
Newbie Poster
1 post since Dec 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You