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
2022년 4월 7일
Hi
The other paramaters are known?
beta, K, P0..... and q?
Pooya Jahedi
2022년 4월 7일
David Hill
2022년 4월 7일
There is no explicit solution. You could get a numerical solution if you know the other variables.
Pooya Jahedi
2022년 4월 7일
Davide Masiello
2022년 4월 7일
"the other variables have their own equations"
Do they depend on P?
Pooya Jahedi
2022년 4월 7일
Davide Masiello
2022년 4월 7일
Then look at my answer below, it should provide you with a suitable solution.
답변 (1개)
Davide Masiello
2022년 4월 7일
편집: Davide Masiello
2022년 4월 7일
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.
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!