Skip to content

This repository contains all the Numerical Methods College Practicals using C Language done by me in B.Sc. 5th Semester.

Notifications You must be signed in to change notification settings

Kaustav-Purkayastha/Numerical-Methods-Using-C-5th-Sem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’» Numerical Methods

Numerical-Methods-Using-C-5th-Sem

πŸ”₯ Let's Connect! πŸ‘‡


       

πŸ“œList of Practical Questions:

Q1)   Write a C program to calculate the Mean, Median and Mean Deviation of a simple distribution.


Q2)   Write a C program to compute the Standard Deviation.


Q3)   Write a C program to implement the Least Square Approximation for fitting a Straight line y = mx+c, where "m" is the slope and "c" is the intercept on the y-axis for data points:

$$ {(-1, 10), (0, 9), (1, 7), (2, 5), (3, 4), (4, 3), (5, 0), (6, -1)} $$


Q4)   Write a C program to find the real root of the equation by using the Method of Successive Approximation.

$$ {x^3-4x+1=0} $$


Q5)   Write a C program to find a real root of the equation by using the Bisection Method.

$$ {x^2-sinx-9=0} $$


Q6)   Write a C program to find a real root of the equation correct to 3 decimal places by using the Newton-Raphson Method.

$$ {sinx=1+x^3} $$


Q7)   Write a C program to solve the following set of equations by Gauss Elimination Method:

2x1 + 4x2 + 2x3 = 15
2x1 + x2 + 2x3 = -54
x1 + x2 - 2x3 = 0


Q8)   Write a C program to solve the following set of equations by Gauss-Seidal Method:

$$ {27x + 6y - z = 85} $$

$$ {6x + 15y + 2z = 72} $$

$$ {x + y + 54z = 110} $$


Q9)   Write a C program to interpolate a function using Newton's Divided Difference Formula. Use it to find the value of f(8). Given:
x:	 4	  5	  7	 10	  11	  12 
f(x): 48 100 294 900 1210 2028


Q10)   Write a C program to interpolate using Newton's Forward Interpolation Method. Use it to find the value of y when x = 1.05. Given:
x:	    1.0    	    1.1	    	    1.2	    	    1.3	   	    1.4	    	    1.5 
f(x): 0.24197 0.21785 0.19419 0.17137 0.14973 0.12952


Q11)   Write a C program to interpolate using Newton's Backward Interpolation Method. Use it to find the value of y when x = 0.75. Given:
x:	 0.0	     	0.2	       0.4	     0.6	   0.8		1.0 
f(x): 1.0 0.961538 0.833333 0.555556 0.3125 0.2


Q12)   Write a C program to interpolate using Lagrange's Interpolation Method. Use it to find the value of y when x = 6. Given:
x:	  3	  7	 9	10
f(x): 168 120 72 63


Q13)   Write a C program to evaluate using Trapezoidal Rule.

$$\int_{0}^{1}\frac{x}{1+x}\ dx$$


Q14)   Write a C program for integrating Simpson's One-Third Rule when the function values are given as:
x:		0.8	       0.9	     1.0	    1.1	    	    1.2 
f(x): 0.71736 0.78333 0.84147 0.92314 0.96356


Q15)   Write a C program to evaluate using Simpson's One-Third Rule.

$$\int_{0}^{1}\frac{x}{1+x^2}\ dx$$


Q16)   Write a C program to evaluate using Simpson's Three-Eight Rule.

$$\int_{0}^{0.3}\sqrt{1-8x^3}\ dx$$


Q17)   Write a C program for solving the differential equation where y(0)=1. Find the values of y(0, 1) and y(0, 2) by using the Taylor Series Method.

$$\frac{dy}{dx}=3x+\frac{y}{2}$$


Q18)   Write a C program for solving the differential equation where y(0)=1. Find y(0, 2) when h = 0.01 by Euler's Method.

$$\frac{dy}{dx}=x^3+{y}$$


Q19)   Write a C program for solving the differential equation where y(0)=1. Find y(0.02) when h(0.01) = 1 by Modified Euler's Method.

$$\frac{dy}{dx}=x^2+{y}$$


Q20)   Write a C program to approximate y when x = 0.1, 0.2, 0.3 and h = 0.1 using Runge-Kutta Method. Given x = 0 when y = 1 and

$$\frac{dy}{dx}=x+{y}$$





πŸ€–Join Community!

- Stuck at any question?
- Confusions regarding any solution provided?
- Want to discuss something regarding above topics?
- Want to connect with other students?

  • join JOIN HERE !!

      discord  



πŸ”Connect With Me!

       

Give this Repository a STAR⭐

(If you find this repository helpful)
Thank You!!πŸ’

Made by Kaustav PurkayasthaπŸ˜‰

About

This repository contains all the Numerical Methods College Practicals using C Language done by me in B.Sc. 5th Semester.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages