PART A
Answer any three Questions.
2. Write a program to find whether the number is prime or not, with algorithm. [10]
PART B
Answer any three Questions.
5. a. State the difference between call by value and call by reference [4]
8. a. Find real root of the equation x^3+x^2-100=0 correct to 4 decimal places, using fixe point
iteration method. [5]
b. Find the real root of equation cos x = 3x-1, using Aitkens method [5]
x: 3 5 7 9 11
y: 6 24 58 108 174
11. a. State one dimensional heat equation and one dimensional heat equation. [5]
12. write a c++ program to implement straight line fitting by using the method of least squares. [10]
satisfying the conditions u(x,0) = sin pie *(0<=x<=1) and u(0,t)= u(1,t)= (0<=t<=0.025), choosing delta
x=0.1 and an appropriate delta t and tabulate the values of u ij for 0<=i<=10 and 0<=j<=5 [10]