answersLogoWhite

0


Best Answer

#include<stdio.h>

#include<conio.h>

#include<math.h>

float f(float x)

{

float y;

if(x!=0)

//y=sin(x)-log(x)+exp(x);

y=1/(1+x);

else

printf("answer can not be derived");

return(y);

}

float g(float x)

{

float k;

k=(-2)/(pow((1+x),3));

return(k);

}

void main()

{

float i,n,k,z,s=0,err=0;

float h,x,a[100],b,c;

clrscr();

printf("\n enter the range of the integration");

scanf("%f%f",&b,&c);

printf("\n enter n so to divide the range into n parts");

scanf("%f",&n);

h=(c-b)/n;

printf("\n\n%f",h);

k=(f(b)+f(c));

printf("\nk=%f\n\n",k);

for(i=b+h;i<c;i+=h)

{

z+=f(i);

printf("\n%f",z);

}

s=(h*(k+2*z))/2;

printf("\n\n the value of the integration=%f\n\n",s);

for(i=b;i<=c;i+=h)

err+=g(i);

err=(err*(pow(h,3)))/12;

printf("\n\n approximate error= %f\n\n",err);

getch(); }here...

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program to find the value the integration 1by1plus X between the limits 0 and 1 through trapezoidal rule?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What does an auditory integration training program do?

Upon completion of an auditory integration training program, the person's hearing should be capable of perceiving all frequencies at, or near, the same level


Which state program in the 1970s attempted to advance integration?

School busing


What is the purpose of the Sensory Integration Network?

The Sensory Integration Network is a program based in the United Kingdom that offers services to support learning techniques sort of how Sylvan works in the United States.


How programme management equated with project management?

Program management is the integration of a number of projects to achieve a strategic business outcome. In other words, Program Management encapsulates Project Management.


Enterprise Mule integration patterns?

When it comes to enterprise application Mule integration, it follows the enterprise service bus (ESB) pattern. This is which implements a communication mechanism. It is between interacting software apps in a service-oriented architecture (SOA). Then you can install it in most enterprise apps, which is a must-have. ESB is in enterprise technology Mule integration (EAI) in diverse. Then you can use dynamic infrastructure landscapes as a Mule integration tool. The ESB serves as the foundation for SOA infra. It has a platform-agnostic design and the ability to work with everything. The device with mixed environments. You can learn more about enterprise Mule integration patterns through OnlineITGuru MuleSoft online training course program.


What is an integration of your personality with your job activities?

A career. That is the direct definition of a career from "The Career Fitness Program." Whereas a job is anything done is the scope of work.


What is the What is the difference between program and program?

Program is the US spelling.Programme is the UK spelling.


Is OLE often referred to as integration?

Yes. Object Linking and Embedding is what allows you to insert content from one program into another, across applications. Integration is the combining of commonly used functions into one application, or the allowing those functions to be accessed across a collection of applications.


What are the levels of the Capability Maturity Model Integration?

The Capability Maturity Model Integration program has 5 maturity levels. These include Level 1 (Initial), Level 2 (Managed), Level 3 (Defined), Level 4 (Quantitatively Managed), and Level 5 (Optimizing).


How do you make a sentence with limitation?

Your only limitation is yourself. One limitation of the system was its integration potential: users had difficulty getting the program to cooperate with other systems.


What are a few of the services that the Intergration program in Australia offers?

The Integration Program in Australia offers many service. They promote the safety and well being of children. They also monitor the out of home care and undertake inquiries into the death of children that are in child protection.


Differences between audit plan and audit program?

difference between audit program audit &amp; note book