Unable to find explicit solution

syms y b a x c d f
eqn = b+(a*log(y/x))==c+(d*log((1-y)/f));
soly = solve(eqn, y)
Warning: Unable to find explicit solution. For options, see help.
> In solve (line 317)
In Plotting (line 30)
soly =
Empty sym: 0-by-1
What is wron with my code

댓글 수: 4

you have equation of type
y/(1-y)^A=B
which does not have an explicit solution for any A, but you can try with integer A
seema redhu
seema redhu 2021년 12월 5일
Please rewrite tha same code with integer A
G A
G A 2021년 12월 6일
편집: G A 2021년 12월 6일
is it OK as follows?
syms y a b c d f x A B
n=2;
d = n*a
d = 
A = d/a
A = 
2
y = solve(y/(1-y)^A==B,y)
y = 
B = (x/f^A)*exp((c - b)/a);

댓글을 달려면 로그인하십시오.

답변 (2개)

seema redhu
seema redhu 2021년 12월 6일

0 개 추천

Hi Sir
My actual code with parameters are as below-
I have to solve this for the value of y.Please help me to solve this.
syms y a1 a2 a3 a4 a5 a6
a1=-2.9362;
a2=-133.2985;
a3=0.1864;
a4=0.1717;
a5=0.95;
a6=0.5;
p=a1+(a3*log(y/a5));
q=a2+(a4*log((1-y)/a6));
r=p==q;
h=solve(r,x);

댓글 수: 1

Walter Roberson
Walter Roberson 2022년 1월 10일
Maple thinks that 3.33507942113645790766889887448*10^(-304) might be a solution.

댓글을 달려면 로그인하십시오.

G A
G A 2021년 12월 6일
편집: G A 2021년 12월 6일

0 개 추천

Your equation with actual ratio a4/a3 does not have analytical solution. Try to solve it numerically with some tolerance.

카테고리

제품

릴리스

R2019a

질문:

2021년 12월 4일

댓글:

2022년 1월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by