Write and test a function that computes the time

Assignment Help MATLAB Programming
Reference no: EM131285595

Question 1. For several values of x, use MATLAB to con rm that sinh x = (ex - e-x)/2.

Question 2. For several values of x, use MATLAB to con rm that cosh-1x = In (x + √(x2 - 1)

Question 3. The capacitance of two parallel conductors of length L and radius r, separated by a distance d in air, is given by

C= Π∈L/ln[(d - r)/r]

where ∈ is the permittivity of air (∈ = 8.854 X 10-12 F/m).

Write a script le that accepts user input for d, L, and r and computes and displays C. Test the le with the values L = 1 m, r = 0.001 m, and d = 0.004 m.

Question 4. The output of the MATLAB atan2 function is in radians. Write a func-tion called atan2d that produces an output in degrees.
9. Write a function that accepts temperature in degrees Fahrenheit (°F) and computes the corresponding value in degrees Celsius (°C). The relation between the two is

T°C = 5/9 (T°F - 32)

Be sure to test your function.

Question 5. An object thrown vertically with a speed vo reaches a height h at time t, where

h = vot - 1/2gt2

Write and test a function that computes the time t required to reach a speci ed height h, for a given value of vo. The function's inputs should be h, vo, and g. Test your function for the case where h = 100 m, vo = 50 m/s, and g = 9.81 m/s2. Interpret both answers.

Question 6. A water tank consists of a cylindrical part of radius r and height h and a hemispherical top. The tank is to be constructed to hold 600 m3 when lied. The surface area of the cylindrical part is 2Πrh, and its volume is Πr2h. The surface area of the hemispherical top is given by 2Πrh, and its volume is given by Πr2h. The cost to construct the cylindrical part of the tank is $400 per square meter of surface area; the hemispherical part costs $600 per square meter. Use the fminbnd function to compute the radius that results in the least cost. Compute the corresponding height h.

Question 7. A fence around a eld is shaped as shown in Figure P12. It consists of a rectangle of length L and width W, and a right triangle that is symmetrical about the central horizontal axis of the rectangle. Suppose the width W is known (in meters) and the enclosed area A is known (in square meters). Write a user-de ned function le with W and A as inputs. The outputs are the length L required so that the enclosed area is A and the total length of fence required. Test your function for the values W = 6 m and A = 80 m2.

1916_Figure1.jpg

Question 8. A fenced enclosure consists of a rectangle of length L and width 2R and a semicircle of radius R, as shown in Figure P13. The enclosure is to be built to have an area A of 2000 ft2. The cost of the fence is $50 per foot for the curved portion and $40 per foot for the straight sides. Use the fminbnd function to determine with a resolution of 0.01 ft the values of R and L required to minimize the total cost of the fence. Also compute the minimum cost.

1281_Figure2.jpg

Question 9. Using estimates of rainfall, evaporation, and water consumption, the town engineer developed the following model of the water volume in the reser-voir as a function of time

V(t) = 109 + 108(1 - e-t/100) - rt

where V is the water volume in liters, t is time in days, and r is the town's consumption rate in liters per day. Write two user-de ned functions. The first function should de ne the function V(t) for use with the f zero func-tion. The second function should use f zero to compute how long it will take for the water volume to decrease to x percent of its initial value of 109L.

The inputs to the second function should be x and r. Test your functions for the case where x = 50 percent and r = 107 L/day.

2057_Figure.jpg

Reference no: EM131285595

Questions Cloud

Is it ethical for churches and religious organizations : What are some ways that these organizations market themselves that are similar to and different from the marketing by for-profit businesses?
Most people in economy are employed by service industries : Why do you think this has occurred? In what ways is this trend a good and/or a bad thing for a country? Do you think this trend will continue?
Find frequency f of small oscillations about this position : The 8-kg uniform plate supported by the pin at O is in equilibrium in the position shown. Find the frequency f of small oscillations about this position.
Provide a comprehensive definition for renaissance : Provide a comprehensive definition for "Renaissance." Define "readymade" and provide an example that best exemplifies this type of art. How does Analytical Cubism reflect the way we actually see?
Write and test a function that computes the time : Write a script le that accepts user input for d, L, and r and computes and displays C. Test the le with the values L = 1 m, r = 0.001 m, and d = 0.004 m.
Charts the commonalities between the given historic periods : Write an essay that charts the commonalities between these historic periods. In short, you should link the cultures of the 16th and 18th centuries by highlighting shared ideas and traditions in art that appeared during the Renaissance and reappea..
Derive the differential equation of motion of the disk : Assuming that the disk does not slip on the horizontal surface,
Identify the audience or population that you seek : Select a health issue of interest to you.Identify the audience or population that you seek to educate about this issue.Search the Internet to find credible sites containing information about your selected topic.
How are favorite brands faring on their index : Based on recent results, how are your favorite brands faring on their index? Do you agree with the results provided about your favorites?

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Perform linear regression on penicillin clearance

Perform linear regression on penicillin clearance using the normal equations - plot the concentration data and re-plot the log of the concentration data to show that it appears linear.

  Approximate the solution to the above initial value problem

dydt te3t - 2y 0 le t le 1 y0 0approximate the solution to the above initial value problem usinga modified-euler

  Write a functions

The function range basis takes a matrix A as input, and outputs a basis (again written as columns) for the range space of A.

  Simulate an atm machine and provide the code

Simulate an ATM machine and provide the code. I have the answer already but i do not understand it; I need expert to guide through it step by step. thanks!

  Use matlab to verify the central limit theorem

Use Matlab to verify the central limit theorem for the sum of N independent exponential RVs (with a=0 and b=2) for N= 10 and 20. Repeat for the sum of N independent Weibull RVs (with a=1 and b=4). Comment on the fit to the approximate Gaussian pdf..

  Define the future-value-of-money formula

The future-value-of-money formula relates how much a current investment will be worth in the future, assuming a constant interest rate.

  What is the minimum snr for a sinusoid in white noise

What is the minimum SNR for a sinusoid in white noise to be detectable using frequency domain techniques (Periodogram and Blackman-Tukey)? Do the results depend on frequency? Compute and plot separate correlation functions of white noise data and of ..

  Discuss the limitations of a linear classifier

Discuss the limitations of a linear classifier. What are some ways in which these limitations could be overcome - Discuss the limitations of the naive nearest neighbor algorithm. What are some ways in which these limitations could be overcome?

  Using matlab draw an open-loop bode diagram and find the

an armature-control dc motor is used in a position control system. the transfer functions of the controller and process

  Generalize the program below to allow negative integers

Using SML: Generalize the program below to allow negative integers on the input. We assume that negative integers are preceded by the minus sign(-) rather than the tilde (~). Note that we not only have to recognize negative integers but we can no lon..

  Write a code that will convert from ieee-754 floating-point

Convert from decimal to binary. Convert from binary to decimal. Convert from decimal to IEEE-754 format. Write a code that will convert from IEEE-754 floating-point representation to decimal.

  Write program to compute output of mixcolumns transformation

Using Matlab write a program to compute the output of the MixColumns transformation for the following sequence of input bytes "67 89 AB CD" Apply the InvMixColumns transformation to the obtained result to verify your calculation.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd