Chapter 2
1. Give R assignment statements that set the variable z to
(a) xa
b
(b) (xa )b
(c) 3x3 + 2x2 + 6x + 1 (try to minimise the number of operations required)
(d) the digit in the second decimal place of x (hint: use floor(x) and/or %)
(e) z + 1
2. G

Memorial University of Newfoundland
Department of Mathematics and Statistics
_
Assignment 4
Mathematics 1000-081
Winter 2015
_
To submit: Use the electronic Dropbox on D2L, Dropbox #33 in the Math building or mail
to DELTS.
Please show all work and use a

74 / W
+ O
I / 0
[1400/ oz.
5c
8CL
[I'M->43
0'96
0AA
By A
ND
l. I:
E<">A
I A _.) U )3 PH PR p+K+FR Pff mmw
O I I 'I I 7
0 l 0
l o r 0
. O 0 I
cfw_Oi/)8 = fi K +[7K
(PD/)2): PfKt Ff,
!
i
1
I
1
%
l
l
i
i
1
4
i
1
l
!
i
I! NP FAR Pu)? PM)? [7425
1
J
!
cfw_P M

STAT 3585: Computational Statistics
Assignment 1, Due: Wednesday, October 5, 2016
1. Give R assignment statements that set the variable z to
a) 3x3 + 2x2 + 6x + 1 (try to minimize the number of operations required)
b) the digit in the second decimal place

MATH 2320 Discrete Mathematics
Winter 2016
Assignment #1
Instructions
Answer each question completely; justify your answers.
This assignment is due at 17:00 on Wednesday January 20th in Assignment Box #44.
The following symbols will be used to represent

Modern Algebra: An Introduction, 6th edition
Errata
(1, 2) should be cfw_1, 2.
p.14.
Problem 1.6:
p.19.
Problem 2.21: should be .
p.32.
Paragraph following Definition:
p.51.
Problem 8.17: 120 should be 180 , and 180 should be 120 .
p.53.
Example 9.3, line

Updated Final Exam Format
*Note: Section E has been removed.
Part A Short answer
This section will involve short answers & fill in the blank
questions.
Sample question: The more we can _ climate change,

Chapter 5 Review Questions
Answer the following multiple choice questions:
1. What do we call a sample that consists of the entire population?
(a) A stratum
(b) A multistage sample
(c) A mistake. A sample can never be the entire population.
(d) A census
(

AP Statistics
Chapter 5 Review Questions
Name _
Is the right hand generally stronger than the left in right-handed
people? You can crudely measure hand strength by placing a bathroom
scale on a shelf with the end protruding and then squeezing the scale
be

Stat 3585: Computational Statistics
Programming in R
Sept 19, 2013
Looping with While
The while command has the following form:
for (logical expression) cfw_
expressions
.
When executed the while command, the logical expression is
evaluated rst. If it is

Stat 3585: Computational Statistics
Programming in R
Sept 17, 2013
Writing Codes
You may use a text editor for writing the codes
Windows version of R (or mac) has built in editor and les
written through this editor has an extension of .R (.r). For
unix /

Stat 3585: Computational Statistics
Assignment # 2: Due 22 Oct 2013 (in class)
Note: You should submit a printout that show answers / plots to all the questions together with the R codes. If you need any help, please contact the instructor.
Question 1: Th

STAT 3585 : Computational Statistics
PROGRAMMING WITH FUNCTIONS
Functions are one of the building blocks for large programs they are essential tool for
structuring complex algorithms. In other programming languages, procedures and
subroutines play the sam

Stat 3585: Computational Statistics
Input and Output in R
Sept 24, 2013
Text
So far we see how we can input the numeric mode and logical
mode (TRUE / FALSE). A string of character is said to be of
mode character.
Character strings are denoted using either

Stat 3585: Computational Statistics
Assignment # 1: Due 3 Oct 2013 (in class)
Note: You should submit a printout that show answers / plots to all the
questions together with the R codes. If you need any help, please contact
the instructor.
Question 1: Fin