partial differential for nonlinear equation
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
ahmed ashiry
il 1 Mar 2015
Commentato: ahmed ashiry
il 1 Mar 2015
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)
0 Commenti
Risposta accettata
Mischa Kim
il 1 Mar 2015
Modificato: Mischa Kim
il 1 Mar 2015
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 Commenti
Mischa Kim
il 1 Mar 2015
Ahmed, how are you running these lines of code? Within a script/function?
Can you get it to run in the MATLAB command window?
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Particle & Nuclear Physics in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!