vpasolve returning Empty sym: 0-by-1

3 vues (au cours des 30 derniers jours)
Long Lit Chew
Long Lit Chew le 4 Jan 2020
Commenté : Long Lit Chew le 4 Jan 2020
%initial parameters
A = 1.87.*10.^-9;
f = 189;
d = 1550;
k = 8.43.*10.^-5;
K = 4.68.*10.^5;
B = 1.11.*10.^-7;
P = 500;
syms j
eqn = j./((d.*exp(-j./k)-f.*exp(j.*K))./(1+(B./j).*(exp(j.*K)-exp(-j./k)))- P) - A == 0;
sol = vpasolve(eqn ,j)
I want to solve the unknown parameters j, please help me T_T

Réponse acceptée

Walter Roberson
Walter Roberson le 4 Jan 2020
sol = vpasolve(eqn, j, 1e-6)
The eqn has a singularity not far from that point; it is rapidly rising towards +infinity near there, and crosses through 0 as it does so.
  1 commentaire
Long Lit Chew
Long Lit Chew le 4 Jan 2020
Thank you so much!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox 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