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

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

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