Differentiation Equation- result of Derivative

조회 수: 1 (최근 30일)
vu ngothanh
vu ngothanh 2015년 4월 16일
댓글: vu ngothanh 2015년 4월 16일
I have i math like this:
L=5
x=5*L^2 %x=125
I need to have a result of y; y=diff(x)=50
What is the code that I must type to have result y=50; Thanks in advance

채택된 답변

Mischa Kim
Mischa Kim 2015년 4월 16일
Vu, I believe what you are trying to do is this:
syms y(x) % define y as a function of x symbolically
L = 5;
y = 5*x^2; % define the function y
dy = diff(y,x); % compute its derivative
dyL = subs(dy,x,L) % compute the derivative at x = L
You'd need to have access to the Symbolic Math Toolbox to run the code.
  댓글 수: 2
vu ngothanh
vu ngothanh 2015년 4월 16일
Thank you very much. Thank you for helping me.
vu ngothanh
vu ngothanh 2015년 4월 16일
Mr. Mischa Can you help again. I have a same requirement like the one upper. but now is multi variable like this. m,w,k,E,mI,c is constant
a=(((m*w^2-k)/(E*mI))^2+(c*w/(E*mI))^2)^(1/8);
b= atan(-c*w/(m*w^2-k))/4+pi/4;
X=a*cos(b);
Y=a*sin(b);
sa=cosh(L*X)*cos(L*Y);
sb=sinh(L*X)*sin(L*Y);
HOw can I get X',Y',sa',sa'.
Thank you very much

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by