Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

No other code than matlab please. The surface area 5 of a ring in shape of a tor

ID: 3533538 • Letter: N

Question

No other code than matlab please.

The surface area 5 of a ring in shape of a torus with an inner radius r and a diameter d is given by: S = pi 2(2r + d)d The ring is to be plated with a thin layer of coating. The weight of the coating w can be calculated approximately as w = gamma S t, where gamma is the specific weight of the coating material and t is its thickness. Write an anonymous function that calculates the weight of the coating. The function should have four input arguments, r., d. t. and gamma. Use the anonymous function to calculate the weight of a gold coating (gamma = 0.696 lb/in.3) of a ring with r = 0.35in., d = 0.12in.. and t = 0.002in.

Explanation / Answer

function weight = anonymous( r,d,t,gamma )

%UNTITLED Summary of this function goes here

% Detailed eplanation goes here

s = pi*pi*( 2*r + d )*d;

weight = s*gamma*t;

end

% at last use it to calculate the weight

w = anonymous( 0.35 , 0.12, 0.002, 0.696)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote