roots

1 次查看(过去 30 天)
12ar.af
12ar.af 2011-9-12
V1y1=V2y2;
y2+((1/(2*g))*((v1*y1)/y2)^2)+h-y1-(v1^2/(2*g))=0;
1.Determine the lower and upper bounds for the formula y2
2.Graph(using matlab) the function between the bounds
3.Determine the value of for y2 using matlab root finding methods
4.Calculate the flow velocity V2
5.Determine the root finding method
y1=1.5m; v1=0.2m/s; h=0.5m

回答(1 个)

Walter Roberson
Walter Roberson 2011-9-12
1. The bounds on y2 cannot be determined without knowing g.
2. There is no function between the bounds. All we are shown is a pair of equations, not a function.
5. What does it mean to "Determine the root finding method" ?
Caution: The equations have valid negative solutions, but there is an unremovable singularity in the equations if you try to move y2 or v2 through zero!
  1 个评论
Walter Roberson
Walter Roberson 2011-9-30
You cannot draw a graph between the bounds with the information given. The information given fixes exact values for y2 and V2. If you wish to draw a graph, you need at least one free variable, such as would be the case if you removed one of two equations and indicated which of the two variables' values that you wanted to range between.
But either way, if you were to fix v2 or y2, you would have a difficult time drawing a graph between the bounds: with the value of g that you have supplied, both v2 and y2 are necessarily complex. In order for them to avoid being complex, 2 + h - y1 must be less than or equal to 0: as h is 1/2 and y1 is 3/2, with the current values that is 2 + 1/2 - 3/2 which is 5/2 - 3/2 which is 1 which is unfortunately positive. If you were to reverse the values of h and y1, then 2 + 3/2 - 1/2 is even more positive, so that is not the solution either. For non-complex solutions you have the essential constraint that h <= y1 - 2 -- e.g., h <= - 1/2 (the negative of what you have now) would work.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by