% CIRINERT(A,B) calculates the cross sectional moment of interia for % a pipe cross section % A = outer diameter, B = inner diameter % % To evalutate a filled circle set B = 0 % %By Roger Cortesi (Course 2 Class of 1999) for 2.007 function [val] = cirinert(a,b) val = (pi*(a^4-b^4))/64;