| | |
Integration in C
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Nov 2008
Posts: 36
Reputation:
Solved Threads: 0
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
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
![]() |
Similar Threads
- HSBC Payment integration (PHP)
- QA Integration Analyst (Tech / IT Consultant Job Offers)
- Maths - Integration in Java (Java)
- phpBB to php-nuke integration help (PHP)
- Custom pages with vBulletin integration (Social Media and Online Communities)
Other Threads in the C Forum
- Previous Thread: fscanf questions
- Next Thread: Dir creating, permissions setting issue!
Views: 913 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C
#include * append array arrays asterisks bash binarysearch calculate changingto char character cm command copyimagefile creafecopyofanytypeoffileinc createprocess() database directory dynamic execv feet fgets file floatingpointvalidation fork forloop framework function functions getlogicaldrivestrin givemetehcodez global grade graphics gtkwinlinux hacking histogram homework ide include incrementoperators input intmain() iso kernel keyboard kilometer lazy license linked linkedlist linux list lists looping loopinsideloop. lowest matrix meter microsoft mqqueue number oddnumber odf openwebfoundation overwrite pause pdf pointer posix process program programming radix recursion recv recvblocked research reversing segmentationfault sequential single socket socketprogramming spoonfeeding standard strchr string student system testing threads turboc unix urboc user variable whythiscodecausesegmentationfault windowsapi





