Solution to Indeterminate set of equations

4 ビュー (過去 30 日間)
Suhas Raghavendra Kulkarni
Suhas Raghavendra Kulkarni 2020 年 2 月 21 日
回答済み: Nishant Gupta 2020 年 2 月 24 日
I have 10 variable and 5 equations describing them.
For Eg. (e,f,g,h,k,m are all angles)
syms a b c d e f g h k m
unkowns = [a b c d e f g h k m]
x=10
y=5
equations=[a+b+k-pi==0,
c+d+m-pi==0,
a*sin(e)+b*sin(g)-x==0,
a*cos(e)+d*cos(f)-y/2==0,
b*cos(g)+c*cos(h)-y/2==0]
solution=vpasolve(equation,unknowns)
However, when I run this, I do not get solutions for the variables. The function returns empty solutions.
Is there an alternative procedure to solve such indeterminate equations?
  1 件のコメント
darova
darova 2020 年 2 月 21 日
I think it's impossible

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

回答 (1 件)

Nishant Gupta
Nishant Gupta 2020 年 2 月 24 日
You will get the solution, just use the proper variable names. Either use equation everywhere or equations. Same with unknowns.

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by