HW09s10_soln

# HW09s10_soln - v1 = 5 5 5 5 5 v2 = 1 3 5 7 9 >> l1 =...

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

Problem 1 >> F1 = ptoxyf(400,-20) %I'm using the function we wrote F1 = 375.8770 -136.8081 >> F2 = ptoxyf( 500,30 ) % You might just use the equations F2 = 433.0127 250.0000 >> F3 = ptoxyf( 700,143 ) %But you have to put in vectors F3 = -559.0449 421.2705 >> FR = F1+F2+F3 % And you must use vector addition FR = 249.8449 534.4625 >> result = xytopolar( FR ) % Another function we wrote result = 589.9768 64.9453

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

View Full Document
Problem 2 >> F1 = [15 20 5] , F2 = [20 -5 7] % Create Vectors F1 = 15 20 5 F2 = 20 -5 7 >> FR = F1+F2 % Add them FR = 35 15 12 >> displacement = [10 5 0] %Vector displacement = 10 5 0 >> work = FR*displacement' % make disp a column vector work = 425
Problem 3 >> v1 = [ 5 5 5 5 5 ] , v2 = [ 1 3 5 7 9 ]

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.

Unformatted text preview: v1 = 5 5 5 5 5 v2 = 1 3 5 7 9 >> l1 = norm( v1 ) %'length' of vector 1 l1 = 11.1803 >> l2 = norm( v2 ) l2 = 12.8452 >> cangle = v1*v2'/(l1*l2) % Note that transpose cangle = 0.8704 >> angle = acosd( cangle ) angle = 29.4962 Problem 4 >> T = [280 290 300 310 320 330 340 350]' T = 280 290 300 310 320 330 340 350 >> Cp = 1.2944e+2 - 1.6950e-1*T + 6.4781e-4*T.^2 % see the dot operator? Cp = 132.7683 134.7658 136.8929 139.1495 141.5357 144.0515 146.6968 149.4717 >> value = [ T Cp ] % A table value = 280.0000 132.7683 290.0000 134.7658 300.0000 136.8929 310.0000 139.1495 320.0000 141.5357 330.0000 144.0515 340.0000 146.6968 350.0000 149.4717...
View Full Document

## This note was uploaded on 05/04/2010 for the course ECO 304K taught by Professor Hickenbottom during the Spring '10 term at University of Texas.

### Page1 / 4

HW09s10_soln - v1 = 5 5 5 5 5 v2 = 1 3 5 7 9 >> l1 =...

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

View Full Document
Ask a homework question - tutors are online