Wednesday, 14 December 2011

c programe of Newton forward interpolation formula


Implimentation of Newton’s Forward Interpolation Formula.

#include<stdio.h>
#include<conio.h>
#include<math.h>
#include<process.h>
#include<string.h>
void main()
{
  int n,x,p;
  int i,j;
  float ax[10];
  float ay[10];
  float y=0;
  float h;
  float d;
  float diff[20][20];
  float y1,y2,y3,y4;
  clrscr();
  printf("\n Enter the number of term -");
  scanf("%d",&n);
  printf("\n\n Enter the value in the form of x -");
  for(i=0;i<n;i++)
  {
     printf("\n\n Enter the value of x%d-",i+1);
     scanf("%f",&ax[i]);
   }
   printf("\n\n Enter the value in the form of y -");
    for(i=0;i<n;i++)
    {
      printf("\n\n Enter the value in the form y%d-",i+1);
     scanf("%f",&ay[i]);
    }
     printf("\n\n Enter the value of x for -");
     printf("\n which you want the value of y -");
     h=ax[1]-ax[0];
     for(i=0;i<n-1;i++)
     {
       diff[i][2]=ay[i+1]-ay[i];
     }
       for(j=2;j<=4;j++)
       {
             for(i=0;i<n-j;i++)
             {
               diff[i][j]=diff[i+1][j-1];
             }
             i=0;
             do
             {
               i++;
             }while(ax[i]<x);
             i--;
             p=(x-ax[i])/h;
             y1=p*diff[i-1][1];
             y2=p*(p+1)*diff[i-1][2]/2;
             y3=(p+1)*p*(p-1)*diff[i-2][3]/6;
             y4=(p+2)*(p+1)*p*(p-1)*diff[i-3][4]/24;
             y=ay[i]+y1+y2+y3+y4;
             printf("\n whenn=%6.4f,y=%6.8f",x,y);
             printf("\n\n\n Press Enter to Exit");
             }
             getch();
             }

c programe of Lagrange's Formula


Implementatio of Lagrange’s Formula.

#include<stdio.h>
#include<math.h>
#include<conio.h>
#include<process.h>
#include<string.h>
void main()
{
  int n;
  int i,j;
  float ax[100];
  float ay[100];
  float x=0;
  float y=0;
  float nr;
  float dr;
  clrscr();
  printf("\n Enter the number of terms--");
  scanf("%d",&n);
  printf("\n\n Enter the value in the form of x-");
  for(i=0;i<n;i++)
  {
     printf("\n\n Enter the value of x%d-",i+1);
     scanf("%f",&ax[i]);
     }
     printf("\n\n Enter the value in the form of y-");
     for(i=0;i<n;i++)
     {
       printf("\n\n Enter the value of y%d-",i+1);
       scanf("%f",&ay[i]);
     }
      printf("\n\n Enter the value of x for");
      printf("\n which you want the value of y-");
      scanf("%f",&x);
      for(i=0;i<n;i++)
     {
       nr=1;
       dr=1;
       for(j=0;j<n;j++)
       {
             if(j!=1)
             {
               nr=nr*(x-ax[j]);
               dr=dr*(ax[i]-ax[j]);
               }
               y+=(nr/dr)*ay[i];
               }
               }
               printf("\n\n when x=%5.2f,y=%5.2f",x,y);
               printf("\n\n\n Press Enter to Exit");
               getch();
               }




Discrete Mathematics Structure Paper 2010-2011



                                                                       B.TECH
                                               (SEM-3) THEORY EXAMINATION 2010-2011  
                                                 DISCRETE MATHEMATICAL STRUCTURES
               TIME : 3 HOURS                                                                         TOTAL MARKS : 100

         NOTE: - Attempt all question.
1.      Attempt any four parts of the following :
(a)   Consider a universal set U={x|x is an integer}.Assume that X={x|x is a positive integer},Z={x|x is an even integer} and Y={x|x is a negative odd integer}. Find the following :
·         X-Y
·         Xc-Y, where Xc is the complement of set X.
(b)   Consider a set Sk={1,2,……..,K}. Find  and .
(c)    Let R be a relation on N, the set of natural numbers such that
R={(x,y)|2x+3y and x,y € N}.
Find: • The domain and co domain of R,
           • R-1
(d)   Show that the functions f(x)=X3+1 and g(x)=(x-1)1/3 are converse to each other.
(e)   Prove that if fn is a Fibonacci number than
Fn= 1/√5[{(1+√5)/2}n+1  - {(1-√5)/2}n+1]  for all n € N, the set of natural numbers.
(f)      Let f:X→Y and X=Y=R, the set of real number. Find f-1 if
• f(x)=X2
• f(x)=(2x-1)/5.
2.      Attempt any two parts of the following :
(a)   Let G={1,-1,-I,i} with the binary operation multiplication be an algebraic structure, where i=√-1.
• Determine whether G is an Abelian.
• If G is a cyclic group, then determine the generator of G.
(b)   Let G=(Z2,+) be a group and let H be a subgroup of G, when H={(x,y)|x=y}. Find the left cosets of H in G. Here Z is the set of integers.
(c)    Prove that (R,+,*) is a ring with zero divisors, where R is 2×2 matrix and + and * are usual addition and multiplication operations.
3.       Attempt any two parts of the following :
(a)   Let (L1,≤) and (L2,≤) be lattices as shown below. Then draw the Hasse diagram for the lattice (L,≤), where L=L1×L2.





                                                                                                                       L1
                                 L1
                                                                              x                                                         y





                                                                      L2                                       
                                                                                                                     L2

(b)

i)        Simplify the following Boolean function using K-Map :
f(x,y,z)=∑(0,2,3,7)
ii)       How are sequential circuit different from combinational circuits?

(c)Describe the Boolean duality principle. Write the dual of each Boolean equations :
i)        x+x’y=x+y
ii)      (x.1)(0+x’)=0

    
4.      Attempt any two parts of the following :
(a)   (i) Show that the statements: P→Q and nQ→nP are equivalent.
(ii) State the contraposition and converse statement of the following statement:
       “If the triangle is equilateral, then it is equiangular”.
(b)   Show that premises : P→Q,R→S,nQ→nS,nnP
And (TᶺU)→R imply the conclusion n(TᶺU).
                          © What do the following expressions means?
i)                    (₳x)(x2≥x)
ii)                  (₳x)<0(x2>0)
iii)                (Ǝx)!=0(x2!=0)
Here the domain in each case consists of the real numbers.
5.      Attempt any two parts of the following :
(a)   Determine the value of each of these prefix expressions :
I)                    -*2/993,
II)                  +-*355/↑232.
(b)   For which values of n do these graphs have an Euler cycle :
i)                    Kn, a complete graph of n-vertices.
ii)                  Cx, a cycle of n-vertices.
(c)    Solve the recurrence relation :
T(n)=64(n/4)+n6 where n≥4 and a power of 4.
(d)   Solve the recurrence relation: an=3an-1+4n-1 for n≥0 and a0=1.
(e)   Determine the number of bit strings of length 10 that either begin with three0’s or end with two 1’s.
(f)     How many different rooms are needs to assign 500 classes, if there are 45 different time periods during in the university time table that are available?






Industrial sociology paper of 2009-2010


PAPER ID- 9617                                                                        PAPER CODE-  EHU302
                                                         B.TECH
                           (SEM-3) THEORY EXAMINATION 2009-2010  
                                          INDUSTRIAL SOCIOLOGY
TIME : 2 HOURS                                                                         TOTAL MARKS : 50

                                    NOTE: - Attempt all question.

1.         Attempt any four parts of the following :
(a)      Difference between pshchology, sociology and Anthropology.
(b)      What are the causes and consequences of industrialization?
(c)       Elaborate the highlights of industrial policy statement 1973.
(d)      What is grievance?
(e)      Describe in brief Navratana companies of India.
(f)        Differentiate between bi-partite and tri-partite agreement in industrial relation.

2.       Attempt any two parts of the following  :
(a)    Define Industrialization and list the characteristics of industrialization.
(b)    Explain   the Federal or Manorial system.
(c)    Give the characteristics of guild system. Also explain the reasons for decline of guild system.

3.      Attempt any two parts of the following :
(a)    Explain the role of states to promote and develop the small scale industries.
(b)    Explain the major provisions of industrial policy resolution 1991 in details.
 (c)   Indian government’s industrial policy has been initially protecting, promoting and           then developing. Are you agreeing with this? Discuss.

4.      Attempt any two parts of the following :
(a)    Explain the grievance handling procedure.
(b)    Describe the conciliation, arbitration and adjudication process in industrial relation.
(c)    State the Industrial Employment (Standing Orders) Act, 1946.


Industrial sociology paper of 2010-2011


PAPER ID- 9617                                                                        PAPER CODE-  EHU302
                                                         B.TECH
                           (SEM-3) THEORY EXAMINATION 2010-2011  
                                          INDUSTRIAL SOCIOLOGY
TIME : 2 HOURS                                                                         TOTAL MARKS : 50

                                    NOTE: - Attempt all question.

1.         Attempt any four parts of the following :
(a)      Difference between sociology and Anthropology.
(b)      Explain the merits and demerits of bureaucracy.
(c  )  Write a note on workers participation in management.
(d)      Salient features of Indian Factories Act 1948.
(e)      Describe in brief Navratana companies of India.
(f)        Explain scope of industrial sociology.

2.       Attempt any two parts of the following  :
(a)    Define industrialization and point out its impact on institution.
(b)    State the provisions relating to “three tier” system of adjudication under Industrial Dispute Act 1947.
(c)    Trace the history of trade Union Movement in India.

3.      Attempt any two parts of the following :
(a)    Give the classification of industries as per Industrial Policy Resolution 1956.
(b)    What is conflict? With the help of any two strategies discuss how you will handle conflict at work place.
(c)    Discuss the salient features of Provident Scheme 1952.

4.      Attempt any two parts of the following :
(a)    What is grievance? Give a formal grievance procedure to handle it?
(b)    What are the tri-partite and bi-partite machineries? What is the difference between the two bodies?
(c)    What is strike? Explain various types of strike and their reason.