How to solve the following equations with a given data. I need the correct coding to solve .
Mostra commenti meno recenti
clc
clear all
D=1600;
C0=400;
Ch=10;
Cb=600;
Gamma=0.7;
Cl=2000;
b=250;
lamda=0.09;
beta=0.1;
syms Q,r
solve(Q,r);
r=(( Gamma*((Cb*D)-((1+Lamda)*Ch*Q)))+(Cl*(1-Gamma)*D))*b)/(((1-Gamma)*(((1+Lamda)*Ch*Q)+(Cl*D)))+(Gamma*Cb*D));
Q=(2*(Q^beta)*b*D)+(b*(Q^2)*Ch*(1+lamda))-((Gamma*Cb*D)+(Cl*(1-Gamma)*D)*((r^2)-(2*r*b)+(b^2)));
r=solve(subs(Q));
Answer Q=1455 and r = 247.5
4 Commenti
madhan ravi
il 30 Giu 2020
Show the equation in LaTeX form.
shunmugam hemalatha
il 30 Giu 2020
madhan ravi
il 30 Giu 2020
or a picture from where you took these equations.
shunmugam hemalatha
il 30 Giu 2020
Risposte (1)
madhan ravi
il 30 Giu 2020
The below code is the way to solve them but the answer is no way near to get what you want , you have to experiment yourself to check if you input the eqautions properly.
D=1600;
C0=400;
Ch=10;
Cb=600;
Gamma=0.7;
Cl=2000;
b=250;
Lamda=0.09;
beta=0.1;
syms Q r positive
eq = [ ((Gamma*((Cb*D)-((1+Lamda)*Ch*Q)))+(Cl*(1-Gamma)*D)*b) /...
(((1-Gamma)*(((1+Lamda)*Ch*Q)+(Cl*D)))+(Gamma*Cb*D));...
(2*(Q^beta)*b*D)+(b*(Q^2)*Ch*(1+Lamda))-...
((Gamma*Cb*D)+(Cl*(1-Gamma)*D)*((r^2)-(2*r*b)+(b^2)))];
[Q,r] = solve(eq,'real',1)
double(Q)
double(r)
1 Commento
shunmugam hemalatha
il 30 Giu 2020
Categorie
Scopri di più su Mathematics in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!