User Tools

Site Tools


gibson:teaching:fall-2012:math445:lab1

Math 445 Lab #1

Attaway chapter 1 problems 5, 11, 12, 13, 17, 18

Problem 5. Evaluate these expressions in your head and write down the answer. Then evaluate them with Matlab. If you made a mistake, figure out what it was.

25/4*4

3+4^2

4\12 + 4

3^2

(5-2)*3

Problem 11. Wind chill factor: The WCF conveys how cold it feels with a given air temperature T (degrees Farenheit) and wind speed V (miles per hour). A formula for WCF is


  WCF = 35.7 + 0.6 T - 35.7 V^{0.16} + 0.43 \; T \; V^{0.16}

Create variables for temperature T and wind speed V and then using this formula, calculate the WCF.

Bonus: What is wrong with the concept of Wind Chill Factor? Can you figure out how to revise the Wind Chill Factor so it makes more sense?

Problem 12. Use Matlab help to understand the following questions, and then answer them based on your understanding. Then use Matlab to check your answers. Rethink any questions you answered incorrectly.

is fix(3.5) == floor(3.5)?

is fix(3.4) == fix(-3.4)?

is fix(3.2) == floor(3.2)?

is fix(-3.2) == floor(-3.2)?

is fix(-3.2) === ceil(-3.2)?

Problem 13. Find Matlab expressions for

square root of 19

3 to the 1.2

tangent of pi

Problem 17. Generate random numbers

real in range 0-1

real in range 0-20

real in range 20-50

integer in range 0-10

integer in range 0-11

integer in range 50-100

Problem 18. Get into new Command window and type rand to get a random real number. Make a note of the number. Then exit and restart matlab, and repeat. The random number should be the same. Exit and restart matlab again. This time, change the random number seed before generating a new random number. The random number should be different this time.

gibson/teaching/fall-2012/math445/lab1.txt · Last modified: 2012/08/29 17:12 by gibson