Solving a mathematical equation

Hello
I have ojne equation I want to learn how can I solve this equation in Matlab? my equation is : and I want to solve with respect to P

7 件のコメント

Mohammed Hamaidi
Mohammed Hamaidi 2022 年 4 月 7 日
Hi
The other paramaters are known?
beta, K, P0..... and q?
Pooya Jahedi
Pooya Jahedi 2022 年 4 月 7 日
yes
David Hill
David Hill 2022 年 4 月 7 日
There is no explicit solution. You could get a numerical solution if you know the other variables.
Pooya Jahedi
Pooya Jahedi 2022 年 4 月 7 日
the other variables have their own equations
Davide Masiello
Davide Masiello 2022 年 4 月 7 日
"the other variables have their own equations"
Do they depend on P?
Pooya Jahedi
Pooya Jahedi 2022 年 4 月 7 日
No
Davide Masiello
Davide Masiello 2022 年 4 月 7 日
Then look at my answer below, it should provide you with a suitable solution.

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

回答 (1 件)

Davide Masiello
Davide Masiello 2022 年 4 月 7 日
編集済み: Davide Masiello 2022 年 4 月 7 日

0 投票

Example
clear,clc
beta = 0.5;
kH = 1;
P0 = 1;
qm = 2;
kS = 0.01;
n = 2;
qx = 1;
func = @(P) qx-(beta*kH*(P/P0)+(1-beta)*qm*(kS*P/P0)^(1/n)/(1+(kS*P/P0)^(1/n)));
result = fzero(func,1)
result = 1.7654
Just replace the actual values of all the constants and you're good to go.

カテゴリ

ヘルプ センター および File ExchangeMathematics についてさらに検索

質問済み:

2022 年 4 月 7 日

コメント済み:

2022 年 4 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by