-
🔥Visit our Website: GCC❌CSD
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 x3-4x+1 = 0 by using the Method of Successive Approximation.
Q5) Write a C program to find a real root of the equation x2-sin(x)-9 = 0 by using the Bisection Method.
Q7) Write a C program to find a real root of the equation sin(x) = 1+x3 correct to 3 decimal places by using the Newton-Raphson Method.
2.x1 + 4.x2 + 2.x3 = 15
2.x1 + x2 + 2.x3 = -54
x1 + x2 - 2.x3 = 0
27x + 6y - z = 85
6x + 15y + 2z = 72
x + y + 54z = 110
Q10) 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
Q11) 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
y: 0.24197 0.21785 0.19419 0.17137 0.14973 0.12952
Q12) 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
y: 1.0 0.961538 0.833333 0.555556 0.3125 0.2
Q13) 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
y: 168 120 72 63
Q15) 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