MACM 316 Computing Assignment 1
1) sin(0) returns a zero in matlab, whereas sin() results in 1.224646799147353e16 (in radians).
Algebraically both sin(0) and sin() should result in zero; however, matlab uses an approximate value
of (3.141592653589793), w
%
%
%
%
%
MACM 316  Computing Assignment 1
Floating Point Arithmetic
Description: Performs nfold squarerooting following by squaring of
the number x
File name: FloatPt.m
clear
format long
n=1;
st=0.001; % Define a stepsize
x=0:st:5; % x is a row vector
+
How to Study for your Midterm
Exam
Week 8
Review
+
Week 8
No more Journals
After the midterm exam: animation Wk10Wk12
Final project (30%)
Today
Final Project
Midterm Review and Q&A session
+
Final Project
+
Final Project Examples
Stop motion: https:/yo
MACM 316 Assignment 9
Please read the Guidelines for Assignments first. This is available in Canvas.
Problems are not to be submitted. There are no quizzes on these problems. These are
suggestions for final exam preparation.
Feel free to use the Canvas
MACM 316  Part 5.I: Numerical Differentiation and
Integration
Polynomials
polynomial
how
lagrange form
RXH I
Cx
ax;yft
x
o
) (x

xD
f
"
C
s K)
)
KNEE
WII
f
+
"
GW)
da f
+
Page 1
"
( SW
)
HYTHE
MIAs

)
Xixoth
( his small )
fkoththh.tn/zf'
'
(s
)
.
0

r
Computing Assignment 6
Test Dataset
Traning dataset
The Training of the computer:
We can see the black line given by the equation in my graph shows that it separates the red and blue
points. The colors of points above the line is red, and below the black
clear
close all
for n = [34 42 48 52 65 71]
st=0.001; % Define a stepsize
x=0:st:5; % x is a row vector of numbers between 0 and 1 of increments st
y=x;
for i=1:n
y=nthroot(y,2);
end
for i=1:n
y=y.^2; % The '.' here means the squaring is carried out on ea
IP fragmentation, reassembly
example:
length ID fragflag
=4000 =x
=0
4000 byte
datagram
MTU = 1500
bytes
one large datagram becomes
several smaller datagrams
1480 bytes in
data field 20 O/H
1480 bytes in
data field 20 O/H
offset
=0
offset =
1480/8
1040 by
Topic 7
Textbook Reference: Ch 19
Normalization
Normal Forms
Functional Dependencies
BCNF, 3NF
Normalization
Desirable database characteristics
Database design, revisited
Normal Forms
First Normal Form
Second Normal Form
Third Normal Form
BoyceCo
Topic 8
Textbook Reference: Ch 25.1 25.3
Data Warehouse
Decision Support
OLAP
Business Intelligence
Multidimensional Expressions
Introduction
 OLTP
Traditional DBMSs are used by organizations for maintaining data to record
day to day operations
Online
Name: Maoshun Shang
Student ID: 301280479
CMPT 371 Lab 1 Report
Name: Maoshun Shang
Student ID: 301280479
Name: Maoshun Shang
Student ID: 301280479
Answers:
1. DHCP is sent over UDP
2. The time datagram is shown below, and the ports number are the same as
_._.+_bwWWWWWWW m _ mmmmmm , M , m n .
AAAAAAAA m . W W. 45mgwi>+ A2520? \~ A100 11:.7AX@_:
KiECfL_/g:0231'Wim;"'"IW'KZfWTWW
WWWWmWmQWWW;:+;E~gii 2 cfw_DC 175;: WWW 480 Chapter 10 Recurrence Relations
EXAMPLE 10.36
For n 3 2, suppose that there are n peo
Midterm 2 ()
MACM 201  D100 Spring 2017
Instructor: Dr. Chauve
March 15, 2017, 12:30 a.m. 1:20 p.m.
Name:
(please print)
family name
given name
SFU ID:
@sfu.ca
student number
SFUemail
Signature:
Instructions:
1. Do not open this booklet until told to do
f ac u lty of sci ence
d ep ar tment of m athemat ics
MATH 8954 Fall 2010
Course Schedule
MACM 201 Discrete Mathematics II
Lecture outline: Recurrences relations: introduction, firstorder recurrences
Week
Date
Sections
from FS2009
Part/ References
Topic
Macm201
Assignment 4 Solutions
Section 10.1
Section 10.2
Section 10.3
MATH 8954 Fall 2010
Course Schedule
f acu lty of s ci ence
de par t ment of ma t hem ati c
MATH 8954 Fall 2010
Course Schedule
f ac u lty of sci ence
d ep ar tment of m athemat ics
MACM 201 Discrete Mathematics II
Quiz date: Wednesday February 22
Week
Date
Sectionsby Wednesday
Part/ References
Topic/Sections
Notes/Speaker
Complete
this assignm
MATH 8954 Fall 2010
Course Schedule
f ac u lty of sci ence
d ep ar tment of m athemat ics
MACM 201 Discrete Mathematics II
Textbook solutions.
Question
Week
Date
1
2
3
4
5
10.2.4.
The solution
was given in the
solution of assignment
4. This is the case
MATH 8954 Fall 2010
Course Schedule
f ac u lty of sci ence
d ep ar tment of m athemat ics
MACM 201 Discrete Mathematics II
Textbook questions solutions.
Question
Week
Date
11.2.6.
Sections
from FS2009
1
Sept 7
I.1, I.2, I.3
2
14
I.4, I.5, I.6
3
21
II.1,
Macm201
Assignment 3 Solutions
Section 11.2
Section 12.1
Section 12.2
MATH 8954 Fall 2010
Course Schedule
f acu lty of s ci ence
de par t ment of ma t hem ati c s
Comments on the textbo
Midterm 2 ()
MACM 201  D100 Spring 2017
Instructor: Dr. Chauve
March 15, 2017, 12:30 a.m. 1:20 p.m.
Name:
(please print)
family name
given name
SFU ID:
@sfu.ca
student number
SFUemail
Signature:
Instructions:
1. Do not open this booklet until told to do
Macm201
Assignment 6 Solutions
Section 9.2
Section 10.4
MATH 8954 Fall 2010
Course Schedule
f acu lty of s ci ence
de par t ment of ma t hem ati c s
MACM 201 Discrete Mathematics II
Comments on the textbook solutions.
Wee
MATH 8954 Fall 2010
Course Schedule
f ac u lty of sci ence
d ep ar tment of m athemat ics
MACM 201 Discrete Mathematics II
Summary: introduction to graphs and trees
Week
Date
Sectionsthe notion
Part/ References
Notes/Speaker
Graphs.
We introduced
of subg
MATH 8954 Fall 2010
Course Schedule
f ac u lty of sci ence
d ep ar tment of m athemat ics
MACM 201 Discrete Mathematics II
Quiz date: Wednesday February 29
Week
Date
Sections
References
Topic/Sections
Notes/Speaker
Complete
this assignment
by Part/
Wedne
MATH 8954 Fall 2010
Course Schedule
f ac u lty of sci ence
d ep ar tment of m athemat ics
MACM 201 Discrete Mathematics II
Summary: introduction to recurrences
Week
Date see much
Sections
Part/ References
Topic/Sections
Notes/Speaker
We
did not
this week
MATH 8954 Fall 2010
Course Schedule
f ac u lty of sci ence
d ep ar tment of m athemat ics
MACM 201 Discrete Mathematics II
Quiz date: Wednesday March 8
Week
Date
Sectionsby Wednesday
Part/ References
Topic/Sections
Notes/Speaker
Complete
this assignment
MACM 316 Assignment 8
Due Date: August 2nd, at 11pm.
You must upload both your code and your report on Canvas. The assignment is due at 11:00pm. I
have set the due time in Canvas to 11:05pm and if Canvas indicates that you submitted late, you
will be give
MACM 316  Part 4.I: Approximation and Interpolation
Page 1
MACM 316  Part 4.I: Approximation and Interpolation
nodes
fix )
,
,
fk
.
)
,
t
13
)
.
.
.
,
,
xz
, ,
.
.
.
.
.
.
xn
fun )
continuous
0
t
0
w
a
Xmax
Xrnin
Interpolation
noisy
Page 1
e
t
least
squ