Sunday, March 1, 2020

Electric Circuits: Transient Analysis (Initial Conditions) problem, Institute of Engineering (IOE)






Read more!

Electric Circuits: Nework Function problem: Institute of Engineering (IOE), 2076 Ashwin


Find the driving point input impedance, transfer impedance and voltage ratio transfer function for the circuit shown in the following figure. [2076 Ashwin]


Read more!

Wednesday, September 11, 2019

Black box optimization part 1

#include <iostream>
#include<cstdlib>

using namespace std;

double eval(int *pj);

void display(int *x){
cout<<"\n["<<*x;
for (int i=1;i<100;i++){
x++;
cout<<","<<*x;
}
cout<<"]";
}
int* modify(int *x){
int y=rand() % 100; //generates random number z in the range of 0 to 99
cout<<"\ny="<<y;
if (*(x+y)==0)
*(x+y)=1;
else
*(x+y)=0;
return x;
}
int main()
{
int vec[100];
  int i;
  for(i = 0; i < 100; i++)
{
    vec[i] = 1;
  }
  double fBest,fNew;
int *sBest=vec;
int *sNew;
//display(sBest);
fBest=eval(sBest);
for (i = 0;i < 100000; i++)
{
sNew=modify(sBest);
display(sNew);
fNew=eval(sNew);
if(fNew >= fBest)
{
sBest=sNew;
fBest=fNew;
}
cout<<"\nfitness after iteration "<<i+1<<" is "<<fBest;
}
  cout << "\nfitness = " << fBest << endl;
}


Read more!

Thursday, September 27, 2012

Syllabus of GATE Instrumentation Engineering(IN)


Instrumentation Engineering (IN)
Engineering Mathematics
Linear Algebra: Matrix Algebra, Systems of linear equations, Eigen values and eigen vectors.
Calculus: Mean value theorems, Theorems of integral calculus, Evaluation of definite and improper
integrals, Partial Derivatives, Maxima and minima, Multiple integrals, Fourier series. Vector identities,
Directional derivatives, Line, Surface and Volume integrals, Stokes, Gauss and Green’s theorems

Read more!

Syllabus of GATE for Computer Science and Information Technology


Computer Science and Information Technology (CS)
Engineering Mathematics
Mathematical Logic: Propositional Logic; First Order Logic.
Probability: Conditional Probability; Mean, Median, Mode and Standard Deviation; Random Variables;
Distributions; uniform, normal, exponential, Poisson, Binomial.
Set Theory & Algebra: Sets; Relations; Functions; Groups; Partial Orders; Lattice; Boolean Algebra.
Combinatorics: Permutations; Combinations; Counting; Summation; generating functions; recurrence
relations; asymptotics.
Graph Theory: Connectivity; spanning trees; Cut vertices & edges; covering; matching; independent
sets; Colouring; Planarity; Isomorphism.

Read more!

Syllabus of GATE for ECE


Electronics and Communication Engineering(EC)
Engineering Mathematics
Linear Algebra: Matrix Algebra, Systems of linear equations, Eigen values and eigen vectors.
Calculus: Mean value theorems, Theorems of integral calculus, Evaluation of definite and improper integrals, Partial Derivatives, Maxima and minima, Multiple integrals, Fourier series. Vector identities, Directional derivatives, Line, Surface and Volume integrals, Stokes, Gauss and Green’s theorems.
Differential equations: First order equation (linear and nonlinear), Higher order linear differential equations with constant coefficients, Method of variation of parameters, Cauchy’s and Euler’s equations, Initial and boundary value problems, Partial Differential Equations and variable separable method.

Read more!

Syllabus of GATE Electrical Engineering(EE)


Electrical Engineering(EE)

Engineering Mathematics
Linear Algebra: Matrix Algebra, Systems of linear equations, Eigen values and eigen vectors.
Calculus: Mean value theorems, Theorems of integral calculus, Evaluation of definite and improper integrals, Partial Derivatives, Maxima and minima, Multiple integrals, Fourier series. Vector identities, Directional derivatives, Line, Surface and Volume integrals, Stokes, Gauss and Green’s theorems.
Differential equations: First order equation (linear and nonlinear), Higher order linear differential equations with constant coefficients, Method of variation of parameters, Cauchy’s and Euler’s equations, Initial and boundary value problems, Partial Differential Equations and variable separable method.

Read more!

Monday, August 22, 2011

Program to calculate the unknowns of simultaneous linear equations



#include<stdio.h>
#include<math.h>
int main()
{
int i,j,k,n;
float c,a[100][101],x[100];
printf("Enter the no. of variables:");

Read more!

Thursday, March 10, 2011

C++ program to add two Complex no. using this pointer



#include<iostream>
using namespace std;
class Complex
{
private:
float real,imag;
public:
Complex():real(0),imag(0){}

Read more!

Thursday, March 3, 2011

C++ program that illustrates the order of constructor and destructor invocation in nice way



#include<iostream>
using namespace std;
class Dept{
    private:
        int id;
        char name[30];
    public:
        Dept(){}

Read more!

Monday, January 24, 2011

program to store the information about students in file and retrieve information arranging in alphabetical order


#include<stdio.h>
#include<string.h>
int main()
{
    struct student
    {
        char name[20],address[20],phone[15];
        int roll;
    }s[20];
    int i,j,n;
    FILE *fp;

Read more!

Wednesday, January 19, 2011

Program to arrange the given names in ascending order

#include<stdio.h>
#include<string.h>
int main()
{
    int i,j,n;
    char name[15][20],temp[20];
    printf("Enter number of students:");
    scanf("%d",&n);

Read more!

Monday, December 13, 2010

program to find palindrome of a string

/*program to find palindrome of a string*/
#include<stdio.h>
#include<string.h>
int main()
{
    int i,j,len,flag=1;
    char string[100];
    printf("Enter a string:");

Read more!

Program to calculate the length of string without using string handling function

/*Program to calculate the length of string*/
/*without using string handling functions*/
#include<stdio.h>
int main()
{
    char string[100];
    int i,count=0;
    printf("Enter the string:");

Read more!

Program to display the prime numbers in the given range and show its count

#include<stdio.h>

int main()
{
    int i,j,a,b,m=0;
    printf("Enter the range:");
    scanf("%d%d",&a,&b);
    printf("The prime numbers in this range are:\n");

Read more!