Solving a mathematical equation

1 vue (au cours des 30 derniers jours)
Pooya Jahedi
Pooya Jahedi le 7 Avr 2022
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 commentaires
Pooya Jahedi
Pooya Jahedi le 7 Avr 2022
No
Davide Masiello
Davide Masiello le 7 Avr 2022
Then look at my answer below, it should provide you with a suitable solution.

Connectez-vous pour commenter.

Réponses (1)

Davide Masiello
Davide Masiello le 7 Avr 2022
Modifié(e) : Davide Masiello le 7 Avr 2022
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.

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by