Question
1. By hand, calculate the cross sectional area of the trough, and then calculate the volume of the trough. 2. Write an m-file that finds
1. By hand, calculate the cross sectional area of the trough, and then calculate the volume of the trough.
2. Write an m-file that finds the volume of a trough with a cross sectional area defined by a fuction f(x) and the horzontal line segment given by g(x) = f(0) from x=0 to the second interception point at x=b . The length of the trough is L meters. The first line of the m-file should be
function vol = trough_volume(f,b,L)
3.Use your code to compute the volume of the trough in question 1. compare the two solutions and comment on any differences you observe.
4.What are the limitations to your code?
A 5 meter long trough has a crosectional area defined by the function f(x)--In (x + 0 01 ) the horzontal line segment given by g(x) = f(0) from x = 0 to the second interception point. Your task is to calculate the volume of the trough. + ex andStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started