필터 지우기
필터 지우기

Effect of Increment of Variable on Output in a Multivariate Equation

조회 수: 3 (최근 30일)
Raj
Raj 2023년 8월 9일
편집: Star Strider 2023년 8월 11일
There is an equation as you can see below. Here, C1, C2 and C3 denote constants, while x and y denote variables.
I want to observe the effect of x on U. In short, will increasing x increase or decrease U? How can I prove this mathematically? I tried using limit but it didn't work because of two different variables. In addition, a constraint such as 40<x<55 can be set for x.

채택된 답변

Star Strider
Star Strider 2023년 8월 9일
편집: Star Strider 2023년 8월 11일
Perhaps taking the partial derivative of U with respect to x (creating a sort of sensitivity function) will do what you want. You can do this symbolically using the diff function:, or numerically using the gradient function.
EDIT — .(11 Aug 2023 at 15:39)
In detail —
syms C_1 C_2 C_3 x y
sympref('AbbreviateOutput',false);
U = (C_1 * y * tan(x+(y/2))) / (C_2 * tan(x+(y/2)) + C_3 * (cos(y)+tan(x)*sin(y) - 1))
U = 
dUdx = diff(U,x);
dUdx = simplify(dUdx, 500)
dUdx = 
dUdxfcn = matlabFunction(dUdx)
dUdxfcn = function_handle with value:
@(C_1,C_2,C_3,x,y)(C_1.*y.*(tan(x+y./2.0).^2+1.0))./(C_3.*(cos(y)+tan(x).*sin(y)-1.0)+C_2.*tan(x+y./2.0))-C_1.*y.*tan(x+y./2.0).*(C_2.*(tan(x+y./2.0).^2+1.0)+C_3.*sin(y).*(tan(x).^2+1.0)).*1.0./(C_3.*(cos(y)+tan(x).*sin(y)-1.0)+C_2.*tan(x+y./2.0)).^2
Supply the appropriate variable values and an appropriate vector for ‘x’ to evaluate the function, then plot the evaluated ‘dUdxfcn’ as a function of ‘x’.
.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Conversion Between Symbolic and Numeric에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by