differentiation in matlab of two functions

조회 수: 3 (최근 30일)
Murali Krishna AG
Murali Krishna AG 2020년 12월 3일
댓글: Stephan 2020년 12월 4일
Let
theta=atan(p/q)+pi
a(theta)=exp(2*pi*j*A*[cos(theta);sin(theta)]) where A ,is row vector and p,q,A are known
I need to find the in matlab.Please help me on this

답변 (2개)

Alan Stevens
Alan Stevens 2020년 12월 3일
a = @(theta) exp(2j*pi*A*[cos(theta);sin(theta)]);
dadtheta = @(theta) 2j*pi*A*[-sin(theta);cos(theta)]*a(theta);

Stephan
Stephan 2020년 12월 3일
syms a(theta) p q A
eq1 = a(theta)==exp(2*pi*1i*A*[cos(theta);sin(theta)])
eq2 = theta==atan(p/q)+pi
Deq1 = diff(eq1,theta)
sol = subs(rhs(Deq1),theta,rhs(eq2))
pretty(sol)
  댓글 수: 6
Murali Krishna AG
Murali Krishna AG 2020년 12월 4일
Thank u so much,It helped me a lot
Stephan
Stephan 2020년 12월 4일
Did you notice that you can accept and/or vote for useful answers?

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

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by