1 / 39

Introduction to Engineering Computing GEEN 1300 Elizabeth White elizabeth.white@colorado

Introduction to Engineering Computing GEEN 1300 Elizabeth White elizabeth.white@colorado.edu Office Hours: Tues 11am-12:30pm , Thurs 11am-12:30 pm, and by appointment ; please send email. Introduction to Engineering Computing GEEN 1300 why

rossa
Download Presentation

Introduction to Engineering Computing GEEN 1300 Elizabeth White elizabeth.white@colorado

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to Engineering Computing GEEN 1300 Elizabeth White elizabeth.white@colorado.edu Office Hours: Tues 11am-12:30pm, Thurs 11am-12:30 pm, and by appointment; please send email.

  2. Introduction to Engineering Computing • GEEN 1300 • why • solving problems that are hard or even impossible to do by hand • graphing data • writing computer programs that perform large, complicated tasks • ……..

  3. Introduction to Engineering Computing • GEEN 1300 • what ~13 lectures ~12 lectures

  4. Class Meetings MATH 100 MW 8:00-8:50 • Texts: • R. Larsen, Engineering with Excel, Third Edition, Pearson Prentice Hall, 2009 • H. Moore, Matlab for Engineers, Second Edition, Pearson Prentice Hall, 2009 • Readings for each week are posted on the CULearn calendar • Other Materials on class web page: • http://csel.cs.colorado.edu/~ekwhite/GEEN1300_Summer2010.html

  5. Grading 20% Labs 7.5% Prelabs(online) 7.5% Homework 10% Class participation 15% Project 20% Midterm (in class) 20% Final (Friday, 2 July, 8-10:30am)

  6. Labs Are the real meat of this course Where you learn by doing, not just hearing or reading Start THIS week (beginning Thursday at 8am) Happen in ECCH 107 Are due at the end of the lab period – if you arrive late, you may not finish… Bring a USB drive and the textbook

  7. Lab Grade Policy Make-up labs after the fact only for medical or family emergencies. In some cases, make-up labs may be arranged with the instructor, but you must do so at least one weeks before the beginning of the recitation period Labs CANNOT be done at home and then turned in. Labs also CANNOT be emailed in from home. (But you can certainly work them in advance, then come in.)

  8. Online prelabs Posted on web page Based on the reading, labs, class info Make sure you’re caught up on the reading before you start them To be done by yourself (but you may use the textbook, the web, your course notes, etc.) Due by 8am on Thursdays of lab weeks

  9. Project Provide a more-substantial experience with a bigger problem …and an opportunity to deepen your programming skills Selected from a list of candidates (some from each engineering field) Due during the last week of classes

  10. Homework Where you learn offline, at your own pace Are posted on webpage, along with textbook readings Are due at the beginning of lecture, typically on mondays, in manila folders outside this room Late HW is not accepted Solutions posted on web page after it’s turned in

  11. Midterm • In class TBD (I’ll know by Thursday) • Coverage: Excel & VBA • Tests whether you know what these tools do, how they work, and how to use them to solve engineering problems • Cheat sheet allowed

  12. Final Exam • 8:00-10:30am on 2 July (Friday) • Look at your exam schedule NOW: registrar.colorado.edu/Calendar/calendars_schedules.html • Covers whole course • Targets my learning goals:

  13. Learning goals: • Know what’s in your computational toolbox • …and how/when to use it • Develop the resourcefulness to learn about other tools • Know the basics of computer programming

  14. Academic Ethics All incidents of academic dishonesty will result in academic sanctions In addition, the Honor Code Council will be notified and a non-academic sanction can be issued by them For example, if two identical labs are turned in, that is considered cheating, and for both people That has implications for leaving your files on lab computers! But collaboration is not always cheating If you have any questions about cheating, ASK!

  15. Overview of Excel coverage in GEEN 1300 understanding spreadsheet layout and operations learning skills for efficient use of the software how to set up the solution of typical engineering problems learning VBA: the missing link for most users developing user interfaces and other enhancements

  16. Familiarity with Excel… • don’t know what it is • know vaguely what it is • have seen an Excel spreadsheet at least once • have actually used Excel to create a spreadsheet • have used Excel extensively (i.e., beyond simple spreadsheets)

  17. Syntax for Excel formulas formulas must start with =, + or - ( leftover from 1-2-3) expressions are evaluated left-to-right precedence for arithmetic operators is: negation unary – exponentiation ^ multiplication & division * and / addition & subtraction + and -

  18. Examples… Negation – unary minus algebraic format Excel syntax Result -3^2 9 or –9 ??? [test it if you’re not sure!] Repeated exponentiation algebraic format Excel syntax =x^y^2 =x^(y^2)? =(x^y)^2? [What do you really want to have happen?]

  19. Syntax for Excel formulas formulas must start with =, + or - ( leftover from 1-2-3) expressions are evaluated left-to-right precedence for arithmetic operators is: negation unary – exponentiation ^ multiplication & division * and / addition & subtraction + and -

  20. More examples algebraic format Excel syntax =pi()*D^2/(4*L) or =pi()*D^2/4/L =(T-TL)/a*(TH-TL) or =(T-TL)/(a*(TH-TL)) or =(T-TL)/a/(TH-TL)

  21. Which will give you an answer of -9? =-(3^2) -(3^2) =-3^2 (a) and (b) (a) and (c) negation unary – exponentiation ^ multiplication & division * and / addition & subtraction + and -

  22. Syntax for Excel formulas formulas must start with =, + or - ( leftover from 1-2-3) expressions are evaluated left-to-right precedence for arithmetic operators is: negation unary – exponentiation ^ multiplication & division * and / addition & subtraction + and -

  23. The formula for the deflection of a cantilever beam is: How do you write this formula in Excel? • =F*L^3/(3*E*I) • = F*L^3/3/E/I • = F*L^3/3*E*I • (a) or (b) • None of these

  24. The formula for the deflection of a cantilever beam is: How do you write this formula in Excel? • =F*L^3/(3*E*I) • = F*L^3/3/E/I • = F*L^3/3*E*I • (a) or (b) • None of these Avoid this decoding issue by using parens!!

  25. Examples algebraic format Excel syntax =PI()*h^2(3*Radius-h)/3 What’s wrong with this? forgot the * operator =SIN(45) What’s wrong with this? arguments to trig functions must be in radians =SIN(45/180*PI()) or =SIN(radian(45))

  26. Examples Logarithms and exponents Remember! LN(y) EXP(X) LOG10(P) 10^(A-B/(T+C)) =LN(x)/LN(a) =LOG(x,a)

  27. Syntax for Excel formulas formulas must start with =, + or - ( leftover from 1-2-3) expressions are evaluated left-to-right parentheses are used to establish order for calculations precedence for arithmetic operators is: negation unary – exponentiation ^ multiplication & division * and / addition & subtraction + and - functions are evaluated first and the result is inserted at the position of the function in the expression

  28. Another example algebraic format Excel syntax =(y+2)*(x-2)/(x^2+x*y+SQRT(y)) Order of evaluation: • put y into SQRT function, return answer to that position • compute y+2 result • compute x-2 result • multiply y+2 result times x-2 result to get numerator result • compute x^2 result • compute x*y result • add up x^2, x*y and SQRT(y) to get denominator result • divide numerator result by denominator result

  29. How to enter cell addresses in a formula? Example: =b1+b2+b3+b4 or=sum(b1,b2,b3,b4) or =sum(b1:b4) • How do you enter those cell references? • How do you enter a range of cells? • By typing or by clicking (and dragging, if it’s a range like b1:b4) • p.s. see the “Insert Function” button on the Formulas tab for a list of Excel’s functions – or use the help docs.

  30. Cell names • Default name: column letter followed by row number • You can give cells other names via the “Name Box” • And then use those names (instead of “B1” et al.) in your formulas • Some names are reserved – watch out! • You can name a bunch of cells at once using “Create from Selection” on the “Formulas” tab

  31. “Filling” Cells • Via the fill handle • Works for formulas too!!

  32. Engineering calculations in Excel Deflection of cantilever beam modulus of elasticity moment of inertia

  33. Deflection of cantilever beam L = 3 ft Basic data: F = 100 N E = 3 x 107 psi b = 1 in d = 2 in Find  in mm

  34. Deflection of cantilever beam Find  in mm Don’t forget your name!

  35. Deflection of cantilever beam Find  in mm

  36. Deflection of cantilever beam • Case studies: • How does  change as L varies? • How does  change as d varies? • How does  change as b and d vary? • Lots of ways to do the one-variable case studies…

  37. Using formula copy: Single formula with only one parameter changing Range of parameter values in adjacent column

  38. Another example: Set up example for case study of f(x) vs x Case study by copying formula range B2:B11 named x

  39. Enrollment Only 35 (40?) people can enroll in GEEN 1300: We cannotadd people over those limits, nor can we add new sections. Computers are the limiting factor. If you’re in, don’t move sections; if you do, the registration computer will instantly give away your spot, leaving you in limbo. If you’re not in, but you’re #1 on the waitlist, you may get in, but you should make backup plans. Come to lab in the meantime. If you’re further down the waitlist, you may wait & see if you get in, but you should really make plans to take this course later (e.g., in the fall) and/or explore other options (e.g., CSCI1300) June 2 is the last day to drop without charge; June 4 is the last easy day to drop; June 14 is the last day without petitioning the Dean, per http://www.colorado.edu/summersession/calendar/index.html

More Related