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

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, volleyballfun24
If the thermal strain developed in polyimide film during deposition is given as 0.0044. assume room temperature is kept at 17.3 c, and thermal coefficient of expansion for the film and the substrate are 54 x 10^-6c^-1 and 3.3 x 10^-6c^-1respectively. calculate the deposition temperature.
Answers: 3
image
Engineering, 04.07.2019 18:10, colin774
The higher the astm grain size number, the finer the gran is. a)-true b)-false
Answers: 2
image
Engineering, 04.07.2019 18:10, mamasbug4285
An air compression refrigeration system is to have an air pressure of 100 psia in the brine tank and an allowable air temperature increase of 60°f for standard vapor compression cycle temperatures of 77 f entering the expansion cylinder and 14 f entering the compression cylinder, calculate the coefficient of performance a. 2.5 b 3.3 c. 4.0 d. 5.0
Answers: 3
image
Engineering, 04.07.2019 18:20, aly95
An engine runs on the ideal diesel cycle. the cycle has a compression ratio of 20 and a cutoff ratio of 2. the highest temperature in the cycle is 1200 k. if the heat into the system is 300 kj/kg of working fluid and using variable specific heats determine the work produced per mass of working fluid
Answers: 3
You know the right answer?
Help me detect the mistakes in this c++ coding #include<stdio. h>

#include<cmat...

Questions in other subjects: