0 1,8, 27, 64,..., 1000. 1,-1,-1,-100. 1,0,3,0,5, 0, 7,...,0, 49. 1,3,6, 10, 15, . Σ1,..., 210 [look up ?cumsum]. .... * 1, 2, 2, 3, 3, 3, 4, ..., 9, 10,..., 10. [Hint: type ?seq, and re 10 times

Linear Algebra: A Modern Introduction
4th Edition
ISBN:9781285463247
Author:David Poole
Publisher:David Poole
Chapter1: Vectors
Section1.2: Length And Angle: The Dot Product
Problem 8EQ: In Exercises 7-12, find u for the given exercise, and give a unit vector in direction of u. Exercise...
icon
Related questions
Question

Need codes in R lang for all sub questions

Exercise 2.3. Create the following vectors in R using seq() and rep().
(i) 1, 1.5, 2, 2.5,..., 12
(ii) 1,8, 27, 64,. 1000.
....
1
(iii) 1, −½, ½, -, ... 100
-
(iv) 1,0,3,0,5, 0, 7, ..., 0, 49.
(v) 1,3, 6, 10, 15, ...,1,..., 210 [look up ?cumsum].
(vi)* 1,2,2, 3, 3, 3, 4, ..., 9, 10, ..., 10. [Hint: type ?seq, and read about
10 times
the times argument.]
Transcribed Image Text:Exercise 2.3. Create the following vectors in R using seq() and rep(). (i) 1, 1.5, 2, 2.5,..., 12 (ii) 1,8, 27, 64,. 1000. .... 1 (iii) 1, −½, ½, -, ... 100 - (iv) 1,0,3,0,5, 0, 7, ..., 0, 49. (v) 1,3, 6, 10, 15, ...,1,..., 210 [look up ?cumsum]. (vi)* 1,2,2, 3, 3, 3, 4, ..., 9, 10, ..., 10. [Hint: type ?seq, and read about 10 times the times argument.]
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Linear Algebra: A Modern Introduction
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
Trigonometry (MindTap Course List)
Trigonometry (MindTap Course List)
Trigonometry
ISBN:
9781337278461
Author:
Ron Larson
Publisher:
Cengage Learning
Elementary Linear Algebra (MindTap Course List)
Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:
9781305658004
Author:
Ron Larson
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage