フィルターのクリア

solve function can't solve an inequality

4 ビュー (過去 30 日間)
Roberto Lemaitre
Roberto Lemaitre 2021 年 10 月 14 日
コメント済み: Walter Roberson 2021 年 10 月 15 日
Hello, i'm trying to solve an inequality with the solve command but it gives me an error that tells me it can't solve my equation. Any alternatives to solve or does someone know how to overcome the error? thanks in advance!
  1 件のコメント
Roberto Lemaitre
Roberto Lemaitre 2021 年 10 月 14 日
編集済み: Walter Roberson 2021 年 10 月 15 日
[0 < 320/9 - k/9, 0 < (9*k + (k/9 - 320/9)*(k - 41))/(k/9 - 320/9), 0 < k]
This is the inequality in text form.

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

採用された回答

Mitchell Thurston
Mitchell Thurston 2021 年 10 月 15 日
I'm able to get a solution with defining k as a real symbolic variable
syms k real
ineqs = [0 < 320/9 - k/9, 0 < (9*k + (k/9 - 320/9)*(k - 41))/(k/9 - 320/9), 0 < k];
A = solve(ineqs, k, 'ReturnConditions', true);
Where A.conditions returns
x < 36*5^(1/2) + 140 & 140 - 36*5^(1/2) < x
  1 件のコメント
Walter Roberson
Walter Roberson 2021 年 10 月 15 日
Nice find. I will have to remember that work-around for future.

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by