No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
[code=language] #include <iostream> #include <fstream> #include <cmath> using namespace std; //Begin by defining the functions that are to be called in the main program double f (double x) //Function 1 Finding 1/x, the integrand, this shall be called f { //Function 1 Body double y; y=1.0/x; return y; } //End … |
|
Hello, I'm looking for some help with this short and simple program which I've had problems with for ages. The code for the last solution was apparently right, just didn't work. Anyway here is the latest one: [code]#include <iostream> #include <cmath> using namespace std; int main() { const double dx=0.1; … |