I have a non linear equation and need to solve for P. I tried it but couldn't get the answer for P. Could you help me.
eta*P/(B*h*f) = sqrt((eta*P)/(B*h*f)+ (4*k*T)/(q^2*R*B)+ Id/(q*B))
clear all;
clc;
B= 500*10^6;
l = 1.55 *10^-6;
R = 75;
T = 300;
eta = 0.9;
Id = 5*10^-9;
h = 6.625*10^-34;
c=3*10^8;
q= 1.6*10^-19;
f = c/l;
k = 1.38*10^-23;
% my equation is
eta*P/(B*h*f) = sqrt((eta*P)/(B*h*f)+ (4*k*T)/(q^2*R*B)+ Id/(q*B))
% I need to solve for P

 採用された回答

Stephan
Stephan 2019 年 4 月 22 日
編集済み: Stephan 2019 年 4 月 22 日

0 投票

syms P
B= 500*10^6;
l = 1.55 *10^-6;
R = 75;
T = 300;
eta = 0.9;
Id = 5*10^-9;
h = 6.625*10^-34;
c=3*10^8;
q= 1.6*10^-19;
f = c/l;
k = 1.38*10^-23;
% my equation is
eq = eta*P/(B*h*f) == sqrt((eta*P)/(B*h*f)+ (4*k*T)/(q^2*R*B)+ Id/(q*B))
% I need to solve for P
sol = vpasolve(eq,P)

1 件のコメント

rabindra khadka
rabindra khadka 2019 年 4 月 22 日
Thank you so much

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSystems of Nonlinear Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by