HW2

pdf

School

Howard University *

*We aren’t endorsed by this school

Course

165

Subject

Mechanical Engineering

Date

Oct 30, 2023

Type

pdf

Pages

2

Uploaded by zayvoncrowe2004

Report
Table of Contents ......................................................................................................................................................... 1 % Zayvon Crowe HW 2 % Question 1 b=[76,12,76]; h=[12,78,12]; x=[-32,0,32]; y=[45,0,-45]; Ix=(b.*h.^3)/12; Iy=(h.*b.^3)/12; A=(b.*h); TotalA=sum(A); Ay=A.*y.^2; Ax=A.*x.^2; Ix1=Ix+Ay; Iy1=Ix+Ax; TotalIx1=sum(Ix1); TotalIy1=sum(Iy1); % Question 2 n=input( 'Enter N of the bionaomial coeffiicient' ); k=input( 'Enter K bionaomial coeffiicient' ); l = nchoosek(n,k); % Question 3 clear p=input( " Enter P of the probaility" ); x=input( " Enter X of the number of cases" ); binopdf(0,x,p) defects = 0:x; y = binopdf(defects,x,p); plot(defects,y) xlabel( 'X' ) ylabel( 'F(X)' ) title( 'Bionaomal Distribution' ) % Question 4 a=input( " Enter A " ); b=input( " Enter B " ); Ta=input( " Enter TA " ); Tb=input( " Enter TB " ); alpha=2e-5; E=206e9; nu=0.3; r=a;b;50; radial=alpha*E*(Ta-Tb)/(2*(1-nu)*log(b/a))*((a^2/(b^2-a^2).*((b^2./ 1
r.^2)-1)).*log(b/a)-log(b./r)); hoop=alpha*E*(Ta-Tb)/(2*(1-nu)*log(b/a))*(1-(a^2/(b^2-a^2).*((b^2./ r.^2)+1)).*log(b/a)-log(b./r)); plot(r, radial, 'k--' , r, hoop, 'k-' , [6, 12], [0, 0], 'k:' ) legend( 'Radial stress' , 'Hoop Stress' , 'Location' , 'southeast' ) xlabel( 'Radial Coordinate (mm)' ) ylabel( 'Stress (Pa)' ) title( 'Radial and Hoop Stresses of a Pipe' ) Error using input Cannot call INPUT from EVALC. Error in HW2 (line 22) n=input('Enter N of the bionaomial coeffiicient'); Published with MATLAB® R2023b 2
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help

Browse Popular Homework Q&A

Q: Answer the following questions. (a) 70.59 is what percent of 19.5?   (b) What is 88% of 56.25?
Q: 口 2. Part 2 - Find the error(s) and solve the problem correctly. Determine whether the sequence…
Q: Utilizing 0.0001: a Maclaurin series, evaluate the integral to an accuracy of 0.2 x ex - X -dx
Q: a. Which player had the higher average points when compared to the other players on his team?
Q: A conductive loop falls straight downwards next to a long current carrying wire as shown. What…
Q: Exhibit 10-30 A quantitative analysis teacher wants to see if there is any difference in the…
Q: Write a brief summary of the behavior and sources of magnetic fields
Q: The spring in the figure below is stretched from its equilibrium position at x = 0 to a positive…
Q: For the welded angle, determine the maximum tensile strength. Assume A992 grade steel. 6" 4" -Pu -L5…
Q: 4) Consider the function from T: R³ → R² given by X T: y = x + 2y - Z x+z Z (i) Show that T'has the…
Q: he data represents the murder rate per 100,000 individuals in a sample of selected cities in the…
Q: ¹H NMR spectroscopy. CI Снз :Н,
Q: The circuit shown in the figure is equivalent to:
Q: A car is accelerated from velocity v1 to v2 in the time period of t . The mass of the car is m. The…
Q: The graph below is the function f(x) 4- -5 -4 -3 -2 -1 1 2 3 4 5 -2 -3 -4 -5 Determine which of the…
Q: An RC series circuit has a power factor of 72%. How many degrees are the voltage and current out of…
Q: A factory manufactures three products, A, B, and C. Each product requires the use of two machines,…
Q: Climate change represents a global threat to the prosperity and security of humans and other…
Q: The following information was obtained from independent random samples. Assume normally distributed…
Q: Consider the circuit below. (a) Find the Thevenin equivalent model between A and B. Make sure to…
Q: Each day Donna and Mary toss a coin to see who buys the other person coffee ($1.31 a cup). One…
Q: The following is a random list of the adjusted account balances of Wyoming Company as of the end of…