# HW2 - Problem 3.1 3.1mod 3.6 3.10 3.12 3.14 3.15 3.15mod...

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

Problem Instructions and changes in problems 3.1 Use a while loop and fprintf, provide a table of order, true value, approx value, and percent error, see class notes 3.1mod Repeat 3.1 with an M file that accepts input in degrees instead of radians, and check it for 60 degrees with only five terms. Either convert to degrees or use cosd. 3.6 Use if statements. Make sure output is in degrees. If you use elseif statement, do not break it into two words! 3.10 Use two M files. One for u_y and one for singularity, a is the position on the beam. You can use a for loop for the displacement. 3.12 Check also what is the highest value of ni that you can run in one minute on your computer with the original code and then with the vectorized code. For vector spacing use (tend tstart)/ni. 3.14 For the plot, calculate the function in intervals of 0.1. To plot use another m file. 3.15 Read about functions floor, ceil, fix 3.15mod Use the round function in 3.15 to create a banker rounding that may be different if the if the number

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 09/05/2011 for the course EGM 3344 taught by Professor Raphaelhaftka during the Spring '09 term at University of Florida.

### Page1 / 6

HW2 - Problem 3.1 3.1mod 3.6 3.10 3.12 3.14 3.15 3.15mod...

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

View Full Document
Ask a homework question - tutors are online