Effect of Increment of Variable on Output in a Multivariate Equation
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
There is an equation as you can see below. Here, C1, C2 and C3 denote constants, while x and y denote variables.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1453977/image.png)
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.
1 commentaire
Réponse acceptée
Star Strider
le 9 Août 2023
Modifié(e) : Star Strider
le 11 Août 2023
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))
dUdx = diff(U,x);
dUdx = simplify(dUdx, 500)
dUdxfcn = matlabFunction(dUdx)
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Conversion Between Symbolic and Numeric dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!