필터 지우기
필터 지우기

partial differential for nonlinear equation

조회 수: 1 (최근 30일)
ahmed ashiry
ahmed ashiry 2015년 3월 1일
댓글: ahmed ashiry 2015년 3월 1일
i want the partial differential of this equation w.r.t X , Y and Z
31.65951=sqrt((20460991.052399-X)^2+(11012393.207537-Y)^2+(13140061.841029-Z)^2)-sqrt((20462649.31-X)^2+(11012196.356-Y)^2+(13137623.266-Z)^2)

채택된 답변

Mischa Kim
Mischa Kim 2015년 3월 1일
편집: Mischa Kim 2015년 3월 1일
Use gradient
syms X Y Z
Eq = -31.65951 + sqrt((20460991.052399-X)^2+(11012393.207537-Y)^2+(13140061.841029-Z)^2)-sqrt((20462649.31- X)^2+(11012196.356-Y)^2+(13137623.266-Z)^2);
gradient(Eq)
ans =
(2*X - 5492455463362645/134217728)/(2*((Z - 3527258492164819/268435456)^2 + (X - 5492455463362645/268435456)^2 + (Y - 2956116792316497/268435456)^2)^(1/2)) - (2*X - 5492900598497935/134217728)/(2*((Z - 7053207784329839/536870912)^2 + (X - 5492900598497935/268435456)^2 + (Y - 5912127900768797/536870912)^2)^(1/2))
(2*Y - 2956116792316497/134217728)/(2*((Z - 3527258492164819/268435456)^2 + (X - 5492455463362645/268435456)^2 + (Y - 2956116792316497/268435456)^2)^(1/2)) - (2*Y - 5912127900768797/268435456)/(2*((Z - 7053207784329839/536870912)^2 + (X - 5492900598497935/268435456)^2 + (Y - 5912127900768797/536870912)^2)^(1/2))
(2*Z - 3527258492164819/134217728)/(2*((Z - 3527258492164819/268435456)^2 + (X - 5492455463362645/268435456)^2 + (Y - 2956116792316497/268435456)^2)^(1/2)) - (2*Z - 7053207784329839/268435456)/(2*((Z - 7053207784329839/536870912)^2 + (X - 5492900598497935/268435456)^2 + (Y - 5912127900768797/536870912)^2)^(1/2))
  댓글 수: 3
Mischa Kim
Mischa Kim 2015년 3월 1일
Ahmed, how are you running these lines of code? Within a script/function?
Can you get it to run in the MATLAB command window?
ahmed ashiry
ahmed ashiry 2015년 3월 1일
thanks for your reply > but i want the version of you matlab to solve the above function gradient

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by