Homework-4-Solutions

# Homework-4-Solutions - % % % % ME 104: Engineering...

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

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

View Full Document

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

View Full Document

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

View Full Document

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

View Full Document

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

View Full Document

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

View Full Document

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

View Full Document
% ME 104: Engineering Mechanics II % Solution to Homework 4: Problem 6 % Prepared by Mohammad Rafiee % Date: Feburary 18, 2011 %---------------------------------------------------------------------- clc; clear all ; % ----------------------- defining the parameters --------------------- g = 9.81; r0 = 0.1; l = 1; w0 = 1; % ----------------------- calculating r, theta, x and y --------------- t = [0:.01:2.99]; r = r0*cosh(w0*t); theta = w0*t; x = r.*cos(theta); y = r.*sin(theta); % ----------------------- the bonus part: after t=3 sec --------------- Vr = r0*w0*sinh(w0*t); Vtheta = r0*w0*cosh(w0*t); Vx_0 = Vr(end)*cos(theta(end)) - Vtheta(end)*sin(theta(end)); Vy_0 = Vr(end)*sin(theta(end)) + Vtheta(end)*cos(theta(end)); t2 = [0:.01:3]; x2 = Vx_0*t2 + x(end); y2 = Vy_0*t2 + y(end); z2 = -.5*g*t2.^2; % -------------------------generating the plots ----------------------- figure; plot(x,y) hold on x1 = [-1:.01:1]; plot(x1, sqrt(1-x1.^2), 'r' ) hold on plot(x1, -sqrt(1-x1.^2), 'r' ) axis equal
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 02/22/2012 for the course ME 104 taught by Professor Oreilly during the Spring '08 term at Berkeley.

### Page1 / 17

Homework-4-Solutions - % % % % ME 104: Engineering...

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

View Full Document
Ask a homework question - tutors are online