Showing posts with label mca matirial. Show all posts
Showing posts with label mca matirial. Show all posts

Sunday, February 27, 2011

Bisection method

/* Write a Program to solve equation using Bisection Method */
#include
float bisection(float,float,float);
void main()
{
float xl,xu,ea,fxr;
clrscr();
printf("Enter Lower Bound : ");
scanf("%f",&xl);
printf("Enter Upper Bound : ");
scanf("%f",&xu);
printf("Enter Percentage Error : ");
scanf("%f",&ea);
fxr = bisection(xl,xu,ea);
printf("F(xr) : %.2f",fxr);
getch();
}

float bisection(float xl,float xu,float ea)
{
float xr,fxr,tmp;
do
{
xr = (xl + xu) / 2;
fxr = ((xr*xr*xr) -9 * xr + 1);

if(fxr*xu < 0)
xu = xr;
else if(fxr*xu>0)
xl = xr;
else
xr = 0;

if(fxr<0)
tmp = fxr * -1;
}while(tmp>ea);
return xr;
}

Sunday, November 21, 2010

630001-structured-object-oriented

630001 - Structured & Object Oriented Analysis & Design Methodology (SOOADM)


sooadm by Amrin kadri (lecturer)
Shared By : Amrin M. Kadri
BCA/MCA (Lecturer)
Dalia Institute of Management.Kheda
Email: amrin.kadri@gmail.com

Systems Analysis and Design
Shared By : Nagaria Keval (JVIMS MCA Jamnagar )

SOOADM.pptx
Shared By : Nagaria Keval (JVIMS MCA Jamnagar )