archfun

archfun - r = sphere radius sig_l = density of liquid sig_s...

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

View Full Document Right Arrow Icon
4/12/10 8:22 PM C:\Users\Artyom\Documents\Spring 2010\EE103\MATLAB\archfun.m 1 of 1 % Artem Iakovlev % UID: 203-833-818 % Homework 1 % Problem 4 archfun.m Function Code function y = archfun(h) % given constants:
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % r = sphere radius % sig_l = density of liquid % sig_s = density of sphere solid r=1.7; sig_l=1; sig_s=0.80; % Archimede's function: y = (pi/3)*(3*r*h^2-h^3)*)*sig_l-(4/3)*pi*(r^3)*sig_s;...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online