Obtaining values for variable on the left and right hand side

조회 수: 1 (최근 30일)
Danish Iqhwan Rohaizad
Danish Iqhwan Rohaizad 2022년 4월 2일
답변: Torsten 2022년 4월 2일
Hi everyone !
If lets say i have two variables, x1 and x2, and equation such as x1 * (1.4 * 287 * 336.8559)^0.5 = 0.5 / (1 + 0.2 * (x2)^2). I am spposed to get 0 = 0
How do i code my coding so that x1 and x2 will generate their own value which will satisfy both on the left and right hand side as 0 = 0

답변 (1개)

Torsten
Torsten 2022년 4월 2일
You can't achieve 0=0 since 0.5 / (1 + 0.2 * (x2)^2) is always positive.
But if you choose
x1 = (0.5 / (1 + 0.2 * (x2)^2))/(1.4 * 287 * 336.8559)^0.5,
for a given value of x2, the equation from above will always hold.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by