LAB MANUAL. ANTC Lab (ME-321- F) DEPARTMENT OF APPLIED SCIENCE AND HUMINITIES
|
|
- Wilfred Wilkinson
- 5 years ago
- Views:
Transcription
1 LAB MANUAL ANTC Lab (ME-321- F) DEPARTMENT OF APPLIED SCIENCE AND HUMINITIES 1
2 Check list for Lab Manual S. No. Particulars Page Number 1 Mission and Vision 3 2 Guidelines for the student 4 3 List of Programs as per University 5 4 Sample copy of File
3 Mission To develop BRCM College of Engineering & Technology into a Center of Excellence By : Providing State of the art Laboratories, Workshops, Research and instructional facilities Encouraging students to delve into technical pursuits beyond their academic curriculum. Facilitating Post graduate teaching and research Creating an environment for complete personality development of students. Assisting in the best possible placement Vision To Nurture and Harness talent for empowerment towards self actualization in all technical domains both existing for the future 3
4 Guidelines for the Students: 1. Students should be regular and come prepared for the lab practice. 2. In case a student misses a class, it is his/her responsibility to complete that missed experiment(s). 3. Students should bring the observation book, lab journal and lab manual. Prescribed textbook and class notes can be kept ready for reference if required. 4. They should implement the given Program individually. 5. While conducting the experiments students should see that their programs would meet the following criteria: Programs should be interactive with appropriate prompt messages, error messages if any, and descriptive messages for outputs. Programs should perform input validation (Data type, range error, etc.) and give appropriate error messages and suggest corrective actions. Comments should be used to give the statement of the problem and every function should indicate the purpose of the function, inputs and outputs Statements within the program should be properly indented Use meaningful names for variables and functions. Make use of Constants and type definitions wherever needed. 6. Once the experiment(s) get executed, they should show the program and results to the instructors and copy the same in their observation book. 7. Questions for lab tests and exam need not necessarily be limited to the questions in the manual, but could involve some variations and / or combinations of the questions. 4
5 LIST OF PROGRAMS(University Syllabus) ANTC Lab (ME-321-F ) S.NO PROGRAM 1 Solution of Non-linear equation in single variable using the method of successive bisection. 2 Solution of an algebraic equation by using Simpson s method. 3 Solution of Non-Linear equation in single variable using the Newton Raphson method. 4 Solution of a system of simultaneous algebraic equations using the Gaussian elimination procedure 5 Numerical solution of an ordinary differential equation using the Euler s method. 6 Numerical solution of an ordinary differential equation using the Runge Kutta 4th order method 7 Solution of an algebraic equation by using trapezoidal rule. 8 Program of Lagrange s Interpolation Formula. 9 Solution of Non-Linear equation in single variable using the regula-falsi method 10 Solution of a system of simultaneous algebraic equations using the Gauss-Seidel iterative method. 5
6 Sample copy of file Program 1: Write a program to find solution of Non-linear equation in single variable using the method of successive bisection. #include<conio.h> float f(float x) return x*x*x-4*x-9; void bisect(float *x, float a, float b, int, *itr) *x=(a+b)/2; ++(*itr); int main() int itr,maxitr; float x,a,b,aerr,x1; clrscr(); printf("enter the values of a,b,aerr,maximum no of iterations"); scanf("%f %f %f %d",&a,&b,&aerr,&maxitr); bisect(&x,a,b,&itr); do if(f(a)*f(x)<0) b=x; else a=x; bisect(&x1,a,b,&itr); if(fabs(x1-x)<aerr) printf("the root is: %f",x1); return 0; x=x1; while(itr==maxitr); printf("the root does not converge in given no of iterations"); return 1; 6
7 Program 2: Write a program to find the solution of an algebraic equation by using Simpson s method. /*simpson's rule*/ #include<math.h> float y(float x) return 1/(1+x*x); main() float x0,xn,h,s; int i,n; printf("enter x0,xn,number of subinterval"); scanf("%f%f%d",&x0,&xn,&n); h=(xn-x0)/n; s=y(x0)+y(xn)+4*y(x0+h); for(i=3;i<=n-1;i+=2) s+=4*y(x0+i*h)+2*y(x0+(i-1)*h); printf("value of integral is %6.4f/n",(h/3)*s); return 0; Program 3 : Write a program to find the solution of Non-Linear equation in single variable using the Newton Raphson method. #include<conio.h> #include<math.h> float f(float x) return x*sin(x)+cos(x); float df(float x) return x*cos(x); 7
8 int main() int itr,maxitr; float h,x0,x1,aerr; clrscr(); printf("\n\n\t enter x0, allowed error and maximum no. of iterations"); scanf("%f %f %d",&x0,&aerr,&maxitr); for(itr=1;itr<=maxitr;itr++) h=f(x0)/df(x0); x1=x0-h; printf("\n\t iteration no.= %d \n x= %f \n",itr,x1); if(fabs(h)<aerr) printf("\n\t after %d iteration \n root= %f \n",itr, x1); return 0; x0=x1; printf("\n\f the solution does not converge"); return 1; Program 4 : Write the program to find the solution of a system of simultaneous algebraic equations using the Gaussian elimination procedure. /*Gauss Elimination */ # include <stdio.h> # include <conio.h> # include <math.h> # define MAX 10 void main() int i,j,n,k; float mat[max][max],x[max],temp,pivot,sum=0; clrscr(); printf("\t\t\t GAUSS ELIMINITION METHOD\n"); printf("enter No of Equtions : "); scanf("%d",&n); printf("enter Coefficients of Eqution \n"); for(i=1;i<=n;i++) for(j=1;j<=n;j++) scanf("%f",&mat[i][j]); 8
9 printf("enter Constant value\n"); for(i=1;i<=n;i++) scanf("%f",&mat[i][n+1]); x[i]=mat[i][n+1]; for(i=2;i<=n;i++) for(j=i;j<=n;j++) pivot=mat[j][i-1]/mat[i-1][i-1]; for(k=i-1;k<=n+1;k++) mat[j][k]=mat[j][k]-pivot*mat[i-1][k]; printf("eliminated matrix as :- \n"); for(i=1;i<=n;i++) for(j=1;j<=n+1;j++) printf("\t%.2f",mat[i][j]); printf("\n"); for(i=1;i<=n;i++) if(mat[i][i]==0) printf("since diagonal element become zero\n Hence solution is not possible\n"); exit(1); printf("solution : \n"); for(i=0;i sum=0; for(j=n;j>n-i;j--) sum=sum+mat[n-i][j]; x[n-i]=(mat[n-i][n+1]-sum*x[n])/mat[n-i][n-i]; printf("x%d = %4.2f\n",n-i,x[n-i]); getch(); 9
10 Program 5: Write the program to find Numerical solution of an ordinary differential equation using the Euler s meth #include<conio.h> #include<math.h> #define f(x,y) (x+y) void main() float h,x0,y0,y1; int i,n; clrscr(); printf("\n\n\t enter the value x0,y0,n"); scanf("%f%f%d",&x0,&y0,&n); h=(x0-y0)/n; for(i=1;i<=n;i++) y1=y0+h*f(x0,y0); y0=y1; x0=x0+h; printf("\n\t when x=%f y=%f",x0,y0); getch(); Program 6 : Write a program to find the numerical solution of an ordinary differential equation using the Runge Kutta 4th order method #include<math.h> float f(float x,float y) return x+y*y; main() float x0,y0,h,xn,x,y,k1,k2,k3,k4,k printf("enter the values of x0,y0,"h,xn\n"); scanf("%f %f %f %f",&x0,&y0,&h,&xn); x=x0;y=y0 10
11 while(1) if (x==xn) break; k1=h*f(x,y); k2=h*f(x+h/2,y+k1/2); k3=h*f(x+h/2,y+k2/2); k4=h*f(x+h,y+k3); k=(k1+2*(k2+k3)+k4)/6; x+=h; y+=k; printf("when x=%8.4f"y=%8.4f\n",x,y); Program 7 : Write a program to solve of an algebraic equation by using trapezoidal rule. #include<conio.h> float y(float x) return 1/(1+x*x); void main() float x0,xn,h,s; int i,n; puts("enter x0,xn,no.of subintervals"); scanf("%f%f%d",&x0,&xn,&n); h=(xn-x0)/n; s=y(x0)+y(xn); for(i=1;i<=n;i++) s+=2*y(x0+i*h); printf("value Of interval is %6.4f\n",(h/2)*s); 11
12 Program 8 : Write a program of Lagrange s Interpolation Formula #include<conio.h> #include<math.h> #define max 100 main() float ax[max+1],ay[max+1],nr,dr,x,y=0; int i,j,n; printf("enter the value of n\n"); scanf("%d",&n); printf("enter the set of values\n"); for(i=0;i<=n;i++) scanf("%f%f",&a x[i],&ay[i]); printf("enter the value of x for which value of y is wanted"); scanf("%f" &x); for(i=0;i<=n;i++) nr=dr=1 for(i=0;j<=n;j++) if(j!=i) nr*=x-ax[j]; dr*=ax[i]-ax[j]; y+=(nr/dr)=ay[i]; printf("when x=%4.1f & y=7.1f\n",x,y); Program 9 : Write a program to find the solution of Non-Linear equation in single variable using the regula-falsi method. /* regula falsi method */ #include<math.h> float f(float x) return cos(x)-x*exp(x); void regula (float*x,float x0,float x1,float fx0,float fx1,int*itr) *x=x0-((x1-x0)/(fx1-fx0))*fx0; ++(*itr); printf("iteration number %3d x=%7.5f\n",*itr,*x); 12
13 main() int itr=0,maxitr; float x0,x1,x2,x3,aerr; printf("enter the value for x0,x1,allowed error,maxium iteration\n"); scanf("%f %f %f %d",&x0,&x1,&aerr,maxitr); regula(&x2,x0,x1,f(x0),f(x1),&itr); do if (f(x0)*f(x2)<0) x1=x2; else x0=x2; regula(&x3,x0,x1,f(x0),f(x1),&itr); if (fabs(x3-x2)<aerr) printf("after %d iteration,root=%6.4f\n",itr,x3); return 0; x2=x3; while(itr<maxitr); printf("solution does not converge.iteration not sufficient\n"); return 1; Program 10 : Write a program using arrays to find solution of a system of simultaneous algebraic equations using the Gauss-Seidel iterative method. #include<math.h> #define N 3 main() float a[n][n+1],x[n],aerr,maxerr,t,s,err; int i,j,itr,maxitr; for(i=0;i<n;i++) x[i]=0; printf("enter the element of the augmented matrix rowwise\n"; for(i=0;i<n;i++) for(j=0;j<n+1;j++) 13
14 scanf("%f",&a[i][j]); printf("enter the allowed error,maximum iteration\n"); scanf("%f %d",&aerr,&maxitr); printf("iterationx[1] x[2] x[3]\n"); for(itr=1;itr<=maxitr;itr++) maxerr=0; for(i=0;i<n;i++) s=0; for(j=0;j<n;j++) if(j!=i) s+=a[i][j]*x[j]; t=(a[i][n]-s)/a[i][i]; err=fabs(x[i]-t); if(err>maxerr) maxerr=err; x[i]=t; printf(%5d",itr); for(i=0;i<n;i++) printf( %9.4f,x[i]); printf \n ); if(maxerr<aerr) printf( converges in%3d iterations\n,itr); for(i=0;i<n;i++) printf( x[%3d]=%7.4f\n,i+1,x[i]); return 0; printf( solution does not converge iteration not sufficient\n ); return 1; 14
NUMERICAL METHODS AND COMPUTATIONAL PROGRAMMING LAB MATH-204-F
LAB MANUAL NUMERICAL METHODS AND COMPUTATIONAL PROGRAMMING LAB MATH-204-F LIST OF EXPERIMENTS NUMERICAL METHODS OF COMPUTATIONAL PROGRAMMING LAB MATH-204-F S. No. NAME OF EXPERIMENTS 1. Solution of Non-linear
More informationLABORATORY MANUAL APPLIED NUMERICAL TECHNIQUES AND COMPUTING LAB. ME 321 F
LABORATORY MANUAL APPLIED NUMERICAL TECHNIQUES AND COMPUTING LAB. ME 321 F LIST OF EXPERIMENTS APPLIED NUMERICAL TECHNIQUES AND COMP. SR.NO. NAME OF EXPERIMENTS DATE SIGNATURE 1. Solution of Non linear
More informationDEV BHOOMI INSTITUTE OF TECHNOLOGY
DEV BHOOMI INSTITUTE OF TECHNOLOGY Department of Computer Science and Engineering Year: 2rd Semester: 3rd CBNST Lab-PCS-302 LAB MANUAL Prepared By: HOD (CSE) DEV BHOOMI INSTITUTE OF TECHNOLOGY Department
More informationNumerical Techniques Lab Manual
Numerical Techniques Lab Manual Dev Bhoomi Institute Of Technology Department of Computer Applications PRACTICAL INSTRUCTION SHEET LABORATORY MANUAL EXPERIMENT NO. ISSUE NO. : ISSUE DATE: REV. NO. : REV.
More informationLAB MANUAL OBJECT ORIENTED PROGRAMMING LAB (IT- 202 F) (DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING)
LAB MANUAL OBJECT ORIENTED PROGRAMMING LAB (IT- 202 F) (DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING) (Reason behind the object oriented lab) Mission To develop Akido college of Engineering & Technology
More informationNumerical Method (2068 Third Batch)
1. Define the types of error in numerical calculation. Derive the formula for secant method and illustrate the method by figure. There are different types of error in numerical calculation. Some of them
More informationChapter - 2 Complexity of Algorithms for Iterative Solution of Non-Linear Equations
Chapter - Compleity of Algorithms for Iterative Solution of Non-Linear Equations Compleity of Algorithms for Iterative... 19 CHAPTER - Compleity of Algorithms for Iterative Solution of Non-Linear Equations.1
More informationSankha Narayan Bose B.Tech Student in Information Technology Department, Kalyani Government Engineering College,Krishnagar,Nadia,India
Empirical Problem Related To Variation in Population Ageing Between Males & Females over a Period from 1960 to 1981 by Making Use of Statistical Regression Technique & C Programming Language Sankha Narayan
More informationList of Programs: Programs: 1. Polynomial addition
List of Programs: 1. Polynomial addition 2. Common operations on vectors in c 3. Matrix operation: multiplication, transpose 4. Basic Unit conversion 5. Number conversion: Decimal to binary 6. Number conversion:
More informationMGM S JAWAHARLAL NEHRU ENGINEERING COLLEGE N-6, CIDCO, AURANGABAD LAB MANUALS SUB: COMPUTER LAB-II CLASS: S.E.CIVIL
MGM S JAWAHARLAL NEHRU ENGINEERING COLLEGE N-6, CIDCO, AURANGABAD LAB MANUALS (Procedure for conduction of Practical/Term Work) SUB: COMPUTER LAB-II CLASS: S.E.CIVIL Prepared by Ms.V.S.Pradhan Lab In charge
More informationIntroduction to C++ Introduction to C++ Week 6 Dr Alex Martin 2013 Slide 1
Introduction to C++ Introduction to C++ Week 6 Dr Alex Martin 2013 Slide 1 Numerical Integration Methods The Trapezoidal Rule If one has an arbitrary function f(x) to be integrated over the region [a,b]
More informationComputers in Engineering Root Finding Michael A. Hawker
Computers in Engineering COMP 208 Root Finding Michael A. Hawker Root Finding Many applications involve finding the roots of a function f(x). That is, we want to find a value or values for x such that
More informationComputer Simulations
Computer Simulations A practical approach to simulation Semra Gündüç gunduc@ankara.edu.tr Ankara University Faculty of Engineering, Department of Computer Engineering 2014-2015 Spring Term Ankara University
More informationThursday 1/8 1 * syllabus, Introduction * preview reading assgt., chapter 1 (modeling) * HW review chapters 1, 2, & 3
Topics and Syllabus Class # Text Reading I. NUMERICAL ANALYSIS CHAPRA AND CANALE A. INTRODUCTION AND MATLAB REVIEW :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::Week
More informationSECOND SEMESTER BCA : Syllabus Copy
BCA203T: DATA STRUCTURES SECOND SEMESTER BCA : Syllabus Copy Unit-I Introduction and Overview: Definition, Elementary data organization, Data Structures, data structures operations, Abstract data types,
More informationPROGRAMMING IN C LAB MANUAL FOR DIPLOMA IN ECE/EEE
PROGRAMMING IN C LAB MANUAL FOR DIPLOMA IN ECE/EEE 1. Write a C program to perform addition, subtraction, multiplication and division of two numbers. # include # include int a, b,sum,
More informationFondamenti di Informatica
Fondamenti di Informatica Scripts and Functions: examples lesson 9 2012/04/16 Prof. Emiliano Casalicchio emiliano.casalicchio@uniroma2.it Agenda Examples Bisection method Locating roots Secant methods
More informationC Programming Lecture V
C Programming Lecture V Instructor Özgür ZEYDAN http://cevre.beun.edu.tr/ Modular Programming A function in C is a small sub-program that performs a particular task, and supports the concept of modular
More informationIntroduction to Programming for Engineers Spring Final Examination. May 10, Questions, 170 minutes
Final Examination May 10, 2011 75 Questions, 170 minutes Notes: 1. Before you begin, please check that your exam has 28 pages (including this one). 2. Write your name and student ID number clearly on your
More informationNumerical Integration
Numerical Integration Numerical Integration is the process of computing the value of a definite integral, when the values of the integrand function, are given at some tabular points. As in the case of
More informationInternational Journal of Mathematics & Computing. Research Article
www.advancejournals.org Open Access Scientific Publisher Research Article C/C++ PROGRAM: DETERMINATION OF ENERGY BAND GAP FROM UV-VISIBLE SPECTROGRAPH RESULTS ABSTRACT Rajivgandhi S 1, Dinesh Kumar A 2,
More informationSRI VIDYA COLLEGE OF ENGINEERING & TECHNOLOGY, VIRUDHUNAGAR Department of CSE & IT Internal Test I
SRI VIDYA COLLEGE OF ENGINEERING & TECHNOLOGY, VIRUDHUNAGAR Department of CSE & IT Internal Test I Year & Sem: I B.E (CSE) & II Date of Exam: 21/02/2015 Subject Code & Name: CS6202 & Programming & Data
More informationUnit 5. Decision Making and Looping. School of Science and Technology INTRODUCTION
INTRODUCTION Decision Making and Looping Unit 5 In the previous lessons we have learned about the programming structure, decision making procedure, how to write statements, as well as different types of
More informationTEACHING & EXAMINATION SCHEME For the Examination COMPUTER SCIENCE. B.Sc. Part-I
TEACHING & EXAMINATION SCHEME For the Examination -2015 COMPUTER SCIENCE THEORY B.Sc. Part-I CS.101 Paper I Computer Oriented Numerical Methods and FORTRAN Pd/W Exam. Max. (45mts.) Hours Marks 150 2 3
More informationMAHATMA GANDHI MISSION S JAWAHARLAL NEHRU ENGINEERING COLLEGE, AURANGABAD. (M.S.)
MAHATMA GANDHI MISSION S JAWAHARLAL NEHRU ENGINEERING COLLEGE, AURANGABAD. (M.S.) DEPARTMENT OF CIVIL ENGINEERING COMPUTER LAB- II LAB MANUAL Prepared By Approved By Dr.V.S.Pradhan Dr. S. B. Shinde Lab
More informationa=a; //These are the guessed values of H provided above b=b;
//This program solves the Velocity Boundary Layer equation and thermal BL equation over a flat plate using Shooting technique //A 4th order Runge kutta method for solving the ODE's and Bisection method
More informationDecision Making and Branching
INTRODUCTION Decision Making and Branching Unit 4 In the previous lessons we have learned about the programming structure, data types, declaration of variables, tokens, constants, keywords and operators
More informationNumerical Methods for Differential Equations Contents Review of numerical integration methods Rectangular Rule Trapezoidal Rule Simpson s Rule How to
Numerical Methods for Differential Equations Contents Review of numerical integration methods Rectangular Rule Trapezoidal Rule Simpson s Rule How to make a connect-the-dots graphic Numerical Methods for
More informationLABORATORY MANUAL. (CSE-103F) FCPC Lab
LABORATORY MANUAL (CSE-103F) FCPC Lab Department of Computer Science & Engineering BRCM College of Engineering & Technology Bahal, Haryana Aim: Main aim of this course is to understand and solve logical
More informationWelcome to Microsoft Excel 2013 p. 1 Customizing the QAT p. 5 Customizing the Ribbon Control p. 6 The Worksheet p. 6 Excel 2013 Specifications and
Preface p. xi Welcome to Microsoft Excel 2013 p. 1 Customizing the QAT p. 5 Customizing the Ribbon Control p. 6 The Worksheet p. 6 Excel 2013 Specifications and Limits p. 9 Compatibility with Other Versions
More informationMS213: Numerical Methods Computing Assignments with Matlab
MS213: Numerical Methods Computing Assignments with Matlab SUBMISSION GUIDELINES & ASSIGNMENT ADVICE 1 Assignment Questions & Supplied Codes 1.1 The MS213 Numerical Methods assignments require students
More informationDeccan Education Society s
Deccan Education Society s FERGUSSON COLLEGE, PUNE (AUTONOMOUS) SYLLABUS UNDER AUTONOMY SECOND YEAR B.Sc.(COMPUTER SCIENCE) MATHEMATICS SEMESTER III w.e.f. Academic Year 2017-2018 Deccan Education Society
More informationUNIVERSITY OF CALIFORNIA COLLEGE OF ENGINEERING
UNIVERSITY OF CALIFORNIA COLLEGE OF ENGINEERING E7: INTRODUCTION TO COMPUTER PROGRAMMING FOR SCIENTISTS AND ENGINEERS Professor Raja Sengupta Spring 2010 Second Midterm Exam April 14, 2010 [30 points ~
More informationA MIXED QUADRATURE FORMULA USING RULES OF LOWER ORDER
Bulletin of the Marathwada Mathematical Society Vol.5, No., June 004, Pages 6-4 ABSTRACT A MIXED QUADRATURE FORMULA USING RULES OF LOWER ORDER Namita Das And Sudhir Kumar Pradhan P.G. Department of Mathematics
More informationx n x n stepnumber k order r error constant C r+1 1/2 5/12 3/8 251/720 abs. stab. interval (α,0) /11-3/10
MATH 573 LECTURE NOTES 77 13.8. Predictor-corrector methods. We consider the Adams methods, obtained from the formula xn+1 xn+1 y(x n+1 y(x n ) = y (x)dx = f(x,y(x))dx x n x n by replacing f by an interpolating
More informationContents. Hilary Term. Summary of Numerical Analysis for this term. Sources of error in numerical calculation. Solving Problems
Contents Hilary Term 1 Root Finding 4 11 Bracketing and Bisection 5 111 Finding the root numerically 5 112 Pseudo BRACKET code 7 113 Drawbacks 8 114 Tips for success with Bracketing & Bisection 9 115 Virtues
More informationLinear Equation Systems Iterative Methods
Linear Equation Systems Iterative Methods Content Iterative Methods Jacobi Iterative Method Gauss Seidel Iterative Method Iterative Methods Iterative methods are those that produce a sequence of successive
More information//2D TRANSFORMATION TRANSLATION, ROTATING AND SCALING. #include<stdio.h> #include<conio.h> #include<graphics.h> #include<math.h> #include<stdlib.
//2D TRANSFORMATION TRANSLATION, ROTATING AND SCALING #include #include #include #include #include void main() int gd=detect,gm,i,x[10],y[10],a,b,c,d,n,tx,ty,sx,sy,ch;
More informationDate: 16 July 2016, Saturday Time: 14:00-16:00 STUDENT NO:... Math 102 Calculus II Midterm Exam II Solutions TOTAL. Please Read Carefully:
Date: 16 July 2016, Saturday Time: 14:00-16:00 NAME:... STUDENT NO:... YOUR DEPARTMENT:... Math 102 Calculus II Midterm Exam II Solutions 1 2 3 4 TOTAL 25 25 25 25 100 Please do not write anything inside
More informationInterpolation. TANA09 Lecture 7. Error analysis for linear interpolation. Linear Interpolation. Suppose we have a table x x 1 x 2...
TANA9 Lecture 7 Interpolation Suppose we have a table x x x... x n+ Interpolation Introduction. Polynomials. Error estimates. Runge s phenomena. Application - Equation solving. Spline functions and interpolation.
More informationPESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Basic Science and Humanities
PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Basic Science and Humanities Continuous Internal Evaluation Test 2 Date: 0-10- 2017 Marks: 0 Subject &
More informationLecture 7 Symbolic Computations
Lecture 7 Symbolic Computations The focus of this course is on numerical computations, i.e. calculations, usually approximations, with floating point numbers. However, Matlab can also do symbolic computations,
More informationNew Rules of ME Ph.D. Qualifying Exams 1/8
New Rules of ME Ph.D. Qualifying Exams 1/8 Qualifying Examination The student must pass a Qualifying Examination before the Dissertation Director, the Interdisciplinary Committee, and the courses for the
More informationChapter 7 Solved problems
Chapter 7 7.4, Section D 20. The coefficients of a polynomial function are stored in a single-dimensional array. Display its derivative. If the polynomial function is p(x) = a n x n + a n-1 x n-1 + + a
More informationNUMERICAL METHODS, NM (4776) AS
NUMERICAL METHODS, NM (4776) AS Objectives To provide students with an understanding that many mathematical problems cannot be solved analytically but require numerical methods. To develop a repertoire
More informationTutorial No. 2 - Solution (Overview of C)
Tutorial No. 2 - Solution (Overview of C) Computer Programming and Utilization (2110003) 1. Explain the C program development life cycle using flowchart in detail. OR Explain the process of compiling and
More information-2017-18 1. a.. b. MS-Paint. Ex.No 1 Windows XP c. 23,, d. MS-Dos DIR /W /P /B /L. Windows Xp, MS-Paint, Dir ; 1. Properties 23 10111 23 27 23 17 2. Display Properties MS-Paint ok 1. Start All program
More informationEngineering 12 - Spring, 1999
Engineering 12 - Spring, 1999 1. (18 points) A portion of a C program is given below. Fill in the missing code to calculate and display a table of n vs n 3, as shown below: 1 1 2 8 3 27 4 64 5 125 6 216
More informationTeaching Engineering Analysis Using VBA for Excel. Abstract. Introduction
Teaching Engineering Analysis Using VBA for Excel Terrence L. Chambers Department of Mechanical Engineering University of Louisiana at Lafayette PO Box 44170 Lafayette, LA 70504-4170 (337) 482-6731 (337)
More information/* Area and circumference of a circle */ /*celsius to fahrenheit*/
/* Area and circumference of a circle */ #include #include #define pi 3.14 int radius; float area, circum; printf("\nenter radius of the circle : "); scanf("%d",&radius); area = pi
More informationDEV BHOOMI INSTITUE OF TECHNOLOGY DEHRADUN Department Of Computer Application. Design and Analysis of Algorithms Lab MCA-302
DEV BHOOMI INSTITUE OF TECHNOLOGY DEHRADUN Department Of Computer Application Design and Analysis of Algorithms Lab MCA-302 1 INDEX S.No. PRACTICAL NAME DATE PAGE NO. SIGNATURE 1. Write a Program to Implement
More informationGraphical Approach to Solve the Transcendental Equations Salim Akhtar 1 Ms. Manisha Dawra 2
Graphical Approach to Solve the Transcendental Equations Salim Akhtar 1 Ms. Manisha Dawra 2 1 M.Tech. Scholar 2 Assistant Professor 1,2 Department of Computer Science & Engineering, 1,2 Al-Falah School
More informationLab Manual B.Tech 1 st Year
Lab Manual B.Tech 1 st Year Fundamentals & Computer Programming Lab Dev Bhoomi Institute of Technology Dehradun www.dbit.ac.in Affiliated to Uttrakhand Technical University, Dehradun www.uktech.in CONTENTS
More informationKareemNaaz Matrix Divide and Sorting Algorithm
KareemNaaz Matrix Divide and Sorting Algorithm Shaik Kareem Basha* Department of Computer Science and Engineering, HITAM, India Review Article Received date: 18/11/2016 Accepted date: 13/12/2016 Published
More informationCSE 212 : JAVA PROGRAMMING LAB. IV Sem BE (CS&E) (2013) DEPT OF COMPUTER SCIENCE & ENGG. M. I. T., MANIPAL. Prepared By : Approved by :
1 CODE: CSE212 CSE 212 : JAVA PROGRAMMING LAB IV Sem BE (CS&E) (2013) DEPT OF COMPUTER SCIENCE & ENGG. M. I. T., MANIPAL Prepared By : Approved by : Dr. Harish S. V. Mr. Chidananda Acharya Ms. Roopashri
More informationApplication 2.4 Implementing Euler's Method
Application 2.4 Implementing Euler's Method One's understanding of a numerical algorithm is sharpened by considering its implementation in the form of a calculator or computer program. Figure 2.4.13 in
More informationManipal Institute of Technology Manipal University Manipal
MIT/CSE/LM/13/R0 COMPUTER GRAPHICS LAB MANUAL FIFTH SEMESTER Department of Computer Science & Engineering 10pt. CREDIT SYSTEM (2014) Prepared by Approved by (Dr. P. C. Siddalingaswamy) (Head of the Department)
More informationOverview of Transformations (18 marks) In many applications, changes in orientations, size, and shape are accomplished with
Two Dimensional Transformations In many applications, changes in orientations, size, and shape are accomplished with geometric transformations that alter the coordinate descriptions of objects. Basic geometric
More informationAC : MATHEMATICAL MODELING AND SIMULATION US- ING LABVIEW AND LABVIEW MATHSCRIPT
AC 2012-4561: MATHEMATICAL MODELING AND SIMULATION US- ING LABVIEW AND LABVIEW MATHSCRIPT Dr. Nikunja Swain, South Carolina State University Nikunja Swain is a professor in the College of Science, Mathematics,
More informationIosif Ignat, Marius Joldoș Laboratory Guide 5. Functions. FUNCTIONS in C
FUNCTIONS in C 1. Overview The learning objective of this lab session is to: Understand the structure of a C function Understand function calls both using arguments passed by value and by reference Understand
More informationUIC. C Programming Primer. Bharathidasan University
C Programming Primer UIC C Programming Primer Bharathidasan University Contents Getting Started 02 Basic Concepts. 02 Variables, Data types and Constants...03 Control Statements and Loops 05 Expressions
More informationCOMP 208 Computers in Engineering
COMP 208 Computers in Engineering Lecture 14 Jun Wang School of Computer Science McGill University Fall 2007 COMP 208 - Lecture 14 1 Review: basics of C C is case sensitive 2 types of comments: /* */,
More informationMath 226A Homework 4 Due Monday, December 11th
Math 226A Homework 4 Due Monday, December 11th 1. (a) Show that the polynomial 2 n (T n+1 (x) T n 1 (x)), is the unique monic polynomial of degree n + 1 with roots at the Chebyshev points x k = cos ( )
More informationM4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE
M4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE is to be
More informationMinima, Maxima, Saddle points
Minima, Maxima, Saddle points Levent Kandiller Industrial Engineering Department Çankaya University, Turkey Minima, Maxima, Saddle points p./9 Scalar Functions Let us remember the properties for maxima,
More informationPART 1: SHORT ANSWER QUESTIONS: TOTAL MARKS 40/100
CMPT 102 SAMPLE FINAL SOLUTIONS PART 1: SHORT ANSWER QUESTIONS: TOTAL MARKS 40/100 1. Give a brief algorithm, outlining the following methods a. (5 points) Horner s algorithm for evaluating a polynomial
More informationArrays in C. By Mrs. Manisha Kuveskar.
Arrays in C By Mrs. Manisha Kuveskar. C Programming Arrays An array is a collection of data that holds fixed number of values of same type. For example: if you want to store marks of 100 students, you
More informationLab 10: Disk Scheduling Algorithms
1. Objective Lab 10: Disk Scheduling Algorithms Understand Disk Scheduling Algorithm and read its code for SSTF, SCAN, CSCAN in C, 2. Syllabus try to write other kinds of disk scheduling algorithms such
More informationFundamentals of Computer Programming Using C
CHARUTAR VIDYA MANDAL S SEMCOM Vallabh Vidyanagar Faculty Name: Ami D. Trivedi Class: FYBCA Subject: US01CBCA01 (Fundamentals of Computer Programming Using C) *UNIT 3 (Structured Programming, Library Functions
More informationSample Paper - II Subject Computer Science
Sample Paper - II Subject Computer Science Max Marks 70 Duration 3 hrs Note:- All questions are compulsory Q1) a) What is significance of My Computer? 2 b) Explain different types of operating systems.
More informationF.Y. Diploma : Sem. II [CO/CD/CM/CW/IF] Programming in C
F.Y. Diploma : Sem. II [CO/CD/CM/CW/IF] Programming in C Time : 3 Hrs.] Prelim Question Paper Solution [Marks : 70 Q.1 Attempt any FIVE of the following : [10] Q.1 (a) List any four relational operators.
More informationF.E. Sem. II. Structured Programming Approach
F.E. Sem. II Structured Programming Approach Time : 3 Hrs.] Mumbai University Examination Paper Solution - May 13 [Marks : 80 Q.1(a) Explain the purpose of following standard library functions : [3] (i)
More informationNumerical Methods Lecture 1
Numerical Methods Lecture 1 Basics of MATLAB by Pavel Ludvík The recommended textbook: Numerical Methods Lecture 1 by Pavel Ludvík 2 / 30 The recommended textbook: Title: Numerical methods with worked
More informationApplied Programming and Computer Science, DD2325/appcs15 PODF, Programmering och datalogi för fysiker, DA7011
Applied Programming and Computer Science, DD2325/appcs15 PODF, Programmering och datalogi för fysiker, DA7011 Autumn 2015 Lecture 3, Simple C programming M. Eriksson (with contributions from A. Maki and
More information3.2 - Interpolation and Lagrange Polynomials
3. - Interpolation and Lagrange Polynomials. Polynomial Interpolation: Problem: Givenn pairs of data points x i, y i,wherey i fx i, i 0,,...,n for some function fx, we want to find a polynomial P x of
More informationProblem Solving (Computing) Array and Pointer
CS101 Introduction to computing Problem Solving (Computing) & Array and Pointer A. Sahu and S. V.Rao Dept of Comp. Sc. & Engg. Indian Institute of Technology Guwahati 1 Outline Loop invariant and loop
More informationMAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate
More informationCS 6210 Fall 2016 Bei Wang. Review Lecture What have we learnt in Scientific Computing?
CS 6210 Fall 2016 Bei Wang Review Lecture What have we learnt in Scientific Computing? Let s recall the scientific computing pipeline observed phenomenon mathematical model discretization solution algorithm
More informationThis expression is known as the Newton form of the interpolating polynomial. How do we go about finding the coefficients c i?
Chapter 1 Polynomial Interpolation When you are wrestling for possession of a sword, the man with the handle always wins. Neal Stephenson, Snow Crash The goal of interpolation is to fit a function exactly
More informationNumerical validation using the CADNA library practical work
Numerical validation using the CADNA library practical work F. Jézéquel, J.-L. Lamotte LIP6 Laboratory, P. and M. Curie University, Paris, France Fabienne.Jezequel@lip6.fr, Jean-Luc.Lamotte@lip6.fr February
More informationover The idea is to construct an algorithm to solve the IVP ODE (8.1)
Runge- Ku(a Methods Review of Heun s Method (Deriva:on from Integra:on) The idea is to construct an algorithm to solve the IVP ODE (8.1) over To obtain the solution point we can use the fundamental theorem
More informationProblem # 1. calculate the grade. Allow a student the next grade if he/she needs only 0.5 marks to obtain the next grade. Use else-if construction.
ME 172 Lecture 6 Problem # 1 Write a program to calculate the grade point average of a 3.00 credit hour course using the data obtained from the user. Data contains four items: attendance (30), class test
More informationGovernment Polytechnic Muzaffarpur.
Government Polytechnic Muzaffarpur. Name of the Lab: COMPUTER PROGRAMMING LAB (MECH. ENGG. GROUP) Subject Code: 1625408 Experiment: 1 Aim: Programming exercise on executing a C program. If you are looking
More informationExercises for a Numerical Methods Course
Exercises for a Numerical Methods Course Brian Heinold Department of Mathematics and Computer Science Mount St. Mary s University November 18, 2017 1 / 73 About the class Mix of Math and CS students, mostly
More informationChapter - 3 Complexity of Algorithms for Solution of Simultaneous Linear Equations and Matrix Multiplication
Chapter - Complexity of Algorithms for Solution of Simultaneous Linear Equations and Matrix Multiplication Complexity of Algorithms for Solution of Simultaneous... 4 CHAPTER Complexity of Algorithms for
More informationUNIVERSITY OF TORONTO FACULTY OF APPLIED SCIENCE AND ENGINEERING
UNIVERSITY OF TORONTO FACULTY OF APPLIED SCIENCE AND ENGINEERING APS 105 Computer Fundamentals Midterm Examination October 20, 2011 6:15 p.m. 8:00 p.m. (105 minutes) Examiners: J. Anderson, T. Fairgrieve,
More informationFortran 90 Two Commonly Used Statements
Fortran 90 Two Commonly Used Statements 1. DO Loops (Compiled primarily from Hahn [1994]) Lab 6B BSYSE 512 Research and Teaching Methods The DO loop (or its equivalent) is one of the most powerful statements
More informationProblem Exam Review ER-1. (E & P Exercise 2.4-6, Symbolic Solution)
Name Class Time Math 2250 Maple Project 3: Numerical Methods S2010 Due date: See the internet due dates. Maple lab 3 has three problems L3.1, L3.2, L3.3. References: Code in maple appears in 2250mapleL3-S2010.txt
More informationContents. Sr. No. Title of the Practical: Page no Signature. Gate. OR gate. EX-OR gate. gate. identifying ODD and EVEN number.
Contents Sr. No. Title of the Practical: Page no Signature 01. To Design and train a perceptron for AND Gate. 02. To design and train a perceptron training for OR gate. 03. To design and train a perceptron
More informationUSING SPREADSHEETS AND DERIVE TO TEACH DIFFERENTIAL EQUATIONS
USING SPREADSHEETS AND DERIVE TO TEACH DIFFERENTIAL EQUATIONS Kathleen Shannon, Ph.D. Salisbury State University Department of Mathematics and Computer Science Salisbury, MD 21801 KMSHANNON@SAE.SSU.UMD.EDU
More informationDeveloped By: P.Venkateshwarlu, Alphores Womens Degree College, Karimnagar
B.Sc (Computer Science) 1 sem Practical Solutions 1.Program to find biggest in 3 numbers using conditional operators. # include # include int a, b, c, big ; printf("enter three numbers
More informationCSE100 Principles of Programming with C++
1 Instructions You may work in pairs (that is, as a group of two) with a partner on this lab project if you wish or you may work alone. If you work with a partner, only submit one lab project with both
More informationPrepared by: Shraddha Modi
Prepared by: Shraddha Modi Introduction In looping, a sequence of statements are executed until some conditions for termination of the loop are satisfied. A program loop consist of two segments Body of
More informationSOFTWARE TESTING LABORATORY. I.AMarks:20 Hours/Week: 03 ExamHours: 3 Total Hours: 40 Exam Marks: 80 Number of Lecture Hours/Week: 01I + 02P
SOFTWARE TESTING LABORATORY Subject Code: 15ISL67 I.AMarks:20 Hours/Week: 03 ExamHours: 3 Total Hours: 40 Exam Marks: 80 Number of Lecture Hours/Week: 01I + 02P 1. Design and develop a program in a language
More information5.5 Newton s Approximation Method
498CHAPTER 5. USING DERIVATIVES TO ANALYZE FUNCTIONS; FURTHER APPLICATIONS 4 3 y = x 4 3 f(x) = x cosx y = cosx 3 3 x = cosx x cosx = 0 Figure 5.: Figure showing the existence of a solution of x = cos
More informationMATHS LAB. Lab Manual
MATHS LAB Lab Manual Contents 1 Matrix Operations 3 1.1 Matrix Addition............................. 4 1.2 Matrix Multiplication.......................... 8 1.3 Matrix Transpose............................
More informationover The idea is to construct an algorithm to solve the IVP ODE (9.1)
Runge- Ku(a Methods Review of Heun s Method (Deriva:on from Integra:on) The idea is to construct an algorithm to solve the IVP ODE (9.1) over To obtain the solution point we can use the fundamental theorem
More informationCS6202 - PROGRAMMING & DATA STRUCTURES UNIT I Part - A 1. W hat are Keywords? Keywords are certain reserved words that have standard and pre-defined meaning in C. These keywords can be used only for their
More informationW4260: Modeling the Universe. Lecture 4
W4260: Modeling the Universe Lecture 4 Overview Input and output (I/O) Files Scope Global variables More on functions The art of programming Before starting Program structure/layout Comments Root finding
More informationAPPM/MATH Problem Set 4 Solutions
APPM/MATH 465 Problem Set 4 Solutions This assignment is due by 4pm on Wednesday, October 16th. You may either turn it in to me in class on Monday or in the box outside my office door (ECOT 35). Minimal
More information