CS 121 Engineering Computation Lab Lab 5

Slides:



Advertisements
Similar presentations
Sunday, Dec. 14 (the day before the first day of final exams) TAs Courtney Staycoff and Josh Kressmer will be on duty in the open lab (room 203) to answer.
Advertisements

CS122 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Winter 2010.
Please CLOSE YOUR LAPTOPS, and turn off and put away your cell phones, and get out your note-taking materials. Today’s daily quiz will be given at the.
Math 266.
Please open your laptops, log in to the MyMathLab course web site, and open Daily Quiz 9. Remember: If you have time left out of your five minutes after.
If you did the extra credit assignment, please turn in your worksheets now. No late submissions will be accepted. Your score on this worksheet will be.
Please open your laptops, log in to the MyMathLab course web site, and open Quiz 2.6/9.1. IMPORTANT NOTE: If you have time left after you finish the problems.
Quiz 2 Results: Grade Scale
CS 115 TA Orientation Fall More students! Enrollment up to sections + night about 22% CS majors (50 on 8/16)
Next class session: Test 1 on all sections covered from Chapters 1 and 2 Remember: If you haven’t yet passed the Gateway Quiz, you need to review your.
Please open your laptops, log in to the MyMathLab course web site, and open Quiz 3.6B. IMPORTANT NOTE: If you have time left after you finish the problems.
CS 123 Computational Lab IIl Spring 2008 Department of Computer Science Drexel University Copyright by the authors. Permission is given for students and.
Please CLOSE YOUR LAPTOPS, and turn off and put away your cell phones, and get out your note-taking materials. Today’s daily quiz will be given at the.
Welcome to Math 110 Online Section 001, Summer 2015.
Log into your account Go to Locate MAT 2401 and the First Day PPT.
CS 121 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University October 6-10, 2008 ©By the author. All rights reserved.
CS 121 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University January 5-9, 2009 ©By the author. All rights reserved.
CS 122 Engineering Computation Lab Lab 2 Dan De Sousa and Tim Cheeseman Department of Computer Science Drexel University April 2009 ©By the author. All.
Please CLOSE YOUR LAPTOPS, and turn off and put away your cell phones, and get out your note- taking materials.
CS 123 Computational Lab IIl Spring 2008 Department of Computer Science Drexel University Copyright by the authors. Permission is given for students and.
Welcome to CS 115! Introduction to Programming. Class URL
ECEN 301Discussion #1 – Syllabus1 All Sections MWF 1:00 – 1:50 PM 256 CB Lecture: MW Recitation: F Labs: M or Th Instructor: Prof. David Long Office: CB.
CS 121 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Fall 2009 ©By the author. All rights reserved. Permission.
Welcome to CS 221! First Course in Computer Science for Engineers.
Welcome to CS 115! Introduction to Programming. Class URL ~mjspra2/ 115summer/
CS122 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Spring 2011.
Welcome to CS 115! Introduction to Programming. Class URL Write this down!
CS 121 Engineering Computation Lab Lab 4 Department of Computer Science Drexel University Summer 2009 ©By the author. All rights reserved. Permission is.
CS123 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Spring 2010.
CS 121 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Fall 2009 ©By the author. All rights reserved. Permission.
CS 121 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Summer, 2009 ©By the author. All rights reserved.
CS 121 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Fall 2009 ©By the author. All rights reserved. Permission.
CS 123 Engineering Computation Lab Lab 2 Dan De Sousa and Bruce Char Department of Computer Science Drexel University April 2009 ©By the author. All rights.
CS 121 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Fall 2010 ©By the author. All rights reserved. Permission.
CS122 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Winter 2012.
Please CLOSE YOUR LAPTOPS, and turn off and put away your cell phones, and get out your note- taking materials.
CS122 / CS123 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Summer 2011 ©By the author. All rights reserved.
CS 121 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Fall 2011 ©By the author. All rights reserved. Permission.
CS 121 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Fall 2010 ©By the author. All rights reserved. Permission.
Please CLOSE YOUR LAPTOPS, and turn off and put away your cell phones, and get out your note- taking materials.
Physics 1B3-summer Lecture 11 Welcome to Physics 1B03 !
CS 139 – Algorithm Development MS. NANCY HARRIS LECTURER, DEPARTMENT OF COMPUTER SCIENCE.
CS 121 Engineering Computation Lab Lab 3 Department of Computer Science Drexel University Summer 2009 ©By the author. All rights reserved. Permission is.
CS123 Engineering Computation Lab Lab 1 Section Instructor: Mark Boady Content By: Bruce Char Department of Computer.
CS123 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Spring 2012.
CS 121 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Winter, 2011 ©By the author. All rights reserved.
CS 122 Engineering Computation Lab Lab 4 Dan De Sousa and Bruce Char Department of Computer Science Drexel University Summer 2009 ©By the author. All rights.
CS 123 Computational Lab IIl Spring 2008 Department of Computer Science Drexel University Copyright by the authors. Permission is given for students and.
REMINDER: If you haven’t yet passed the Gateway Quiz, make sure you take it this week! (You can find more practice quizzes online in the Gateway Info menu.
CS 121 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Fall 2010 ©By the author. All rights reserved. Permission.
CS122 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Winter 2010.
CS 121 Engineering Computation Lab Lab 4 Department of Computer Science Drexel University February 16-20, 2008 ©By the author. All rights reserved. Permission.
CS 122 Engineering Computation Lab Lab1 Bruce Char Department of Computer Science Drexel University Summer 2009 ©By the author. All rights reserved. Permission.
Teachers: If you hand back Test 4 today, tell your class you will review it with them in class on Thursday when you do the review lecture on Chapters 6,
Please CLOSE YOUR LAPTOPS, and turn off and put away your cell phones, and get out your note-taking materials.
CS122 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Winter 2013.
REMINDER: If you haven’t yet passed the Gateway Quiz, make sure you take it this week! (You can find more practice quizzes online in the Gateway Info menu.
All important information will be posted on Blackboard
CLOSE Please YOUR LAPTOPS, and get out your note-taking materials.
Welcome to General Biology II!
CS122 Engineering Computation Lab Lab 4
CS 121 Engineering Computation Lab Lab 3
CS 121 Engineering Computation Lab Lab 2
CS123 Engineering Computation Lab Lab 4
We’ll be spending minutes talking about Quiz 1 that you’ll be taking at the next class session before you take the Gateway Quiz today.
Welcome to CS 1010! Algorithmic Problem Solving.
MA Fall 2016 Instructor: Matt Weaver Office: MATH 615
Welcome to CS 1301! Principles of Programming I.
CS 121 Engineering Computation Lab Lab 3
MA Fall Instructor: Tim Rolling -Office: MATH 719 -
Presentation transcript:

CS 121 Engineering Computation Lab Lab 5 Department of Computer Science Drexel University March 2-6, 2009 ©By the author. All rights reserved. Permission is given to CS121 Fall 2008 staff and students to use and reproduce these notes for their own use. 1 1 1 1 1 1

Your class instructor and TA Instructor for this section: Tim Cheeseman Office: UC 147 (CLC) Email: tcheeseman@drexel.edu Your TAs are: 061 – Cem, Lloyd 561 – Pat Note that verification sheet requires you to put down instructor’s name. 2 2 2 2 2 2

Outline Overview of lab Wrapup: Details of End of term Proficiency Exam 3 3 3

Week 7 and 8 retrospective Lab 4: Seventh week Multiplotting Import Data Piecewise functions Map Quiz 4: Eighth week Getting stuck on problems during the quizzes? Use the Cyber Learning Center (UC147)‏ Use the discussion board for short questions 4 4 4 4 4 4

Lab 5 Part 1 Nested Structures Part 2 Point Plot Part 3 Models 5 5 5 5

Nested Structures – List of Lists Prelab Reading – Chapter 6 – Section 6.2 (Lab 4) A list, set or sequence can have items that can be any type of Maple entity. The items do not have to be all numbers. Lists, sets and sequences can also be items of a list, set or sequence. 6 6 6 6 6 6

Nested Structures – List of Lists Example : L1:=[[1,100],[2,99],[3,98],[4,82]] L1[1] would be [1,100] L1[1][2] would be 100 2. L2:=[seq([i,i],i=1..5)] [[1,1],[2,2],[3,3],[4,4],[5,5]] 7 7 7 7 7 7

Point Plot Prelab Reading – Chapter 6 – Section 6.4 (Lab 4) Plot individual points in a two dimensional plot. Plotting points by using pointplot in the plots package Loading directive with(plots) plots[pointplot] function The argument is a list of lists (Part 1) Each element of the list is a coordinate The coordinates of the point are entered as a list of values:[xvalue, yvalue] 8 8 8 8 8 8

Demo Plotting with Points plots[pointplot]([[1, 2]], color = "red", symbol = "diamond", symbolsize = 36, thickness = 5)‏ 9 9 9 9 9 9

Demo Plotting with Points plots[pointplot]([[1, 2], [1, 3], [2, 3], [2, 3]], symbol = "cross", symbolsize = 25, thickness = 5)‏ 10 10 10

Demo Plotting with Points plots[pointplot]([seq([i,evalf(log(i))],i=1..100)],color=“Indigo”); 11 11 11 11 11 11 11

Demo Plotting with Points Vertical Flip of Last Graph plots[pointplot]([seq([100-i,evalf(log(i))],i=1..100)],color=“Indigo”); 12 12 12 12 12 12 12

Plotting rank versus grade Have a list of grades from last time Sort them in decreasing order sortedL :=sort(L,`>`) Create a list of points [ [1, grade], [2, grade], [3,grade].... ] using the seq command ranksAndGradesList := [seq( [i, sortedL[i]],i=1..nops(sortedL))] Use pointplot to plot the points 13 13 13 13 13 13 13

Augmented plot We want a graph with not just the points, but also horizontal lines at grade=90 and grade=80 to show who got A's, B's, and C's or below. We do this by creating three separate plots, and then using display to show them all together. Idea: rather than doing a plot and showing it immediately, assign it to a name p1 := plot (... ) p2 := plot (....) p3 := plot (... ) plots[display]([p1,p2,p3]) 14 14 14 14 14 14 14

Demo of Point Plot – Part 1.1 RanksAndGradesList is a list of lists with the format [[Rank1,Grade1][Rank2,Grade2]] 15 15 15 15 15 15 15

Mathematical Models Modeling a situation Give names to features and objects Describe relationships through mathematical expressions and functions Determine what you want to know about the situation Determine what you can know from computations based on what is easy or given about the situation “evaluate a function” “solve an equation” (or fsolve)‏ Visualize (plot) relationships Find the largest, smallest, average, etc. 16 16 16 16 16 16 16

Modeling and engineering design Once you have a model, you can pick a certain configuration. If your model is good, the configuration can be described through giving values to parameters in the model. Determine the implications of your design decisions (how much... how fast.... when... cost...) by computing based on your design decisions. Sometimes if you have a design inspiration, you have to change the model -- redo the equations or formulae, or do new computations because you want to know other things. 17 17 17 17 17 17 17

Modeling example: designing a movie theater Relation between x (distance from screen), Height from base of wall bv (= 6) Height of screen hv (=28) Viewing angle theta (determined by formula)‏ 18 18 18 18 18 18 18

Models We have a formula for the viewing angle (it was in a quiz problem, and is in the lab directions), but we want to understand how the angle changes as we move back in rows. Clearly the viewing angle is also affected by the height of the base and the height of the screen. We want to understand how all three of these affect things. We can look at some different situations by changing values of the parameters and rerunning our explanatory calculations to see what happens. 19 19 19 19 19 19 19

Demo Model The Viewing angle from a seat that is x feet away from the screen in given by the formula Define a function V(x,bv,hv) which describes the viewing angle Test the function V(8,4,5) HomeAngle:=evalf(V(8,4,5)) 20 20

Modeling angles for different rows Use the seq function to create a list to represent the distance of different rows from the screen [5,8,11,…,92] seatList:=[seq(5+(i-1)*3,i=1..30)] Map the V function to the list to calculate the viewing angles of different rows Map(V,seatList,5,20) Compute the limited-precision value of the viewing angle for each element in the list seatAngles:=evalf(%) 21 21

Visualizing seat angle as a function of distance x in rows Plot the seatAngles values in a point plot. 22 22

Fancier plotting Combine that plot with the plot of the continuous function. pcont:=plot(V(x,5,20),x=5..90) pcont 23 23

Home Theatre VS Movie Rows Superimpose the horizontal line y= homeAngle to get an easy graphical comparison of the viewing angles at the home theatre and the movies pconst:=plot(homeAngle,x=5..90,color=green) plots[display]([p,pcost,pconst]) 24 24

Is the theater competitive with what you can get at home? Design a piecewise function that counts home many rows provide a viewing angle that is at least as good as "homeAngle", and prove that it works. This function tells us how many rows we can actually put into the theater where every row is competitive with the home theater viewing angle. 25 25

How many rows are as good as a home theater? Build a filter function that counts row if they are good as homeAngle Map the filter function onto the list of viewingAngles, to get a list of zeroes and ones. Sum the list of zeroes of ones to get the total count 26 26

Finishing up – save your work Save worksheets onto the Desktop. You can call them Lab5Part1, Lab5Part2, etc. Or you could put all the work into one worksheet and just call it Lab 5. Submit a copy to Blackboard site as evidence that you did the lab. Email a copy to yourself and/or your lab partners as an attachment so you can look at what you did for review purposes later. 27 27 27 27 27 27

Turn in your verification sheet Make sure your name/user id/section number/ date,time/instructor name are on the verification sheet. Get the verification sheet signed for all parts you completed and hand it in. 28 28 28 28 28 28

Weeks 9 and 10 Take Quiz 5 Friday March 6 (Week 9) – Friday, March 13 (Week 10) Maple TA server down for maintenance 9-10am and briefly at 3pm each day during the week 29 29 29 29 29 29

Week 11 – Proficiency Exam In class exam, during regular class hour The exam counts for approximately 36% of your final grade 30 30 30 30 30 30

Week 11 – Proficiency Exam For the exam, you will do two tests in Maple TA. One quiz will have How did I do? turned on. One part will have it turned off. The part where it is turned off will be the multiple choice or similar questions where getting feedback would make the question useless from an evaluation viewpoint. 31 31 31 31 31 31

Week11 – Final Exam Questions for the exam will be drawn from past quizzes, and from a small set of new questions. This means that everyone will know what the questions could be, ahead of time. They will also be able to prepare a plan for answering them, ahead of time. 32 32 32 32 32 32

Practicing All questions will be posted on Maple TA in practice form starting Friday March 6 and running through the exam period. Lab Solutions will be available on Blackboard Vista at that time. For exam security, we will turn off access to the practice quizzes while exams are being run in the labs. Access to Blackboard Vista will be turned off during the exam, as well. 33 33 33 33 33 33

Exam Security During the exam You must use the laptop (be it Mac or Windows) provided. You may not use your own computer. You may use Maple Maple TA Browse www.cs.drexel.edu/complab/cs121/fall2008, which has copies of the lab directions and lecture notes. No notes or other aids Blackboard access to the course turned off during the exam 34 34 34 34 34 34

Exam security Computer usage will be monitored, both by visual checks by course staff and by software monitoring built into the computers you use. 35 35 35 35 35 35

A reminder about cheating Unauthorized access to information for the exam will be a violation of the Academic Honesty policy. So will accessing unauthorized information non- electronically or any other form of cheating. The minimum penalty will be a reduction in the final grade for the course. We reserve the right to impose more severe penalties, including, a course grade of F with no opportunity to withdraw, or to begin proceedings to expel you from the university. If you have concerns about your grade for the course, talk to your instructor about your situation. 36 36 36 36 36 36

Final Exam Policy If you have a conflict or are unable to attend the scheduled exam due to a reasonable medical or personal excuse, you should contact your section instructor and arrange an alternative time as soon as possible. If you miss your exam and delay contacting your instructor until after the proficiency exam week has passed, our policy will be to give you a zero for the exam. 37 37 37 37 37 37

See you next term in CS 122 38 38 38 38 38 38