Showing posts with label C Programming. Show all posts
Showing posts with label C Programming. Show all posts

Friday, April 10, 2015

Gauss Elimination Method in C Programming

#include<stdio.h>
#include<conio.h>
void main()
int n,i,j,dum;

Simpson's 3/8 Rule in C program

#include<stdio.h>
#include<conio.h>
#include<math.h>
#define f(x) 1/x
 void main()
{

Lagrange Interpolation in C Programming

#include<stdio.h>
#include<conio.h>
 void main()
{
clrscr();

C Program for RK4-Method

#include<stdio.h>
#include<conio.h>
#include<math.h>
#define f(x,y) 2*y/x
#define h 0.25
 void main()
{
int i,n;

Differential Equation by Euler's Method

#include<stdio.h>
#include<conio.h>
#define f(x,y) (3+x*x+1)
 void main()
{

Secant Method in C Programming

#include<stdio.h>
#include<conio.h>
#include<math.h>
#define f(x) x*x*x*x-4*x+1
#define E 0.0001

Algorithm for Gauss-Jordan Elimination

1.Normalize the first row by dividing it by its pivot element.
2.Eliminate x1 from all other equations.
3.Now normalize the 2nd equation by dividing by its pivot
element.

Gauss Jordan Elimination Method in C

#include<stdio.h>
#include<conio.h>
 void main()
{
int n,i,j,k;

Bisection method in C Programming.

#include<stdio.h>
#include<math.h>
#include<conio.h>
#define f(x) x*x-6*x+3
#define E 0.0001