Solving a mathematical equation
Mostrar comentarios más antiguos
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 comentarios
Mohammed Hamaidi
el 7 de Abr. de 2022
Hi
The other paramaters are known?
beta, K, P0..... and q?
Pooya Jahedi
el 7 de Abr. de 2022
David Hill
el 7 de Abr. de 2022
There is no explicit solution. You could get a numerical solution if you know the other variables.
Pooya Jahedi
el 7 de Abr. de 2022
Davide Masiello
el 7 de Abr. de 2022
"the other variables have their own equations"
Do they depend on P?
Pooya Jahedi
el 7 de Abr. de 2022
Davide Masiello
el 7 de Abr. de 2022
Then look at my answer below, it should provide you with a suitable solution.
Respuestas (1)
Davide Masiello
el 7 de Abr. de 2022
Editada: Davide Masiello
el 7 de Abr. de 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)
Just replace the actual values of all the constants and you're good to go.
Categorías
Más información sobre Mathematics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!