problem in using symbols

Hi everyone I have a problem in my program. I have a symbol called 'f' in an equation when I write (3*10^-12)/(1-f) it is written in the command window as '1/(1237940039285380274899124224/3713820117856141-1237940039285380274899124224/3713820117856141*f_ES)'which is the same value but in much complex form. How can I make the program write it in the simple form? I use this equation in the remaining of the program and it become much harder to follow and calculate.
thanks

Respuestas (1)

Paulo Silva
Paulo Silva el 7 de Dic. de 2011

0 votos

doc vpa %just a wild guess of something that might be useful to you

5 comentarios

omnia
omnia el 8 de Dic. de 2011
I am sorry. I do not understand
Naz
Naz el 8 de Dic. de 2011
@omnia: Can you make your question a bit more clear?
omnia
omnia el 10 de Dic. de 2011
try to do the following in the command window:
syms f
(3*10^-12)/(1-f)
the result will be :
3713820117856141/1237940039285380274899124224/(1-f)
this complex form prevent me from following the program. How can I make MATLAB write it as the above simple expression I entered ??
Walter Roberson
Walter Roberson el 10 de Dic. de 2011
omnia, use
vpa((3*10^-12)/(1-f))
omnia
omnia el 16 de Dic. de 2011
thanks Walter. It worked.

Iniciar sesión para comentar.

Etiquetas

Preguntada:

el 7 de Dic. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by