freefallinteract - g=input('Gravity?'); m=input('Mass?');...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
%John Wade %example of using input and disp %takes g, m, cd, and computes v %similar to ex. 3.3 in book function velocity = freefallinteract
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: g=input('Gravity?'); m=input('Mass?'); cd=input('Drag coeff?'); t=input('time?'); t v=sqrt(g*m/cd)*tanh(sqrt(g*cd/m)*t); disp(v)...
View Full Document

This note was uploaded on 09/20/2009 for the course CIVL 3010 taught by Professor Melville during the Spring '09 term at Auburn University.

Ask a homework question - tutors are online