/************* Gauss elimination for solving linear equations *************/
#include<iostream.h>
#include<stdio.h>
#include<conio.h>
#include<math.h>
int main()
{
int n,i,j,k,temp;
float a[10][10],c,d[10]={0};
clrscr();
cout<<"No of equation ? ";
cin>>n;
C C++ CODE : Gauss elimination for solving linear equations
Working C C++ Source code program for Gauss elimination for solving linear equations
C C++ CODE : least square fitting regression
Working C C++ Source code program for least square fitting regression
/*************** least square fitting ******************/
#include<iostream.h>
#include<conio.h>
#include<math.h>
int main()
{
int n,i,j;
float a,a0,a1,x[10],f[10],sumx=0,sumy=0,sumxy=0,sumx2=0;
clrscr();
cout<<"Enter no of sample points ? ";cin>>n;
C C++ CODE: Lagrange's interpolation
Working C C++ Source code program for Lagrange's interpolation
/********** Lagrange's interpolation ***************/
#include<iostream.h>
#include<conio.h>
int main()
{
int n,i,j;
float mult,sum=0,x[10],f[10],a;
clrscr();
C C++ CODE for Newton's interpolation
Working C C++ Source code program for Newton's interpolation
/***************** Newtons interpolation **************/
#include<iostream.h>
#include<conio.h>
int main()
{
int n,i,j;
float x[10],f[10],a,sum=0,mult;
clrscr();
C C++ CODE: Cubic Spline Interpolation
Working C C++ Source code program for Cubic Spline Interpolation
/********************* Cubic Spline Interpolation **********************/
#include<iostream.h>
#include<conio.h>
#include<math.h>
int main()
{
char choice='y';
int n,i,j,k;
C C++ code : horner's synthetic division
Working C C++ Source code program for horner's synthetic division method for finding solution of polynomial equation.
//horner's polynomial soln, synthetic division
#include <iostream.h>
#include <conio.h>
#include <complex.h>
void main()
{
int it,n;
complex a[10],b[10],c[10],x;
clrscr();
cout<<"Enter the degree of the polynomial:";
cin>>n;
C C++ code : Newton - Horner's method for solution of polynomial equation
Newton - Horner's method for finding solution of polynomial equation
/***************** Newton horner's method ******************/
#include<iostream.h>
#include<conio.h>
#include<complex.h>
#include<math.h>
int main()
{
complex a[20],b[20],c[20];
complex x;
int n,i;
clrscr();
C C++ code- numerical differentiation of given equation
Working C C++ Source code program for two point - three point numerical differentiation of given equation
/***************** NUMERICAL DIFFERENTION *********************/
#include<iostream.h>
#include<conio.h>
#include<math.h>
float funct(float a);
int main()
{
char choice='y';
C C++ code : Bisection method for solving non-linear equation
Working C C++ Source code program : Bisection method for solving non-linear equation
#include<iostream.h>
#include<conio.h>
#include<math.h>
float funct(float);
int main()
{
C C++ Code : Newton rapshon's method for solving non-linear equation
Working C C++ Source code program for newton rapshon's method for solving non-linear equations.
/*Newton Rapsons method : for solving non linear equations*/
#include<iostream.h>
#include<conio.h>
#include<math.h>
double funct(double);
double derv(double);
Subscribe to:
Posts
(
Atom
)