CS 123 Computational Lab IIl Spring 2008 Department of Computer Science Drexel University Copyright by the authors. Permission is given for students and.

Slides:



Advertisements
Similar presentations
CS122 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Winter 2010.
Advertisements

Please close your laptops
Lecture 7 Partial Payments Discount Interest Ana Nora Evans 403 Kerchof Math 1140 Financial Mathematics.
Slide 1 of 21 Due Today: Cornell notes – please put in inbox Observation/inference lab – please put in lab crate Atomic model project – please.
Math 115a– Section 4  Instructor: Kerima Ratnayaka   Phone :  Office : MTL 124B.
Please CLOSE YOUR LAPTOPS, and turn off and put away your cell phones, and get out your note-taking materials. Today’s Gateway Test will be given during.
By Hrishikesh Gadre Session I Introduction to EES Department of Mechanical Engineering Louisiana State University Engineering Equation.
Today: Lecture on Section 2.6: More word problems! Next class session: Review for Test 1 (covers everything since the beginning of the semester, including.
Today: 1. Hand back/review Test Lecture on Section 5. 1, with HW 5
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 and pull up Quiz Only the provided online calculator may be used on this quiz. You may use your yellow formula sheet for.
Make sure you know the day and time of the final exam for this section of Math 110: Day: ______ Date:______ Time: ______ to _______ All Math 110 finals.
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.
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.
Redesign of Beginning and Intermediate Algebra using ALEKS Lessons Learned Cheryl J. McAllister Laurie W. Overmann Southeast Missouri State University.
Monday, September 23, 2013 Physics Warm Up Find the v i if v f =20m/s, a=4 m/s 2 and t=5s Standards: 1a Students know how to solve problems that involve.
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.
Course Introduction CS 2302 SPRING Course Introduction In this part we'll discuss course mechanics. Most of this will apply to all sections of the.
MATH 310, FALL 2003 (Combinatorial Problem Solving) MoWeFr 1:20 McGregory 214.
CS 123 Computational Lab IIl Spring 2008 Department of Computer Science Drexel University Copyright by the authors. Permission is given for students and.
Lecture 1 Page 1 CS 111 Summer 2015 Introduction CS 111 Operating System Principles.
Math 010 online work that is due today at the start of class: Gateway Homework #3 (turn in worksheet now, while I take roll) Section 1.2/1.8 Online Homework.
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.
Lecturer’s desk INTEGRATED LEARNING CENTER ILC 120 Screen Row A Row B Row C Row D Row E Row F Row G Row.
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 4 Department of Computer Science Drexel University Summer 2009 ©By the author. All rights reserved. Permission is.
CSE 1340 Introduction to Computing Concepts Class 1 ~ Intro.
CS123 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Spring 2010.
Speed 1.3 pp Mr. Richter. Agenda  Warm-Up  Review Pop Quiz  Any Questions from the Lab?  Introduce Speed  Oil Drop Drawing  Notes:  Speed.
Principles of Computer Science I Honors Section Note Set 1 CSE 1341 – H 1.
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.
Coming Up: Today: Lecture on Section 2.5 More word problems! Next two class sessions after today: 1. Review for Test 1 2. Test 1 on Mon. November 9 th.
Coming Up: Today: Review Quiz 2 Lecture on Section 2.4: Word problems! NOTE: This homework is due at the beginning of the next class session. Coming up.
Week 1 Tutorial: Foundation Mathematics for Business Statistics
Please CLOSE YOUR LAPTOPS, and turn off and put away your cell phones, and get out your note- taking materials.
CS123 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Spring 2010.
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.
Grade Scale Test 1 Results: Average class score after partial credit: XX.X% Commonly missed questions: # _________________ All of this material will be.
CS123 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Spring 2012.
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.
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.
Syllabus Highlights CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
Math 010 Gateway Quiz Information. Gateway Quiz Information: The Gateway Quiz covers material from sections on fractions and the order of operations.
Please CLOSE YOUR LAPTOPS, and turn off and put away your cell phones, and get out your note- taking materials.
CS123 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Spring 2011.
CSE 1340 Introduction to Computing Concepts Class 1 ~ Intro.
CS 121 Engineering Computation Lab Lab 4 Department of Computer Science Drexel University February 16-20, 2008 ©By the author. All rights reserved. Permission.
CS123 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Spring 2013.
Coming Up: Today: Review Quiz 2 Lecture on Section 2.4: Word problems! NOTE: This homework is due at the beginning of the next class session. Coming up.
CS 122 Engineering Computation Lab Lab1 Bruce Char Department of Computer Science Drexel University Summer 2009 ©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.
Coming Up: Today: Lecture on Section 2.5 More word problems! Next two class sessions after today: 1. Review for Test 1 2. Test 1 on Tues. March 29 th (TTH)
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.
Introduction to Statistics for the Social Sciences SBS200, COMM200, GEOG200, PA200, POL200, or SOC200 Lecture Section 001, Spring 2016 Room 150 Harvill.
Grade Scale Quiz 3 Results: Average class score after partial credit: XX.X% Commonly missed questions: # ____________________ We will be going over some.
Syllabus and Class Policies MATH 130: Summer 2016.
ACCUPLACER Orientation
CS 121 Engineering Computation Lab Lab 2
CS123 Engineering Computation Lab Lab 4
Parent/Student Night November 16, 2015
CS 121 Engineering Computation Lab Lab 3
Administrative Issues
New Student Orientation
Presentation transcript:

CS 123 Computational Lab IIl Spring 2008 Department of Computer Science Drexel University Copyright by the authors. Permission is given for students and staff of CS 123 Spring 2008 to reproduce these notes for their own use.

Calendar ActivityDue Date Lab 1Week 2Week 3 Quiz 1Week 3 Lab 2Week 4 (Apr 20)‏Week 5 (May 3,5:00 PM)‏ Quiz 2Start (Apr 27)‏Week 5 (May 3,5:00 PM)‏ Lab 3Week 6Week 7 Quiz 3Week 7 Lab 4Week 8Week 9 Quiz 4Week 9 Lab exam (in class)‏Week 10

QUIZ 1 – server crash and resolution A few people were caught on Friday afternoon when the Maple TA server crashed due to heavy load. A few minutes before that it started giving “bad responses” to user input. For those people, the quiz will be available from Monday 4/21 at 8am to Tuesday 4/22 at 5pm We will give you a quiz score based on the cumulative result of the two quizzes All retake quizzes must be completed/submitted by 5pm on Tuesday. Problems ?! Stop by UC147 on quiz days or discussion threads on Bb!

Rules for today’s Lab 1)You should work in a group 2)You don't get credit for the lab until you show a TA or instructor your results from the end of the lab. You can do this at the end of the lab period, or by dropping into the Cyber Learning Center next week. If you do not get "checked in" by a staff member, then you will receive no credit for this lab even if you attended a Lab session.

So, What is today’s Lab about? Calculations for a computer controller for a car Last year's winning team from Carnegie Mellon won $2,000,000 for placing first! Computer Control: programming to make decisions about what to do when the car is in various situations.

Problems to be solved in autonomous car control When camera input is XXX, and the car is in location/velocity/acceleration (d,v,a) where should it go, how fast should it accelerate? What is the best speed to travel at to minimize fuel cost, hydrocarbon emissions?

Implementing a math model for fuel consumption What are we given? Mathematical formulas for fuel and emissions consumption, and a file of numbers for the model coefficients. What do we want ? Ways to calculate fuel consumption, CO emission, HC emission How to get it input data? Implement Maple functions, and check that they work.

Math model, continued Step1: Read the input data, convert it to list (revisit old material from CS122 Lab 3)‏ > (Tools -> Assistants -> Import data menu)‏ >ListOfCoefs := convert(%,listlist); Check if you read them in correctly by printing in a table: >tablePrint := proc(LL::list)‏ … complete the procedure >tablePrint(ListOfCoefs);

Step 2: Set up the functions Fuel, CO, and HC from the details of the model. You will need to revisit the following Maple ideas: >expr :=... sum(.... exp(.....)..... ); >Fuel := unapply(...., v,a); This will assign Fuel as a function of velocity and acceleration. A problem is that the inputs and outputs of the function are a mishmash of metric and English units. Math modeling, continued

Math modelling, continued Step 3 : Create functions FuelEnglish, COEnglish, etc. that use English units (gallons, miles, pounds, etc.) consistently Maple has a way of converting between units that takes advantage of its ability to handle symbolic expressions >convert(5.0, 'units', km, mi);

Unit Conversion Convert: convert gets broken if you happen to assign one of the symbols you are using. For example: > s := 47; >convert(5.0, 'units', s, h); --> error ! Set s:=‘s’ to be seconds >unassign(’s’); #Clear residual values from previous problems. we will define functions again with unit conversion Step 4: find the velocity which produces the best fuel economy in an idealized situation -another optimization problem -->NLPSolve

Unit conversion in Maple

Basic physics: Relating velocity, position and acceleration through integration The group collectively needs to work out how to calculateFuel consumption velocity is an expression given in terms of acceleration. Piecewise acceleration expressions (gears!) needed.

Using the fuel consumption model Create a Maple function of fuel consumption in terms of velocity and acceleration FuelEnglish := (v,a) -> expression in v and a Find best fuel consumption by using optimization. Probably will need to use NLPSolve for numerical work. Should do a lot of plots to understand what you're looking at/for.

Let’s look at the process of solving an optimization problem once more: Problem: find the velocity which produces the best fuel economy when travelling at a constant speed >time_to_travel_100_miles := 100/v; #v in miles per hour, time in hours >total_fuel := time_to_travel_100_miles*FuelEnglish(v,0); #total fuel consumed, in gallons/hr >plot(total_fuel, v=0..80,view=[0..80,0..10]); Solve the optimization problem that we have formulated: >Optimization[NLPSolve](total_fuel,v=0..100); [ , [v = ]] Answer : minimum consumption is gallons; at a velocity of mi/h.

Lab structure This lab is divided into the following sections: Required Reading: Introduction & Overview, Tutorials 1-3, Wrap-Up Required Problems: Problems 1-10 Optional Problems: Problems 12,11 Remember to do Group CHECK IN !

What to turn in?! Lab 2  Due May 3 th,5 P.M Quiz 2  Due May 3 th,5 P.M -Submit your lab via Bb Vista -We have office hours in UC145 next week, if you had any problem in Quiz 2 feel free to stop by and ask questions!