Help me detect the mistakes in this c++ coding
#include<stdio. h>
#include<cmat...
![subject](/tpl/images/cats/User.png)
Engineering, 26.06.2020 19:01 snoodledoodlebop
Help me detect the mistakes in this c++ coding
#include<stdio. h>
#include<cmath>
Log();
int main()
{
double start =
double stop =
double delta =
double c;
double leftSide, rightSide, areaTrapezium;
double totalArea =
//Integratiionn for a+log(x+b) from 20 to 40 where a = 15 and b = -15
for (double c = start;c < stop-delta;c += delta) {
leftSide = Log(Cal with x value and coefficients
rightSide = Log(Cal with x + delta and coefficients
areaTrapezium = Trapezium formula
totalArea Accumulate trapezium area into total
printf("x = %f , area = %f , total = %f\n", c, areaTrapezium, totalArea);
}
printf("x = %f , area = %f , total = %f\n", c, areaTrapezium, totalArea);
}
Log(x, a, b)
{
//return a + log(x+b);
double secondTerm = log(x + b);
return a + secondTerm;
}
![ansver](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Engineering
![question](/tpl/images/cats/User.png)
Engineering, 04.07.2019 16:10
The force on a cutting tool are 2600n vertically downward and 2100 horizontal. determine the resultant force acting on the tool and the angle at which it acts.
Answers: 1
![question](/tpl/images/cats/User.png)
Engineering, 04.07.2019 18:10
If a particle moves along a path such that r : (3 sin t) m and ? : 2t rad, where t is in seconds. what is the particle's acceleration in m/s in 4 seconds? a)- 16.43 b)- 16.29 c)- 15.21 d)- 13.79
Answers: 1
![question](/tpl/images/cats/User.png)
Engineering, 04.07.2019 18:10
Aflywheel accelerates for 5 seconds at 2 rad/s2 from a speed of 20 rpm. determine the total number of revolutions of the flywheel during the period of its acceleration. a.5.65 b.8.43 c. 723 d.6.86
Answers: 2
![question](/tpl/images/cats/User.png)
Engineering, 04.07.2019 18:10
Afour cylinder four-stroke in-line engine has a stroke of 160mm, connecting rod length of 150mm, a reciprocating mass of 3kg and its firing order is 1-3-4-2. the spacing between cylinders is 100mm. i. show that the engine is in balance with regard to the primary inertia forces and primary 3. a and secondary inertia couples. li determine the out of balance secondary inertia force ii. propose ways of balancing this out of balance force and discuss the challenges that will arise
Answers: 3
You know the right answer?
Questions
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/health.png)
Health, 02.11.2019 17:42
![question](/tpl/images/cats/mat.png)
Mathematics, 02.11.2019 17:42
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 02.11.2019 17:42
![question](/tpl/images/cats/mat.png)
Mathematics, 02.11.2019 17:42
![question](/tpl/images/cats/en.png)
English, 02.11.2019 17:42
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 02.11.2019 17:42
![question](/tpl/images/cats/himiya.png)
Chemistry, 02.11.2019 17:42
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/en.png)
English, 02.11.2019 17:42
![question](/tpl/images/cats/istoriya.png)
History, 02.11.2019 17:42
![question](/tpl/images/cats/mat.png)
Mathematics, 02.11.2019 17:42
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 02.11.2019 17:42
![question](/tpl/images/cats/mat.png)
Mathematics, 02.11.2019 17:42