Posts

MATLAB CODES - try running on ur compilers

EXPERIMENT - 1A   FOURIER SERIES clc clear all close all syms x f=input( "Enter the function of x: " ) I=input( "Enter the interval [a,b]: " ) m=input( 'Enter the number of Harmonics required: ' ) a=I(1); b=I(2); L=(b-a)/2; a0=(1/L)*int(f,a,b); Fx=a0/2; for n=1:m     figure;     an(n)=(1/L)*int(f*cos(n*pi*x/L),a,b);     bn(n)=(1/L)*int(f*sin(n*pi*x/L),a,b);     Fx=Fx+an(n)*cos(n*pi*x/L)+bn(n)*sin(n*pi*x/L);     Fx=vpa(Fx,4);     ezplot(Fx,[a,b]);     hold on     ezplot(f,[a,b]);     title([ 'Fourier Series with ' ,num2str(n), 'harmonics' ]);     legend( 'Fourier Series' , 'Function Plot' );     hold off end disp(strcat( 'Fourier series with' , num2str(n), 'harmonics is: ' ,char(Fx)))     HARMONIC ANALYSIS   clear all clc syms t x=input( 'Enter the equally spaced values of x: ' ); y=input( 'Enter the values of y=f(x): ' );

MATLAB EXPERIMENTS - SOLUTION OF DE USING METHOD OF VARIATION OF PARAMETERS AND CAUCHY-EULER METHOD

Image
 

MATLAB EXPERIMENTS - SOLUTION OF DE USING LAPLACE TRANSFORMS AND MATRIX METHOD

Image
 

MATLAB EXPERIMENTS - POWER SERIES AND Z-TRANSFORMS

Image

BATTERIES AND ITS TYPES

Image
A battery is an arrangement of several electrochemical cells connected in series that can be used as a source of direct electric current. A cell is one that contains only one anode and cathode, but a battery contains several anodes and cathodes.   TYPES OF BATTERIES: (a) Primary Battery or Primary Cells In the case of a primary battery, the electrode and the electrode reactions cannot be reversed by passing an external electrical energy. The reactions occur only once and after use, they become dead. Therefore, they are not rechargeable. Example: Dry cell, Mercury cell (b) Secondary Battery or Secondary Cells In case of a Secondary battery, the electrode reactions can be reversed by passing an external electrical energy. Therefore, they can be recharged by passing an electrical current and used again again. These are called storage cells or accumulators. Example: Lead-acid storage cell, nickel-cadmium cell

REVERSE OSOMOSIS: ADVANTAGES AND DISADVANTAGES

Image
  ADVANTAGES of Reverse Osmosis: This method has greater advantages of removing ionic, non-ionic, colloidal and high-molecular weight organic matter. The lifetime of the membrane is quite high (2 years). The membrane can be replaced within a few minutes. It provides nearly uninterrupted water supply. Due to low capital cost, low operating cost and high reliability, this method is superior than other methods. DISADVANTAGES of Reverse Osmosis: Reverse Osmosis plays a major role in providing portable water defined by the WHO criterion of < 500 ppm of total dissolved solids (TDS). Extremely high-quality water required for nuclear power plants can be made from sea water by the reverse-osmosis process. Sugar concentration, waste-water recovery and beverage uses are a few of the current popular applications of the reverse-osmosis process.

REVERSE OSMOSIS

Image
  It is a membrane process by which water is separated from saline water. Osmosis is defined as the spontaneous flow of 'water' from dilute to more concentrated solution through a semipermeable membrane. The driving force in this phenomenon is called osmotic pressure . A semipermeable membrane is one which permits only water molecules to pass through it. Examples of semipermeable membranes are cellulose acetate, polyamide, polymide, etc. This natural process can be reversed by applying pressure higher than the osmotic pressure on the concentrated side. Thus the solvent is forced to move from concentrated side to dilute side across the membrane. This principle is known as r everse osmosis. In the reverse osmosis process, the pure water (free from ions) is separated from the contaminated brine water (salty water). This membrane filtration is also called super filtration (or) hyper filtration. For advantages and disadvantages of reverse osmosis refer  https://meticulousperspectiv