subject
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
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
The filament of an incandescent lamp has a temperature of 2000k. calculate the fraction of radiation emitted in the visible light band if the filament is approximated as blackbody
Answers: 2
question
Engineering, 04.07.2019 18:10
Slip occurs via two partial dislocations because of (a) the shorter path of the partial dislocation lines; (b) the lower energy state through partial dislocations; (c) the charge balance.
Answers: 1
question
Engineering, 04.07.2019 18:10
Compute the pressure drop of 30°c air flowing with a mean velocity of 8 m/s in a circular sheet-metal duct 300 mm in diameter and 15 m long. use a friction factor, f 0.02, and pair = 1.1644 kg/m a. 37.26 pa b. 25.27 pa n c. 29.34 pa d. 30.52 pa
Answers: 1
question
Engineering, 04.07.2019 18:20
Athin walled concentric tube exchanger is used to cool engine oil from 160°c to 60°c with water that is available at 25°c acting as a coolant. the oil and water flow rates are each at 2 kg/s, and the diameter of the inner tube is 0.5 m and the corresponding value of the overall heat transfer coefficient is 250 w/m2. oc. how long must the heat exchanger be to accomplish the desired cooling? cpwater=4.187 kj/kg-candcpengine el=2.035 kj/kg·°c, oil . 120]
Answers: 1
You know the right answer?
Help me detect the mistakes in this c++ coding #include<stdio. h>

#include<cmat...
Questions
question
Mathematics, 21.10.2020 18:01
question
Mathematics, 21.10.2020 18:01
Questions on the website: 13722361