CS 121 Engineering Computation Lab Lab 4 Department of Computer Science Drexel University February 16-20, 2008 ©By the author. All rights reserved. Permission.

Slides:



Advertisements
Similar presentations
CS123 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Spring 2012.
Advertisements

CS122 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Winter 2010.
Calc III Math Lab Spring Introduction Teaching Assistant names Policies –Online:
Instructor Dr. Ken Rodham –3370 TMCB – –Office Hours: By Appointment.
MicroLab™ and Calibration Curves
Today’s quiz on 8.2 A Graphing Worksheet 1 will be given at the end of class. You will have 12 minutes to complete this quiz, which will consist of one.
Please open your laptops, log in to the MyMathLab course web site, and open Daily Quiz 16. IMPORTANT NOTE: If you have time left out of your five minutes.
Please close your laptops and turn off and put away your cell phones, and get out your note-taking materials. Today’s daily homework quiz will be given.
Please close your laptops and turn off and put away your cell phones, and get out your note-taking materials. Today’s daily 5-minute quiz will be given.
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.
CS123 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Spring 2010.
Please open Daily Quiz 34. A scientific calculator may be used on this quiz. You can keep your yellow formula sheets out when you take the quiz. Remember.
CS105 Lab 1 – Introduction Section: ??? TA: ??? ??? Announcements CITES Accounts Compass Netfiles Other Administrative Information CS105 Fall
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 1150 – Lab #3 – Representing Numbers TA – Sanjaya Wijeratne – Web Page -
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.
CS 123 Computational Lab IIl Spring 2008 Department of Computer Science Drexel University Copyright by the authors. Permission is given for students and.
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 1 Bruce Char Department of Computer Science Drexel University Fall 2012 ©By the author. All rights reserved. Permission.
CS 121 Engineering Computation Lab Lab 3 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 Fall 2009 ©By the author. All rights reserved. Permission.
CS122 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Spring 2011.
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.
ICS102: Introduction To Computing King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science.
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 1150 – Lab #3 – Representing Numbers TA – Sanjaya Wijeratne – Web Page -
CS 121 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Summer, 2009 ©By the author. All rights reserved.
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/CS123 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Summer 2011.
Faculty Purpose of CS 100 Prepare to live in an information world Prepare for more training in computing NOT - to learn to program (CS 142) NOT - to.
CS122 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Winter 2012.
CS122 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Spring 2011.
CS123 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Spring 2010.
CS 121 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Fall 2010 ©By the author. All rights reserved. Permission.
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.
CS 121 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Fall 2011 ©By the author. All rights reserved. Permission.
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 121 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Fall 2012 ©By the author. All rights reserved. Permission.
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.
CS123 Engineering Computation Lab Lab 2 Instructor: Mark Boady Content By: Bruce Char Department of Computer Science Drexel University.
CS 123 Computational Lab IIl Spring 2008 Department of Computer Science Drexel University Copyright by the authors. Permission is given for students and.
CS 121 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Fall 2010 ©By the author. All rights reserved. Permission.
Math Intro to functions. I am Mr. Fioritto. You are Math 104 Spring 14. We meet from 9:30-11:45 on T, Th We will use Intermediate Algebra.
CS123 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Spring 2011.
CS 121 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Winter, 2011 ©By the author. All rights reserved.
CS122 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Winter 2012.
CS122 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Winter 2010.
CS 122 Engineering Computation Lab Lab1 Bruce Char Department of Computer Science Drexel University Summer 2009 ©By the author. All rights reserved. Permission.
CS 122/CS123 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Summer 2011 ©By the author. All rights reserved.
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.
CS 360 Lab 1 Professor: Krzysztof Nowak TA: Mark Boady.
CS 121 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Fall 2011 ©By the author. All rights reserved. Permission.
CS122 Engineering Computation Lab Lab 4
CS 121 Engineering Computation Lab Lab 5
CS 121 Engineering Computation Lab Lab 3
CS 121 Engineering Computation Lab Lab 2
CS123 Engineering Computation Lab Lab 4
Identifying functions and using function notation
CS122 Engineering Computation Lab Lab 3
Introduction to Mathcad
CS 121 Engineering Computation Lab Lab 3
Science 7.
Presentation transcript:

CS 121 Engineering Computation Lab Lab 4 Department of Computer Science Drexel University February 16-20, 2008 ©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.

Your class instructor and TA Instructor for this section: Tim Cheeseman Office: UC 147 (CLC) Your TAs are: Cem Sahin, Lloyd Ricks – 061 Pat Lockner Note that verification sheet requires you to put down instructor’s name.

Week 5 and 6 retrospective Lab 3: fifth week Scripts User Defined functions Seq, Lists, Sets Quiz 3: sixth week Getting stuck on problems during the quizzes? –Use the Cyber Learning Center (UC147)‏ –Use the discussion board for short questions

Lab 4 Part 1 Multiplotting – Problem 1.1 Part 2 Import Data – Problem 2.1 Part 3 Piece wise functions – Problem 2.2 Part 4 Maps – Problem 2.3

Multiplotting Basically means plotting more than one graph in a plot Consider 2 functions – x^2,x^3 Chapter 6 – Section 6.3 Syntax – plot(set of expr,var=range, color=list of colors) How do we plot it for the above 2 functions plot({x^2,x^3},x=0..10} The functions in plot can also be user defined functions. Part 1.1 of the lab requires this.

Multiplotting (cont) Coloring Multi plots Automatically colors are chosen. How to plot with specified Color ? We do this by changing the parameter of Plot Plot({f(n),g(n)},x=0..100,color=[“red”, “green”, “blue”])

Demo of Multiplotting Plot for x^2 and x^3, using plot({x^2,x^3},x=0..10)

Demo of Import Data (Text) Instructors can use the following slides optionally. grades := ImportMatrix(‘GradeData1.csv’,source=csv) gradeList := convert(grades,list) OR ImportData()

Demo of Import Data (Click) Instructors can use the following slides optionally.

Demo of Import Data (cont’d)‏

Right Click on the Blue Matrix. Click Assign to a name. The name used here is ‘thelist’ Convert the matrix to a list using Mainlist := convert(thelist,list)‏ Perform the required operations on the Mainlist

Part 3 : Piecewise Function What is Piecewise Function? –It is a function whose definition is dependent on the value of the independent variable.

Part 3 : Piecewise Function Piecewise functions are defined using the common functional notation, where the body of the function is an array of functions and associated sub domains.

Part 3 : Piecewise Function Maple Notation for a piecewise function Use the curly braces from Expressions Use Ctrl + Shift + R to add new row to the function

Part 3 : Piecewise Function Demo of Piecewise Function –Show demo for absolute value

Part 4 : Maps A function that associates a single output to each input element drawn from a fixed set such as the real numbers In our case the fixed set is a List – Problem 2.2 and Problem 2.3 Use map for element-wise application of a function

Syntax map(function or function name, structure) Part 4 : Maps

Example i)L:=[52,53,54] f:=(b,x)->sin(x*Pi/b) map(f,L,2) ii)map(binomial,L,6) Part 4 : Maps

Part 4 : Maps + Piecewise Function Demo - Piecewise function for Pass or Fail

Part 4 : Maps + Piecewise Function Demo - Map it with a list of marks

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

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.

Weeks 7 and 8 Take Quiz 4 Monday-Friday Week 8 –February –Maple TA server down for maintenance 9- 10am and briefly at 3pm each day during the week. –All the best