Integration in C

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Nov 2008
Posts: 36
Reputation: slimjimmer is an unknown quantity at this point 
Solved Threads: 0
slimjimmer slimjimmer is offline Offline
Light Poster

Integration in C

 
0
  #1
Nov 25th, 2008
Hey,

I'm really stuck on a program I have to make for a class. We have to integrate f(x) = cos^2 (x). We are given a file with values of x and corresponding values of f(x). We have to use a while loop to do the following sum:

sum to infinity: f(xj−1)(xj − xj−1)

What I'm really stuck on at the moment is what to do with the values once my program has opened them. It also asks me to do this in an external function and I have no clue what that means and I can't find anything on it in my books or notes!

Sorry if I am being stupid
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 36
Reputation: slimjimmer is an unknown quantity at this point 
Solved Threads: 0
slimjimmer slimjimmer is offline Offline
Light Poster

Re: Integration in C

 
0
  #2
Nov 25th, 2008
Ok I have figured out external functions, just the other part now
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum


Views: 913 | Replies: 1
Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC