# Command lookfor followed by a key word (which can be anything and not only a command) gives help related to the key word.

Save this PDF as:

Size: px
Start display at page:

Download "Command lookfor followed by a key word (which can be anything and not only a command) gives help related to the key word."

## Transcription

1 1 Using MatLab Help Command help provides a short description of all functions. For example, to get help on the diary command, type help diary. For more information type help -i diary. Command lookfor followed by a key word (which can be anything and not only a command) gives help related to the key word. One can also use the help in the Menu bar. Or one can visit the MatLab web site at 2 Getting started with MatLab 2.1 Saving your work It is useful to save all work in a separate text file. command One can do it using the >> diary name.txt at the beginning. Here name.txt is an arbitrary filename. When you type >> diary off the commands will be saved in name.txt. 2.2 Simple computations You can use MatLab as a calculator: if you type >> 2+2 then MatLab will answer ans = 4 Here ans is a variable, where the answer of the last computation is stored. It can be used to perform subsequent computation. For example, try the following >> sqrt(5) and then >> ans^2+ans^4 You can also save the result of your computation in another variable. Try >> a=2+2 1

2 2.3 The dialogue between the user and the system Generally, every line of input is one command. If your command is too long, you can split it into two rows using... >> ans = 55 You can also write several commands in one line, separating them with commas. If you want to suppress answers of MatLab after some commands, you can type ; at their end. For example, the following sequence of commands computes sin 1.3π + tan 2.75 log 3.4 tanh 2.75 sin 1.3π + tan 2.75 log 3.4 tanh 2.75 >> x=sin(1.3*pi)/log(3.4); >> y=sqrt(tan(2.75)/tanh(2.75)); >> z=(x+y)/(x-y) We did not put a semicolon at the end of the last command in order to see the result. You can use semicolon to separate commands which appear in one line. Then also the answers to the commands followed by a semicolon will be suppressed. You can browse through the list of commands which you entered before, by pressing the up and down arrow keys. Another useful feature is the incremental search: if you want to recall the previous command calculating some square root, press Control-R and type sqrt, and the computer will display the previous command which contains the text sqrt. If you press Control-R again, the computer will look for earlier commands with the text sqrt. Some other standard Unix idiom are also supported. The command quit ends the current session. 3 Basics 3.1 Numbers and their formats You can use exponential notation to write numbers. Try >>13e3 Try the following sequence of commands: >> 1/3 >> format long >> ans >> format short >> ans 2

3 >> format short e >> ans >> help format >> format >> ans The command format compact produces a more compact output, and format loose is used to go back to the default. Complex numbers: >> 0.5+2i You can also use the exponential notation: >> 2.5e e-3i You can also use j instead of i. You must not type a space before the i. abs(x) is Try the following commands: >> 1/0 >> 0/0 Inf is infinity and and NaN is not a number. 3.2 Elementary functions Here is a short list of available functions in MatLab a+b, a-b addition, subtraction a*b, a/b, a^b multiplication, division, exponentiation pi, i the constants π and i = 1 exp(x), log(x) e x and the (natural) logarithm of x pow2(x) 2 x log2(x) log 2 x log10(x) log 10 x sin(x), cos(x), tan(x) sine, cosine, tangent (x should be in radians) asin(x), acos(x), atan(x) inverse trigonometric functions sqrt(x) square root real(z) real part of a complex number imag(z) its imaginary part abs(z) z angle(z) argument of z (in radians from π to π) conj(z) conjugate z Try >> abs(3+4i) >> angle(1+i) >> 4*ans 3

4 Other useful functions: floor(x) computes the largest integer smaller than or equal to x. >> floor(pi) ans = 3 ceil(x) computes the smallest integer larger than or equal to x. >> ceil(pi) ans = 4 round(x) is the nearest integer to x: >> round(3.5) ans = 4 >> round(3.3) ans = 3 lcm and gcd compute the least common multiple and the greatest common divisor of their arguments, respectively. >> gcd(24, 36) ans = 12 >> lcm(24, 36) ans = Variables Any sequence of letters, digits, and underscores can be used as the name of a variable, as long as the first character is a letter. Variable names are case sensitive, so variable_two and VARIABLE_TWO and Variable_Two are three di.erent variables. It is not possible to use variables which have not been assigned a value. If you want to know what variables are already used, type who. Command whos gives more information. You can clear a variable using command clear Try the following sequence of commands: >> a=2*2 >> b=1+1 >> c=2^2 >> who >> whos >> clear a >> who >> clear >> who 4

5 You can also save values of all your current variables by the command >> save work in a binary file work.mat. Here work is also an arbitrary name. Next time you can use >> load work to load the saved variables. 4 Vectors and Matrices 4.1 Entering vectors and matrices >> v = [ 1, 2, 3, 5, 8 ] You get the same result entering >> v = [ ] A convenient way to enter some vectors is provided with the range notation. Try to guess the meaning of the following commands >> 1:10 >> 1:2:10 >> linspace(1,10,5) You can also enter column vectors. Compare: >> a=[ ] >> b=[1; 2; 3; 4; 5] >> whos Try entering matrices. >> A = [ 1, 2, 3; 4, 5, 6; 7, 8, 9 ] You can also use a more intuitive way: >> A = [ >> >> ] You can also see the size of the matrices: >> size(a) >> size(b) >> size(a) >> c=1 >> size(c) 5

6 You see that vectors and even numbers are considered to be matrices of size 1 n, n 1 or 1 1. Another important function is >> length(a) We can build up vectors and matrices from smaller vectors and matrices. >> v=[ ] >> [v; v; v; v] Try now >> [ b [ v; v; v; v ] b ] 4.2 Index expressions Take >> p = [ ] You can get particular elements of a vector >> p(5) We can retrieve the last entry as follows: >> p(end) instead. Similarly, p(end-1) denotes the penultimate entry of p. You can also use vectors of indices: >> p([ ]) Try also >> p(1:5) >> p(1:2:end) >> p(end:-1:1) Let us proceed to matrices, like the following >> A = [ ; ; ] Matrices require two indices, so to get the entry in the second row an third element, we use >> A(2,3) We get a whole row by using a colon as column index. >> A(2,:) 6

7 Similarly, we can get the third column of A with the expression A(:,3). Try the next commands and explain its effect >> A(:, 4:-1:1) >> A([1 3], 2:4) You can change some entries of vectors and matrices: >> p(5) = 100 We can even remove the fifth entry, by assigning the empty matrix to it. >> p(5) = [] Type >> p(10) = 99 >> p(20) = 99 The same game can be played with matrices: >> A = [ ; ; ] >> A(2,3) = 66 >> A(1:2,2:3) = [ -1, -2; -3, -4 ] >> A([1 3],:) = A([3 1],:) 4.3 Basic operations Recall that size returns a vector with two elements: the number of rows, and the number of columns. >> A = [ ; ; ] >> size(a) Using an extra argument, we can get the number of rows with size(a,1) and the number of columns with size(a,2). Complex conjugate transpose of a matrix is formed by putting a after the matrix. >> A If you want just to transpose the matrix, you have to use A.. Of course, this does not make a difference for real matrix. Addition of matrices: >> A = [ ]; >> B = [ ]; >> A + B 7

8 If we add a scalar to a matrix (or a vector), it is added to every element in turn. >> A + 2 If we add two matrices whose size does not match, we get an error. Substraction works exactly the same. The operator * denotes matrix multiplication >> A * B If you want to do element-by-element multiplication, you have to use the.* operator. >> A.* B The same goes for division and exponentiation: if you want to perform these operations element-by-element, you have to prefix the operator with a dot. Hence, we can make the row vector (1, 1 2, 1 3,..., 1 8 ) like this >> 1./ (1:7) The exception to the rule that you need a dot if you want to calculate on an element-by-element basis, is when you combine scalars and matrices. On the one hand, 2*A doubles all entries in A, and A/2 halves them. But, on the other hand, 1/A denotes the matrix inverse, and A^2 and 2^A are matrix exponentials. Most functions which acts on scalars, are mappable. This means that if you apply them to a matrix or a vector, they are applied to every element in turn. So if we have a complex-valued matrix, we can get the imaginary part of every element by apply imag to it: >> imag([ 2 5+i; -i 7+2i ]) And we can get the square root of the numbers 1, 2,..., 7 as follows >> sqrt(1:7) The function reshape(a,m,n) takes the entries of the matrix (or vector) A, and puts them into an m n matrix. The entries are retrieved, and stored, from top to bottom and from the left to the right, in that order. >> reshape([ ], 2, 3) If A is an m n matrix, then the matrix returned by repmat(a, p, q) has dimensions (mp) (nq) and is constructed out of copies of A. For instance, >> repmat([1 2; 3 4], 2, 3) ans =

9 Some more commands to construct matrices are ones(m,n) for constructing an m n matrix with all ones, zeros(m,n) for an all-zero matrix, and eye(m,n) for the matrix with ones on the diagonal and zeroes elsewhere. Furthermore, rand(m,n) produces a random matrix with elements uniformly distributed between 0 and 1, and randn(m,n) does the same but with the standard normal distribution. All these functions can also be called with one argument, to get a square matrix with the specified dimension. The final command in this section is diag. In it simplest form, it extracts the (main) diagonal of a matrix: >> diag([1 2 3; 4 5 6; 7 8 9]) It is possible to specify which diagonal to use by adding a second argument. To get the diagonal immediately above the main diagonal, ask for diag(a,1). The diagonal above that is called diag(a,2) etc. To get subdiagonals, use a negative index. >> diag([1 2 3; 4 5 6; 7 8 9], -1) But we can also go the other way around. Given a vector v, the command diag(v) returns a matrix whose (main) diagonal is given by v, while the offdiagonal elements are zero. Again we can add a second argument, to specify another diagonal. >> diag([ ]) + diag([10 20], 2) 5 Plotting Try the following commands: >> ezplot( sin(x) ) >> ezplot( sin(x),[0,8*pi]) A convenient way to plot data is using plot command, which plots vectors against vectors. >> t = 0:0.2:1 >> y = t.^3 >> plot(t,y) You can put command shg (meaning show the graph ) after the plot command to bring the current figure window to the front. Try to understand what the following sequence of command will produce and then try to run them. >> t = linspace(0,8*pi,200); >> x = t.*cos(t); >> y = t.*sin(t); >> plot(x, y), shg 9

10 MATLAB will erase the first plot when the second plot command is executed. If you want to put two plots on one picture, use command hold on to hold the plots. Use hold off to alow MATLAB erase previous plots. 10

### Using MATLAB for Systems Calculations 1. Basics Eric W. Hansen rev. CRS 6/03

Using MATLAB for Systems Calculations. Basics Eric W. Hansen rev. CRS 6/0 Introduction MATLAB (MATrix LABoratory) is a software package designed for efficient, reliable numerical computing. Using MATLAB

### MATLAB. functions. Overview

MATLAB Functions 3 Overview In this chapter we start studying the many, many, mathematical functions that are included in MATLAB. Some time will be spent introducing complex variables and how MATLAB handles

### 2+2 Just type and press enter and the answer comes up ans = 4

Demonstration Red text = commands entered in the command window Black text = Matlab responses Blue text = comments 2+2 Just type and press enter and the answer comes up 4 sin(4)^2.5728 The elementary functions

### b) lower case always use lower case for all matlab commands. This is what matlab recognizes.

1 Matlab 1) Fundamentals a) Getting Help for more detailed help on any topic, typing help, then a space, and then the matlab command brings up a detailed page on the command or topic. For really difficult

### MATLAB PRIMER. Open Matlab from your Programs directory or by clicking on its icon.

MATLAB PRIMER To get the MATLAB program, go to software.geneseo.edu. On the Mac or Windows side, click on academic. Among the many programs you will find the latest version of MATLAB. For help, you may

### Introduction to Matlab

Introduction to Matlab Social Science Research Lab American University, Washington, D.C. Web. www.american.edu/provost/ctrl/pclabs.cfm Tel. x3862 Email. SSRL@American.edu Course Objective This course provides

### INTRODUCTION TO MATLAB FOR ENGINEERING STUDENTS

INTRODUCTION TO MATLAB FOR ENGINEERING STUDENTS David Houcque Northwestern University (version 1.2, August 2005) Contents 1 Tutorial lessons 1 1 1.1 Introduction.................................... 1 1.2

### Lab1:IntroductiontoMATLAB

EE 3102: Lab 1 1 Lab1:IntroductiontoMATLAB 1. Warm-up MATLAB is a high-level programming language that has been used extensively to solve complex engineering problems. The language itself bears some similarities

### MATLAB Basics MATLAB numbers and numeric formats

MATLAB Basics MATLAB numbers and numeric formats All numerical variables are stored in MATLAB in double precision floating-point form. (In fact it is possible to force some variables to be of other types

### A Quick Tutorial on MATLAB. Gowtham Bellala

A Quick Tutorial on MATLAB Gowtham Bellala MATLAB MATLAB is a software package for doing numerical computation. It was originally designed for solving linear algebra type problems using matrices. It s

### MATLAB Workshop 3 - Vectors in MATLAB

MATLAB: Workshop - Vectors in MATLAB page 1 MATLAB Workshop - Vectors in MATLAB Objectives: Learn about vector properties in MATLAB, methods to create row and column vectors, mathematical functions with

### Using MATLAB for Linear Algebra

Using MATLAB for Linear Algebra This is a collection of basic information and techniques for using MATLAB to explore matrix properties, manipulations, and identities. These only address numerical (x is

### Matlab Notes for Student Manual

Matlab Notes for Student Manual What is Matlab? - Stands for Matrix Laboratory - Used for programming, 2D & 3D graphing, data analysis, and matrix manipulation There are two primary windows in Matlab,

### Linear Algebra and TI 89

Linear Algebra and TI 89 Abdul Hassen and Jay Schiffman This short manual is a quick guide to the use of TI89 for Linear Algebra. We do this in two sections. In the first section, we will go over the editing

### (!' ) "' # "*# "!(!' +,

MATLAB is a numeric computation software for engineering and scientific calculations. The name MATLAB stands for MATRIX LABORATORY. MATLAB is primarily a tool for matrix computations. It was developed

### Chapter 5 Functions. Introducing Functions

Chapter 5 Functions 1 Introducing Functions A function is a collection of statements that are grouped together to perform an operation Define a function Invoke a funciton return value type method name

### Introduction to MATLAB (2.29 Spring 06)

Introduction to MATLAB (2.29 Spring 06) 1. Assignment of Variables (i.e. scalars, vectors, matrices) 2. Mathematical Operations 3. Built-in Variables and Functions 4. Input/Output Data Files 5. Basic Graphics

### u = [ 2 4 5] has one row with three components (a 3 v = [2 4 5] has three rows separated by semicolons (a 3 w = 2:5 generates the row vector w = [ 2 3

MATLAB Tutorial You need a small numb e r of basic commands to start using MATLAB. This short tutorial describes those fundamental commands. You need to create vectors and matrices, to change them, and

### Some notes on SCILAB

Some notes on SCILAB STEP 1 Get starting To run Scilab on Unix/Linux O.S. type in the window the word: scilab You get a Scilab window on your computer screen. This Scilab window has a menu (File, Control,

### MAT 275 Laboratory 1 Introduction to MATLAB

MAT 275 Laboratory 1 Introduction to MATLAB MATLAB is a computer software commonly used in both education and industry to solve a wide range of problems. This Laboratory provides a brief introduction to

### Texas Instruments TI-83, TI-83 Plus Graphics Calculator I.1 Systems of Linear Equations

Part I: Texas Instruments TI-83, TI-83 Plus Graphics Calculator I.1 Systems of Linear Equations I.1.1 Basics: Press the ON key to begin using your TI-83 calculator. If you need to adjust the display contrast,

### A Mathematica Crib Sheet (But It's OK, You'll Need One)

A Mathematica Crib Sheet (But It's OK, You'll Need One) Mathematica is a full-featured programming language, with over 1500 commands built-in or in standard "packages". But it's like speaking English:

### MatLab Basics. Now, press return to see what Matlab has stored as your variable x. You should see:

MatLab Basics MatLab was designed as a Matrix Laboratory, so all operations are assumed to be done on matrices unless you specifically state otherwise. (In this context, numbers (scalars) are simply regarded

### Final Exam Review: VBA

Engineering Fundamentals ENG1100 - Session 14B Final Exam Review: VBA 1 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi Final Programming Exam Topics Flowcharts Assigning Variables

### MATHEMATICS (CLASSES XI XII)

MATHEMATICS (CLASSES XI XII) General Guidelines (i) All concepts/identities must be illustrated by situational examples. (ii) The language of word problems must be clear, simple and unambiguous. (iii)

### AMATH 352 Lecture 3 MATLAB Tutorial Starting MATLAB Entering Variables

AMATH 352 Lecture 3 MATLAB Tutorial MATLAB (short for MATrix LABoratory) is a very useful piece of software for numerical analysis. It provides an environment for computation and the visualization. Learning

### Formula Editor Overview

Formula Editor Overview Trade-Ideas offers a number of standard formulas. These can be used in a number of places, including filtering a list of stocks, sorting a list of stocks, or displaying data about

### Kerby Shedden October, 2007. Overview of R

Kerby Shedden October, 2007 Overview of R R R is a programming language for statistical computing, data analysis, and graphics. It is a re-implementation of the S language, which was developed in the 1980

### TI-92 GRAPHING CALCULATOR BASIC OPERATIONS

TI-92 GRAPHING CALCULATOR BASIC OPERATIONS by Carolyn Meitler Concordia University Wisconsin B-1 Getting Started Press ON to turn on the calculator. Press 2nd 6 to get the MEMORY screen (shown at the right).

### Start by picking a number, any number. Enter it into Matlab by typing

Chapter Iteration Iteration is a key element in much of technical computation. Examples involving the Golden Ratio introduce the Matlab assignment statement, for and while loops, and the plot function.

### Introduction to MATLAB

Introduction to MATLAB 1 Lecture Series by CEPSTRUM Presented by Pratik Kotkar & Akash Baid Topics.. What is MATLAB?? Basic Matrix Operations Script Files and M-files Some more Operations and Functions

VistaPro User Guide Custom Variable Expressions IES Virtual Environment Copyright 2015 Integrated Environmental Solutions Limited. All rights reserved. No part of the manual is to be copied or reproduced

### Introductory Course to Matlab with Financial Case Studies

University of Cyprus Public Business Administration Department Introductory Course to Matlab with Financial Case Studies Prepared by: Panayiotis Andreou PhD Candidate PBA UCY Lefkosia, September 003 Table

### SMART Notebook Math Tools. User s Guide

SMART Notebook Math Tools User s Guide The content of this guide is provided for informational purposes only and is subject to change without notice. Trademark Notice SMART Board, SMART Notebook, the SMART

### Beginner s Matlab Tutorial

Christopher Lum lum@u.washington.edu Introduction Beginner s Matlab Tutorial This document is designed to act as a tutorial for an individual who has had no prior experience with Matlab. For any questions

### Matrices. Chapter 4. Matlab began as a matrix calculator.

Chapter 4 Matrices Matlab began as a matrix calculator. The Cartesian coordinate system was developed in the 17th century by the French mathematician and philosopher René Descartes. A pair of numbers corresponds

### TI-86 Graphing Calculator Keystroke Guide

TI-86 Graphing Calculator Keystroke Guide In your textbook you will notice that on some pages a key-shaped icon appears next to a brief description of a feature on your graphing calculator. In this guide

### CME 192: Introduction to Matlab

CME 192: Introduction to Matlab Matlab Basics Brett Naul January 7, 2015 What is Matlab? Computing & programming environment Visualization and mathematical prototyping tool Why Matlab? Comparison with

### Dynamics and Vibrations Mupad tutorial

Dynamics and Vibrations Mupad tutorial School of Engineering Brown University This tutorial introduces the MATLAB mupad environment for symbolic calculations. You should work through the MATLAB tutorial

### Financial Econometrics MFE MATLAB Introduction. Kevin Sheppard University of Oxford

Financial Econometrics MFE MATLAB Introduction Kevin Sheppard University of Oxford October 21, 2013 2007-2013 Kevin Sheppard 2 Contents Introduction i 1 Getting Started 1 2 Basic Input and Operators 5

### Floating Point Numbers

Floating Point Numbers Objectives Use floating point literals Use floating point operators Declare floating point variables Declare and initialize floating point variables Use assignment operator for floating

### Signal Processing First Lab 01: Introduction to MATLAB. 3. Learn a little about advanced programming techniques for MATLAB, i.e., vectorization.

Signal Processing First Lab 01: Introduction to MATLAB Pre-Lab and Warm-Up: You should read at least the Pre-Lab and Warm-up sections of this lab assignment and go over all exercises in the Pre-Lab section

### Introduction to Matlab: Application to Electrical Engineering

Introduction to Matlab: Application to Electrical Engineering Houssem Rafik El Hana Bouchekara Umm El Qura University (version 1, Februray 2011) 1 Contents 1 CHAPTER 1... 7 1.1 TUTORIAL LESSONS 1... 7

### Matlab Tutorial: Basics

Matlab Tutorial: Basics Topics: 1. Downloading Matlab 2. Opening Matlab 3. Entering Data 4. The Command Window 5. m-files 6. Running m-files 7. Add directory to path 8. Getting help with Matlab functions

### A Brief Primer on Matrix Algebra

A Brief Primer on Matrix Algebra A matrix is a rectangular array of numbers whose individual entries are called elements. Each horizontal array of elements is called a row, while each vertical array is

### Chapter 6 Operators and Flow Control

Chapter 6 Operators and Flow Control 6.1. Relational and Logical Operators MATLAB has a logical data type, with the possible values 1, representing true, and 0, representing false. Logicals are produced

### Squares and Square Roots

SQUARES AND SQUARE ROOTS 89 Squares and Square Roots CHAPTER 6 6.1 Introduction You know that the area of a square = side side (where side means the length of a side ). Study the following table. Side

### TI-83 Plus Graphing Calculator Keystroke Guide

TI-83 Plus Graphing Calculator Keystroke Guide In your textbook you will notice that on some pages a key-shaped icon appears next to a brief description of a feature on your graphing calculator. In this

### Lecture 2 Mathcad basics and Matrix Operations

Lecture 2 Mathcad basics and Matrix Operations Announcements No class or lab Wednesday, 8/29/01 I will be posting a lab worksheet on the web site on Tuesday for you to work through on your own. Operators

### MATLAB Tutorial for Calculus III - Part 1

MATLAB Tutorial for Calculus III - Part 1 Contents 1 Introduction to MATLAB 1 1.1 Logging into the system...... 2 1.2 Starting out with MATLAB.... 2 2 MATLAB as scientific calculator 3 2.1 Introduction

### CITS2401 Computer Analysis & Visualisation

FACULTY OF ENGINEERING, COMPUTING AND MATHEMATICS CITS2401 Computer Analysis & Visualisation SCHOOL OF COMPUTER SCIENCE AND SOFTWARE ENGINEERING Lectures 4 and 5 Introduction to Matlab Material from MATLAB

### Introduction to Matlab

Introduction to Matlab Ela P ekalska, Marjolein van der Glas Pattern Recognition Group, Faculty of Applied Sciences Delft University of Technology January 2002 S comments to ela@ph.tn.tudelft.nl Contents

### Mathematical Procedures

CHAPTER 6 Mathematical Procedures 168 CHAPTER 6 Mathematical Procedures The multidisciplinary approach to medicine has incorporated a wide variety of mathematical procedures from the fields of physics,

### 29 Wyner PreCalculus Fall 2016

9 Wyner PreCalculus Fall 016 CHAPTER THREE: TRIGONOMETRIC EQUATIONS Review November 8 Test November 17 Trigonometric equations can be solved graphically or algebraically. Solving algebraically involves

### Mathematics of Cryptography

CHAPTER 2 Mathematics of Cryptography Part I: Modular Arithmetic, Congruence, and Matrices Objectives This chapter is intended to prepare the reader for the next few chapters in cryptography. The chapter

### A Primer on Using PROC IML

Primer on Using PROC IML SS Interactive Matrix Language (IML) is a SS procedure. IML is a matrix language and has built-in operators and functions for most standard matrix operations. To invoke the procedure,

### Intro to Numerical Methods

Intro to Numerical Methods APAM E43() ASSIGNMENT SOLUTIONS (INTRODUCTION TO MATLAB) Due: Tuesday, February 2, 23 Problem [9 points]: a) Use MATLAB to produce a single plot displaying the graphs of the

### Introduction to MATLAB

Introduction to MATLAB Matlab is a program that allows you to carry out computations in a straightforward manner, removing much of the tedium involved in programming. It is extremely useful for creating

### Appendix: Tutorial Introduction to MATLAB

Resampling Stats in MATLAB 1 This document is an excerpt from Resampling Stats in MATLAB Daniel T. Kaplan Copyright (c) 1999 by Daniel T. Kaplan, All Rights Reserved This document differs from the published

### Mathematics of Cryptography Modular Arithmetic, Congruence, and Matrices. A Biswas, IT, BESU SHIBPUR

Mathematics of Cryptography Modular Arithmetic, Congruence, and Matrices A Biswas, IT, BESU SHIBPUR McGraw-Hill The McGraw-Hill Companies, Inc., 2000 Set of Integers The set of integers, denoted by Z,

### The Advantage Testing Foundation Solutions

The Advantage Testing Foundation 013 Problem 1 The figure below shows two equilateral triangles each with area 1. The intersection of the two triangles is a regular hexagon. What is the area of the union

### How long is the vector? >> length(x) >> d=size(x) % What are the entries in the matrix d?

MATLAB : A TUTORIAL 1. Creating vectors..................................... 2 2. Evaluating functions y = f(x), manipulating vectors. 4 3. Plotting............................................ 5 4. Miscellaneous

### Matrix Algebra in R A Minimal Introduction

A Minimal Introduction James H. Steiger Department of Psychology and Human Development Vanderbilt University Regression Modeling, 2009 1 Defining a Matrix in R Entering by Columns Entering by Rows Entering

### THE COMPLEX EXPONENTIAL FUNCTION

Math 307 THE COMPLEX EXPONENTIAL FUNCTION (These notes assume you are already familiar with the basic properties of complex numbers.) We make the following definition e iθ = cos θ + i sin θ. (1) This formula

### TI-83 Plus GRAPHING CALCULATOR BASIC OPERATIONS. Carolyn Meitler Concordia University Wisconsin

TI-83 Plus GRAPHING CALCULATOR BASIC OPERATIONS by Carolyn Meitler Concordia University Wisconsin B-1 Getting Started Press ON to turn on the calculator. Press 2nd + to get the MEMORY screen (shown at

### Tutorial on MATLAB. MATH-600: Optimization and Simulation Winter 2012 Bilal Farooq February 24, 2012

Tutorial on MATLAB MATH-600: Optimization and Simulation Winter 2012 Bilal Farooq February 24, 2012 1. Introduction MATLAB is a specialized tool developed by MathWorks for performing numerical computations

### A MATLAB Tutorial. Ed Overman Department of Mathematics The Ohio State University

(August 30, 2012 3:16 p.m.) A MATLAB Tutorial Ed Overman Department of Mathematics The Ohio State University Introduction......................... 3 1 Scalar Calculations...................... 6 1.1 Simple

### Higher. Functions and Graphs. Functions and Graphs 18

hsn.uk.net Higher Mathematics UNIT UTCME Functions and Graphs Contents Functions and Graphs 8 Sets 8 Functions 9 Composite Functions 4 Inverse Functions 5 Eponential Functions 4 6 Introduction to Logarithms

### The graph of. horizontal line between-1 and 1 that the sine function is not 1-1 and therefore does not have an inverse.

Inverse Trigonometric Functions The graph of If we look at the graph of we can see that if you draw a horizontal line between-1 and 1 that the sine function is not 1-1 and therefore does not have an inverse.

### SOME EXCEL FORMULAS AND FUNCTIONS

SOME EXCEL FORMULAS AND FUNCTIONS About calculation operators Operators specify the type of calculation that you want to perform on the elements of a formula. Microsoft Excel includes four different types

### Introduction to Matrices for Engineers

Introduction to Matrices for Engineers C.T.J. Dodson, School of Mathematics, Manchester Universit 1 What is a Matrix? A matrix is a rectangular arra of elements, usuall numbers, e.g. 1 0-8 4 0-1 1 0 11

### 1 Gaussian Elimination

Contents 1 Gaussian Elimination 1.1 Elementary Row Operations 1.2 Some matrices whose associated system of equations are easy to solve 1.3 Gaussian Elimination 1.4 Gauss-Jordan reduction and the Reduced

### ( % . This matrix consists of \$ 4 5 " 5' the coefficients of the variables as they appear in the original system. The augmented 3 " 2 2 # 2 " 3 4&

Matrices define matrix We will use matrices to help us solve systems of equations. A matrix is a rectangular array of numbers enclosed in parentheses or brackets. In linear algebra, matrices are important

### 5: Magnitude 6: Convert to Polar 7: Convert to Rectangular

TI-NSPIRE CALCULATOR MENUS 1: Tools > 1: Define 2: Recall Definition --------------- 3: Delete Variable 4: Clear a-z 5: Clear History --------------- 6: Insert Comment 2: Number > 1: Convert to Decimal

### 4. MATRICES Matrices

4. MATRICES 170 4. Matrices 4.1. Definitions. Definition 4.1.1. A matrix is a rectangular array of numbers. A matrix with m rows and n columns is said to have dimension m n and may be represented as follows:

### 6.6 The Inverse Trigonometric Functions. Outline

6.6 The Inverse Trigonometric Functions Tom Lewis Fall Semester 2015 Outline The inverse sine function The inverse cosine function The inverse tangent function The other inverse trig functions Miscellaneous

### MATH 304 Linear Algebra Lecture 4: Matrix multiplication. Diagonal matrices. Inverse matrix.

MATH 304 Linear Algebra Lecture 4: Matrix multiplication. Diagonal matrices. Inverse matrix. Matrices Definition. An m-by-n matrix is a rectangular array of numbers that has m rows and n columns: a 11

### Fundamentals of Programming. Laboratory 5 Methods. General-purpose and user - defined methods

Fundamentals of Programming Laboratory 5 Methods. General-purpose and user - defined methods What is a method? Block of code that receives its own identifier - i.e. can be executed using its name Different

### Linear Algebra Notes for Marsden and Tromba Vector Calculus

Linear Algebra Notes for Marsden and Tromba Vector Calculus n-dimensional Euclidean Space and Matrices Definition of n space As was learned in Math b, a point in Euclidean three space can be thought of

### A Short Guide to R with RStudio

Short Guides to Microeconometrics Fall 2013 Prof. Dr. Kurt Schmidheiny Universität Basel A Short Guide to R with RStudio 1 Introduction 2 2 Installing R and RStudio 2 3 The RStudio Environment 2 4 Additions

### Introduction to MATLAB

Introduction to MATLAB What is MATLAB? MATLAB ( MATrix LABoratory ) is a tool for numerical computation and visualization. The basic data element is a matrix, so if you need a program that manipulates

### Preface. Barry Kissane and Marian Kemp Murdoch University, Western Australia

Preface Over 40 years, the scientific calculator has evolved from being a computational device for scientists and engineers to becoming an important educational tool. What began as an instrument to answer

### Chapter 8. Some Useful Public domain Softwares

Chapter 8 Some Useful Public domain Softwares Key words: Public domain softwares, Unix, Gromacs, Gamess, installation of Scilab, Help menu, roots of equations, interpolation, matrix operations, diagonalization,

### pp. 4 8: Examples 1 6 Quick Check 1 6 Exercises 1, 2, 20, 42, 43, 64

Semester 1 Text: Chapter 1: Tools of Algebra Lesson 1-1: Properties of Real Numbers Day 1 Part 1: Graphing and Ordering Real Numbers Part 1: Graphing and Ordering Real Numbers Lesson 1-2: Algebraic Expressions

### Maple Basics Arithmetic operations in Maple

MA310 MAPLE Example Sheet 1 Maple is a comprehensive Symbolic Computation System or Computer Algebra System for advanced Mathematics. These phrases refer to Maple s capability to manipulate information

### C Programming Language

C Programming Language Lecture 4 (10/13/2000) Instructor: Wen-Hung Liao E-mail: whliao@cs.nccu.edu.tw Extension: 62028 Building Programs from Existing Information Analysis Design Implementation Testing

### Simple C++ Programs. Engineering Problem Solving with C++, Etter/Ingber. Dev-C++ Dev-C++ Windows Friendly Exit. The C++ Programming Language

Simple C++ Programs Engineering Problem Solving with C++, Etter/Ingber Chapter 2 Simple C++ Programs Program Structure Constants and Variables C++ Operators Standard Input and Output Basic Functions from

### Review of Matlab for Differential Equations. Lia Vas

Review of Matlab for Differential Equations Lia Vas 1. Basic arithmetic (Practice problems 1) 2. Solving equations with solve (Practice problems 2) 3. Representing functions 4. Graphics 5. Parametric Plots

CHAPTER 1 Introduction to Mathcad Mathcad is a product of MathSoft inc. The Mathcad can help us to calculate, graph, and communicate technical ideas. It lets us work with mathematical expressions using

### Inverse Trigonometric Functions - Trigonometric Equations

Inverse Trigonometric Functions - Trigonometric Equations Dr. Philippe B. Laval Kennesaw STate University April 0, 005 Abstract This handout defines the inverse of the sine, cosine and tangent functions.

### Texas Instruments TI-92 Graphics Calculator Systems of Linear Equations

Part IV: IV.1 Texas Instruments TI-92 Graphics Calculator Systems of Linear Equations IV.1.1 Basics: Press the ON key to begin using your TI-92 calculator. If you need to adjust the display contrast, first

### Introduction to the TI-83/TI-83+ and TI-84+ for College Algebra.

Introduction to the TI-83/TI-83+ and TI-84+ for College Algebra. Turning it on and off: To turn the calculator on, press the ON key in the lower left corner. You should now see a flashing rectangle, the

### Inverses and powers: Rules of Matrix Arithmetic

Contents 1 Inverses and powers: Rules of Matrix Arithmetic 1.1 What about division of matrices? 1.2 Properties of the Inverse of a Matrix 1.2.1 Theorem (Uniqueness of Inverse) 1.2.2 Inverse Test 1.2.3

### Inverse Trigonometric Functions

SECTION 4.7 Inverse Trigonometric Functions Copyright Cengage Learning. All rights reserved. Learning Objectives 1 2 3 4 Find the exact value of an inverse trigonometric function. Use a calculator to approximate

### The Desmos Graphing Calculator. Desmos in On Core

The Desmos Graphing Calculator The Desmos online calculator allows users to graph mathematical functions/equations and to manipulate the graphs on a computer, tablet, or whiteboard. Users can enter functions

### Introduction to MS Excel

Introduction to MS Excel For General Physics I & II Laboratory Microsoft Excel 97 SR-2 Under MS Win 95, 98, NT, or 2000 PHY 103-104 General Physics I & II Laboratory David L. Bridges, Le Moyne College

### Basic Concepts in Matlab

Basic Concepts in Matlab Michael G. Kay Fitts Dept. of Industrial and Systems Engineering North Carolina State University Raleigh, NC 769-7906, USA kay@ncsu.edu September 00 Contents. The Matlab Environment.