ECOR 2606 Lecture Notes - Lecture 7: Golden Ratio, Trigonometric Functions, Matlab

38 views1 pages
ECOR 2606 D/E LECTURE 12 -14/02/2018
Today Numerical Errors, Midterm Review
Q1) You are performing a Golden Section search in order to maximize a function f. If on the first
iteration, x1 = -2.73 and x0 = 6.73, how many iterations would be required to solve Emax to less than
0.001?
a) 14
b) 15
c) 16
d) Less than 14
e) More than 16
Midterm Review
MATLAB:
Assigning values to variable, especially vectors
- built in functions sin, cos, log
- element by element operations
- control statements if, else, while, for
- logic a < 3 || b = -3 etc
- comments MAKE SURE TO INCLUDE 3 LINE COMMENT AT TOP OF FUNCTION INPUT,
OUTPUT, DESCRIPTION
- anonymous functions
- file functions, void functions in script files
- plot, fplot
- roots, fminbnd, - input -prompt to type
-polyval, polyder, polyint
- fprintf - %d, %f
MANUAL:
- root finding - incremental, bisection, false position, Newton- Raphson, Secant, Modified secant
-optimization Golden Section Method
-DO SNAP QUIZZES
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows half of the first page of the document.
Unlock all 1 pages and 3 million more documents.

Already have an account? Log in

Document Summary

Q1) you are performing a golden section search in order to maximize a function f. if on the first iteration, x1 = -2. 73 and x0 = 6. 73, how many iterations would be required to solve emax to less than. Built in functions sin, cos, log. Logic a < 3 || b = -3 etc. Comments make sure to include 3 line comment at top of function input, File functions, void functions in script files. Roots, fminbnd, - input -prompt to type. Root finding - incremental, bisection, false position, newton- raphson, secant, modified secant.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers