The picture of the two equation.

Sir,
Just now I took the picture of those two equations. And while I’m using the code, still, I didn’t get the answer. It shows like this.
ans =
1.1646e+04 I can't paste the picture. So, i have typed everything.
r = (((Gamma*(M-(A*Q)))+((1-Gamma)*G))*b))/((Gamma*M)+((1-Gamma)*(G+A*Q)));
Solving the following equation for Q.
((A^3)*((1-Gamma)^2)*(Q^(4 beta)))+(2*(A^2)*((1-Gamma)*((Gamma*M)+(1-Gamma)*G)*(Q^(3 beta)))- ((A^2)*B*((1-Gamma)^2)*(Q^2))+(A*((Gamma*M)+(1-Gamma)*G)*(Q^(2 beta))))-(2*A*B*(1-Gamma)*((Gamma*M)+(1-Gamma)*G-(A*b))*Q)-(B*(((Gamma*M)+(1-Gamma)*G-(A*b))^2)) = 0
Where A=(1+Lamda)*Ch, B = 2*(1-beta)*C0*D, M = Cb*D, G=Cl*D

6 Comments

Given the number of brackets I would be surprised if there isn't a typo somewhere in there. Also, you should be able to use the edit tools to insert an image, although this could be tricky on a mobile device.
You are getting an answer: 11646. What is the problem with it? And what code are you using?
Comment posted as answer by shunmugam hemalatha:
Where A=(1+Lamda)*Ch, B = 2*(1-beta)*C0*D, M = Cb*D, G=Cl*D .
Solving the above equation for Q.
Sir , I have pasted the picture of the equation what i have typed.
What exact code did you use?
clear all
D=1600;
C0=400;
Ch=10;
Cb=600;
Gamma=0.7;
Cl=2000;
b=250;
lamda=0.09;
beta=0.1;
Q=1455;
%solve Q;
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));
%r=subs(r)
solve r
Just i have solved for r only .Instead of A,B,M and G, i have given the exact equation.
Your code doesn't run, it also doesn't contain any symbolic variables. Why don't you first write your 5 equations as symbolic equations? Then you should be able to put that system of equations into solve. (note that my experience with the symbolic toolbox is fairly limited)
OK Rik Sir.
Thank you so much for your response .
You have spent the whole day (patient) to answer my question.
I'll try and find the answer as you said.
Thank you.

Answers (0)

This question is closed.

Asked:

on 30 Jun 2020

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!