フィルターのクリア

empty matrix in solving symbolic equation

2 ビュー (過去 30 日間)
safisay
safisay 2017 年 11 月 9 日
回答済み: Walter Roberson 2017 年 11 月 9 日
syms k_1 theta1 theta0 M gama l
eqn=(gama*l)/2==(k_1*(sin(theta1) + cos(k_1*(gama - theta1))*sin(theta0) - cos(theta0)*sin(theta1) + cos(theta1)*sin(theta0) - M*sin(theta1) - k_1*sin(k_1*(gama - theta1)) - M*cos(k_1*(gama - theta1))*sin(theta1) + k_1*cos(theta0)*sin(k_1*(gama - theta1)) + M*k_1*sin(k_1*(gama - theta1)) - M*k_1*cos(theta1)*sin(k_1*(gama - theta1))))/(M*(2*k_1 - sin(k_1*(gama - theta1))*sin(theta1) + 2*k_1*cos(k_1*(gama - theta1))*cos(theta1) - k_1^2*sin(k_1*(gama - theta1))*sin(theta1)))
seqn=subs([eqn])
solq=solve(seqn,theta1)
Can anyone please tell me what is wrong with the code because it was giving me empty matrix?
  2 件のコメント
John D'Errico
John D'Errico 2017 年 11 月 9 日
編集済み: John D'Errico 2017 年 11 月 9 日
Why must there be something wrong? Does every problem have an analytical solution? (No.)
The empty result is a signal that it found no analytical solution.
safisay
safisay 2017 年 11 月 9 日
I think there is one or more possible solution of theta1 but the code is not working. don't know why.

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

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 11 月 9 日
I ran Maple on this overnight, about 11 hours. Maple got up to 33 gigabytes of memory on it. I had to abend the process to get back control of my machine.
If there is any hope of solving it analytically, it would have to involve some change of variables.

カテゴリ

Help Center および File ExchangeAssumptions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by