Assignment 1

Assignment 1 - OPTI 280 Assignment 1 Spring 2010 Due Date:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: OPTI 280 Assignment 1 Spring 2010 Due Date: 2/1/10, 1:00 PM Each assignment is worth 100 points. Assignments that are handed in late will be penalized 15 points per week. Read sections 1 through 10 in the MatLab Tutorial and sections 1.1-1.3, 1.6, 1.10, and 1.13 in the textbook (Herniter) to get an overview of some MatLab basics. 1. (10 points) Make sure that you understand the rules of precedence for the way MatLab interprets the mathematical operators + , - , * , / , and (look up operator precedence in the MatLab help file). Then answer the following questions: (a) Is x 2 - y - z/a*b the same as x 2 - y - z/(a*b) ? If not, explain why. (b) Is x (1/3) + y (0.2) the same as x 1/3 + y 0.2 ? If not, explain why. (c) Is x (1/2)/((4*a + y) - 1/(b*c)) the same as (x (1/2))/((4*a) + y) - 1/(b*c) ? If not, explain why. 2. (12 points) Let z =- 75 . ,f = 50 . ,n = 1 . 2 ,n = 1 . 5 , and m =- 4 . 0. In this problem you will practice using MatLab as a calculator. You can plug the preceding numbers into the equations that follow without defining variables. If you choose to define variables be careful how you name them. For example you cannot create a variable namedthem....
View Full Document

Page1 / 3

Assignment 1 - OPTI 280 Assignment 1 Spring 2010 Due Date:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online