Login

Create Account
Customer Service Chat
+14156709189
info@expertsmind.com
Submit Homework/Assignment
Get quote & make Payment
Get Solution
Area under curve, Mathematics
w/ You could use this sample code to test your C functions
// Please make appropriate changes to use this for C++.
// Following main function contains 3 representative test cases
int main() {
// test case 1
{
int noOfTerms = 2;
struct Term *equation = (struct Term*)malloc(sizeof(struct Term) * noOfTerms);
equation[0].exponent = 1;
equation[0].coefficient = 1;
equation[1].exponent = 2;
equation[1].coefficient = 3;
int limit1 = 4;
int limit2 = 8;
double usrout = getAreaUnderCurve(equation, noOfTerms, limit1, limit2);
printf("%lf", usrout);
}
// test case 2
{
int noOfTerms = 1;
struct Term *equation = (struct Term*)malloc(sizeof(struct Term) * noOfTerms);
equation[0].exponent =1;
equation[0].coefficient = 1;
int limit1 = 1;
int limit2 = 1;
double usrout = getAreaUnderCurve(equation, noOfTerms, limit1, limit2);
printf("%lf", usrout);
}
// test case 3
{
int noOfTerms = 1;
struct Term *equation = (struct Term*)malloc(sizeof(struct Term) * noOfTerms);
equation[0].exponent =1;
equation[0].coefficient = 1;
int limit1 = 2;
int limit2 = 1;
double usrout = getAreaUnderCurve(equation, noOfTerms, limit1, limit2);
printf("%lf", usrout);
}
}
Posted Date: 8/31/2012 1:07:21 AM  Location : United States
Ask an Expert
Related Discussions:
Area under curve, Assignment Help, Ask Question on Area under curve, Get Answer, Expert's Help, Area under curve Discussions
Write discussion on Area under curve
Your posts are moderated
Write your message here..
Related Questions
The shape of a graph, The Shape of a Graph, Part II : In previous we saw h...
The Shape of a Graph, Part II : In previous we saw how we could use the first derivative of a function to obtain some information regarding the graph of a function. In this secti
Multiplication of two unlike terms with opposite signs, The product on mult...
The product on multiplying  4bc with 2a is  8abc. That is, a term with minus sign multiplied with a term having a positive term gives a product which has a minus sign. On the
Determine the nand gate, Find out the two inputs when the NAND gate output ...
Find out the two inputs when the NAND gate output will be low. Ans. The output of NAND gate will be low if the two inputs are 11. The Truth Table of NAND gate is shown
Word problem, Twins Olivia and Chelsea and their friend Rylee were celebrat...
Twins Olivia and Chelsea and their friend Rylee were celebrating their fourteenth birthdays with a party at the beach. The first fun activity was water games. As Nicole arrived, sh
Purely imaginary number, It is totally possible that a or b could be zero a...
It is totally possible that a or b could be zero and thus in 16 i the real part is zero. While the real part is zero we frequently will call the complex numbers a purely imaginar
Proportions, How would you solve this question? 4/5 = 8/x+2
How would you solve this question? 4/5 = 8/x+2
Greatest common factors, Lindy has 48 chocolate chip cookies and 64 vanilla...
Lindy has 48 chocolate chip cookies and 64 vanilla wafers. How many bags can lindy fill if she puts the chocolate chip cookies and the vanilla wafers in the same bags? She plans
Right and lefthanded limits , Right and lefthanded limits : Next, let'...
Right and lefthanded limits : Next, let's see precise definitions for the right & lefthanded limits. Definition For the righthand limit we say that, if for eve
Wavy curve method, In order to compute the inequalities of the form ...
In order to compute the inequalities of the form where n 1 , n 2 , ....... , n k , m 1 , m 2 , ....... , m p are natural and real numbers and a 1 , a 2 , ... , a k ,
staticis, a statisics professor plans classes so carefully that the length...
a statisics professor plans classes so carefully that the lengths of her classes are uniformly distributed between 46.0 and 56.0 minutes. find the probability that a given class pe
Assignment Help
Accounting Assignment Help
Economics Assignment Help
Finance Assignment Help
Statistics Assignment Help
Physics Assignment Help
Chemistry Assignment Help
Math Assignment Help
Biology Assignment Help
English Assignment Help
Management Assignment Help
Engineering Assignment Help
Programming Assignment Help
Computer Science Assignment Help
ExpertsMind Services
Online Tutoring
Projects Assistance
Exam Preparation
Coursework Help
Programming Help
IT Services
Why Us ?
~Experienced Tutors
~24x7 hrs Support
~Plagiarism Free
~Quality of Work
~Time on Delivery
~Privacy of Work