how can store two power 1000 value in matlab.

2 vues (au cours des 30 derniers jours)
G Jothi
G Jothi le 18 Oct 2012
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.

Réponses (2)

José-Luis
José-Luis le 18 Oct 2012

Oleg Komarov
Oleg Komarov le 18 Oct 2012
You can with the Symbolic Toolbox:
s = vpa(2^1000,301);
  1 commentaire
José-Luis
José-Luis le 18 Oct 2012
I should have said, you can't with int64.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by