필터 지우기
필터 지우기

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 CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by