Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2014
6.1
Which of the following is an example of a price celling or price cap? A regulation requires
cable service to be provided for no more than $30 a month. Price cap is a government
regulation that pla
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2016
Computing for Math and Stats
Lecture 5
Matrix Operations
Most regular arithmetics operations work for
matrices and vector same way
You can add two matrices (or vectors)
You can multiply them, too
As l
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2016
Computing for Math and Stats
Lecture 6.
Input Output
All programs need some form of input output
We have seen some rudimentary kinds of both
Need to input data
From the keyboard (mainly for testing/de
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2016
Computing for Math and Stats
Lecture 7.
Plotting
Matlab has many plotting commands
The vanila version (plot) accepts 2 arguments: the X
coordinate and the Y coordinate
Accepts a string of specifiers:
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2016
Computing for Math and Stats
Lecture 9.
Conditional execution
We often want our program to decide whether to
execute one command or another (or none)
The absolute value of a real number x is x if posi
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2016
Computing for Math and Stats
Lecture 2
Using Variables
The simplest use for Matlab is to play with
formulas
We can use it as a very advanced calculator
No input, no output, just a simple program
Mainl
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2016
Computing for Math and Stats
Lecture 7.
The save and load Commands
Matlab allows one to save matrices and retrieve
them
Typically used to load data collected and save
the result of a computation to pu
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2016
Electrical Engineering and Computer Science
CSE 1560
Sample Midterm
Mon. Feb 8, 2016
Answer all questions in the space provided
Make sure that you have 4 pages
Student Last Name: _
Student Given Name:
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2014
THEORY OF DESIGN
In the quest for order,
rationalism, creativity, and
beauty
The search for design purpose
and meaning
Order is basic. There can be no freedom without it. Craig Ellwood
Order relates t
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2014
Ludwig Mies Van der Rohe
One of the greatest architect of the
modern era.
Mies van der Rohe, German American
architect(18861969)
Miess design works produced one of the greatest impacts on the twentie
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2014
Designers of impact
An American design Icon, Frank Lloyd Wright
Organic architecture seeks superior sense of use and a finer sense
of comfort, expressed in organic simplicity.
Frank Lloyd Wright is on
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2014
Robert Maillart (18421840)
A bridge engineer and the master of structural
reinforced concrete.
Robert Maillart
The Swiss born civil
engineer revolutionized
the use of concrete
reinforcement. His brid
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2014
Notable Designers of impact2
featuring
Douglas Cardinal
Douglas Cardinal
Douglas Cardinal is a Canadian aboriginal
architect whose career work has added a new
vocabulary to the Canadian architecture l
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2014
MECHANICS OF DEFORMABLE BODIES
Summary of Notes
CHAPTER 10: ENERGY METHODS
EXTERNAL WORK AND STRAIN ENERGY
External Work and Strain Energy
Deflection of joints on a truss or points on a beam
Ene
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2014
MECHANICS OF DEFORMABLE
BODIES
Summary of Notes
MECHANICS OF DEFORMABLE
BODIES
CHAPTER 1: STRESS, STRAIN AND
MECHANICAL PROP. OF MATERIALS
MECHANICS OF DEFORMABLE BODIES
MECHANICS OF DEFORMABLE BO
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2014
MECHANICS OF DEFORMABLE BODIES
Summary of Notes
CHAPTER 4: BENDING
BENDING
The deck of this bridge has been designed on the basis of its ability to
resist bending stress.
SHEAR AND MOMENT DIAGRAM
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2016
Computing for Math and Stats
Lecture 4
Creating Matrices
Matrices can be created like arrays.
We can specify all the elements explicitly arranged
in rows
A = [1 2 3; 4 5 6; 7 8 9]
We can specify them
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2016
Computing for Math and Stats
Lecture 3
Working directory
Matlab, like most other software has a current
working directory, aka current folder
Most operations on files (read, write) assume
that the fil
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2016
Computing for Math and Statistics
Intro
Matlab
Numerical computing environment
Programming language
Proprietary system
Extensible
Easy to start using
Main strength: Linear Algebra (matrices),
numerica
CS 310 Spring 2016
2016 Beck Hasti
Sample Questions for Exam 1
The following are meant to give you some examples of questions that might be asked on the first
exam. The sample exam questions do not r
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2015
Name: _
Student #: _ Section: _
York University
Faculty of Science and Engineering
Department of Computer Science and Engineering
CSE1520.03  Computer Use: Fundamentals
Fall 2005 Final Examination
Tu
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2015
Summer 2009 CSE 1520A
Test #2
SOLUTIONS
Part A: True/False  WRITE the entire word for full marks. [10 Marks]
Blue = TRUE and Black = FALSE
1. _ A cell in a spreadsheet can contain only raw data.
2. _
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2016
Computing for Math and Stats
Lecture 10.
Other forms of ifelseend
Ifelseif.elseifelseend
Switchcase
Not necessary but convenient
The for loop
One of the most common loops
Especially for numeri
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2016
Final exam 5/11/2011
Name: _
Sample: CDS130 Final exam (PART I)
The final exam consists of two sections. The first section is a closedbook paper exam
(60 minutes); and the second section involves use
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2016
Computing for Math and Stats
Lecture 18
3D Surfaces
To plot a surface we have to
Create the 2D structure
Map the 2D structure to 3D
We can plot with
Mesh
Surf
Meshz (create a curtain around the pl
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2016
Computing for Math and Stats
Lecture 13.
Remember, Remember
th
the 5 of November
Matlab also has anonymous functions
Nothing to do with the Anonymous group
These are simple functions defined on the fl
Introduction to Computing for Mathematics and Statistics
EECS 1560

Winter 2016
Computing for Math and Stats
Lecture 12.
Computing with Loops
Loops are used to do repetitive things
Some of them involve doing the same thing on
many different elements of an array
Often these can be