Freezing on "solve" and "vpasolve" when using more than one equation

1 回表示 (過去 30 日間)
Zach Carr
Zach Carr 2018 年 4 月 19 日
コメント済み: Star Strider 2018 年 4 月 19 日

Matlab freezes (won't stop running but doesn't print anything) on the last line

a1 = 26;
a2 = 1;
b1 = 3;
b2 = 1;
syms x y
p = 4*(a1+a2+b1+b2);
functionF = (p./((3*x+a1).^2 + (3*y+b1).^2 + (a1+b1))) - (2*p./((3*x-a2).^2 + (3*y+b2).^2 + (a2+b2))) - (3*p./((3*x+a1).^2 + (3*y-b2).^2 + (a1+b2))) + (4*p./((3*x-a2).^2 + (3*y-b1).^2 + (a2+b1)));
domain = [-10,10,-10,10];
partialX = diff(functionF, x)
partialY = diff(functionF, y)
sol= solve([partialX,partialY])

Any help would be v appreciated

  1 件のコメント
Star Strider
Star Strider 2018 年 4 月 19 日

Adding these assignments:

[nX,dX] = numden(partialX)
[nY,dY] = numden(partialY)

reveals that the numerators are 12-th degree polynomials. An analytic solution may not be possible.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics and Optimization についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by