Search for notes by fellow students, in your own course and all over the country.
Browse our notes for titles which look like what you need, you can preview any of the notes via a sample of the contents. After you're happy these are the notes you're after simply pop them into your shopping cart.
Title: simplest with best research
Description: These notes were made after a lot of research by me. I made these notes very simple and understandable. Please share these asap.
Description: These notes were made after a lot of research by me. I made these notes very simple and understandable. Please share these asap.
Document Preview
Extracts from the notes are below, to see the PDF you'll receive please use the links above
NUMERICAL ANALYSIS AND
STATISTICAL TECHNIQUES LAB
ETMA -252
SUBMITTED TO
URFI SIR
SUBMITTED BY
VISHAL SINGH
MAE- IV SEMESTER
00320903613
INDEX
S
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Name of the Experiment
Page
No
...
3
To write a program in C language for finding Sum and
Average of ‘n’ integer numbers
...
7
To write a program in C language for finding sum of
series of function Sin(x) up to 5th term
...
Date
10
To write a program in C language for finding value of
function at given value of argument on the basis of given
data by using Newton’s Divided Difference method
...
16
To write a program in C language for calculating value of
integration within given limits and number of intervals by
Trapezoidal Rule
...
22
To write a program in C language for solving
simultaneous equation in ‘n’ variables by using Gauss
Elimination Method
...
29
To write a program in C language for solving given
differential equation by Runge-Kutta Method
...
01y) and find the amount
of radioactive material left given initial amount and final
time by Modified Euler Method
...
35
38
V i s h a l S i n g h ( 0 0 3 2 0 9 0 3 6 1 3 ) |i
Experiment 1
Aim
To write a program in C language for finding the largest number out of three integers
...
h>
#include
Theory
Variables
Variables are memory location in computer's memory to store data
...
Variable names are just the symbolic
representation of a memory location
...
, count etc
...
Integer (int) values are
whole numbers (like 10 or -10)
...
(Like 1
...
123)
...
If you declare a character
variable you must always put the character between single quotes (like so ‘A’)
...
Constants
Constants are the terms that can't be changed during the execution of a program
...
5,
"Programming is easy
...
In C, constants can be classified as:
Integer constants
Integer constants are the numeric constants (constant associated with number) without any
fractional part or exponential part
...
V i s h a l S i n g h ( 0 0 3 2 0 9 0 3 6 1 3 ) |3
Floating-point constants
Floating point constants are the numeric constants that has either fractional form or exponent
form
...
0, 0
...
22E-5
Character constants
Character constants are the constant which use single quotation around characters
...
String constants
String constants are the constants which are enclosed in a pair of double -quote marks
...
//prints string with newline
Enumeration constants
Keyword enum is used to declare enumeration types
...
V i s h a l S i n g h ( 0 0 3 2 0 9 0 3 6 1 3 ) |4
Experiment 3
Aim
To write a program in C language for finding Sum and Average of ‘n’ integer numbers
...
h>
#include
00;
printf("\n Enter the number of data \n");
scanf("%d",&n);
printf("\n enter the data\n");
for(i=1;i<=n;i++)
{
scanf("%f",&x);
sum=sum+x;
}
avg=sum/n;
printf("\n Sum of %d numbers = %f",n,sum);
printf("\n Average of %d numbers = %f",n,avg);
getch();
return 0;
}
Output
V i s h a l S i n g h ( 0 0 3 2 0 9 0 3 6 1 3 ) |6
Experiment 4
Aim
To write a program in C language for finding the Roots of given Quadratic Equation
Flowchart
V i s h a l S i n g h ( 0 0 3 2 0 9 0 3 6 1 3 ) |7
Program
#include
h>
#include
5))/2*a;
x2=(-b-pow(d,0
...
5))/2*a;
printf("\n Roots are \n x1=%f-%fi",x1,x2);
V i s h a l S i n g h ( 0 0 3 2 0 9 0 3 6 1 3 ) |8
printf("\n x2=%f+%fi",x1,x2);
}
}
getch();
return 0;
}
Output
V i s h a l S i n g h ( 0 0 3 2 0 9 0 3 6 1 3 ) |9
Experiment 5
Aim
To write a program in C language for finding sum of series of function Sin(x) up to 5th term
...
h>
#include