I need the Solution of this equation

If
E=1:0.5:10;
A=2.5;
B=3.18;
C=4.25;
D=0.15;
then
S = A + B*(lnE/E)+ C*(lnE/E)^2 + D*(E/lnE)

3 comentarios

Matt J
Matt J el 3 de Mzo. de 2013
Everything on the right hand side is known. What's to solve?
Azzi Abdelmalek
Azzi Abdelmalek el 3 de Mzo. de 2013
What is lnE ?
dashty
dashty el 3 de Mzo. de 2013
ln E is log(E)

Respuestas (6)

Azzi Abdelmalek
Azzi Abdelmalek el 3 de Mzo. de 2013
syms A B C D E lnE
s=solve(A + B*(lnE/E)+ C*(lnE/E)^2 + D*(E/lnE),lnE)
E=1:0.5:10;
A=2.5;
B=3.18;
C=4.25;
D=0.15;
out=subs(s)
Youssef  Khmou
Youssef Khmou el 3 de Mzo. de 2013
hi,
A=2.5;
B=3.18;
C=4.25;
D=0.15;
f=@(E) A + B.*(log(E)./E)+ C.*(log(E)./E).^2 + D*(E./log(E))
E=1:0.5:10;
figure, fplot(f,E)
fsolve(f,0)
Matt J
Matt J el 3 de Mzo. de 2013
Editada: Matt J el 3 de Mzo. de 2013
I need to fill in a few blanks for myself. If I assume that E is the unknown to solve for (your post seems to say it is a vector of data) and S is supposed to be zero (your post doesn't specify), then there are no real solutions. Your equation is quadratic in lnE/E with roots
>> r=roots([C,B-D,A])
r =
-0.3565 + 0.6791i
-0.3565 - 0.6791i
dashty
dashty el 4 de Mzo. de 2013

0 votos

sorry but no one answered correctly

3 comentarios

Azzi Abdelmalek
Azzi Abdelmalek el 4 de Mzo. de 2013
Editada: Azzi Abdelmalek el 4 de Mzo. de 2013
Everyone is trying to guess what is your unknown variable, can you provides a clear information about your question?
dashty
dashty el 4 de Mzo. de 2013
Dear Azzi thank you for your interest my equation is
S = A + B*(lnE/E)+ C*(lnE/E)^2 + D*(E/lnE)
if A ,B,C,D is constants as the following
A=2.5;
B=3.18;
C=4.25;
D=0.15;
so we want do determine the value of S for all E
and E = (1,2,3,4,5,6,7,8,9,10)
Jan
Jan el 4 de Mzo. de 2013
@dashty: "no answer is correctly" is not helpful. 1. It is not clear which answer are concerned by this question, because some answers could be posted afterwards. Of course I can compare the date and time of the answers manually, but this wastes the time of all who want to help you. 2. Instead of mentioning, that they are not correct, a detailed description between the results and your expectations would help to improve the answers. Currently the quality of the answers exceed the information density of the question. Please do not let us guess, what you want.
Matt J
Matt J el 4 de Mzo. de 2013
Editada: Matt J el 4 de Mzo. de 2013
f=@(E) A + B.*(log(E)./E)+ C.*(log(E)./E).^2 + D*(E./log(E))
S=f(1:10);
Azzi Abdelmalek
Azzi Abdelmalek el 4 de Mzo. de 2013
This is not an equation:
A=2.5;
B=3.18;
C=4.25;
D=0.15;
E=1:10
S=A + B*(log(E)./E)+ C*(log(E)./E).^2 + D*(E./log(E))

La pregunta está cerrada.

Etiquetas

Preguntada:

el 3 de Mzo. de 2013

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by