471,831 Members | 1,238 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,831 software developers and data experts.

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 7312
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);
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
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 YellowAndGreen | last post: by
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.