how to solve this equation

1 visualizzazione (ultimi 30 giorni)
Mithun Routh
Mithun Routh il 8 Set 2018
Modificato: Image Analyst il 9 Set 2018
Find the value of k:
0.45 = c1 * (c2*k - c3*Beta - c4.*Beta.^c5 -c6).* exp( -c7 *k)
where
k=1./(x+c8.*Beta)-c9./(Beta.^3+1);
Find the value of "x", where:
Beta=2
c1=0.73;
c2=151;
c3=0.58;
c4=0.002;
c5=2.14;
c6=13.2;
c7=18.4;
c8=-0.02;
c9=-0.003;

Risposta accettata

Star Strider
Star Strider il 8 Set 2018
Modificato: Star Strider il 8 Set 2018
This does not look like a homework problem.
Beta=2;
c1=0.73;
c2=151;
c3=0.58;
c4=0.002;
c5=2.14;
c6=13.2;
c7=18.4;
c8=-0.02;
c9=-0.003;
k = @(x) 1./(x+c8.*Beta)-c9./(Beta.^3+1);
f = @(x) c1 * (c2*k(x) - c3*Beta - c4.*Beta.^c5 -c6).* exp( -c7*k(x)) - 0.45;
xv = fsolve(f, 1);
fprintf(1, 'x = %.10f\nk = %.10f\n\n', xv, k(xv))
x = 6.7434993463
k = 0.1495091516

Più risposte (0)

Categorie

Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by