how can store two power 1000 value in matlab.
Mostrar comentarios más antiguos
Sir,
I calculated 2^n values in a array. The data types int64 and n=1000.
After 2^63 the result will be same. How can I store 2^1000 value.
Shall I use floating point. Kindly give the solution for this problem.
Respuestas (2)
José-Luis
el 18 de Oct. de 2012
0 votos
Oleg Komarov
el 18 de Oct. de 2012
You can with the Symbolic Toolbox:
s = vpa(2^1000,301);
1 comentario
José-Luis
el 18 de Oct. de 2012
I should have said, you can't with int64.
Categorías
Más información sobre Elementary Math en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!