468,496 Members | 1,828 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,496 developers. It's quick & easy.

Integral functions in C++

I am having trouble locating integral functions that I can use in C++. I have two equations with long integrals in them for calculating the thrust and torque of a propeller blade. I just need to know the math function for an integral. i.e. for squar roots : sqrt()
Oct 9 '06 #1
3 7142
tyreld
144 100+
The "sqrt()" function can be found in the <math.h> header. You will probably also need to link against the math library when using the math header (ie "-lm" must be passed to the compiler).

Here are the function signatures for the sqrt functions provided by math.h.

Expand|Select|Wrap|Line Numbers
  1.               double      sqrt(double);
  2.               float       sqrtf(float);
  3.               long double sqrtl(long double);
  4.  
Oct 9 '06 #2
Standard C does not provide any intergral functions like Integral of x*x from limits 2 to x=4 and give you answer like ( 1/3) ( 4*4 - 2*2)

You can find MATLAB and othe available libraries for this.

Moreover you can write your own by using infinitesimal summation methods..

Cygwin alo provides similar utilities.
Oct 9 '06 #3
D_C
293 100+
What are the integrals you need to calculate? Perhaps it can be done generically, then you could just plug in the appropriate constants/values.
Oct 9 '06 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by soni29 | last post: by
50 posts views Thread by Romeo Colacitti | last post: by
110 posts views Thread by Gregory Pietsch | last post: by
10 posts views Thread by Tomás | last post: by
1 post views Thread by Neelesh Bodas | last post: by
2 posts views Thread by Ranganath | last post: by
7 posts views Thread by Hendrik Schober | last post: by
reply views Thread by NPC403 | last post: by
3 posts views Thread by gieforce | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.