Use of vpa results
Mostrar comentarios más antiguos
Hello,
Using vpa, I can get, for example
>> p=vpa('1/3',50)
p =
0.33333333333333333333333333333333333333333333333333
However, when I try to use the obtained value, precision is lost:
>> vpa(p/3,50)
ans =
0.11111111111111111111111111111111
How can I manipulate with such results without loosing precision? I tried many methods, but no one works:(
Thank you very much for your help!
Dima
1 comentario
Dmytro
el 1 de Nov. de 2011
Respuestas (1)
Walter Roberson
el 1 de Nov. de 2011
I would experiment with
vpa(subs('P/3','P',p),50)
Also, perhaps
vpa(p/sym(3),50)
1 comentario
Dmytro
el 1 de Nov. de 2011
Categorías
Más información sobre Code Performance en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!