University of California, Berkeley Fall Semester 2008
Department of Mechanical Engineering Instructors: M. Frenklach, R. Horowitz
E7, Assignment 6
Assigned: Friday, October 10, 2008 Due: 12:00 pm, Fri
Page 2 Part A (10 points)
Name:
A.1 (3 points) Complete the following MATLAB function, called currency conv. function Aout=currency_conv(Ain,Tin,Tout) % The function converts money from one currency t
PROF DEV 226
PROFESSIONAL CAREER DEVELOPMENT
Instructor Handout
PROF DEV 226 PROFESSIONAL CAREER DEVELOPMENT
Sample Final Exam Guidelines
Students should have the opportunity to reflect and to prepare
Problem 13.50 Solution This is a physical pendulum. Since it takes 120s to complete 100 swings. Period is T = 120s/100 = 1.2s Use the formula (14-14), replace h by d, the distance from center of gravi
Problem 10.40 Since the net external torque is zero, the angular momentum is conserved L0 = L f . That is, I 00 = I f f . Since f is given (0.40 rev/s), we only need to calculate I 0 and I f , by cons
Two worlds on a string
Instead of giving the whole solution, here I'll just add some explanation to this problem since the hints of this problem already set up all the steps needed. As the picture ind
University of California, Berkeley Fall Semester 2005
College of Engineering Professor R. Dibble and R. Horowitz
E77 Midterm Examination I
Monday September 26, 2005 Name : SID :
Section:
1
2
(Please c
LECTURE 29
Procedural Programming
The design focuses on steps that must be executed executed to achieve a desired state. One typically represents data as individual variables or fields of a structure
LECTURE 25
Numerical Integration
Textbook: Sections 8.1 & 8.2
E7, Fall 2008, M. Frenklach
1
NUMERICAL INTEGRATION
f(x)
b
a
f ( x ) dx
b x
0
a
2
NUMERICAL INTEGRATION
f(x)
b
Trapezoidal Rule a
0 a b x
LECTURE 24
DERIVATIVE = SLOPE
f(x)
Numerical Differentiation Finite Differences
Textbook: Section 8.3
E7, Fall 2008, M. Frenklach
0
a
x
f ( x = a ) = lim
0
f (a + ) f (a)
2
NUMERICAL DIFFERENTIATION
University of California, Berkeley Fall Semester 2008
Department of Mechanical Engineering Instructors: M. Frenklach, R. Horowitz
E7, Assignment 1
Assigned: Friday, September 5, 2008 Due: 12:00pm, Fri
University of California, Berkeley Fall Semester 2008
Department of Mechanical Engineering Instructors: M. Frenklach, R. Horowitz
E7, Assignment 2
Assigned: Thursday, September 11 2008 Due: 12:00pm, F
PROF DEV 226
PROFESSIONAL CAREER DEVELOPMENT
Instructor Handout
PROF DEV 226 PROFESSIONAL CAREER DEVELOPMENT
FINAL FOR PROFESSIONAL CAREER DEVELOPMENT
1. YOU WILL EACH BE GIVEN THE NAME OF A COMPANY.
ERROR TOLERANCE
computed "exact" some answer answer tolerance
ERRORS Absoluteerror = approximate value true value Relativeerror = absolute error/true value
TRUNCATION ERRORS
x x e = 1+ x + + +L 2! 3
University of California, Berkeley Fall Semester 2008
Department of Mechanical Engineering Instructors: M. Frenklach, R. Horowitz
E7, Assignment 12
Assigned: Tuesday, December 3, 2008 Due: 12:00 pm (n
University of California, Berkeley Fall Semester 2008
Department of Mechanical Engineering Instructors: M. Frenklach, R. Horowitz
University of California, Berkeley Fall Semester 2008
Department of Me
University of California, Berkeley Fall Semester 2008
Department of Mechanical Engineering Instructors: M. Frenklach, R. Horowitz
E7, Assignment 11
Assigned: Saturday, November 22, 2008 Due: 12:00 pm
University of California, Berkeley Fall Semester 2008
Department of Mechanical Engineering Instructors: M. Frenklach, R. Horowitz
E7, Assignment 10
Assigned: Thursday, November 6, 2008 Due: 12:00 pm (
University of California, Berkeley Fall Semester 2008
Department of Mechanical Engineering Instructors: M. Frenklach, R. Horowitz
E7, Assignment 9
Assigned: Thursday, October 30, 2008 Due: 12:00 pm, F
University of California, Berkeley Fall Semester 2008
Department of Mechanical Engineering Instructors: M. Frenklach, R. Horowitz
E7, Assignment 8
Assigned: Thursday, October 23, 2008 Due: 12:00 pm, F
University of California, Berkeley Fall Semester 2008
Department of Mechanical Engineering Instructors: M. Frenklach, R. Horowitz
E7, Assignment 7
Assigned: Thursday, October 16, 2008 Due: 12:00 pm, F
University of California, Berkeley Fall Semester 2008
Department of Mechanical Engineering Instructors: M. Frenklach, R. Horowitz
E7, Assignment 5
Assigned: Thursday, October 2, 2008 Due: 12:00 pm, We
University of California, Berkeley Fall Semester 2008
Department of Mechanical Engineering Instructors: M. Frenklach, R. Horowitz
E7, Assignment 4
Assigned: Thursday, September 25, 2008 Due: 12:00pm,
University of California, Berkeley Fall Semester 2008
Department of Mechanical Engineering Instructors: M. Frenklach, R. Horowitz
E7, Assignment 3
Assigned: Thursday, September 18, 2008 Due: 12:00pm,
LECTURE 20
Recursion
Recursion vs Iteration
E7, Fall 2008, M. Frenklach
1
RECURSION: xn = xn-1 * x function y = powerfun(x,n) % recursion: x^n = x^(n-1)*x if n = 1 y = x; else y = powerfun(x,n-1) * x;