homework week 2

Attribution Non-Commercial (BY-NC)

129 views

homework week 2

Attribution Non-Commercial (BY-NC)

- International Future of Mathematics Conference
- Materias FIEC
- Geometric Algebra for Physicists_errata.pdf
- Mathematics Syllabus
- SSC Maths 1 EM March 17 QP Www.gsrmaths.in
- Object using Sparse prototyping
- NDA Coaching in Chandigarh
- mmmockexamDec2013solq2
- khawla saeed h00296836 3rd lesson
- Basic Algebra5
- Equations Practice Precalc
- Basis for Grayscale Images
- Cal145 Directional Derivatives and Gradients of Functions of Three Variables
- Pre Board-Questions CBSE XII Math25012013
- CH5
- Lec01_wrg2
- ans1
- XII-07 3hr Paper
- Undefined Terms in Geometry and Other Related Terms (4th Quarter Lessons in Math) 2k17.
- notas_taylor.pdf

You are on page 1of 3

Please ll out the stencil le named hw2.py. While we encourage you to complete the Ungraded Problems, they do not require any entry into your stencil le.

Problem 1: 1. Write and test a procedure vec select using a comprehension for the following computational problem: input: a list veclist of vectors over the same domain, and an element k of the domain output: the sublist of veclist consisting of the vectors v in veclist where v[k] is zero 2. Write and test a procedure vec sum using the built-in procedure sum() for the following: input: a list veclist of vectors, and a set D that is the common domain of these vectors output: the vector sum of the vectors in veclist. Your procedure must work even if veclist has length 0. Hint: Recall from the Python Lab that sum() optionally takes a second argument, which is the element to start the sum with. This can be a vector. Disclaimer: The Vec class is dened in such a way that, for a vector v, the expression 0 + v evaluates to v. This was done precisely so that sum([v1,v2,... vk]) will correctly evaluate to the sum of the vectors when the number of vectors is nonzero. However, this wont work when the number of vectors is zero. 3. Put your procedures together to obtain a procedure vec select sum for the following: input: a set D, a list veclist of vectors with domain D, and an element k of the domain output: the sum of all vectors v in veclist where v[k] is zero

Problem 2: Write and test a procedure scale vecs(vecdict) for the following: input: A dictionary vecdict mapping positive numbers to vectors (instances of Vec) output: a list of vectors, one for each item in vecdict. If vecdict contains a key k mapping to a vector v , the output should contain the vector (1/k )v

(a)

(b)

Ungraded Problem: Express the line segment in Figure 1(a) using a set of linear combinations. Do the same for the plane containing the triangle in Figure 1(b).

Ungraded Problem: Let a, b be real numbers. Consider the equation z = ax + by . Prove that there are two 3-vectors v1 , v2 such that the set of points [x, y, z ] satisfying the equation is exactly the set of linear combinations of v1 and v2 . (Hint: Specify the vectors using formulas involving a, b.)

Ungraded Problem: Let a, b, c be real numbers. Consider the equation z = ax + by + c. Prove that there are three 3-vectors v0 , v1 , v2 such that the set of points [x, y, z ] satisfying the equation is exactly {v0 + 1 v1 + 2 v2 : 1 R, 2 R} (Hint: Specify the vectors using formulas involving a, b, c.)

Problem 3: Write a procedure GF2_span with the following spec: input: a set D of labels and a list L of vectors over GF (2) with label-set D output: the list of all linear combinations of the vectors in L (Hint: use a loop (or recursion) and a comprehension. Be sure to test your procedure on examples where L is an empty list.)

Problem 4: For each of the following denitions of V , say whether V is a vector space. 1. V = {[x, y, z ] R3 : x + y + z = 0} 2. V = {[x, y, z ] R3 : x + y + z = 1}

Problem 5: For each of the following denitions of V , say whether V is a vector space. 1. V = {[x1 , x2 , x3 , x4 , x5 ] R5 : x2 = 0 and x5 = 0} 2. V = {[x1 , x2 , x3 , x4 , x5 ] R5 : x2 = 0 or x5 = 0}

Problem 6: For each of the following denitions of V , say whether V is a vector space. 1. V is the set of 5-vectors over GF (2) that have an even number of 1s. 2. V is the set of 5-vectors over GF (2) that have an odd number of 1s.

- International Future of Mathematics ConferenceUploaded bythinx
- Materias FIECUploaded bywildpere
- Geometric Algebra for Physicists_errata.pdfUploaded byAnonymous Tph9x741
- Mathematics SyllabusUploaded byKhadija Rv
- SSC Maths 1 EM March 17 QP Www.gsrmaths.inUploaded byRayudu Peyyala
- Object using Sparse prototypingUploaded bynagaidl
- NDA Coaching in ChandigarhUploaded bykaran Singh
- mmmockexamDec2013solq2Uploaded byJoan Yap Lee Fong
- khawla saeed h00296836 3rd lessonUploaded byapi-339934902
- Basic Algebra5Uploaded byAnita Sari
- Equations Practice PrecalcUploaded bylinlinyc
- Basis for Grayscale ImagesUploaded byCNueman
- Cal145 Directional Derivatives and Gradients of Functions of Three VariablesUploaded bymarchelo_chelo
- Pre Board-Questions CBSE XII Math25012013Uploaded byAshok L Joshi
- CH5Uploaded byMaruf_007
- Lec01_wrg2Uploaded byAnonymous 55cH67eIx
- ans1Uploaded byDimples Artiaga
- XII-07 3hr PaperUploaded byrajeshsaran21
- Undefined Terms in Geometry and Other Related Terms (4th Quarter Lessons in Math) 2k17.Uploaded byRuchelle Tindoy Cubero
- notas_taylor.pdfUploaded byBruno Preto
- EMG Gesture Recognition SystemUploaded bynefawaltpint
- Introduction MatlabUploaded byAditya Khedikar
- Math DummyUploaded byJohnSmith
- ex3Uploaded byamit1kumar1barman
- mm-17Uploaded bySomasekhar Chowdary Kakarala
- A Review on Reconstruction Based Techniques for Privacy Preservation of Critical DataUploaded byseventhsensegroup
- Parametric SurfacesUploaded byAldi Gunawan
- Kal Kula TorUploaded bySiti Khajaru'ain
- Solomon HUploaded byLeen Jabban
- middle school course catologueUploaded byapi-338292354

- Complete Listing (Sorted by Title)Uploaded bymildeithbida
- Pool of Radiance itemsUploaded bymildeithbida
- Esperanto dictionary word fileUploaded bymildeithbida
- Finis CeUploaded bymildeithbida
- Paleontology GlossaryUploaded bycurlyfriez
- Grey's Anatomy 02x21 SuperstitionUploaded bymildeithbida
- EL-9900 Handbook Vol1Uploaded bymildeithbida
- 1 - 1 - Introduction (9-36)Uploaded bymildeithbida
- Hw 1 TemplateUploaded bymildeithbida

- [Final] HSC-Maths Board Question Paper With SolutionsUploaded byNeeraj Ramkumar
- MATH ZC234-L3.pptxUploaded bySrikanth D
- Linear CombinationUploaded byEka Yani
- Honors Linear Algebra Hw 3Uploaded byOi Piru
- LinAlg Notes - LeepUploaded byNsdfs Hidhf
- Infinite-dimensional Vector SpacesUploaded bynislam57
- Strategy for Mathematics « Kashish MittalUploaded byKnucasior Bich
- Affine geometryUploaded bySS
- 4-4Uploaded byzjnsrbt
- Vector SpacesUploaded byJayakumar Narayan
- LAweek2.pdfUploaded byjackaccyou
- Cbr Aljabar LinierUploaded byKIKY MALAU
- Question of Life: How many dimensions do we live in?Uploaded bySamuel Ramna Lie
- LADW_2017-09-04Uploaded byGrant Park
- ido_solution03.pdfUploaded byNatasha Roy
- Introduction to Matrix Methods and ApplicationsUploaded byatomoneutrino
- 1 Basis and Dimension Vector SpacesUploaded byLutfi Amin
- Linear Topological SpacesUploaded byAndrew Hucek
- dela_4-1.pdfUploaded byaa
- Math 15-1 week 1Uploaded byIan William De Las Alas
- VectorsUploaded byAditya Bansal
- 4-General Vector SpacesUploaded byslowjams
- Vmls SlidesUploaded byTrương Thiên
- Dimension in Linear AlgebraUploaded bySandeep Saini
- Gelfand - Lectures on Linear AlgebraUploaded byVenice Tan
- 50 Questions on Linear Algebra for NET and GATE Aspirants - Gonit Sora (গণিত চ'ৰা)Uploaded byRasel Islam
- CC 2 AlgebraUploaded byshilpa_rehal
- Linear Algebra 1Uploaded byPurvesh Kumar
- Princeton MAT 217 Honor Linear Algebra 2013Uploaded byChung Chee Yuen
- p52 GoldmanUploaded byJerónimo Cardano